/* ==========================================================================
   SERENITY DESIGN STUDIO — DESIGN SYSTEM
   Token system derived from the studio's mark (oxide red #A2262D) plus a
   warm, concrete-and-linen architectural palette. Display face is Fraunces
   (a serif with real optical weight, used sparingly for editorial titles),
   body face is Manrope, and a monospace face (Space Mono) is reserved for
   "drawing annotations" — the small coordinate/figure labels that behave
   like notes on an architect's plan rather than decorative numbering.
   ========================================================================== */

:root{
  /* ---- color: primary ---- */
  --warm-white:   #FAF7F2;
  --paper:        #F4EFE6;
  --beige:        #EAE1D2;
  --concrete:     #B7AFA2;
  --graphite:     #4B463F;
  --charcoal:     #1B1815;
  --charcoal-2:   #14120F;
  --ink:          #201C18;

  /* ---- color: accent ---- */
  --oxide:        #A2262D;   /* from the studio mark */
  --oxide-deep:   #7C1C22;
  --olive:        #676A46;
  --bronze:       #A9764F;
  --wood:         #8C6239;

  /* ---- surfaces ---- */
  --line: rgba(27,24,21,0.12);
  --line-soft: rgba(27,24,21,0.07);
  --line-dark: rgba(250,247,242,0.16);
  --line-dark-soft: rgba(250,247,242,0.09);

  /* ---- type ---- */
  --f-display: 'Fraunces', 'Iowan Old Style', serif;
  --f-body: 'Manrope', -apple-system, sans-serif;
  --f-mono: 'Space Mono', 'SFMono-Regular', monospace;

  /* ---- motion ---- */
  --ease: cubic-bezier(.16,.84,.32,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);

  /* ---- layout ---- */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: auto; }
body{
  margin:0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family: inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
input, textarea{ font-family: inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

::selection{ background: var(--oxide); color: var(--warm-white); }

:focus-visible{
  outline: 2px solid var(--oxide);
  outline-offset: 3px;
}

/* ==========================================================================
   TYPE SCALE
   ========================================================================== */
.eyebrow{
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide);
  display:flex;
  align-items:center;
  gap: 10px;
}
.eyebrow::before{
  content:'';
  width: 22px; height:1px;
  background: var(--oxide);
  display:inline-block;
}
.eyebrow.on-dark{ color:#D9B3A2; }
.eyebrow.on-dark::before{ background:#D9B3A2; }

.display-1{
  font-family: var(--f-display);
  color: white;
  font-weight: 340;
  font-size: clamp(44px, 7.4vw, 118px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.display-2{
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display-3{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}
.body-lg{
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--graphite);
}
.body-md{ font-size: 15.5px; line-height: 1.7; color: var(--graphite); }
.mono-label{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--concrete);
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section{ position:relative; padding: clamp(80px,10vw,160px) 0; }
.section-tight{ padding: clamp(56px,7vw,110px) 0; }
.on-dark{ background: var(--charcoal); color: var(--warm-white); }
.on-beige{ background: var(--paper); }
.grid{ display:grid; }
.reveal{ opacity:0; transform: translateY(36px); }
.reveal-img{ overflow:hidden; }
.reveal-img img, .reveal-img .img-el{ transform: scale(1.12); }
.hairline{ height:1px; background: var(--line); border:0; margin:0; }
.hairline.on-dark-line{ background: var(--line-dark); }

.btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 17px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn svg{ width:14px; height:14px; transition: transform .5s var(--ease); }
.btn:hover{ background: var(--ink); color: var(--warm-white); }
.btn:hover svg{ transform: translateX(4px); }
.btn.solid{ background: var(--ink); color: var(--warm-white); }
.btn.solid:hover{ background: var(--oxide); border-color: var(--oxide); }
.btn.on-dark{ border-color: var(--line-dark); color: var(--warm-white); }
.btn.on-dark:hover{ background: var(--warm-white); color: var(--charcoal); }
.btn.oxide{ border-color: var(--oxide); color: var(--oxide); }
.btn.oxide:hover{ background: var(--oxide); color: var(--warm-white); }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor{
  position: fixed; top:0; left:0; width:10px; height:10px; border-radius:50%;
  background: var(--oxide); pointer-events:none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: opacity .3s ease, width .35s var(--ease), height .35s var(--ease), background .35s var(--ease);
  mix-blend-mode: difference;
}
.cursor-ring{
  position: fixed; top:0; left:0; width:44px; height:44px; border-radius:50%;
  border:1px solid rgba(162,38,45,.6); pointer-events:none; z-index:9997;
  transform: translate(-50%,-50%); opacity:0;
  transition: opacity .3s ease, width .4s var(--ease), height .4s var(--ease), transform .12s linear;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing:.1em; text-transform:uppercase; color: var(--oxide);
}
.cursor-ring.show{ opacity:1; }
.cursor-ring.expand{ width:88px; height:88px; background: rgba(250,247,242,.9); }
@media (hover:none), (pointer:coarse){
  .cursor, .cursor-ring{ display:none; }
}

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader{
  position: fixed; inset:0; z-index: 10000;
  background: var(--charcoal);
  display:flex; align-items:center; justify-content:center; flex-direction:column;
  gap: 34px;
}
.loader svg{ width: 92px; height: 92px; }
.loader-ring{ fill:none; stroke:#D9B3A2; stroke-width:2.2; stroke-dasharray: 400; stroke-dashoffset: 400; }
.loader-tick{ fill:none; stroke:#D9B3A2; stroke-width:2.2; stroke-dasharray: 60; stroke-dashoffset: 60; }
.loader-quote{
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 340;
  font-size: clamp(18px, 2.6vw, 28px);
  color: var(--warm-white);
  text-align:center;
  max-width: 560px;
  padding: 0 24px;
  opacity: 0;
}
.loader-bar{ width: 220px; height:1px; background: var(--line-dark); position:relative; overflow:hidden; }
.loader-bar::after{
  content:''; position:absolute; left:0; top:0; bottom:0; width:0%;
  background: var(--oxide);
}
.loader.loading .loader-bar::after{ animation: loadbar 2.2s var(--ease) forwards; }
@keyframes loadbar{ to{ width:100%; } }
.loader-pct{ font-family: var(--f-mono); font-size: 11px; color: var(--concrete); letter-spacing:.12em; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 900;
  padding: 22px var(--gutter);
  display:flex; align-items:center; justify-content:space-between;
  transition: padding .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled{
  padding: 14px var(--gutter);
  background: rgba(250,247,242,.86);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav.scrolled.dark-bg{ background: rgba(27,24,21,.78); border-bottom-color: var(--line-dark); }
.nav-logo{ display:flex; align-items:center; gap:12px; }
.nav-logo img{ height: 85px; width:auto; transition: height .5s var(--ease); filter: none; }
.nav.scrolled .nav-logo img{ height: 58px; }
.nav-logo-word{ font-family: var(--f-display); font-size: 15px; letter-spacing: .01em; }
.nav-links{ display:flex; align-items:center; gap: 40px; }
.nav-links a{
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing:.1em; text-transform: uppercase;
  position:relative; padding-bottom:3px;
}
.nav-links a::after{
  content:''; position:absolute; left:0; bottom:0; height:1px; width:0; background: var(--oxide);
  transition: width .4s var(--ease);
}
.nav-links a:hover::after{ width:100%; }
.nav-right{ display:flex; align-items:center; gap:28px; }
.nav-cta{ display: inline-flex; }
.burger{
  width: 44px; height:44px; border-radius:50%; border:1px solid var(--line);
  display:none; align-items:center; justify-content:center; flex-direction:column; gap:5px;
  background: transparent;
}
.burger span{ width:16px; height:1px; background: var(--ink); transition: transform .35s var(--ease), opacity .3s ease; }
.menu-open .burger span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2){ opacity:0; }
.menu-open .burger span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position: fixed; inset:0; background: var(--charcoal); z-index: 895;
  display:flex; flex-direction:column; justify-content:center; padding: 100px var(--gutter) 60px;
  transform: translateY(-100%); transition: transform .7s var(--ease);
}
.menu-open .mobile-menu{ transform: translateY(0); }
.mobile-menu a{
  font-family: var(--f-display); font-size: clamp(32px,9vw,56px); color: var(--warm-white);
  padding: 12px 0; border-bottom: 1px solid var(--line-dark); display:block;
}
.mobile-menu-foot{ margin-top: 40px; display:flex; justify-content:space-between; color:var(--concrete); font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative; height: 100svh; min-height: 620px; overflow:hidden;
  display:flex; flex-direction:column; justify-content:flex-end;
  color: var(--warm-white);
}
.hero-media{ position:absolute; inset:0; z-index:1; }
.hero-media img{ width:100%; height:100%; object-fit:cover; transform: scale(1.15); }
.hero-media::after{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(20,18,15,.35) 0%, rgba(20,18,15,.15) 38%, rgba(20,18,15,.72) 100%);
}
.hero-inner{ position:relative; z-index:2; padding: 0 var(--gutter) 56px; width:100%; }
.hero-top{
  position:absolute; top: 120px; left: var(--gutter); right: var(--gutter); z-index:2;
  display:flex; justify-content:space-between; align-items:flex-start;
}
.hero-coords{ font-family: var(--f-mono); font-size:11px; letter-spacing:.12em; color: rgba(250,247,242,.72); text-align:right; line-height:1.8; }
.hero-heading{ max-width: 980px; }
.hero-heading .display-1{ font-family: var(--f-display); }
.hero-heading .word{ display:inline-block; overflow:hidden; }
.hero-sub{ max-width: 480px; margin-top: 26px; font-size: clamp(15px,1.4vw,18px); color: rgba(250,247,242,.82); line-height:1.7; }
.hero-actions{ display:flex; gap:16px; margin-top:40px; flex-wrap:wrap; }
.hero-stats{
  display:flex; gap: clamp(30px,5vw,80px); margin-top: 64px; flex-wrap:wrap;
  border-top: 1px solid rgba(250,247,242,.22); padding-top: 26px;
}
.hero-stat b{ font-family: var(--f-display); font-size: clamp(26px,2.6vw,36px); font-weight:340; display:block; }
.hero-stat span{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: rgba(250,247,242,.65); }
.hero-scroll{
  position:absolute; right: var(--gutter); bottom: 34px; z-index:2;
  display:flex; align-items:center; gap:10px; font-family: var(--f-mono); font-size:10.5px;
  letter-spacing:.12em; text-transform:uppercase; color: rgba(250,247,242,.75);
}
.hero-scroll .line{ width:1px; height:40px; background: rgba(250,247,242,.35); position:relative; overflow:hidden; }
.hero-scroll .line::after{ content:''; position:absolute; top:0; left:0; width:100%; height:14px; background:#fff; animation: scrolldrop 2.2s ease-in-out infinite; }
@keyframes scrolldrop{ 0%{ transform:translateY(-14px);} 100%{ transform:translateY(40px);} }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding: 22px 0; overflow:hidden; white-space:nowrap; background: var(--paper);
}
.marquee-track{ display:inline-flex; gap: 56px; animation: marquee 34s linear infinite; }
.marquee-track span{
  font-family: var(--f-display); font-style:italic; font-weight:340; font-size: clamp(18px,2.3vw,26px);
  color: var(--graphite); display:inline-flex; align-items:center; gap:56px;
}
.marquee-track span em{ color: var(--oxide); font-style:normal; font-family: var(--f-mono); font-size:12px; letter-spacing:.1em; }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid{
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px,6vw,90px);
  align-items:center;
}
.about-media{ position:relative; }
.about-media .frame{ position:relative; overflow:hidden; aspect-ratio: 4/5; }
.about-media img{ width:100%; height:100%; object-fit:cover; }
.about-tag{
  position:absolute; left:-1px; bottom: -1px; background: var(--warm-white);
  border: 1px solid var(--line); padding: 20px 26px; max-width: 240px;
}
.about-tag b{ font-family: var(--f-display); font-size: 30px; display:block; color: var(--oxide); font-weight:400;}
.about-tag span{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--graphite); }
.about-copy p + p{ margin-top: 20px; }
.about-quote{
  font-family: var(--f-display); font-style:italic; font-weight:340;
  font-size: clamp(21px,2vw,27px); line-height:1.4; margin: 30px 0; color: var(--ink);
  border-left: 2px solid var(--oxide); padding-left: 22px;
}
.about-signature{ display:flex; align-items:center; gap:16px; margin-top: 34px; }
.about-signature img{ width:52px; height:52px; border-radius:50%; object-fit:cover; }
.about-signature b{ display:block; font-family: var(--f-display); font-size:16px; font-weight:500; }
.about-signature span{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--concrete); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-list{ border-top: 1px solid var(--line); }
.service-row{
  display:grid; grid-template-columns: 90px 1fr 340px 40px;
  align-items:center; gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 30px 4px;
  position:relative; overflow:hidden;
  transition: padding .5s var(--ease);
}
.service-row .idx{ font-family: var(--f-mono); font-size:12px; color: var(--concrete); }
.service-row h3{ font-family: var(--f-display); font-weight:400; font-size: clamp(24px,3vw,40px); position:relative; z-index:2; transition: color .4s ease; }
.service-row .desc{ font-size:14px; color: var(--graphite); max-width:320px; }
.service-row .arrow{ width:20px; height:20px; transition: transform .5s var(--ease); }
.service-row:hover .arrow{ transform: rotate(45deg); }
.service-thumb{
  position:absolute; top:50%; right: 30px; width: 180px; height:120px;
  transform: translateY(-50%) scale(.9); opacity:0; pointer-events:none; z-index:1;
  overflow:hidden; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.service-thumb img{ width:100%; height:100%; object-fit:cover; }
.service-row:hover .service-thumb{ opacity:1; transform: translateY(-50%) scale(1); }
.service-row:hover{ padding-left: 14px; }
.service-row:hover h3{ color: var(--oxide); }

/* ==========================================================================
   FULL-BLEED IMAGE STORY BREAK
   ========================================================================== */
.story-break{ position:relative; height: 78vh; min-height:460px; overflow:hidden; }
.story-break img{ width:100%; height:100%; object-fit:cover; }
.story-break::after{ content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,18,15,.05), rgba(20,18,15,.55)); }
.story-line{
  position:absolute; left:0; right:0; bottom: 48px; z-index:2; text-align:center; padding: 0 24px;
}
.story-line span{
  font-family: var(--f-display); font-style:italic; font-weight:340; color:#fff;
  font-size: clamp(24px, 4vw, 46px);
}
.story-line small{ display:block; margin-top:10px; font-family: var(--f-mono); font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color: rgba(255,255,255,.68); }

/* ==========================================================================
   PROJECTS — editorial masonry + horizontal rail
   ========================================================================== */
.projects-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap: 30px; flex-wrap:wrap;
  margin-bottom: 54px;
}
.projects-filter{ display:flex; gap: 10px; flex-wrap:wrap; }
.pf-btn{
  font-family: var(--f-mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  padding: 9px 16px; border:1px solid var(--line); border-radius:999px; color: var(--graphite);
  transition: all .35s var(--ease);
}
.pf-btn.active, .pf-btn:hover{ background: var(--ink); color: var(--warm-white); border-color: var(--ink); }

.masonry{
  columns: 3 260px; column-gap: 22px;
}
.m-item{
  break-inside: avoid; margin-bottom: 22px; position:relative; overflow:hidden; cursor:pointer;
  display:block; aspect-ratio: 1 / 1;
}
.m-item img{ width:100%; height:100%; display:block; transition: transform 1.1s var(--ease); }
.m-item:hover img{ transform: scale(1.06); }
.m-item .m-cap{
  position:absolute; left:0; right:0; bottom:0; padding: 18px;
  background: linear-gradient(0deg, rgba(20,18,15,.82), rgba(20,18,15,0));
  color:#fff; opacity:0; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.m-item:hover .m-cap{ opacity:1; transform: translateY(0); }
.m-cap .mono-label{ color: rgba(255,255,255,.7); }
.m-cap h4{ font-family: var(--f-display); font-weight:400; font-size:19px; margin-top:4px; }
.m-item[data-cat]{ display:none; }
.m-item.show{ display:block; }

/* horizontal rail */
.rail-wrap{ margin-top: 90px; }
.rail-head{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom: 30px; }
.rail{
  display:flex; gap: 20px; overflow-x:auto; padding-bottom: 20px; scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.rail::-webkit-scrollbar{ display:none; }
.rail-card{
  flex: 0 0 auto; width: min(74vw, 420px); scroll-snap-align:start; cursor:pointer;
}
.rail-card .ph{ position:relative; overflow:hidden; aspect-ratio: 4/5; }
.rail-card .ph img{ width:100%; height:100%; object-fit:cover; transition: transform 1s var(--ease); }
.rail-card:hover .ph img{ transform: scale(1.06); }
.rail-card .meta{ display:flex; justify-content:space-between; padding-top:14px; }
.rail-card .meta h4{ font-family: var(--f-display); font-weight:400; font-size:21px; }
.rail-nav{ display:flex; gap:10px; }
.rail-nav button{
  width:44px; height:44px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; background:transparent;
  transition: background .3s ease, color .3s ease;
}
.rail-nav button:hover{ background: var(--ink); color:#fff; }

/* lightbox */
.lightbox{
  position: fixed; inset:0; z-index: 9500; background: rgba(20,18,15,.97);
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none;
  transition: opacity .45s var(--ease);
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lb-stage{ max-width: 88vw; max-height: 78vh; }
.lb-stage img{ max-width: 88vw; max-height:78vh; object-fit:contain; }
.lb-cap{ text-align:center; margin-top: 20px; color:#fff; }
.lb-cap h4{ font-family: var(--f-display); font-weight:400; font-size: 22px; }
.lb-cap p{ font-family: var(--f-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: rgba(255,255,255,.55); margin-top:6px; }
.lb-close, .lb-prev, .lb-next{
  position:absolute; width:52px; height:52px; border-radius:50%; border:1px solid rgba(255,255,255,.3);
  display:flex; align-items:center; justify-content:center; color:#fff; background:transparent;
  transition: background .3s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover{ background: rgba(255,255,255,.12); }
.lb-close{ top: 28px; right: var(--gutter); }
.lb-prev{ left: var(--gutter); top:50%; transform: translateY(-50%); }
.lb-next{ right: var(--gutter); top:50%; transform: translateY(-50%); }
.lb-count{ position:absolute; left: var(--gutter); bottom: 28px; font-family:var(--f-mono); font-size:11px; color:rgba(255,255,255,.6); letter-spacing:.1em; }
@media (max-width: 720px){
  .lb-prev, .lb-next{ display:none; }
}

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.process-wrap{ position:relative; }
.process-item{
  display:grid; grid-template-columns: 130px 1fr; gap: 30px;
  padding: 34px 0; border-top:1px solid var(--line-dark);
  align-items:flex-start;
}
.process-item:last-child{ border-bottom:1px solid var(--line-dark); }
.process-num{ font-family: var(--f-mono); font-size:13px; color: var(--oxide); padding-top:6px; }
.process-body h3{ font-family: var(--f-display); font-weight:400; font-size: clamp(22px,2.6vw,32px); color:#fff; }
.process-body p{ margin-top:10px; max-width: 640px; color: rgba(250,247,242,.68); font-size:14.5px; }
.process-tag{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: rgba(250,247,242,.4); text-align:right; padding-top:8px; }

/* ==========================================================================
   PHILOSOPHY
   ========================================================================== */
.philosophy{ position:relative; min-height: 84vh; display:flex; align-items:center; overflow:hidden; }
.philosophy-bg{ position:absolute; inset:0; z-index:0; }
.philosophy-bg img{ width:100%; height:100%; object-fit:cover; filter: grayscale(.15); }
.philosophy-bg::after{ content:''; position:absolute; inset:0; background: rgba(15,13,11,.72); }
.philosophy-inner{ position:relative; z-index:1; text-align:center; padding: 90px var(--gutter); width:100%; }
.philosophy-inner .display-2{ font-family: var(--f-display); color:#fff; font-style:italic; max-width: 900px; margin: 0 auto; }
.philosophy-inner .eyebrow{ justify-content:center; margin-bottom:26px; }

/* ==========================================================================
   MATERIALS
   ========================================================================== */
.materials{ display:flex; border: 1px solid var(--line); }
.mat-item{
  flex:1; position:relative; height: 420px; overflow:hidden; cursor:pointer;
  border-right: 1px solid var(--line); transition: flex .6s var(--ease);
  background-size: cover; background-position:center;
}
.mat-item:last-child{ border-right:none; }
.mat-item.active{ flex: 3.2; }
.mat-item::after{ content:''; position:absolute; inset:0; background: linear-gradient(0deg, rgba(20,18,15,.78), rgba(20,18,15,.1) 55%); transition: background .5s ease;}
.mat-label{
  position:absolute; left:18px; bottom:20px; right:18px; color:#fff; z-index:2;
}
.mat-label b{ font-family: var(--f-display); font-weight:400; font-size: 18px; display:block; writing-mode: vertical-rl; text-orientation: mixed; }
.mat-item.active .mat-label b{ writing-mode: horizontal-tb; font-size: 26px; }
.mat-label span{ display:none; font-family: var(--f-mono); font-size:11.5px; color: rgba(255,255,255,.72); margin-top:8px; max-width:340px; }
.mat-item.active .mat-label span{ display:block; }
.mat-item .mat-idx{ position:absolute; top:18px; left:18px; font-family:var(--f-mono); font-size:10.5px; color: rgba(255,255,255,.7); letter-spacing:.1em; z-index:2;}

@media (max-width: 860px){
  .materials{ flex-direction:column; border:none; }
  .mat-item{ height:90px; border-right:none; border-bottom:1px solid var(--line); flex:none !important; }
  .mat-item.active{ height: 260px; }
  .mat-label b{ writing-mode: horizontal-tb !important; font-size:20px !important; }
  .mat-label span{ display:block !important; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-track{ display:flex; gap:24px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:10px; scrollbar-width:none; }
.testi-track::-webkit-scrollbar{ display:none; }
.testi-card{
  flex:0 0 auto; width: min(84vw,480px); scroll-snap-align:start;
  background: var(--warm-white); border:1px solid var(--line); padding: 36px;
}
.testi-stars{ display:flex; gap:4px; margin-bottom:20px; }
.testi-stars svg{ width:14px; height:14px; fill: var(--oxide); }
.testi-card p{ font-family: var(--f-display); font-size: 19px; font-weight:400; line-height:1.5; color: var(--ink); }
.testi-person{ display:flex; align-items:center; gap:14px; margin-top:26px; }
.testi-avatar{
  width:46px; height:46px; border-radius:50%; background: var(--beige); color: var(--oxide);
  display:flex; align-items:center; justify-content:center; font-family: var(--f-display); font-size:16px;
}
.testi-person b{ display:block; font-size:14px; font-family: var(--f-body); font-weight:700; }
.testi-person span{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--concrete); }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-grid{ grid-template-columns: repeat(5,1fr); border-top:1px solid var(--line); border-left:1px solid var(--line); }
.stat-cell{ border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding: 40px 26px; }
.stat-cell b{ font-family: var(--f-display); font-size: clamp(38px,4vw,58px); font-weight:340; display:block; color: var(--oxide); }
.stat-cell span{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--graphite); }
@media (max-width: 900px){ .stats-grid{ grid-template-columns: repeat(2,1fr); } }

/* ==========================================================================
   WALKTHROUGH / VIDEO
   ========================================================================== */
.walk{ position:relative; height: 74vh; min-height:420px; overflow:hidden; }
.walk img{ width:100%; height:100%; object-fit:cover; }
.walk::after{ content:''; position:absolute; inset:0; background: rgba(15,13,11,.42); }
.walk-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2;
  width: 108px; height:108px; border-radius:50%; border:1px solid rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center; color:#fff; background: rgba(20,18,15,.25);
  backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), background .4s ease;
}
.walk-play:hover{ transform:translate(-50%,-50%) scale(1.08); background: var(--oxide); border-color: var(--oxide); }
.walk-play svg{ width:22px; height:22px; margin-left:4px; }
.walk-cap{ position:absolute; left: var(--gutter); bottom: 34px; z-index:2; color:#fff; }
.walk-cap .eyebrow{ color:#D9B3A2; }
.walk-cap h3{ font-family: var(--f-display); font-weight:400; font-size: clamp(22px,3vw,34px); margin-top:10px; }

/* ==========================================================================
   INSTAGRAM
   ========================================================================== */
.insta-grid{ display:grid; grid-template-columns: repeat(6,1fr); gap:2px; }
.insta-item{ position:relative; aspect-ratio:1; overflow:hidden; }
.insta-item img{ width:100%; height:100%; object-fit:cover; transition: transform .6s var(--ease); }
.insta-item:hover img{ transform: scale(1.1); }
.insta-item::after{
  content:'\2197'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(162,38,45,0); color:#fff; font-size:20px; opacity:0; transition: all .4s ease;
}
.insta-item:hover::after{ background: rgba(162,38,45,.55); opacity:1; }
@media (max-width: 900px){ .insta-grid{ grid-template-columns: repeat(3,1fr);} }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding: 26px 4px; background:transparent; border:0; text-align:left;
}
.faq-q h4{ font-family: var(--f-display); font-weight:400; font-size: clamp(17px,2vw,22px); }
.faq-q .plus{ width:22px; height:22px; position:relative; flex:none; }
.faq-q .plus::before, .faq-q .plus::after{ content:''; position:absolute; background: var(--ink); top:50%; left:50%; transform:translate(-50%,-50%); }
.faq-q .plus::before{ width:16px; height:1px; }
.faq-q .plus::after{ width:1px; height:16px; transition: transform .4s var(--ease); }
.faq-item.open .plus::after{ transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .5s var(--ease); }
.faq-a p{ padding: 0 4px 28px; max-width: 640px; color: var(--graphite); font-size:15px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid{ grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,90px); }
.contact-info-block{ margin-bottom: 30px; }
.contact-info-block .mono-label{ margin-bottom:8px; display:block; }
.contact-info-block a, .contact-info-block p{ font-family: var(--f-display); font-size: clamp(19px,2vw,25px); font-weight:400; }
.field{ margin-bottom: 26px; }
.field label{ display:block; font-family: var(--f-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: var(--graphite); margin-bottom:10px; }
.field input, .field textarea, .field select{
  width:100%; border:0; border-bottom:1px solid var(--line); background:transparent; padding: 10px 2px;
  font-size:16px; color: var(--ink); transition: border-color .3s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{ border-color: var(--oxide); outline:none; }
.field textarea{ resize:vertical; min-height:90px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.form-note{ font-size:12px; color:var(--concrete); margin-top:16px; }
.map-embed{ width:100%; aspect-ratio: 16/11; border:1px solid var(--line); filter: grayscale(.4) contrast(1.05); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{ padding-top: 90px; }
.footer-top{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 70px; }
.footer-brand img{ height:44px; margin-bottom: 20px; }
.footer-brand p{ color: rgba(250,247,242,.6); max-width: 300px; font-size:14px; }
.footer-col h5{ font-family: var(--f-mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color: rgba(250,247,242,.45); margin-bottom:20px; }
.footer-col a{ display:block; font-size:14.5px; color: rgba(250,247,242,.82); padding: 7px 0; transition: color .3s ease, padding-left .3s ease; }
.footer-col a:hover{ color: var(--oxide); padding-left:6px; }
.footer-social{ display:flex; gap:14px; margin-top:6px; }
.footer-social a{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line-dark); display:flex; align-items:center; justify-content:center; }
.footer-social a:hover{ background: var(--oxide); border-color: var(--oxide); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding: 24px 0;
  border-top:1px solid var(--line-dark); font-family: var(--f-mono); font-size:10.5px; letter-spacing:.06em;
  color: rgba(250,247,242,.45); flex-wrap:wrap; gap:12px;
}
.footer-bottom a{ color: rgba(250,247,242,.6); }
.footer-bottom a:hover{ color:#fff; }
.back-to-top{
  width:48px; height:48px; border-radius:50%; border:1px solid var(--line-dark); display:flex;
  align-items:center; justify-content:center; color:#fff; transition: background .3s ease, transform .3s ease;
}
.back-to-top:hover{ background: var(--oxide); transform: translateY(-4px); }

/* ==========================================================================
   WHATSAPP FAB
   ========================================================================== */
.fab{
  position:fixed; right: 26px; bottom: 26px; z-index: 700;
  width:56px; height:56px; border-radius:50%; background: var(--ink); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow: 0 10px 30px rgba(20,18,15,.25);
  transition: transform .35s var(--ease), background .35s ease;
}
.fab:hover{ transform: scale(1.08); background: var(--oxide); }
.fab svg{ width:24px; height:24px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .about-grid{ grid-template-columns:1fr; }
  .about-media{ order:-1; }
  .contact-grid{ grid-template-columns:1fr; }
  .stats-grid{ grid-template-columns: repeat(3,1fr); }
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .nav-links, .nav-cta{ display:none; }
  .burger{ display:flex; }
  .service-row{ grid-template-columns: 50px 1fr 26px; }
  .service-row .desc{ display:none; }
  .service-thumb{ display:none; }
  .masonry{ columns: 2 180px; }
  .process-item{ grid-template-columns: 60px 1fr; }
  .process-tag{ display:none; }
  .field-row{ grid-template-columns:1fr; }
}
@media (max-width: 560px){
  .masonry{ columns: 1; }
  .stats-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-top{ grid-template-columns: 1fr; gap:34px; }
  .hero-top{ top:96px; }
  .hero-stats{ gap:24px; }
}
