/* ── SHAWHAUSE ── Minimal Luxury ── */

:root {
  --black: #1B1B1B;
  --dark: #4D4D4D;
  --sage: #B4B7B3;
  --mint: #E1EFE2;
  --white: #F7F7F5;
  --cream: #FAFAF8;

  --font-sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;

  --ease: cubic-bezier(0.25, 0, 0.15, 1);
  --ease-out: cubic-bezier(0, 0, 0.15, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--white);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
  animation: grainShift 0.5s steps(2) infinite;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, -4%); }
  50%  { transform: translate(4%, 3%); }
  75%  { transform: translate(-2%, 5%); }
  100% { transform: translate(3%, -2%); }
}

/* ── Custom cursor ── */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(247, 247, 245, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s ease;
}

body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: rgba(225, 239, 226, 0.6);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

/* ── Container ── */
.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(27, 27, 27, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(180, 183, 179, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.nav-logo-img {
  height: 22px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.4s var(--ease);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  padding: 10px 24px;
  border: 1px solid rgba(180, 183, 179, 0.3);
  border-radius: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(2px, 3px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(2px, -3px);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: var(--black);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links .nav-link {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
  }

  .nav-link--cta {
    margin-top: 16px;
  }
}

/* ── Page intro ── */
.page-intro {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: introFade 0.6s ease 1.2s forwards;
}

.page-intro img {
  height: 28px;
  width: auto;
  opacity: 0;
  animation: introLogo 0.8s var(--ease-out) 0.3s forwards;
}

@keyframes introLogo {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.9; transform: translateY(0); }
}

@keyframes introFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 140px;
}

.hero-inner {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 40px;
}

.hero-title em {
  font-style: italic;
  color: var(--mint);
}

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--sage);
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  padding: 16px 40px;
  border: 1px solid rgba(180, 183, 179, 0.3);
  transition: background 0.4s var(--ease), color 0.3s ease, border-color 0.3s ease;
}

.hero-cta:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Sections ── */
.section {
  padding: 140px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 32px;
}

.body-text {
  font-size: 1rem;
  color: var(--sage);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 20px;
}

.body-text em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--mint);
}

/* ── Split layout ── */
.split {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 32px;
  }
}

/* ── Philosophy ── */
.philosophy {
  border-top: 1px solid rgba(180, 183, 179, 0.1);
  border-bottom: 1px solid rgba(180, 183, 179, 0.1);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.philosophy-item {
  padding-top: 32px;
  border-top: 1px solid rgba(180, 183, 179, 0.15);
}

.philosophy-num {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--sage);
  display: block;
  margin-bottom: 20px;
}

.philosophy-item h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--white);
}

.philosophy-item p {
  font-size: 0.92rem;
  color: var(--sage);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Services ── */
.services-list {
  margin-top: 24px;
}

.service-item {
  padding: 36px 0;
  border-bottom: 1px solid rgba(180, 183, 179, 0.1);
  cursor: pointer;
  transition: padding-left 0.4s var(--ease);
}

.service-item:first-child {
  border-top: 1px solid rgba(180, 183, 179, 0.1);
}

.service-item:hover {
  padding-left: 16px;
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.service-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--white);
  transition: color 0.3s ease;
}

.service-item:hover .service-name {
  color: var(--mint);
}

.service-arrow {
  font-size: 1.4rem;
  color: var(--sage);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.service-item:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-desc {
  max-width: 560px;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease), color 0.3s ease;
}

.service-item:hover .service-desc {
  max-height: 120px;
  color: var(--sage);
}

/* ── Work Grid ── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.work-card {
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-card-img {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.work-card-placeholder {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.4;
}

.work-card-info {
  padding: 20px 0 8px;
}

.work-card-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.work-card-info p {
  font-size: 0.78rem;
  color: var(--sage);
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Marquee ── */
.marquee-section {
  padding: 48px 0;
  border-top: 1px solid rgba(180, 183, 179, 0.08);
  border-bottom: 1px solid rgba(180, 183, 179, 0.08);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-text {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--sage);
  opacity: 0.4;
  white-space: nowrap;
  padding-right: 16px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Contact ── */
.contact {
  text-align: center;
  padding: 180px 0;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact .label {
  margin-bottom: 32px;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--white);
}

.contact-title em {
  font-style: italic;
  color: var(--mint);
}

.contact-email {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(180, 183, 179, 0.3);
  transition: border-color 0.3s ease, color 0.3s ease;
  margin-bottom: 48px;
}

.contact-email:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--white);
}

/* ── Footer ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(180, 183, 179, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 16px;
  width: auto;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--dark);
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Hero reveals play after page intro (1.8s total) */
.hero .reveal { transition-delay: 1.6s; }
.hero .reveal:nth-child(2) { transition-delay: 1.75s; }
.hero .reveal:nth-child(3) { transition-delay: 1.9s; }
.hero .reveal:nth-child(4) { transition-delay: 2.05s; }

/* ── Selection ── */
::selection {
  background: var(--mint);
  color: var(--black);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--dark);
  border-radius: 3px;
}
