/* ============================================================
   Ferguson Design Studio — design tokens
   Interior architecture & spatial design
   ============================================================ */
:root {
  /* warm plaster neutrals */
  --bg: #f4f1ea;
  --bg-soft: #ece7dd;
  --surface: #faf8f3;
  --surface-2: #efeae0;
  --ink: #211e19;
  --ink-soft: #3a352d;
  --muted: #7a7264;
  --faint: #a39a89;
  --line: rgba(33, 30, 25, 0.12);
  --line-soft: rgba(33, 30, 25, 0.07);

  /* clay / terracotta accent */
  --clay: #a4603c;
  --clay-deep: #8a4e30;
  --sand: #c9a87f;
  --olive: #6b6a4e;

  --nav-bg: rgba(244, 241, 234, 0.78);
  --nav-bg-solid: rgba(244, 241, 234, 0.96);

  /* image-placeholder swatch — intentionally deeper than --bg so frames read */
  --frame-base: #e3d8c6;
  --frame-a: #ece2d2;
  --frame-b: #d6c6ad;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --shadow: 0 30px 80px -30px rgba(33, 30, 25, 0.28);
  --shadow-soft: 0 16px 40px -24px rgba(33, 30, 25, 0.35);
}

[data-theme="dark"] {
  --bg: #16140f;
  --bg-soft: #1d1a14;
  --surface: #211d16;
  --surface-2: #2a251d;
  --ink: #f1ece1;
  --ink-soft: #ddd5c6;
  --muted: #a89e8c;
  --faint: #7c7363;
  --line: rgba(241, 236, 225, 0.14);
  --line-soft: rgba(241, 236, 225, 0.08);
  --clay: #c47c52;
  --clay-deep: #b06a42;
  --sand: #d3b58e;
  --nav-bg: rgba(22, 20, 15, 0.78);
  --nav-bg-solid: rgba(22, 20, 15, 0.96);
  --frame-base: #2a251d;
  --frame-a: #322c22;
  --frame-b: #211d16;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --shadow-soft: 0 16px 40px -24px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--clay); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.03em;
}
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { color: var(--ink-soft); }

/* ---- shared atoms ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--clay);
  opacity: 0.6;
}
.eyebrow.center::before { display: none; }

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}

.serif-accent { font-family: var(--font-display); font-style: italic; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 100px;
  transition: all 0.4s var(--ease);
  position: relative;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--clay); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link:hover { border-color: var(--clay); color: var(--clay); gap: 0.8em; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); background: var(--nav-bg-solid); }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: baseline; gap: 0.6em; line-height: 1; }
.logo-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-mark b { color: var(--clay); font-weight: 500; }
.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links { display: flex; align-items: center; gap: 2.4rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 1.4rem; }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-cta { display: inline-flex; }

.burger { display: none; flex-direction: column; gap: 5px; width: 28px; height: 28px; justify-content: center; }
.burger span { height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 78px 0 0 0;
  z-index: 99;
  background: var(--bg);
  padding: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a span { color: var(--faint); font-family: var(--font-body); font-size: 0.8rem; margin-right: 1rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(130px, 18vh, 200px) 0 clamp(50px, 8vh, 90px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
}
.hero h1 { margin: 0.3em 0 0; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span { display: block; }
.hero-aside { padding-bottom: 0.6rem; }
.hero-aside p { font-size: 1.02rem; margin-bottom: 1.8rem; }
.hero-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-meta .num { font-family: var(--font-display); font-size: 2rem; display: block; }
.hero-meta .lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.hero-visual {
  margin-top: clamp(40px, 6vw, 80px);
  position: relative;
}
.hero-visual .frame { aspect-ratio: 16 / 8; }
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 1.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6em;
  writing-mode: vertical-rl;
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: var(--line); }

/* ============================================================
   Full-bleed photographic hero (premium studio look)
   ============================================================ */
.hero-full {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-full .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-full .hero-bg .frame {
  height: 100%;
  width: 100%;
  border: none;
  border-radius: 0;
  /* moody dim-interior placeholder so overlaid white type reads */
  --frame-base: #211b14;
}
.hero-full .hero-bg .frame::before {
  background:
    radial-gradient(90% 80% at 72% 18%, rgba(201, 168, 127, 0.40), transparent 55%),
    radial-gradient(120% 90% at 15% 110%, rgba(164, 96, 60, 0.30), transparent 60%),
    linear-gradient(155deg, #2c241a 0%, #17120c 100%);
}
.hero-full .hero-bg .glyph svg { color: var(--sand); opacity: 0.16; }
/* slow Ken Burns — starts zoomed in, eases out, alternates so it never jumps */
@keyframes hero-zoom {
  from { transform: scale(1.16); }
  to   { transform: scale(1); }
}
.hero-full .hero-bg img {
  transform-origin: 50% 45%;
  animation: hero-zoom 11s ease-in-out infinite alternate;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-bg img { animation: none; transform: none; }
}
.hero-full::after {
  /* legibility scrim — dark top (for nav) and bottom (for headline) */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  /* darken lower-left (where the type sits) + top & bottom, keep the right window bright */
  background:
    linear-gradient(105deg, rgba(15, 12, 8, 0.74) 0%, rgba(15, 12, 8, 0.36) 34%, rgba(15, 12, 8, 0) 64%),
    linear-gradient(to bottom, rgba(15, 12, 8, 0.5) 0%, rgba(15, 12, 8, 0.1) 24%,
      rgba(15, 12, 8, 0.2) 52%, rgba(15, 12, 8, 0.52) 80%, rgba(15, 12, 8, 0.86) 100%);
}
.hero-full .hero-content {
  position: relative;
  width: 100%;
  padding-bottom: clamp(40px, 7vh, 96px);
  color: #f3ede1;
}
.hero-full .eyebrow { color: #d9bd97; }
.hero-full .eyebrow::before { background: #d9bd97; opacity: 0.8; }
.hero-full h1 {
  color: #fbf7ef;
  font-size: clamp(2.8rem, 8.5vw, 7.2rem);
  letter-spacing: -0.035em;
  margin: 0.28em 0 0;
  max-width: 16ch;
}
.hero-full h1 .ln { display: block; overflow: hidden; }
.hero-full h1 .ln > span { display: block; }
.hero-full .hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(26px, 4vw, 48px);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(243, 237, 225, 0.22);
  flex-wrap: wrap;
}
.hero-full .hero-foot p { color: rgba(243, 237, 225, 0.82); max-width: 38ch; font-size: 1rem; }
.hero-full .hero-foot .btn-primary { background: #f3ede1; color: #211e19; }
.hero-full .hero-foot .btn-primary:hover { background: var(--clay); color: #fff; }
.hero-full .scroll-cue { color: rgba(243, 237, 225, 0.7); bottom: clamp(40px, 7vh, 96px); }
.hero-full .scroll-cue::after { background: rgba(243, 237, 225, 0.4); }

/* nav transparent over a full-bleed hero, light text until scrolled */
body[data-hero="full"] .nav:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
body[data-hero="full"] .nav:not(.scrolled) .logo-mark,
body[data-hero="full"] .nav:not(.scrolled) .nav-links a { color: #f6f1e8; }
body[data-hero="full"] .nav:not(.scrolled) .logo-mark b { color: var(--sand); }
body[data-hero="full"] .nav:not(.scrolled) .logo-sub { color: rgba(246, 241, 232, 0.7); }
body[data-hero="full"] .nav:not(.scrolled) .theme-toggle,
body[data-hero="full"] .nav:not(.scrolled) .btn-ghost { border-color: rgba(246, 241, 232, 0.45); color: #f6f1e8; }
body[data-hero="full"] .nav:not(.scrolled) .btn-ghost:hover { background: #f6f1e8; color: var(--ink); border-color: #f6f1e8; }
body[data-hero="full"] .nav:not(.scrolled) .burger span { background: #f6f1e8; }

/* ---- image frames (photo placeholders) ---- */
.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--frame-base, #e3d8c6);
  isolation: isolate;
}
.frame::before {
  /* architectural plaster gradient — must read as a distinct image block */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 100% at 18% 5%, rgba(201, 168, 127, 0.55), transparent 58%),
    radial-gradient(130% 120% at 92% 100%, rgba(164, 96, 60, 0.45), transparent 55%),
    linear-gradient(155deg, var(--frame-a, #ece2d2) 0%, var(--frame-b, #d8c9b2) 100%);
  z-index: -2;
}
.frame::after {
  /* subtle grain */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.06;
  mix-blend-mode: multiply;
  z-index: -1;
  pointer-events: none;
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.frame .frame-tag {
  position: absolute;
  left: 18px; bottom: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--nav-bg-solid);
  padding: 0.4em 0.9em;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

/* line-art glyph inside empty frames */
.frame .glyph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  z-index: -1;
}
.frame .glyph svg { width: 42%; max-width: 200px; opacity: 0.42; color: var(--clay-deep); }
[data-theme="dark"] .frame .glyph svg { color: var(--sand); opacity: 0.34; }

/* ============================================================
   Generic section scaffolding
   ============================================================ */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head .right { color: var(--ink-soft); padding-bottom: 0.4rem; }
.section-head h2 { margin-top: 0.6rem; }

/* manifesto / philosophy big text */
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
}
.manifesto .em { color: var(--faint); }
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}
.manifesto-side p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 1.3rem;
}

/* ---- selected work ---- */
.work-list { display: flex; flex-direction: column; }
.work-row {
  display: grid;
  grid-template-columns: 0.5fr 2fr 1.2fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--line);
  transition: padding 0.4s var(--ease);
  position: relative;
}
.work-list .work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row .idx { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.1em; }
.work-row .w-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem); transition: color 0.3s var(--ease); }
.work-row .w-meta { font-size: 0.84rem; color: var(--muted); }
.work-row .w-go {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all 0.4s var(--ease);
}
.work-row:hover { padding-left: 14px; padding-right: 14px; }
.work-row:hover .w-title { color: var(--clay); }
.work-row:hover .w-go { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: rotate(-45deg); }

/* ---- image-led showcase (home) ---- */
.showcase { display: flex; flex-direction: column; gap: clamp(60px, 9vw, 130px); }
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.showcase-item:nth-child(even) .sc-media { order: 2; }
.showcase-item .sc-media { position: relative; }
.showcase-item .frame { aspect-ratio: 4 / 5; transition: transform 0.7s var(--ease); }
.showcase-item:hover .frame { transform: translateY(-8px); box-shadow: var(--shadow); }
.showcase-item .frame img { transition: transform 0.9s var(--ease); }
.showcase-item:hover .frame img { transform: scale(1.04); }
.showcase-item .sc-index {
  position: absolute; top: -0.4em; left: -0.1em;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 1;
  color: var(--clay);
  opacity: 0.16;
  z-index: 2;
  pointer-events: none;
}
.showcase-item .sc-body { max-width: 30rem; }
.showcase-item:nth-child(even) .sc-body { margin-left: auto; }
.showcase-item .sc-cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); }
.showcase-item .sc-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.5rem 0 1rem; transition: color 0.3s var(--ease); }
.showcase-item:hover .sc-title { color: var(--clay); }
.showcase-item .sc-desc { margin-bottom: 1.6rem; }
.showcase-item .sc-specs { display: flex; gap: 2rem; margin: 1.4rem 0 1.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.showcase-item .sc-specs .k { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.25rem; }
.showcase-item .sc-specs .v { font-size: 0.95rem; }

/* project cards grid (work page) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.project-card { display: block; group: card; }
.project-card .frame { aspect-ratio: 4 / 3; margin-bottom: 1.2rem; transition: transform 0.6s var(--ease); }
.project-card:hover .frame { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.project-card .frame img { transition: transform 0.8s var(--ease); }
.project-card:hover .frame img { transform: scale(1.04); }
.project-card .pc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.project-card h3 { transition: color 0.3s var(--ease); }
.project-card:hover h3 { color: var(--clay); }
.project-card .pc-year { font-size: 0.82rem; color: var(--faint); flex-shrink: 0; }
.project-card .pc-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.project-card.tall .frame { aspect-ratio: 3 / 4; }
.project-card.wide { grid-column: span 2; }
.project-card.wide .frame { aspect-ratio: 16 / 8; }

/* filter bar */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(36px, 5vw, 60px); }
.filters button {
  padding: 0.5em 1.2em;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.filters button:hover { color: var(--ink); border-color: var(--ink); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- services / capabilities ---- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.cap {
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 34px) clamp(36px, 4vw, 54px) 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.cap:nth-child(3n) { border-right: none; padding-right: 0; }
.cap-num { font-size: 0.75rem; color: var(--clay); letter-spacing: 0.14em; }
.cap h3 { margin: 1.2rem 0 0.7rem; }
.cap p { font-size: 0.95rem; }
.cap ul { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.cap li { font-size: 0.85rem; color: var(--muted); padding-left: 1.1em; position: relative; }
.cap li::before { content: "—"; position: absolute; left: 0; color: var(--sand); }

/* ---- process steps (about) ---- */
.process { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: auto 1fr 2fr;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(30px, 4vw, 54px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process .step:last-child { border-bottom: 1px solid var(--line); }
.step .s-num { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.6rem); color: var(--clay); }
.step h3 { padding-top: 0.3rem; }
.step p { font-size: 0.98rem; }

/* ---- stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.stat .num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; }
.stat .num em { font-style: normal; color: var(--clay); }
.stat .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; max-width: 18ch; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); }
.member .frame { aspect-ratio: 3 / 4; margin-bottom: 1rem; }
.member h3 { font-size: 1.25rem; }
.member .role { font-size: 0.82rem; color: var(--clay); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem; }

/* ---- marquee ---- */
.marquee { overflow: hidden; padding: clamp(30px, 5vw, 60px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: 4rem; white-space: nowrap; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.4rem); color: var(--faint); display: inline-flex; align-items: center; gap: 4rem; }
.marquee span::after { content: "✦"; color: var(--sand); font-size: 0.8em; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- CTA band ---- */
.cta-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: clamp(50px, 7vw, 100px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% -20%, rgba(164, 96, 60, 0.45), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--bg); max-width: 16ch; margin: 0.6rem auto 1.6rem; }
.cta-band .eyebrow { color: var(--sand); }
.cta-band .eyebrow::before { background: var(--sand); }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--clay); color: #fff; }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero { padding: clamp(140px, 20vh, 220px) 0 clamp(40px, 6vw, 80px); }
.page-hero h1 { margin: 0.5rem 0 0; }
.page-hero .lede { margin-top: 1.6rem; }
.breadcrumb { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--ink); }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact-info .info-block { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.contact-info .info-block:last-child { border-bottom: 1px solid var(--line); }
.contact-info .il { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.contact-info .iv { font-size: 1.05rem; }
.contact-info .iv a { border-bottom: 1px solid var(--line); transition: border-color 0.3s; }
.contact-info .iv a:hover { border-color: var(--clay); color: var(--clay); }

.form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9em 1em;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--bg);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form .btn-primary { align-self: flex-start; margin-top: 0.5rem; }
.form-note { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 110px) 0 3rem; margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 50px); margin-bottom: clamp(50px, 7vw, 90px); }
.footer-brand .logo-mark { font-size: 1.8rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; margin-top: 1.2rem; }
.foot-col h4 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.foot-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.foot-col a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.3s; }
.foot-col a:hover { color: var(--clay); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer-bottom small { font-size: 0.8rem; color: var(--muted); }
.footer-cta-huge {
  font-family: var(--font-display);
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: clamp(40px, 6vw, 80px);
  display: block;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}
.footer-cta-huge:hover { color: var(--clay); }

/* ============================================================
   Scroll reveal
   ============================================================ */
/* ============================================================
   Background dot field (waving canvas) + content layering
   ============================================================ */
#dotfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
main, .footer { position: relative; z-index: 1; }

/* hero headline mask-rise on load */
.hero-full h1 .ln { overflow: hidden; padding-bottom: 0.04em; }
.hero-full h1 .rise {
  display: block;
  transform: translateY(116%);
  transition: transform 1.05s var(--ease-out);
}
.is-loaded .hero-full h1 .ln:nth-child(1) .rise { transition-delay: 0.12s; }
.is-loaded .hero-full h1 .ln:nth-child(2) .rise { transition-delay: 0.26s; }
.is-loaded .hero-full h1 .rise { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hero-full h1 .rise { transform: none; transition: none; }
}

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .showcase-item { grid-template-columns: 1fr; gap: 1.6rem; }
  .showcase-item:nth-child(even) .sc-media { order: 0; }
  .showcase-item:nth-child(even) .sc-body { margin-left: 0; }
  .showcase-item .frame { aspect-ratio: 16 / 11; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(3n) { border-right: 1px solid var(--line); padding-right: clamp(20px,2.5vw,34px); }
  .cap:nth-child(2n) { border-right: none; padding-right: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2.5rem 2rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .step { grid-template-columns: auto 1fr; }
  .step h3 { grid-column: 2; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .section-head { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.wide { grid-column: auto; }
  .project-card.wide .frame, .project-card.tall .frame { aspect-ratio: 4/3; }
  .contact-grid { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: auto 1fr auto; gap: 1rem 1.2rem; }
  .work-row .w-meta { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap, .cap:nth-child(3n) { border-right: none; padding-right: 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.6rem; }
  .hero-full h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero-full .hero-foot { gap: 1.4rem; }
  .showcase-item .sc-specs { gap: 1.2rem; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .stats, .team-grid { grid-template-columns: 1fr; }
  .footer-top, .footer-brand { grid-template-columns: 1fr; grid-column: auto; }
}
