/* ===========================================================
   VIRAT DESIGN — shared design system
   Ivory · Stone · Charcoal · Olive
   Poppins
   =========================================================== */

:root{
  --ivory:#F6F4F0;
  --stone:#ECE8E1;
  --charcoal:#1A1A1A;
  --bronze:#6F7D5E;   /* muted architectural olive */
  --gold:#A8B36A;     /* soft lichen accent used in the wordmark */
  --slate:#2E3A4C;    /* brand slate (VIRAT) */

  --ink:#1A1A1A;
  --ink-70:rgba(26,26,26,0.70);
  --ink-50:rgba(26,26,26,0.50);
  --ink-35:rgba(26,26,26,0.35);
  --ink-15:rgba(26,26,26,0.14);
  --line:rgba(26,26,26,0.13);

  --paper:#F6F4F0;
  --paper-2:#ECE8E1;

  --serif:"Poppins", system-ui, -apple-system, sans-serif;
  --sans:"Poppins", system-ui, -apple-system, sans-serif;

  --ease:cubic-bezier(0.65,0,0.20,1);
  --ease-out:cubic-bezier(0.16,1,0.3,1);
  --loader-hold:1700ms;

  --mx:7vw;        /* page side margin */
  --bar:88px;      /* top bar height  */
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  font-family:var(--sans);
  background:var(--paper);
  color:var(--ink);
  font-weight:400;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
::selection{ background:var(--bronze); color:var(--ivory); }

/* image-slot baseline — warm, dark atmospheric empty state so that
   ivory overlay text (hero titles, captions, hover reveals) stays legible
   before the client drops in photography, and the placeholders read as
   intentional "image goes here" areas rather than blank boxes. */
image-slot{ display:block; width:100%; height:100%; }
image-slot::part(frame){
  background:
    radial-gradient(120% 90% at 30% 0%, #3a342c 0%, rgba(58,52,44,0) 60%),
    linear-gradient(150deg, #2c2823 0%, #38322b 48%, #221f1a 100%);
}
image-slot::part(empty){ color:rgba(246,244,240,0.42); }
image-slot::part(ring){ border-color:rgba(246,244,240,0.16); }

/* ---------- type primitives ---------- */
.label{
  font-family:var(--sans);
  font-size:11px;
  font-weight:500;
  letter-spacing:0.30em;
  text-transform:uppercase;
  color:var(--ink-50);
}
.label--bronze{ color:var(--bronze); }
.label--line{ display:inline-flex; align-items:center; gap:16px; }
.label--line::before{ content:""; width:38px; height:1px; background:currentColor; opacity:.55; }

.display{
  font-family:var(--serif);
  font-weight:300;
  line-height:0.98;
  letter-spacing:-0.012em;
}
.display em{ font-style:italic; }
.display .bronze{ color:var(--bronze); }

.lede{
  font-family:var(--serif);
  font-weight:300;
  font-style:italic;
  line-height:1.36;
  color:var(--ink-70);
}
.body{
  font-family:var(--sans);
  font-size:15px;
  font-weight:400;
  line-height:1.85;
  color:var(--ink-70);
}
.body p+p{ margin-top:1.25em; }

/* ---------- layout helpers ---------- */
.wrap{ padding-inline:var(--mx); }
.section{ padding-block:clamp(90px,12vh,170px); }
.rule{ height:1px; background:var(--line); border:0; }
.spacer-bar{ height:var(--bar); }

/* ============================================================
   TOP BAR  (hidden / minimal navigation)
   ============================================================ */
.topbar{
  position:fixed; inset:0 0 auto 0; height:var(--bar); z-index:60;
  display:flex; align-items:center; justify-content:space-between;
  padding-inline:var(--mx);
  mix-blend-mode:normal;
  transition:background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  color:var(--ink);
  border-bottom:1px solid transparent;
  --nav-glass:0;
  --nav-border:0;
}
.topbar a, .topbar button{ color:inherit; }
.wordmark{
  display:flex; align-items:center; gap:13px;
  font-family:var(--sans);
  font-weight:500;
  font-size:18px;
  letter-spacing:0.16em;
  text-transform:uppercase;
  white-space:nowrap;
  transition:color .45s var(--ease), opacity .45s var(--ease);
}
.wordmark .mono{ width:25px; height:25px; flex:none; }
.wordmark .mono svg{ width:100%; height:100%; display:block; }
.wordmark b{ font-weight:500; color:var(--gold); }
.wordmark .wm-text{ display:inline-flex; align-items:baseline; gap:0.12em; }
.topbar-right{ display:flex; align-items:center; gap:34px; }
.topbar-loc{ font-family:var(--sans); font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:inherit; opacity:.6; }
@media (max-width:720px){ .topbar-loc{ display:none; } }

.menu-toggle{
  background:none; border:none; cursor:pointer;
  display:flex; align-items:center; gap:14px;
  font-family:var(--sans); font-size:11px; letter-spacing:0.28em; text-transform:uppercase;
  color:inherit;
}
.menu-toggle .bars{ display:flex; flex-direction:column; gap:6px; width:30px; }
.menu-toggle .bars i{ height:1.4px; width:30px; background:currentColor; display:block;
  transition:transform .45s var(--ease), opacity .3s, width .45s var(--ease); }
.menu-toggle .bars i:last-child{ width:20px; margin-left:auto; }

/* logo states */
.topbar.tone-dark{ color:var(--ivory); }
.topbar.tone-light{ color:var(--ink); }
.topbar.compact{
  background:rgba(246,244,240,calc(0.62 + (var(--nav-glass) * 0.24)));
  -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border-bottom-color:rgba(26,26,26,calc(0.08 + (var(--nav-border) * 0.12)));
}
.topbar.compact.tone-dark{
  background:rgba(24,24,24,calc(0.28 + (var(--nav-glass) * 0.20)));
  border-bottom-color:rgba(246,244,240,calc(0.10 + (var(--nav-border) * 0.10)));
}
.topbar.scrolled{ --nav-glass:1; --nav-border:1; }
body.menu-open .topbar{ color:var(--ivory); background:transparent; border-bottom-color:transparent; }
body.menu-open .menu-toggle .bars i:nth-child(1){ transform:translateY(7.4px) rotate(45deg); }
body.menu-open .menu-toggle .bars i:nth-child(2){ opacity:0; }
body.menu-open .menu-toggle .bars i:nth-child(3){ transform:translateY(-7.4px) rotate(-45deg); width:30px; margin-left:0; }

/* SVG logo draw */
.logo-line{
  fill:none;
  stroke:currentColor;
  stroke-width:1.35;
  stroke-linejoin:round;
  stroke-linecap:round;
  stroke-dasharray:120;
  stroke-dashoffset:120;
  animation:logoDraw .95s var(--ease-out) forwards;
}
.logo-line.delay-1{ animation-delay:.10s; }
.logo-line.delay-2{ animation-delay:.18s; }
.logo-fill{
  fill:currentColor;
  opacity:0;
  transform-origin:center;
  animation:logoFill .5s ease forwards .72s;
}
@keyframes logoDraw{ to{ stroke-dashoffset:0; } }
@keyframes logoFill{ to{ opacity:1; } }

/* ============================================================
   MENU OVERLAY  (fullscreen, charcoal, nested)
   ============================================================ */
.menu{
  position:fixed; inset:0; z-index:55;
  background:var(--charcoal); color:var(--ivory);
  opacity:0; visibility:hidden;
  transform:translateY(10px) scale(1.01);
  transition:opacity .55s var(--ease-out), transform .65s var(--ease-out), visibility .55s;
  display:grid; grid-template-columns:1.35fr 1fr;
}
body.menu-open .menu{ opacity:1; visibility:visible; transform:none; }
.menu .label{ color:rgba(246,244,240,.45); }
.menu-left{
  padding:calc(var(--bar) + 6vh) var(--mx) 7vh;
  display:flex; flex-direction:column; justify-content:center;
}
.menu-kicker{ margin-bottom:34px; }
.menu-nav{ list-style:none; }
.menu-nav li{ overflow:hidden; border-top:1px solid rgba(246,244,240,.13); }
.menu-nav li:last-child{ border-bottom:1px solid rgba(246,244,240,.13); }
.menu-nav a{
  display:flex; align-items:baseline; gap:26px;
  padding:clamp(13px,2.1vh,24px) 0;
  font-family:var(--serif); font-weight:300;
  font-size:clamp(36px,5.2vw,76px); line-height:1;
  letter-spacing:-0.01em; color:var(--ivory);
  transform:translateY(115%);
  transition:transform .8s var(--ease-out), color .4s var(--ease);
}
body.menu-open .menu-nav a{ transform:translateY(0); }
.menu-nav li:nth-child(1) a{ transition-delay:.08s,0s }
.menu-nav li:nth-child(2) a{ transition-delay:.14s,0s }
.menu-nav li:nth-child(3) a{ transition-delay:.20s,0s }
.menu-nav li:nth-child(4) a{ transition-delay:.26s,0s }
.menu-nav a .mi{ font-family:var(--sans); font-size:13px; font-weight:500; letter-spacing:0.1em; color:rgba(246,244,240,.32); transform:translateY(-0.45em); }
.menu-nav a:hover{ color:var(--gold); }
.menu-nav a:hover .mi{ color:var(--gold); }
.menu-nav a .arrow{ margin-left:auto; font-size:20px; opacity:0; transform:translateX(-12px); transition:all .45s var(--ease); font-family:var(--sans); }
.menu-nav .has-sub a::after{ content:"▸"; margin-left:auto; font-size:16px; color:rgba(246,244,240,.3); transition:color .4s; }
.menu-nav .has-sub a:hover::after{ color:var(--gold); }
.menu-nav a:hover .arrow{ opacity:0; }

.menu-right{
  position:relative; border-left:1px solid rgba(246,244,240,.13);
  padding:calc(var(--bar) + 6vh) var(--mx) 7vh;
  display:flex; flex-direction:column;
}
.submenu-label{ margin-bottom:30px; transition:color .4s; }
.menu-right.sub-active .submenu-label{ color:var(--gold); }
.submenu-label.label--line::before{ background:currentColor; }
.submenu{ list-style:none; display:flex; flex-direction:column; gap:6px; }
.submenu a{
  display:inline-flex; align-items:center; gap:14px;
  font-family:var(--serif); font-weight:300; font-style:italic;
  font-size:clamp(24px,2.4vw,34px); line-height:1.5; color:rgba(246,244,240,.78);
  transition:color .4s var(--ease), padding-left .4s var(--ease);
}
.submenu a::before{ content:"—"; color:rgba(246,244,240,.3); transition:color .4s; }
.submenu a:hover{ color:var(--gold); padding-left:8px; }
.submenu a:hover::before{ color:var(--gold); }
.menu-right.sub-active .submenu a{ color:var(--ivory); }
.menu-foot{ margin-top:auto; padding-top:7vh; }
.menu-quote{
  font-family:var(--serif); font-style:italic; font-weight:300;
  font-size:clamp(20px,1.9vw,27px); line-height:1.4; color:rgba(246,244,240,.62); max-width:26ch;
}
.menu-contact{ margin-top:28px; display:flex; flex-direction:column; gap:7px; }
.menu-contact a{ color:rgba(246,244,240,.78); font-size:13px; letter-spacing:0.04em; }
.menu-contact a:hover{ color:var(--gold); }
@media (max-width:860px){
  .menu{ grid-template-columns:1fr; overflow:auto; }
  .menu-left{ padding-bottom:4vh; justify-content:flex-start; }
  .menu-right{ border-left:0; border-top:1px solid rgba(246,244,240,.13); padding-top:5vh; }
  .menu-foot{ display:none; }
}

/* editorial mega menu overrides */
.menu{
  background:rgba(8,9,10,.84);
  -webkit-backdrop-filter:blur(26px) saturate(1.08);
  backdrop-filter:blur(26px) saturate(1.08);
  display:block;
}
.menu::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(111,125,94,.12) 0%, rgba(111,125,94,0) 42%),
    linear-gradient(110deg, rgba(0,0,0,.46) 0%, rgba(8,9,10,.18) 48%, rgba(0,0,0,.48) 100%);
  pointer-events:none;
  opacity:0;
  transform:scale(1.04);
  transition:opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
body.menu-open .menu::before{ opacity:1; transform:none; }
.menu-shell{
  position:relative;
  min-height:100vh;
  padding:calc(var(--bar) + 5vh) var(--mx) 5vh;
  display:grid;
  grid-template-rows:auto 1fr;
  gap:4vh;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .62s var(--ease-out) .06s, transform .62s var(--ease-out) .06s;
}
body.menu-open .menu-shell{ opacity:1; transform:none; }
.menu-head{
  display:grid;
  grid-template-columns:minmax(160px,.4fr) minmax(0,1fr);
  gap:32px;
  align-items:end;
}
.menu-intro-copy{
  font-family:var(--serif);
  font-weight:300;
  font-style:italic;
  font-size:clamp(22px,2.4vw,34px);
  line-height:1.22;
  max-width:20ch;
  color:rgba(246,244,240,.76);
  opacity:0;
  transform:translateY(26px);
  transition:opacity .9s var(--ease-out) .18s, transform .9s var(--ease-out) .18s;
}
body.menu-open .menu-intro-copy{ opacity:1; transform:none; }
.menu-columns{
  display:grid;
  grid-template-columns:1.3fr .95fr .9fr;
  gap:0;
  min-height:0;
  align-items:stretch;
}
.menu-column{
  position:relative;
  padding:0 2.2vw;
  overflow:hidden;
  opacity:.42;
  transition:opacity .45s var(--ease), width .58s var(--ease-out), padding .58s var(--ease-out), filter .45s var(--ease);
}
.menu-column.is-open{ opacity:1; }
.menu-column.is-refreshing .menu-column-head,
.menu-column.is-refreshing .menu-level,
.menu-column.is-refreshing .menu-foot{
  opacity:0;
  transform:translateY(14px);
  filter:blur(4px);
}
.menu-column-secondary,
.menu-column-tertiary{
  opacity:0;
  width:0;
  padding-left:0;
  padding-right:0;
  pointer-events:none;
}
.menu-column-secondary.is-open,
.menu-column-tertiary.is-open{
  width:auto;
  padding-left:2.2vw;
  padding-right:2.2vw;
  pointer-events:auto;
}
.menu-column::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:100%;
  background:linear-gradient(180deg, rgba(246,244,240,.42) 0%, rgba(246,244,240,.08) 100%);
  transform:scaleY(0);
  transform-origin:top;
  transition:transform .95s var(--ease-out);
}
.menu-column-primary{ padding-left:0; }
.menu-column-primary::before{ display:none; }
body.menu-open .menu-column::before{ transform:scaleY(1); }
.menu-column-secondary:not(.is-open) .menu-column-head,
.menu-column-secondary:not(.is-open) .menu-level,
.menu-column-secondary:not(.is-open) .menu-foot,
.menu-column-tertiary:not(.is-open) .menu-column-head,
.menu-column-tertiary:not(.is-open) .menu-level,
.menu-column-tertiary:not(.is-open) .menu-foot{
  opacity:0;
  visibility:hidden;
}
.menu-column-head{
  margin-bottom:32px;
  opacity:0;
  transform:translateY(18px);
  transition:opacity .58s var(--ease-out), transform .58s var(--ease-out), filter .58s var(--ease-out);
}
body.menu-open .menu-column-head{ opacity:1; transform:none; }
.menu-column-secondary .menu-column-head{ transition-delay:.14s; }
.menu-column-tertiary .menu-column-head{ transition-delay:.22s; }
.menu-level{ list-style:none; display:grid; gap:8px; }
.menu-level,
.menu-foot{ transition:opacity .45s var(--ease-out), transform .45s var(--ease-out), filter .45s var(--ease-out); }
.menu-item,
.menu-link{
  width:100%;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:22px;
  align-items:start;
  background:none;
  border:0;
  color:inherit;
  cursor:pointer;
  text-align:left;
  padding:14px 0;
  opacity:0;
  transform:translateY(28px);
  transition:
    opacity .62s var(--ease-out),
    transform .62s var(--ease-out),
    color .35s var(--ease),
    letter-spacing .35s var(--ease),
    padding-left .35s var(--ease);
}
body.menu-open .menu-item,
body.menu-open .menu-link{ opacity:1; transform:none; }
.menu-level li:nth-child(1) .menu-item,
.menu-level li:nth-child(1) .menu-link{ transition-delay:.08s; }
.menu-level li:nth-child(2) .menu-item,
.menu-level li:nth-child(2) .menu-link{ transition-delay:.12s; }
.menu-level li:nth-child(3) .menu-item,
.menu-level li:nth-child(3) .menu-link{ transition-delay:.16s; }
.menu-level li:nth-child(4) .menu-item,
.menu-level li:nth-child(4) .menu-link{ transition-delay:.20s; }
.menu-level li:nth-child(5) .menu-item,
.menu-level li:nth-child(5) .menu-link{ transition-delay:.24s; }
.menu-level li:nth-child(6) .menu-item,
.menu-level li:nth-child(6) .menu-link{ transition-delay:.28s; }
.menu-index{
  font:500 11px/1 var(--sans);
  letter-spacing:.24em;
  text-transform:uppercase;
  color:rgba(246,244,240,.34);
  transform:translateY(.55em);
}
.menu-copy{ display:grid; gap:8px; }
.menu-title{
  position:relative;
  display:inline-block;
  width:max-content;
  max-width:100%;
}
.menu-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-7px;
  width:100%;
  height:1px;
  background:currentColor;
  transform:scaleX(0);
  transform-origin:left;
  opacity:.38;
  transition:transform .38s var(--ease), opacity .38s var(--ease);
}
.menu-item:hover .menu-title::after,
.menu-link:hover .menu-title::after,
.menu-item.is-active .menu-title::after{
  transform:scaleX(1);
  opacity:.8;
}
.menu-meta{
  font:500 11px/1.4 var(--sans);
  letter-spacing:.22em;
  text-transform:uppercase;
  color:rgba(246,244,240,.34);
}
.menu-arrow{
  font-family:var(--sans);
  font-size:14px;
  color:rgba(246,244,240,.28);
  transform:translate(-10px,.4em);
  opacity:0;
  transition:transform .35s var(--ease), opacity .35s var(--ease), color .35s var(--ease);
}
.menu-item-primary .menu-title{
  font-family:var(--serif);
  font-weight:300;
  font-size:clamp(40px,5vw,82px);
  line-height:.96;
  letter-spacing:-0.018em;
}
.menu-item-secondary .menu-title{
  font-family:var(--serif);
  font-weight:300;
  font-size:clamp(28px,2.6vw,44px);
  line-height:1.04;
  letter-spacing:-0.015em;
}
.menu-link-tertiary .menu-title{
  font-family:var(--serif);
  font-weight:300;
  font-style:italic;
  font-size:clamp(22px,2vw,30px);
  line-height:1.18;
}
.menu-item:hover,
.menu-link:hover,
.menu-item.is-active{
  color:var(--gold);
  padding-left:8px;
}
.menu-item:hover .menu-arrow,
.menu-link:hover .menu-arrow,
.menu-item.is-active .menu-arrow{
  opacity:1;
  color:var(--gold);
  transform:translate(0,.4em);
}
.menu-foot{
  margin-top:auto;
  padding-top:48px;
  display:grid;
  gap:10px;
}
.menu-foot a{
  width:max-content;
  color:rgba(246,244,240,.72);
  font-size:13px;
  letter-spacing:.06em;
  transition:color .35s var(--ease), padding-left .35s var(--ease);
}
.menu-foot a:hover{ color:var(--gold); padding-left:6px; }
@media (max-width:980px){
  .menu-shell{ padding-bottom:32px; }
  .menu-head,
  .menu-columns{ grid-template-columns:1fr; }
  .menu-columns{ gap:26px; overflow:auto; }
  .menu-column{
    padding:22px 0 0;
    border-top:1px solid rgba(246,244,240,.12);
  }
  .menu-column-secondary,
  .menu-column-tertiary{
    display:none;
    width:auto;
    padding-left:0;
    padding-right:0;
    pointer-events:none;
  }
  .menu-column-secondary.is-open,
  .menu-column-tertiary.is-open{
    display:block;
    pointer-events:auto;
  }
  .menu-column::before{ display:none; }
  .menu-column-primary{ border-top:0; padding-top:0; }
}

.site-cursor{
  position:fixed;
  left:0;
  top:0;
  width:82px;
  height:82px;
  margin-left:-41px;
  margin-top:-41px;
  border-radius:50%;
  border:1px solid rgba(246,244,240,.18);
  background:rgba(16,17,19,.64);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:var(--ivory);
  display:grid;
  place-items:center;
  pointer-events:none;
  z-index:190;
  opacity:0;
  transform:translate3d(0,0,0) scale(.78);
  transition:opacity .2s ease, border-color .3s var(--ease), background .3s var(--ease);
}
.site-cursor.is-visible{ opacity:1; }
.site-cursor.is-nav-cursor{
  width:88px;
  height:88px;
  margin-left:-44px;
  margin-top:-44px;
  border-color:rgba(246,244,240,.24);
  background:rgba(246,244,240,.08);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  box-shadow:0 12px 38px rgba(0,0,0,.18);
}
.site-cursor span{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  font:600 8px/1.15 var(--sans);
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:center;
  padding:0 6px;
  border:1px solid rgba(246,244,240,.14);
  background:rgba(246,244,240,.03);
}
.site-cursor.is-nav-cursor span{
  width:58px;
  height:58px;
  font-size:8px;
  letter-spacing:.18em;
  border-color:rgba(246,244,240,.2);
  background:rgba(246,244,240,.06);
}
body[data-page="projects"] .site-cursor,
body[data-page="project-detail"] .site-cursor{
  width:72px;
  height:72px;
  margin-left:-36px;
  margin-top:-36px;
  border-color:rgba(246,244,240,.16);
  background:rgba(15,16,18,.52);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
}
body[data-page="projects"] .site-cursor span,
body[data-page="project-detail"] .site-cursor span{
  width:48px;
  height:48px;
  font-size:7px;
  letter-spacing:.14em;
}
@media (hover:none){ .site-cursor{ display:none; } }

/* ============================================================
   LOGO-SPLASH TRANSITION CURTAIN
   ============================================================ */
.curtain{
  position:fixed; inset:0; z-index:200; background:var(--charcoal);
  display:flex; align-items:center; justify-content:center;
  transform:translateY(0); pointer-events:auto;
  transition:transform .9s var(--ease-out) .42s, opacity .55s ease .15s;
}
.curtain-logo{
  display:flex; flex-direction:column; align-items:center; gap:22px; color:var(--ivory);
  font-family:var(--sans); font-weight:500; font-size:clamp(20px,2.4vw,30px);
  letter-spacing:0.18em; text-transform:uppercase;
  opacity:1; transform:translateY(0) scale(1);
  transition:opacity .45s ease, transform .95s var(--ease-out);
}
.curtain-logo .mono{ width:clamp(88px,9vw,132px); height:clamp(88px,9vw,132px); flex:none; }
.curtain-logo .mono svg{ width:100%; height:100%; display:block; }
.curtain-logo b{ color:var(--gold); font-weight:500; }
.curtain-caption{
  font-size:10px;
  letter-spacing:0.34em;
  color:rgba(246,244,240,.56);
}
body.loaded .curtain{ transform:translateY(-101%); opacity:0; pointer-events:none; }
body.loaded .curtain-logo{ opacity:0; transform:translateY(-14px) scale(1.24); }
body.leaving .curtain{ transform:translateY(0); transition:transform .5s var(--ease); pointer-events:auto; }
body.leaving .curtain-logo{ opacity:1; transform:none; transition:opacity .3s ease; }

.project-expand-overlay{
  position:fixed;
  left:var(--project-expand-left, 0);
  top:var(--project-expand-top, 0);
  width:var(--project-expand-width, 100vw);
  height:var(--project-expand-height, 100vh);
  z-index:220;
  overflow:hidden;
  background:#171717;
  pointer-events:none;
  box-shadow:0 26px 90px rgba(0,0,0,.42);
  will-change:left, top, width, height;
  transition:left 1.78s var(--ease-out), top 1.78s var(--ease-out), width 1.78s var(--ease-out), height 1.78s var(--ease-out), opacity .45s var(--ease);
}
.project-expand-overlay image-slot{
  width:100%;
  height:100%;
  display:block;
  transform:scale(1.06);
  transition:transform 1.95s var(--ease-out);
}
.project-expand-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(8,8,8,.82) 0%, rgba(8,8,8,.42) 40%, rgba(8,8,8,.08) 100%),
    linear-gradient(to top, rgba(8,8,8,.9) 0%, rgba(8,8,8,.44) 40%, rgba(8,8,8,.04) 74%);
  opacity:0;
  transition:opacity .68s var(--ease) .56s;
}
.project-expand-overlay.is-expanding{
  left:0;
  top:0;
  width:100vw;
  height:100vh;
}
.project-expand-overlay.is-expanding image-slot{ transform:scale(1); }
.project-expand-overlay.is-expanding::after{ opacity:1; }

.project-preview{
  position:fixed;
  inset:0;
  z-index:220;
  pointer-events:none;
  visibility:hidden;
  color:var(--ivory);
}
.project-preview.is-active{ visibility:visible; pointer-events:auto; }
.project-preview-media{
  position:fixed;
  left:var(--preview-left, 0);
  top:var(--preview-top, 0);
  width:var(--preview-width, 100vw);
  height:var(--preview-height, 100vh);
  overflow:hidden;
  background:#171717;
  will-change:left, top, width, height;
  transition:left 1.78s var(--ease-out), top 1.78s var(--ease-out), width 1.78s var(--ease-out), height 1.78s var(--ease-out);
}
.project-preview.is-expanding .project-preview-media{ left:0; top:0; width:100vw; height:100vh; }
.project-preview-media image-slot{ width:100%; height:100%; display:block; transform:scale(1.06); transition:transform 1.95s var(--ease-out); }
.project-preview.is-ready .project-preview-media image-slot{ transform:scale(1); }
.project-preview-scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(8,8,8,.86) 0%, rgba(8,8,8,.48) 38%, rgba(8,8,8,.12) 100%),
    linear-gradient(to top, rgba(8,8,8,.94) 0%, rgba(8,8,8,.58) 34%, rgba(8,8,8,.08) 72%);
  opacity:0;
  transition:opacity .68s var(--ease) .56s;
}
.project-preview.is-ready .project-preview-scrim{ opacity:1; }
.project-preview-content{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:calc(var(--bar) + 42px) var(--mx) clamp(42px,7vh,82px);
  opacity:0;
  transform:translateY(26px);
  transition:opacity .78s var(--ease-out) .88s, transform .78s var(--ease-out) .88s;
}
.project-preview.is-ready .project-preview-content{ opacity:1; transform:none; }
.project-preview-close{
  position:absolute;
  top:calc(var(--bar) + 18px);
  right:var(--mx);
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid rgba(246,244,240,.36);
  background:rgba(15,15,15,.26);
  color:var(--ivory);
  cursor:pointer;
  font-size:25px;
  line-height:1;
  display:grid;
  place-items:center;
}
.project-preview-body{ max-width:min(820px, 76vw); }
.project-preview-meta{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin-bottom:22px; }
.project-preview-meta span{
  position:relative;
  font-size:11px;
  font-weight:600;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:rgba(246,244,240,.68);
}
.project-preview-meta span:first-child{ color:var(--ivory); }
.project-preview-meta span + span::before{
  content:"";
  position:absolute;
  left:-13px;
  top:50%;
  width:1px;
  height:28px;
  background:rgba(246,244,240,.34);
  transform:translateY(-50%);
}
.project-preview-title{
  max-width:14ch;
  font-family:var(--sans);
  font-weight:300;
  font-size:clamp(46px,6.4vw,112px);
  line-height:.94;
  letter-spacing:.02em;
  text-transform:uppercase;
  text-wrap:balance;
}
.project-preview-summary{ margin-top:18px; max-width:52ch; font-size:16px; line-height:1.7; color:rgba(246,244,240,.86); }
.project-preview-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:34px; }
.project-preview-view{
  display:inline-flex;
  min-height:64px;
  min-width:204px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(246,244,240,.44);
  color:var(--ivory);
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  cursor:pointer;
}
.project-preview-view:hover{ background:var(--ivory); color:#171717; border-color:var(--ivory); }
.project-preview-tag{ font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:rgba(246,244,240,.52); }
@media (max-width:640px){
  .project-preview-body{ max-width:100%; }
  .project-preview-content{ padding-bottom:32px; }
  .project-preview-close{ width:46px; height:46px; top:calc(var(--bar) + 10px); }
  .project-preview-title{ max-width:11ch; font-size:clamp(42px,13vw,70px); }
  .project-preview-summary{ margin-top:14px; font-size:14px; line-height:1.65; max-width:35ch; }
  .project-preview-view{ min-width:164px; min-height:54px; }
}

/* ============================================================
   TRUSTED BY / PUBLICATIONS MARQUEE
   ============================================================ */
.trusted{ background:var(--charcoal); color:var(--ivory); padding:clamp(72px,11vh,128px) 0; overflow:hidden; }
.trusted-head{ text-align:center; margin-bottom:clamp(44px,7vh,76px); }
.trusted-head .label{ color:var(--gold); }
.trusted-head .sub{ font-family:var(--serif); font-style:italic; font-weight:300; font-size:clamp(20px,2.2vw,30px); color:rgba(246,244,240,.6); margin-top:14px; }
.marquee{ position:relative; display:flex; width:100%; overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent); }
.marquee-track{ display:flex; flex:none; align-items:center; gap:clamp(46px,7vw,108px);
  padding-right:clamp(46px,7vw,108px); animation:marq 42s linear infinite; will-change:transform; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes marq{ from{transform:translateX(0)} to{transform:translateX(-100%)} }
.pub{ font-family:var(--serif); font-weight:400; font-size:clamp(24px,2.7vw,40px);
  letter-spacing:0.01em; color:rgba(246,244,240,.5); white-space:nowrap; transition:color .45s var(--ease); }
.pub b{ font-weight:600; letter-spacing:0.06em; }
.pub:hover{ color:var(--ivory); }
@media (prefers-reduced-motion:reduce){ .marquee-track{ animation:none; } }
.no-anim .marquee-track{ animation:none; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.in{ opacity:1; transform:none; }
.reveal-d1{ transition-delay:.10s; }
.reveal-d2{ transition-delay:.20s; }
.reveal-d3{ transition-delay:.30s; }
.reveal-img{ overflow:hidden; }
.reveal-img image-slot, .reveal-img .ph{ transition:transform 1.4s var(--ease-out); transform:scale(1.12); }
.reveal-img.in image-slot, .reveal-img.in .ph{ transform:scale(1); }
@media (prefers-reduced-motion:reduce){
  .reveal,.reveal-img image-slot,.reveal-img .ph{ opacity:1!important; transform:none!important; }
}
/* static fallback when transitions/rAF are unavailable */
.no-anim *{ transition:none!important; animation:none!important; }
.no-anim .reveal,
.no-anim .reveal-img image-slot,
.no-anim .reveal-img .ph{ opacity:1!important; transform:none!important; }
.no-anim .curtain{ display:none!important; }
.no-anim .project-expand-overlay{ display:none!important; }
.no-anim .project-preview,
.no-anim .project-preview-media,
.no-anim .project-preview-media image-slot,
.no-anim .project-preview-scrim,
.no-anim .project-preview-content{ transition:none!important; }
.no-anim .menu-nav a{ transform:none!important; }
.no-anim .menu-item,
.no-anim .menu-link,
.no-anim .menu-column-head,
.no-anim .menu-intro-copy{ opacity:1!important; transform:none!important; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{
  background:var(--charcoal); color:var(--ivory);
  padding:clamp(70px,10vh,120px) var(--mx) 44px;
}
.foot a{ color:var(--ivory); }
.foot-top{ display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:40px; padding-bottom:clamp(50px,8vh,90px); border-bottom:1px solid rgba(246,244,240,.16); }
.foot-cta{ font-family:var(--serif); font-weight:300; font-size:clamp(34px,5vw,72px); line-height:1.02; letter-spacing:-0.01em; max-width:16ch; }
.foot-cta em{ font-style:italic; color:var(--bronze); }
.foot-link{
  display:inline-flex; align-items:center; gap:14px; white-space:nowrap;
  font-family:var(--sans); font-size:12px; letter-spacing:0.22em; text-transform:uppercase;
  padding-bottom:6px; border-bottom:1px solid rgba(246,244,240,.4);
  transition:gap .4s var(--ease), border-color .4s, color .4s;
}
.foot-link:hover{ gap:24px; color:var(--bronze); border-color:var(--bronze); }
.foot-grid{ display:grid; grid-template-columns:1.7fr 1.1fr 1fr 0.9fr; gap:40px; padding-top:54px; }
.foot-grid .label{ color:rgba(246,244,240,.5); margin-bottom:18px; }
.foot-col p, .foot-col a{ font-size:14px; line-height:1.9; color:rgba(246,244,240,.82); display:block; }
.foot-col a:hover{ color:var(--bronze); }
.foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-top:clamp(50px,8vh,90px); font-size:11px; letter-spacing:0.16em; text-transform:uppercase; color:rgba(246,244,240,.45); }
@media (max-width:760px){ .foot-grid{ grid-template-columns:1fr 1fr; gap:30px; } }

/* shared placeholder fill (when no image-slot) */
.ph{ width:100%; height:100%; background:
  linear-gradient(135deg, #e7e2d9 0%, #d8d1c4 50%, #e7e2d9 100%); }

/* ============================================================
   POPPINS SCALE CORRECTION
   ============================================================ */
body{
  font-size:15px;
  line-height:1.58;
  font-weight:300;
}
.label,
.topbar-loc,
.menu-kicker,
.menu-column-head,
.pf-label,
.pf-cat,
.pf-kicker,
.pf-preview-meta span,
.pf-preview-view,
.pd-meta-strip strong,
.pd-hero-link,
.filter,
.tile-chip,
.tile-quick,
.read-link,
.seo-btn,
.seo-link,
.foot-link,
.foot-bottom{
  font-size:10px!important;
  letter-spacing:.18em!important;
  line-height:1.45!important;
}
.wordmark{
  font-size:16px!important;
  letter-spacing:.14em!important;
  font-weight:400!important;
}
.display,
.hero-h,
.page-intro h1,
.seo-hero h1,
.service-hero h1,
.pj-head h1,
.contact-intro h1,
.pd-title,
.pf-preview-body h2{
  font-size:clamp(42px,6.2vw,96px)!important;
  line-height:1!important;
  letter-spacing:0!important;
  font-weight:300!important;
}
.hero-sub,
.hero-panel-text,
.lede,
.page-intro .lede,
.seo-hero .lede,
.seo-article-body .lede,
.service-hero .lede,
.service-hero-panel p,
.services-head p,
.intro-note p,
.founder-q,
.disc-state,
.c-thanks p{
  font-size:clamp(17px,1.8vw,24px)!important;
  line-height:1.55!important;
  letter-spacing:0!important;
  font-weight:300!important;
}
.feature-title,
.services-head h2,
.process-head h2,
.works-head h2,
.service-copy h2,
.service-scope h2,
.service-process h2,
.service-cta h2,
.seo-copy h2,
.seo-sitemap h2,
.seo-article-body h2,
.team-head h2,
.approach-band .aq,
.foot-cta{
  font-size:clamp(30px,4.4vw,66px)!important;
  line-height:1.04!important;
  letter-spacing:0!important;
  font-weight:300!important;
}
.feature-point strong,
.service-card h3,
.process-step h3,
.service-scope-card strong,
.service-proof strong,
.disc-name,
.prin h3,
.pd-section h2,
.seo-card h3{
  font-size:clamp(24px,2.7vw,38px)!important;
  line-height:1.12!important;
  letter-spacing:0!important;
  font-weight:300!important;
}
.pf-copy h2,
.pf-cap h3,
.tile-reveal h3,
.work-info h3,
.pd-related-card h3,
.member .m-name,
.tl .ev,
.seo-panel p{
  font-size:clamp(20px,2.1vw,30px)!important;
  line-height:1.18!important;
  letter-spacing:0!important;
  font-weight:300!important;
}
.body,
.service-copy p,
.service-scope-head p,
.service-process-step p,
.service-cta p,
.seo-copy p,
.seo-list li,
.seo-card p,
.seo-article-body p,
.seo-article-body li,
.contact-office-note p,
.process-head p,
.feature-brief p,
.works-intro,
.service-card p,
.process-step p,
.work-desc,
.pd-section p,
.pd-hero-copy p,
.pf-copy p,
.pf-preview-summary,
.foot-col p,
.foot-col a{
  font-size:14px!important;
  line-height:1.78!important;
  font-weight:300!important;
}
.menu{
  color:rgba(246,244,240,.92);
}
.menu .label,
.menu-index,
.menu-meta,
.menu-foot a{
  font-weight:300!important;
}
.menu-item-primary .menu-title{
  font-size:clamp(34px,4.2vw,68px)!important;
  font-weight:300!important;
  line-height:1.02!important;
  letter-spacing:0!important;
}
.menu-item-secondary .menu-title{
  font-size:clamp(24px,2.25vw,36px)!important;
  font-weight:300!important;
  line-height:1.12!important;
  letter-spacing:0!important;
}
.menu-link-tertiary .menu-title{
  font-size:clamp(18px,1.55vw,25px)!important;
  font-weight:300!important;
  font-style:normal!important;
  line-height:1.22!important;
  letter-spacing:0!important;
}
.menu-intro-copy{
  font-size:clamp(18px,1.9vw,28px)!important;
  font-weight:300!important;
  line-height:1.45!important;
  color:rgba(246,244,240,.62)!important;
}
.menu-item,
.menu-link{
  padding-block:12px!important;
}
.menu-copy{
  gap:7px!important;
}
.menu-column{
  opacity:.34;
}
.menu-column.is-open{
  opacity:1;
}
.menu-title::after{
  opacity:.28;
}
.menu-item:hover,
.menu-link:hover,
.menu-item.is-active{
  color:rgba(168,179,106,.92);
}
.section{
  padding-block:clamp(76px,10vh,132px);
}
.hero-main,
.service-hero,
.page-intro,
.seo-hero,
.pj-head,
.contact-intro{
  row-gap:clamp(24px,4vw,52px);
}
.service-scope,
.service-process,
.service-cta,
.services-band,
.process,
.works-section{
  padding-top:clamp(78px,10vh,132px)!important;
  padding-bottom:clamp(78px,10vh,132px)!important;
}
@media (max-width:640px){
  .display,
  .hero-h,
  .page-intro h1,
  .seo-hero h1,
  .service-hero h1,
  .pj-head h1,
  .contact-intro h1,
  .pd-title,
  .pf-preview-body h2{
    font-size:clamp(38px,12vw,60px)!important;
    line-height:1.04!important;
  }
  .feature-title,
  .services-head h2,
  .process-head h2,
  .works-head h2,
  .service-copy h2,
  .service-scope h2,
  .service-process h2,
  .service-cta h2,
  .seo-copy h2,
  .seo-sitemap h2,
  .seo-article-body h2,
  .team-head h2,
  .approach-band .aq,
  .foot-cta{
    font-size:clamp(28px,9vw,46px)!important;
  }
  .label,
  .topbar-loc,
  .pf-label,
  .pf-cat,
  .read-link,
  .seo-btn,
  .seo-link{
    letter-spacing:.14em!important;
  }
}
