/* ============================================================
   SUNSHINE CUSTOM HOMES — design system (light)
   ============================================================ */

:root {
  --bg: #f4f0e9;
  --fg: #1a1712;
  --ink: #1a1712;
  --bone: #f4f0e9;
  --gold: #e8a33d;
  --gold-2: #f6c86b;
  --gold-deep: #c77b3f;
  --line: rgba(26, 23, 18, 0.14);
  --muted: rgba(26, 23, 18, 0.68);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-serif: 'Instrument Serif', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.1rem, 3.5vw, 3.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: var(--gold-deep) #efe8db; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  /* starts dark under the hero video, morphs to light right after */
  background: #0b0a09;
  color: #f4f0e9;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--ink); }

/* scroll locked while the preloader is alive */
body:has(.preloader) { overflow: hidden; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #efe8db; }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 8px; }

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

/* ---------- utilities ---------- */

.chapter { position: relative; }

.chapter-tag {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: clamp(0.9rem, 2vw, 1.6rem);
}

.line-l {
  display: inline-block;
  width: clamp(1.6rem, 4vw, 3rem);
  height: 1px;
  background: var(--gold-deep);
  transform-origin: left center;
}

.dot-gold { color: var(--gold); }

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
  letter-spacing: 0.01em;
}

.ghost-num {
  position: absolute;
  top: clamp(0.6rem, 2.5vw, 2rem);
  right: -0.04em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 17vw, 14rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 23, 18, 0.09);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* split chars */
.split-chars .sc-word { display: inline-block; white-space: nowrap; }
.split-chars .sc { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.7rem;
  border: 0;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  will-change: transform;
}

.btn-gold {
  background: linear-gradient(120deg, var(--gold-deep), var(--gold) 45%, var(--gold-2));
  color: var(--ink);
}
.btn-gold:hover { box-shadow: 0 12px 34px -10px rgba(199, 123, 63, 0.6); }

.btn-dark { background: var(--ink); color: var(--bone); }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

/* ---------- grain ---------- */

.noise {
  position: fixed;
  inset: -100px;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); }
  75% { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- progress ---------- */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- cursor ---------- */

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; }
  .cursor-dot {
    position: absolute;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--gold-deep);
  }
  .cursor-ring {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 1px solid rgba(199, 123, 63, 0.55);
    border-radius: 50%;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
                margin 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
  }
  .cursor-ring span {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .cursor.is-label .cursor-ring {
    width: 78px; height: 78px;
    margin: -39px 0 0 -39px;
    background: var(--gold);
    border-color: var(--gold);
  }
  .cursor.is-label .cursor-ring span { opacity: 1; }
  .cursor.is-label .cursor-dot { opacity: 0; }
  .cursor.is-link .cursor-ring {
    width: 54px; height: 54px;
    margin: -27px 0 0 -27px;
    background: rgba(232, 163, 61, 0.18);
  }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bone);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preloader-inner { position: relative; text-align: center; }
.preloader-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2.6vw, 1.4rem);
  letter-spacing: 0.4em;
  margin-bottom: 1.8rem;
}
.pre-sun, .logo-sun { color: var(--gold-deep); }
.preloader-words {
  position: relative;
  height: 1.4em;
  overflow: hidden;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: rgba(26, 23, 18, 0.55);
}
.preloader-words span {
  position: absolute;
  left: 0; right: 0;
  transform: translateY(110%);
}
.preloader-count {
  position: fixed;
  right: clamp(1.2rem, 4vw, 3.5rem);
  bottom: clamp(0.8rem, 3vw, 2rem);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 7rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold-deep);
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--pad);
  transition: transform 0.5s var(--ease-out), background-color 0.4s, color 0.4s, backdrop-filter 0.4s;
}
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-solid {
  background: rgba(244, 240, 233, 0.78);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26, 23, 18, 0.07);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.22em;
}
.nav-links { display: flex; gap: clamp(0.9rem, 2.2vw, 2rem); }
.nav-links a {
  position: relative;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--gold-deep);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }

.burger {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  opacity: 0.9;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out), top 0.45s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bone);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-links { display: flex; flex-direction: column; gap: 0.3rem; }
.menu-links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  line-height: 1.3;
  transform: translateY(40px);
  opacity: 0;
}
.menu-links a em {
  font-size: 0.8rem;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
}
.menu-foot {
  position: absolute;
  bottom: 1.8rem;
  display: flex;
  gap: 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 23, 18, 0.55);
}

/* ============================================================
   HERO (stays cinematic-dark over the video)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: clip;
  color: #f4f0e9;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
  filter: saturate(0.92) contrast(1.03);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,9,0.5) 0%, rgba(11,10,9,0.16) 38%, rgba(11,10,9,0.8) 82%, #0b0a09 100%),
    radial-gradient(120% 90% at 20% 85%, rgba(11,10,9,0.5) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--pad) clamp(3.2rem, 7vh, 5rem);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.85);
  margin-bottom: clamp(0.9rem, 2vh, 1.6rem);
}
.hero-eyebrow .line-l { background: var(--gold); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 13rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
  display: flex;
  align-items: baseline;
  user-select: none;
}
.hero-title .ht { display: inline-block; will-change: transform; flex-shrink: 0; }

/* the stylized final "E" — three golden beams */
.e-glyph {
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.085em;
  width: 0.68em;
  height: 0.72em;
  margin-left: 0.06em;
  transform: translateY(-0.02em);
}
.e-glyph i {
  display: block;
  height: 0.155em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 55%, var(--gold-2));
  box-shadow: 0 0 24px rgba(232, 163, 61, 0.35);
  transform-origin: left center;
}
.e-glyph i:nth-child(2) { width: 72%; }
.e-glyph i:nth-child(1), .e-glyph i:nth-child(3) { width: 100%; }

.hero-sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.2rem, 3vh, 2.2rem);
  flex-wrap: wrap;
}
.hero-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  line-height: 1.16;
}
.hero-statement em { color: var(--gold-2); font-size: 1.08em; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1rem, 2.6vw, 2.6rem);
}
.hero-meta div { display: flex; flex-direction: column; gap: 0.12rem; }
.hero-meta b {
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.hero-meta span {
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.6);
}

.hero-scrollcue {
  position: absolute;
  right: var(--pad);
  bottom: clamp(3.2rem, 7vh, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.65);
}
.hero-scrollcue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2s var(--ease-out) infinite;
  transform-origin: top center;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(20px); opacity: 0; }
}

/* marquees */
.hero-marquee {
  position: relative;
  z-index: 1;
  overflow: clip;
  border-top: 1px solid rgba(244, 240, 233, 0.18);
  padding: 0.65rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 240, 233, 0.72);
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifesto {
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
  overflow: clip;
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 1050px;
}
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}
.manifesto-text .mw {
  display: inline-block;
  opacity: 0.14;
  will-change: opacity;
}
.manifesto-text em { font-size: 1.06em; }

/* ============================================================
   FRAME — 3D chapter (the one and only scroll lock)
   ============================================================ */

.frame { overflow: clip; }
.frame-sticky {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: clip;
}
.frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.frame-head {
  position: absolute;
  top: clamp(4rem, 10vh, 6rem);
  left: var(--pad);
  z-index: 2;
  max-width: 520px;
}
.frame-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  line-height: 1.05;
}

.frame-steps {
  position: absolute;
  right: var(--pad);
  bottom: clamp(4.5rem, 11vh, 7rem);
  z-index: 2;
  width: min(400px, 36vw);
}
.frame-step {
  position: absolute;
  right: 0; bottom: 0;
  width: 100%;
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--gold-deep);
  background: rgba(255, 253, 248, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 16px 40px -24px rgba(26, 23, 18, 0.35);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
}
.frame-step.is-active { pointer-events: auto; }
.frame-step b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  color: var(--gold-deep);
}
.frame-step p { font-size: 0.84rem; line-height: 1.6; color: rgba(26, 23, 18, 0.82); }

.frame-progress {
  position: absolute;
  left: var(--pad);
  bottom: clamp(1.6rem, 5vh, 2.8rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fp-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(26, 23, 18, 0.55);
}
.fp-track {
  position: relative;
  width: clamp(110px, 16vw, 220px);
  height: 2px;
  background: rgba(26, 23, 18, 0.15);
  overflow: hidden;
}
.fp-track span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform: scaleX(0);
  transform-origin: left center;
}

/* ============================================================
   TWO PATHS
   ============================================================ */

.paths { padding: clamp(3.5rem, 9vh, 6rem) 0 0; overflow: clip; }
.paths-head { padding: 0 var(--pad); position: relative; z-index: 1; }
.paths-title, .portfolio-title, .process-title, .thesis-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1.4rem, 3.5vh, 2.4rem);
}

.paths-split {
  display: flex;
  min-height: 62vh;
  border-top: 1px solid var(--line);
}
.path {
  position: relative;
  flex: 1;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  transition: flex 0.9s var(--ease-out);
  border-right: 1px solid var(--line);
  color: #f4f0e9;
}
.path:last-child { border-right: 0; }
.paths-split:hover .path { flex: 0.78; }
.paths-split .path:hover { flex: 1.35; }

.path-media { position: absolute; inset: 0; background: #26211a; }
.path-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transform: scale(1.06);
  transition: opacity 0.7s, transform 1.4s var(--ease-out);
  will-change: transform;
}
.path:hover .path-media img { opacity: 0.75; transform: scale(1.01); }
.path-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,10,9,0.3) 0%, rgba(11,10,9,0.06) 40%, rgba(11,10,9,0.88) 100%);
}
.path-alt .path-media img { opacity: 0.42; }
.path-alt:hover .path-media img { opacity: 0.55; }

.path-body {
  position: relative;
  z-index: 1;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 600px;
}
.path-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.6rem;
}
.path h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2.3rem);
  line-height: 1.04;
  margin-bottom: 0.3rem;
}
.path-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.9rem;
}
.path-copy { font-size: 0.9rem; color: rgba(244, 240, 233, 0.88); margin-bottom: 1rem; }
.path-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.path-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.8rem;
  color: rgba(244, 240, 233, 0.78);
}
.path-list li::before {
  content: '✳';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75em;
  top: 0.25em;
}

/* ============================================================
   THESIS — investor chapter (no pin, dense grid)
   ============================================================ */

.thesis-pin {
  padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
  overflow: clip;
}
.thesis-intro {
  position: relative;
  padding: 0 var(--pad);
  max-width: 1100px;
}
.thesis-lede {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  max-width: 540px;
  color: var(--muted);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}

.thesis-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  padding: 0 var(--pad);
}
.tcard {
  position: relative;
  padding: clamp(1.3rem, 2vw, 1.9rem);
  background: #fffdf8;
  border: 1px solid rgba(26, 23, 18, 0.08);
  border-radius: 18px;
  box-shadow: 0 18px 44px -28px rgba(26, 23, 18, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.tcard-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-deep);
}
.tcard h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.08;
}
.tcard p { font-size: 0.85rem; line-height: 1.62; color: rgba(26, 23, 18, 0.76); }
.tcard-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 0.95;
  color: var(--ink);
  margin-top: auto;
}
.tcard-biglabel {
  font-size: 0.68rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(26, 23, 18, 0.58) !important;
}
.stat-inline { color: var(--gold-deep); }

.tcard-dark { background: #1d1915; border-color: transparent; color: var(--bone); }
.tcard-dark h3 { color: var(--bone); }
.tcard-dark p { color: rgba(244, 240, 233, 0.8); }
.tcard-dark .tcard-big { color: var(--gold); }
.tcard-dark .tcard-biglabel { color: rgba(244, 240, 233, 0.6) !important; }

.tcard-gold {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 55%, var(--gold-2));
  border: 0;
  color: var(--ink);
  grid-column: span 2;
}
.tcard-gold p { color: rgba(26, 23, 18, 0.85); max-width: 560px; }
.tcard-gold .btn { margin-top: auto; align-self: flex-start; }
.tcard-gold .tcard-num { color: rgba(26, 23, 18, 0.7); }

.tcard-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-top: auto; }
.tcard-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  color: rgba(244, 240, 233, 0.85);
}
.tcard-list li::before { content: '✳'; position: absolute; left: 0; top: 0.2em; color: var(--gold); font-size: 0.75em; }

.fourplex-svg { width: 100%; max-width: 250px; margin: 0.2rem 0; }
.fourplex-svg .draw {
  stroke: var(--gold-deep);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   PORTFOLIO — clean grid, no pinning
   ============================================================ */

.portfolio { padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem); overflow: clip; }
.portfolio-head { padding: 0 var(--pad); position: relative; z-index: 1; max-width: 1200px; }

.deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.6rem);
  padding: 0 var(--pad);
}
.deck-card { position: relative; margin: 0; }
.deck-card .deck-imgwrap {
  overflow: clip;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px -30px rgba(26, 23, 18, 0.35);
}
.deck-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
  will-change: transform;
}
.deck-card:hover img { transform: scale(1.045); }
.deck-card.deck-contain img { object-fit: contain; background: #fff; }
.deck-card figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0.2rem 0;
}
.deck-card figcaption b {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.4vw, 1.15rem);
  letter-spacing: 0.02em;
}
.deck-card figcaption span {
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   PROCESS
   ============================================================ */

.process { padding: clamp(3.5rem, 9vh, 6rem) var(--pad); overflow: clip; }
.process-head { position: relative; z-index: 1; }

.steps {
  list-style: none;
  position: relative;
  z-index: 1;
  max-width: 1050px;
}
.step {
  display: flex;
  gap: clamp(1.2rem, 3.5vw, 3.2rem);
  align-items: baseline;
  padding: clamp(1rem, 2.4vh, 1.6rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease-out);
}
.step:hover { padding-left: 1rem; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 2.1rem);
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-deep);
  flex-shrink: 0;
  line-height: 1;
}
.step b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  margin-bottom: 0.2rem;
}
.step p { font-size: 0.88rem; color: var(--muted); max-width: 620px; }

/* ============================================================
   STATS + QUOTE
   ============================================================ */

.stats { padding: clamp(3rem, 8vh, 5rem) var(--pad); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.6rem, 4vh, 2.6rem) 0;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--gold-deep);
  margin-bottom: 0.4rem;
}
.stat > span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

.quote { margin: clamp(2.2rem, 6vh, 4rem) auto 0; max-width: 900px; text-align: center; }
.quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.32;
}
.quote cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { padding: clamp(3.5rem, 9vh, 6.5rem) var(--pad) clamp(2.5rem, 6vh, 4rem); overflow: clip; }
.contact-inner { position: relative; z-index: 1; max-width: 1050px; }

.contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: clamp(1rem, 3vh, 1.8rem);
  user-select: none;
}
.ct-line { display: block; overflow: hidden; }
.ct { display: inline-block; will-change: transform; }
.ct-gold { color: var(--gold-deep); }

.contact-lede {
  max-width: 500px;
  color: var(--muted);
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}

.cform { max-width: 740px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); }
.cf-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.4rem; }
.cf-field span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.cf-field input, .cf-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(26, 23, 18, 0.25);
  color: var(--ink);
  font: inherit;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.4s;
  resize: vertical;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: rgba(26, 23, 18, 0.35); }
.cf-field input:focus, .cf-field textarea:focus { border-bottom-color: var(--gold-deep); }

.cf-interest { border: 0; margin-bottom: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cf-interest legend {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.cf-interest label { cursor: pointer; }
.cf-interest input { position: absolute; opacity: 0; pointer-events: none; }
.cf-interest i {
  display: inline-block;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(26, 23, 18, 0.25);
  border-radius: 99px;
  transition: all 0.35s var(--ease-out);
}
.cf-interest input:checked + i {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.cf-interest input:focus-visible + i { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.btn-submit { min-width: 210px; }
.btn-submit .btn-done { display: none; }
.cform.is-done .btn-submit .btn-label { display: none; }
.cform.is-done .btn-submit .btn-done { display: inline; }
.cform.is-done .btn-submit { pointer-events: none; filter: saturate(0.8); }
.cf-note { margin-top: 0.9rem; font-size: 0.8rem; color: var(--gold-deep); min-height: 1.4em; }

/* ============================================================
   FOOTER
   ============================================================ */

.footer { border-top: 1px solid var(--line); }
.footer-marquee { overflow: clip; padding: clamp(0.6rem, 2vh, 1.4rem) 0; }
.footer-marquee .marquee-track {
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(26, 23, 18, 0.16);
  animation-duration: 40s;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding: clamp(1.6rem, 4vh, 2.6rem) var(--pad);
}
.f-col { display: flex; flex-direction: column; gap: 0.45rem; }
.f-col b {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}
.f-col a, .f-col span { font-size: 0.8rem; color: var(--muted); }
.f-col a { transition: color 0.3s; }
.f-col a:hover { color: var(--gold-deep); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem var(--pad) 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  color: rgba(26, 23, 18, 0.5);
}

/* ============================================================
   RESPONSIVE — dense 2/3-col mobile, minimal vertical sprawl
   ============================================================ */

@media (max-width: 1180px) {
  .thesis-track { grid-template-columns: 1fr 1fr; }
  .tcard-gold { grid-column: span 2; }
}

@media (max-width: 1023px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: block; }

  .thesis-track { gap: 0.8rem; }
  .tcard { padding: 1.1rem; border-radius: 14px; gap: 0.55rem; }
  .tcard h3 { font-size: 1.02rem; }
  .tcard p { font-size: 0.76rem; line-height: 1.55; }
  .tcard-big { font-size: 2.1rem; }

  /* paths: two dense columns */
  .paths-split { flex-direction: row; min-height: 0; }
  .path { display: block; }
  .paths-split:hover .path, .paths-split .path:hover { flex: 1; }
  .path-media { position: relative; height: 27vw; }
  .path-media img { opacity: 0.85; transform: none; }
  .path-alt .path-media img { opacity: 0.8; }
  .path-media::after { background: linear-gradient(180deg, transparent 40%, rgba(11,10,9,0.35) 100%); }
  .path { color: var(--ink); background: #fffdf8; border: 1px solid rgba(26,23,18,0.08); border-radius: 14px; overflow: clip; }
  .paths-split { border: 0; gap: 0.8rem; padding: 0 var(--pad); }
  .path-body { padding: 0.95rem; }
  .path-num { font-size: 1.4rem; margin-bottom: 0.25rem; }
  .path h3 { font-size: 1.08rem; }
  .path-tag { font-size: 0.56rem; letter-spacing: 0.15em; margin-bottom: 0.5rem; color: var(--gold-deep); }
  .path-copy { font-size: 0.76rem; margin-bottom: 0.7rem; color: rgba(26,23,18,0.78); }
  .path-list li { font-size: 0.7rem; color: rgba(26,23,18,0.7); }
  .path-list li::before { color: var(--gold-deep); }

  /* portfolio 2-col stays; captions tighten */
  .deck { gap: 0.9rem; }
  .deck-card img { aspect-ratio: 1 / 1; }
  .deck-card figcaption { flex-direction: column; gap: 0.05rem; padding-top: 0.5rem; }
  .deck-card figcaption b { font-size: 0.85rem; }
  .deck-card figcaption span { font-size: 0.56rem; }

  /* process: 2-col compact cards */
  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .step {
    flex-direction: column;
    gap: 0.4rem;
    border: 1px solid rgba(26, 23, 18, 0.1);
    border-radius: 12px;
    padding: 1rem;
    background: #fffdf8;
  }
  .step:hover { padding-left: 1rem; }
  .step:last-child { grid-column: 1 / -1; }
  .step-num { font-size: 1.3rem; }
  .step b { font-size: 0.95rem; }
  .step p { font-size: 0.75rem; }

  /* frame: steps strip */
  .frame-steps {
    right: var(--pad);
    left: var(--pad);
    width: auto;
    bottom: clamp(4rem, 10vh, 6rem);
  }
  .frame-step { padding: 0.85rem 0.95rem; }
  .frame-step b { font-size: 0.82rem; }
  .frame-step p { font-size: 0.72rem; }

  .hero-meta { gap: 1rem; }
  .hero-meta b { font-size: 0.76rem; }
  .hero-meta span { font-size: 0.56rem; }

  .cf-row { gap: 1rem; }
  .footer-grid { gap: 1rem; }
  .f-col a, .f-col span { font-size: 0.7rem; }
  .quote-text { font-size: 1.25rem; }
}

@media (max-width: 520px) {
  .hero-sub { gap: 1rem; }
  .hero-statement { font-size: 1.1rem; }
  .hero-scrollcue { display: none; }
  .stats-grid { gap: 0.6rem; }
  .stat b { font-size: 1.8rem; }
  .stat > span { font-size: 0.52rem; letter-spacing: 0.1em; }
  .ghost-num { font-size: 26vw; }
  .tcard-gold { grid-column: span 2; }

  .manifesto { padding: 2.8rem var(--pad); }
  .manifesto-text { font-size: clamp(1.15rem, 5vw, 1.45rem); }
  .paths { padding-top: 2.6rem; }
  .paths-title, .portfolio-title, .process-title, .thesis-title { margin-bottom: 1.2rem; }
  .thesis-pin { padding: 2.6rem 0 2rem; }
  .thesis-lede { margin-bottom: 1.2rem; }
  .portfolio { padding: 2.6rem 0 2rem; }
  .process { padding: 2.6rem var(--pad); }
  .stats { padding: 2.4rem var(--pad); }
  .quote { margin-top: 2rem; }
  .contact { padding: 3rem var(--pad) 2rem; }
  .footer-grid { padding: 1.4rem var(--pad); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .noise { animation: none; }
  .marquee-track { animation: none; }
}
