/* =========================================================
   KW ARCHITECTS PC — "Drafting sheet, coastal ink"
   Editorial architecture site: fine rules, numbered sections,
   outlined display type, muted coastal palette.
   ========================================================= */

:root {
  /* Palette — coastal, higher contrast */
  --off-white:  #F1F0EA;   /* chalk paper        */
  --sand:       #DDD8CC;   /* soft sand          */
  --fog:        #C2C9C6;   /* fog grey           */
  --mist:       #9FB0B0;   /* cool sea mist      */
  --driftwood:  #98A198;   /* weathered driftwood*/
  --seaglass:   #7FA095;   /* sea-glass green    */
  --link:       #47775F;   /* darker seaglass — readable link color on paper */
  --cedar:      #B07949;   /* weathered cedar    */
  --slate:      #24312D;   /* deep slate         */
  --slate-deep: #141D1A;   /* deeper slate       */
  --ink:        #161E1B;

  /* Hairlines */
  --line:   rgba(22,30,27,0.16);          /* on light */
  --line-x: rgba(241,240,234,0.18);       /* on dark  */

  /* Type */
  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --pad-x: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1680px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--sans);
  background: var(--off-white);
  color: var(--slate);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--seaglass); color: var(--slate-deep); }
:focus-visible { outline: 2px solid var(--seaglass); outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* =========================================================
   SHEET CHROME — scroll progress + drafting frame
   ========================================================= */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 90;
  background: var(--seaglass);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}
.frame {
  position: fixed; inset: 12px;
  border: 1px solid rgba(255,255,255,0.5);
  mix-blend-mode: difference;   /* dark line on light, light on dark */
  pointer-events: none;
  z-index: 80;
}

/* ---------- Media wrapper + graceful fallback ----------
   Cool coastal gradient behind every image; a uniform grade
   (slightly desaturated) unifies mixed photography. */
.media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--mist) 0%, var(--seaglass) 42%, var(--slate) 100%);
}
.media:nth-of-type(even) { background: linear-gradient(150deg, var(--fog) 0%, var(--driftwood) 48%, var(--slate-deep) 100%); }
.media__img {
  position: absolute; inset: 0;
  filter: saturate(0.78) contrast(1.04);
  transition: transform 1.1s var(--ease), opacity 0.6s;
}
/* tiles with scroll parallax need headroom so edges stay covered */
[data-tilt] .media__img { top: -7%; height: 114%; }

/* Shared label style */
.eyebrow, .hero__eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2rem);
  padding: clamp(1.1rem, 2.4vw, 1.9rem) var(--pad-x);
  mix-blend-mode: difference;       /* legible over any imagery */
  color: #fff;
}
.nav__logo { display: flex; align-items: baseline; gap: 0.55rem; margin-right: auto; }
.nav__logo-mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.nav__logo-word {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.85;
}
.nav__cta {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.6em 1.3em 0.55em;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.nav__cta:hover { background: #fff; color: #000; }
.nav__toggle { display: flex; align-items: center; gap: 0.85rem; }
.nav__toggle-label {
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.nav__toggle-bars { position: relative; width: 26px; height: 8px; }
.nav__toggle-bars i {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s;
}
.nav__toggle-bars i:nth-child(1) { top: 0; }
.nav__toggle-bars i:nth-child(2) { top: 7px; }
body.menu-open .nav__toggle-bars i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .nav__toggle-bars i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* =========================================================
   OVERLAY MENU
   ========================================================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--slate-deep);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad-x);
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  transition: clip-path 0.9s var(--ease);
}
body.menu-open .menu { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu__list { list-style: none; }
.menu__item { overflow: hidden; }
.menu__item a {
  display: inline-flex;
  align-items: baseline;
  gap: 1.2rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 5.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  transform: translateY(110%);
  transition: transform 0.8s var(--ease), color 0.4s, padding-left 0.45s var(--ease);
  color: var(--off-white);
}
body.menu-open .menu__item a { transform: translateY(0); }
.menu__item:nth-child(1) a { transition-delay: 0.10s; }
.menu__item:nth-child(2) a { transition-delay: 0.16s; }
.menu__item:nth-child(3) a { transition-delay: 0.22s; }
.menu__item:nth-child(4) a { transition-delay: 0.28s; }
.menu__item:nth-child(5) a { transition-delay: 0.34s; }
.menu__item:nth-child(6) a { transition-delay: 0.40s; }
.menu__item:nth-child(7) a { transition-delay: 0.46s; }
.menu__item:nth-child(8) a { transition-delay: 0.52s; }
.menu__item a::before {
  content: attr(data-num);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: var(--cedar);
  transform: translateY(-0.6em);
}
.menu__item a:hover { color: var(--seaglass); padding-left: 0.35em; }
.menu__foot {
  position: absolute;
  bottom: clamp(1.6rem, 4vw, 3rem);
  left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--driftwood);
  opacity: 0; transition: opacity 0.6s 0.5s;
}
body.menu-open .menu__foot { opacity: 1; }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute;
  top: -8%; left: 0; right: 0;
  height: 116%;                      /* extra for parallax travel */
  will-change: transform;
}
.hero__media .media__img { transform: scale(1.04); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(17,23,21,0.72) 0%, rgba(17,23,21,0.14) 42%, rgba(17,23,21,0.26) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(3.4rem, 8vh, 6rem);
  color: var(--off-white);
}
.hero__eyebrow { display: block; margin-bottom: 1.6rem; opacity: 0.9; }
.hero__wordmark {
  font-family: var(--display);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-size: clamp(3.4rem, 14vw, 13rem);
  text-transform: uppercase;
}
.hero__wordmark span { display: block; overflow: hidden; }
.hero__wordmark-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(241,240,234,0.92);
}
.hero__tagline {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(241,240,234,0.92);
}
.hero__meta {
  margin-top: clamp(1.6rem, 3.5vh, 2.4rem);
  padding-top: 1.1rem;
  /* clear the vertical Scroll cue pinned at the right edge */
  padding-right: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid rgba(241,240,234,0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(241,240,234,0.75);
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  z-index: 3;
  bottom: clamp(1.6rem, 4vh, 2.6rem);
  right: clamp(1.2rem, 2.2vw, 2.2rem);   /* nearer the edge, clear of hero meta */
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  color: var(--off-white);
}
.hero__cue-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(241,240,234,0.8), rgba(241,240,234,0));
  transform-origin: top;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}
.hero__cue-text {
  font-size: 0.62rem; letter-spacing: 0.34em; text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.8;
}

/* =========================================================
   2. INTRO LINE
   ========================================================= */
.intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(6rem, 18vh, 14rem) var(--pad-x);
}
/* Firm logo — white-bg JPG; multiply drops the white box into the paper bg */
.intro__logo { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.intro__logo img {
  width: 180px;
  max-width: 48%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.intro__line {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.55rem, 4.2vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 26ch;
  color: var(--slate);
}
.reveal-line { display: block; overflow: hidden; }

/* =========================================================
   FACTS STRIP
   ========================================================= */
.facts {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.2rem) var(--pad-x);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.facts__k {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--driftwood);
  margin-bottom: 0.5rem;
}
.facts__v {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--slate);
}
.facts__v--stack { font-size: clamp(0.92rem, 1.15vw, 1.15rem); line-height: 1.5; }
.facts__v--stack a {
  display: block;
  width: max-content; max-width: 100%;
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.3s;
}
.facts__v--stack a:hover { color: var(--cedar); }

/* =========================================================
   SHARED SECTION FURNITURE — numbered sheet headers
   ========================================================= */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-head__row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.section-head__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--cedar);
}
.section-head__row .eyebrow { color: var(--slate); opacity: 0.65; }
.section-head__rule { flex: 1; height: 1px; background: var(--line); }
.section-head__row--dark .eyebrow { color: var(--mist); opacity: 1; }
.section-head__row--dark .section-head__rule { background: var(--line-x); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--slate);
}
.section-note {
  max-width: 40ch;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: var(--slate);
  opacity: 0.7;
}

/* =========================================================
   MARQUEE — alternating filled / outlined words
   ========================================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2.6rem) 0;
}
.marquee__track {
  display: flex; width: max-content; will-change: transform;
  animation: marquee-scroll 38s linear infinite;
}
/* Two identical spans → translating by -50% loops seamlessly */
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee__track span {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  padding-right: 0.3em;
}
.marquee__track i { color: var(--cedar); font-style: normal; padding: 0 0.35em; }
.marquee__track em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(36,49,45,0.65);
}

/* =========================================================
   3. WHAT WE DO
   ========================================================= */
.work { padding: clamp(4rem, 10vh, 9rem) 0; }
.work__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.media--tall { aspect-ratio: 1 / 1; border-radius: 2px; cursor: zoom-in; }  /* square photos */
/* Photo-count badge — signals a gallery behind the image */
.media__badge {
  position: absolute; z-index: 2;
  right: 12px; bottom: 12px;
  padding: 0.55em 1em 0.5em;
  background: var(--off-white);
  color: var(--ink);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 2px;
  pointer-events: none;
}
.work__meta {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
}
.work__index {
  font-family: var(--display);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; color: var(--cedar);
}
.work__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -0.015em; color: var(--slate);
}
.work__desc { max-width: 34ch; color: var(--slate); opacity: 0.72; font-size: 0.98rem; }
.work__caption {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cedar);
}

/* =========================================================
   4. SELECTED PROJECTS — indexed asymmetric grid
   ========================================================= */
.projects { padding: clamp(4rem, 10vh, 9rem) 0; }
/* Square photos → square cells: tight mosaic, zero cropping */
.grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.3rem, 0.8vw, 0.9rem);
  counter-reset: tile;
}
.tile {
  display: block;
  position: relative;
  counter-increment: tile;
  cursor: zoom-in;
}
.tile .media,
.tile--wide .media,
.tile--tall .media { aspect-ratio: 1 / 1; border-radius: 2px; }

/* Hover: tint + "View" chip (top right) */
.tile .media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(20,29,26,0);
  transition: background 0.5s var(--ease);
}
.tile .media[data-count]::before { content: attr(data-count) " →"; }
.tile .media::before {
  content: "View →";
  position: absolute; z-index: 3;
  right: 12px; top: 12px;
  padding: 0.55em 1em 0.5em;
  background: var(--off-white);
  color: var(--ink);
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

/* Caption overlaid on the photo — no vertical gaps between rows */
.tile__bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem;
  padding: 2.6rem 0.95rem 0.85rem;
  background: linear-gradient(to top, rgba(15,21,19,0.78), rgba(15,21,19,0));
  border-radius: 0 0 2px 2px;
  pointer-events: none;
}
.tile__bar::before {
  content: counter(tile, decimal-leading-zero);
  font-family: var(--display);
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--sand);
}
.tile__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(0.95rem, 1.15vw, 1.2rem); color: var(--off-white);
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease);
}
.tile__tag {
  margin-left: auto;
  font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(241,240,234,0.65);
}
@media (hover: hover) {
  .tile .tile__bar { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
  .tile:hover .tile__bar { opacity: 1; transform: translateY(0); }
  .tile:hover .media::after { background: rgba(20,29,26,0.16); }
  .tile:hover .media::before { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BEFORE + AFTER — renovation pairs
   ========================================================= */
.ba { padding: clamp(4rem, 10vh, 9rem) 0; }
.ba__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3.5rem) clamp(1.1rem, 2.4vw, 2.4rem);
}
.ba-pair { margin: 0; }
.ba-pair__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;                       /* hairline seam between the two states */
}
.ba-pair__cell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background: linear-gradient(150deg, var(--fog) 0%, var(--driftwood) 60%, var(--slate) 100%);
  cursor: zoom-in;
}
.ba-pair__cell img { transition: transform 0.9s var(--ease); }
/* Stacked variant: a Before column and an After column, two views each */
.ba-pair__col {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: start;
}
/* State chips sit on whichever element carries data-tag (cell or column) */
.ba-pair [data-tag]::after {
  content: attr(data-tag);
  position: absolute;
  z-index: 2;
  top: 10px; left: 10px;
  padding: 0.5em 0.9em 0.45em;
  font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 2px;
  background: var(--off-white); color: var(--ink);
  pointer-events: none;
}
.ba-pair [data-tag="After"]::after {
  background: var(--seaglass); color: var(--slate-deep);
}
@media (hover: hover) {
  .ba-pair__cell:hover img { transform: scale(1.05); }
}
.ba-pair__bar {
  display: flex; align-items: baseline; gap: 1rem;
  padding-top: 0.9rem;
}
.ba-pair__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: -0.01em; color: var(--slate);
}
.ba-pair__tag {
  margin-left: auto;
  font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate); opacity: 0.5;
}

/* =========================================================
   5. PROCESS
   ========================================================= */
.process { padding: clamp(4rem, 10vh, 9rem) 0; }
.steps {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.step { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.step__num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.8rem, 4.6vw, 4.2rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(36,49,45,0.55);
  display: block; margin-bottom: 1.4rem; line-height: 1;
}
.step__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem); color: var(--slate);
  margin-bottom: 0.7rem; letter-spacing: -0.005em;
}
.step__text { font-size: 0.92rem; color: var(--slate); opacity: 0.7; max-width: 28ch; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: clamp(4rem, 10vh, 9rem) 0; }

/* Firm logo at top of About — white-bg JPG; multiply drops the white box
   into the off-white section so only the mark reads. */
.about__logo {
  max-width: var(--maxw);
  margin: 0 auto clamp(2rem, 5vw, 3.5rem);
  padding: 0 var(--pad-x);
}
.about__logo img {
  position: static;
  width: 200px;
  max-width: 52%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.about__body {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.about__body p {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.62;
  color: var(--slate);
  opacity: 0.82;
  max-width: 44ch;
}

/* Passive House callout — spec/title-block box */
.passive__inner {
  max-width: calc(var(--maxw) - 2 * var(--pad-x));
  margin: clamp(3rem, 7vw, 6rem) var(--pad-x);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  padding: clamp(1.8rem, 4.5vw, 3.4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (min-width: 1780px) { .passive__inner { margin-left: auto; margin-right: auto; } }
.passive__body .eyebrow {
  position: absolute;
  top: 0; left: clamp(1.4rem, 3vw, 2.6rem);
  transform: translateY(-50%);
  display: inline-block;
  background: var(--off-white);
  padding: 0 0.9em;
  color: var(--cedar);
}
.passive__mark { max-width: 180px; }
.passive__mark img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.passive__text {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--slate);
  opacity: 0.82;
}

/* Team bios */
.about__team {
  max-width: var(--maxw);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.bio { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.bio__name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.8rem); letter-spacing: -0.01em; color: var(--slate);
}
.bio__cred {
  display: block; margin: 0.5rem 0 1.1rem;
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cedar);
}
.bio p { font-size: 0.96rem; line-height: 1.65; color: var(--slate); opacity: 0.78; }

/* Closing copy + invite link */
.about__lead {
  max-width: var(--maxw);
  margin: clamp(3.5rem, 8vw, 7rem) auto 0;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 2.5rem) clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.about__lead p {
  max-width: 48ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6; color: var(--slate); opacity: 0.85;
}
.about__invite {
  grid-column: 1 / -1;
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.1; letter-spacing: -0.015em;
  color: var(--slate);
  margin-top: clamp(1rem, 3vw, 2.5rem);
  transition: color 0.4s var(--ease);
}
.about__invite-arrow {
  display: inline-block;
  color: var(--cedar);
  transition: transform 0.4s var(--ease);
}
.about__invite:hover { color: var(--seaglass); }
.about__invite:hover .about__invite-arrow { transform: translateX(0.35em); }

/* =========================================================
   NEWS & PUBLICATIONS — editorial press list
   ========================================================= */
.press { padding: clamp(4rem, 10vh, 9rem) 0; }
.press__list {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.press__item {
  display: flex;
  align-items: baseline;
  gap: 1.2rem 2rem;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.press__list li:last-child .press__item { border-bottom: 1px solid var(--line); }
.press__source {
  flex: 0 0 clamp(9rem, 16vw, 14rem);
  font-size: 0.62rem; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cedar);
}
.press__title {
  flex: 1;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.05rem, 1.8vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.28em;
  transition: color 0.35s var(--ease), text-decoration-color 0.35s;
}
.press__btn {
  flex: none;
  align-self: center;
  display: inline-block;
  padding: 0.7em 1.4em 0.65em;
  border: 1px solid var(--slate);
  border-radius: 999px;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s, border-color 0.35s;
}
@media (hover: hover) {
  .press__item:hover { padding-left: 0.6rem; }
  .press__item:hover .press__title { color: var(--seaglass); text-decoration-color: var(--seaglass); }
  .press__item:hover .press__btn { background: var(--slate); color: var(--off-white); }
}

/* =========================================================
   VOICES — client testimonial
   ========================================================= */
.voices {
  background: var(--slate-deep);
  color: var(--off-white);
  padding: clamp(5rem, 12vh, 10rem) var(--pad-x);
}
.voices__inner { max-width: var(--maxw); margin: 0 auto; }
.quote { max-width: 1000px; margin-top: clamp(2rem, 5vw, 4rem); }
.quote__text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.45rem, 3.4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--off-white);
}
.quote__by {
  margin-top: 1.8rem;
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--seaglass);
}

/* =========================================================
   CONTACT / FOOTER + PROJECT INTAKE
   ========================================================= */
.contact {
  position: relative;
  overflow: hidden;
  color: var(--off-white);
  background: var(--slate-deep);
  padding: clamp(6rem, 16vh, 13rem) var(--pad-x) clamp(2rem, 5vh, 3rem);
}
.contact__media {
  position: absolute; top: -6%; left: 0; right: 0; height: 112%;
  will-change: transform; background: linear-gradient(160deg, var(--slate), var(--slate-deep));
}
.contact__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,29,26,0.6), rgba(20,29,26,0.86));
}
.contact__inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 600px);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 5.6rem); line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: clamp(2.5rem, 7vw, 5rem);
}
.contact__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(241,240,234,0.85);
}
.contact__cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem 2.5rem; max-width: 640px;
}
.contact__intro .contact__cols { margin-bottom: 0; }
.contact__label {
  display: block; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 0.9rem;
}
.contact__col p { font-size: 1rem; line-height: 1.7; color: var(--off-white); }
.contact__note {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mist);
}
.contact__col a {
  color: var(--seaglass);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.3s;
}
.contact__col a:hover { color: var(--off-white); }

.contact__base {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: clamp(4rem, 10vh, 7rem) auto 0;
  padding-top: 1.6rem; border-top: 1px solid var(--line-x);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.6rem 2rem;
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist);
}
.back-top { transition: color 0.3s; }
.back-top:hover { color: var(--seaglass); }

/* ---------- Start-a-project CTA card (right column) ---------- */
.contact__cta {
  background: rgba(241,240,234,0.04);
  border: 1px solid var(--line-x);
  border-radius: 2px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
.contact__cta-heading {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; color: var(--off-white);
}
.contact__cta-sub { color: rgba(241,240,234,0.66); font-size: 0.96rem; max-width: 38ch; }
.contact__cta-btn {
  margin-top: 0.4rem;
  padding: 1em 1.9em 0.95em;
  background: var(--seaglass); color: var(--slate-deep);
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact__cta-btn:hover { background: #a3bfb2; transform: translateY(-2px); }

/* ---------- Intake form modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(0.8rem, 3vw, 2.5rem);
  background: rgba(13,19,17,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal.open { display: flex; animation: modal-in 0.35s var(--ease) both; }
@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal__panel {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--slate-deep);
  border: 1px solid var(--line-x);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.modal.open .modal__panel { animation: panel-in 0.35s var(--ease) both; }
@keyframes panel-in {
  from { transform: translateY(14px); }
  to   { transform: none; }
}
.modal__close {
  position: sticky; top: 0;
  display: block;
  margin-left: auto;
  z-index: 2;
  color: var(--off-white);
  font-size: 2rem; line-height: 1;
  padding: 0 0.2rem 0.2rem;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.modal__close:hover { color: var(--seaglass); transform: rotate(90deg); }
body.modal-open { overflow: hidden; }

/* Inside the modal panel the form drops its own card chrome */
.modal .intake { border: 0; background: none; padding: 0; }

.intake {
  background: rgba(241,240,234,0.04);
  border: 1px solid var(--line-x);
  border-radius: 2px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.intake__intro { margin-bottom: 0.2rem; }
.intake__heading {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.01em; color: var(--off-white);
}
.intake__subheading { margin-top: 0.4rem; color: rgba(241,240,234,0.66); font-size: 0.96rem; }

.field { display: flex; flex-direction: column; gap: 0.55rem; }
.field__label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--mist); line-height: 1.5;
}
.req { color: var(--cedar); }

.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field__row--phone { grid-template-columns: minmax(0, auto) 1fr; }

.intake input,
.intake select,
.intake textarea {
  width: 100%;
  background: transparent;
  color: var(--off-white);
  border: 0;
  border-bottom: 1px solid rgba(241,240,234,0.28);
  border-radius: 0;
  padding: 0.6rem 0.1rem;
  font: inherit; font-size: 0.96rem; line-height: 1.4;
  transition: border-color 0.3s;
}
.intake input::placeholder, .intake textarea::placeholder { color: rgba(241,240,234,0.38); }
.intake select option { color: #1c2422; }   /* native dropdown list is light */
.intake textarea {
  resize: vertical; min-height: 110px;
  border: 1px solid rgba(241,240,234,0.22);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
}
.intake input:focus, .intake select:focus, .intake textarea:focus {
  outline: none; border-color: var(--seaglass);
}
.intake input[type="date"] { color-scheme: dark; }

.field__radios { display: flex; flex-wrap: wrap; gap: 1.6rem; padding-top: 0.2rem; }
.radio { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--off-white); font-size: 0.96rem; cursor: pointer; }
.radio input { width: auto; accent-color: var(--seaglass); }

.intake__submit {
  width: 100%;
  margin-top: 0.4rem;
  background: var(--seaglass); color: var(--slate-deep);
  border-radius: 2px; padding: 1rem 1rem 0.95rem;
  font-weight: 500; font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  transition: background 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}
.intake__submit:hover { background: #93b3a7; letter-spacing: 0.32em; }
.intake__submit:disabled { opacity: 0.55; cursor: default; }
.intake__done, .intake__error {
  border-radius: 2px; padding: 0.9rem 1rem; font-size: 0.96rem; color: var(--off-white);
}
.intake__done { background: rgba(127,160,149,0.16); border: 1px solid var(--seaglass); }
.intake__error { background: rgba(196,84,84,0.14); border: 1px solid rgba(196,84,84,0.55); }
.intake__error a { color: var(--seaglass); text-decoration: underline; }

/* =========================================================
   LIGHTBOX — click a project photo → centered fullscreen view
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(13,19,17,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__fig { max-width: min(1240px, 100%); text-align: center; }
.lightbox__img {
  position: static;
  width: auto; height: auto;
  max-width: 100%; max-height: 82vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.55);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox__cap {
  margin-top: 1.1rem;
  color: var(--off-white);
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
}
.lightbox__link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9em 1.8em 0.85em;
  background: var(--seaglass);
  color: var(--slate-deep);
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lightbox__link:hover { background: #a3bfb2; transform: translateY(-2px); }
.lightbox__count {
  display: block;
  margin-top: 0.7rem;
  color: var(--mist);
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.lightbox__nav {
  position: absolute; z-index: 2;
  top: 50%; transform: translateY(-50%);
  color: var(--off-white);
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1;
  padding: 0.6rem 0.9rem;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.lightbox__nav--prev { left: clamp(0.4rem, 2vw, 1.6rem); }
.lightbox__nav--next { right: clamp(0.4rem, 2vw, 1.6rem); }
.lightbox__nav--prev:hover { color: var(--seaglass); transform: translateY(-50%) translateX(-4px); }
.lightbox__nav--next:hover { color: var(--seaglass); transform: translateY(-50%) translateX(4px); }
.lightbox [hidden] { display: none !important; }   /* [hidden] must beat any display rule */
.lightbox__close {
  position: absolute;
  top: clamp(0.8rem, 3vw, 2rem); right: clamp(0.8rem, 3vw, 2rem);
  color: var(--off-white);
  font-size: 2.2rem; line-height: 1;
  padding: 0.3rem 0.6rem;
  transition: color 0.3s, transform 0.3s var(--ease);
}
.lightbox__close:hover { color: var(--seaglass); transform: rotate(90deg); }
body.lightbox-open { overflow: hidden; }

/* =========================================================
   REVEAL ANIMATION HOOKS (driven by GSAP)
   ========================================================= */
.reveal { will-change: transform, opacity; }
.reveal-fade { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .hero__cue-line { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
  .contact__grid { grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem); }
}
@media (max-width: 900px) {
  .frame { display: none; }
}
@media (max-width: 760px) {
  .nav__cta { display: none; }
  .work__grid { grid-template-columns: 1fr; gap: 3rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ba__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .about__body { grid-template-columns: 1fr; gap: 1.6rem; }
  .about__team { grid-template-columns: 1fr; gap: 2.4rem; }
  .about__lead { grid-template-columns: 1fr; gap: 1.4rem; }
  .passive__inner { grid-template-columns: 1fr; gap: 2rem; }
  .passive__mark { max-width: 150px; }
}
@media (max-width: 640px) {
  .nav__logo-word { display: none; }
  .press__item { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .press__source { flex-basis: 100%; }
  .press__btn { align-self: flex-start; }
  .hero__cue-text { display: none; }
  .hero__meta { justify-content: flex-start; }
  .menu__foot { flex-direction: column; gap: 0.4rem; }
  .steps { grid-template-columns: 1fr; }
  .contact__cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .intake .field__row:not(.field__row--phone) { grid-template-columns: 1fr; }
}
