/* Papaya Homes site styles (October 29, 2026). Three pages: index.html sells the why, system.html explains the how,
   projects.html holds the case studies.
   Type: Montserrat only, as on the guide site (phdraft): Bold headlines, Medium labels and navigation, Regular body.
   Palette: Papaya Homes brand colors. Chapter animations play once on entry: main.js adds .in to each
   [data-view] chapter when it reaches the screen; nothing is tied to scroll position. */
:root {
  /* Papaya Homes brand colors (brand guide 2024). Brunswick Green is the main dark surface. */
  --night: #0D0D0D;        /* Night */
  --charcoal: #1A574F;     /* Brunswick Green: main dark chapters */
  --charcoal-2: #486C66;   /* BG 80% */
  --green: #1A574F;        /* Brunswick Green */
  --green-deep: #486C66;   /* BG 80%: secondary dark chapters (proof) */
  --stone: #E3E8E7;        /* Silver at low strength over Antiflash White */
  --stone-2: #C3CBC9;      /* Silver */
  --offwhite: #F1F3F4;     /* Antiflash White */
  --steel: #96A5A2;        /* Ash Gray */
  --steel-light: #C3CBC9;  /* Silver */
  --cambridge: #80A6A0;    /* Cambridge Blue: accent */
  --earth: #6E8681;        /* BG 60%: labels and quiet accents */
  --ink: #312B29;          /* Jet */
  --ink-2: #404040;        /* Onyx */
  --line: 49,43,41;        /* hairlines (RGB), flipped to light inside dark chapters */
  --deep: #0F302B;         /* Brunswick Green, deepened: main dark chapters (luxury pass) */
  --deep-2: #111514;       /* Night with a trace of Brunswick: alternating dark chapters */
  --forest: #0A251F;       /* Brunswick at its darkest: replaces Night as a chapter ground (more green, November 2, 2026) */
  --brushed: linear-gradient(100deg, #6f7a79 0%, #e9eded 18%, #8e9a99 34%, #f4f6f6 50%, #9aa5a4 66%, #dfe4e3 82%, #7f8a89 100%);

  --display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --mono: Montserrat, "Helvetica Neue", Arial, sans-serif;   /* small labels: Montserrat Medium, uppercase, tracked */

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --col-gap: clamp(12px, 2vw, 28px);
  --chapter: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-stretch: 100%; font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--offwhite); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 100%; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
a { color: inherit; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 300; background: var(--offwhite); padding: 8px 12px; }
.skip:focus { left: 8px; }
.tbd { background: #FFE066; color: var(--ink); padding: 0 .3em; font-family: var(--sans); font-stretch: 100%; font-weight: 400; font-size: .875rem; letter-spacing: 0; text-transform: none; }

.mono { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; }
.dim { opacity: .6; }
.caption { margin-top: 18px; opacity: .6; }
/* Second half of a headline: same face, quieter tone (replaces the italic of the serif version). */
.soft { color: var(--cambridge); }
.stone .soft, .offwhite .soft { color: var(--earth); }

/* Editorial 12-column grid */
.grid { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; }
.chapter { padding: var(--chapter) 0; position: relative; }
/* The homepage runs tighter between chapters (team, October 30, 2026). */
.home { --chapter: clamp(64px, 6.5vw, 112px); }
.stone { background: var(--stone); }
.offwhite { background: var(--offwhite); }
.charcoal { background: var(--charcoal); color: var(--offwhite); }
.night { background: var(--night); color: var(--offwhite); }
.green { background: var(--green-deep); color: var(--offwhite); }

.label { display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: clamp(28px, 4vw, 56px); }
.label span { color: var(--earth); }
.charcoal .label span, .night .label span, .green .label span { color: var(--steel-light); opacity: .7; }
h2 { font-size: clamp(1.75rem, 4.4vw, 4.25rem); overflow-wrap: break-word; }
.body { font-size: clamp(1rem, 1.2vw, 1.1875rem); line-height: 1.55; max-width: 44ch; color: var(--ink-2); }
.charcoal .body, .night .body, .green .body { color: rgba(244,242,238,.72); }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 80; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 32px; padding: 20px var(--gutter); color: var(--offwhite); transition: background .4s, color .4s, padding .4s; }
/* Solid, not frosted: a backdrop blur is recomputed on every scroll frame. */
.site-header.solid { padding-top: 12px; padding-bottom: 12px; background: var(--offwhite); color: var(--ink); }
.site-header.solid.dark { background: rgba(26,87,79,.82); color: var(--offwhite); }
.logo { width: 168px; color: inherit; }
.logo svg { width: 100%; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 40px; margin-left: auto; margin-right: 12px; }
.nav a { text-decoration: none; font-size: 1.0625rem; font-weight: 500; letter-spacing: .01em; opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 999px; border: 1px solid currentColor; text-decoration: none; font-size: .875rem; font-weight: 500; background: transparent; color: inherit; cursor: pointer; transition: background .3s, color .3s; }
.pill:hover { background: var(--offwhite); color: var(--ink); border-color: var(--offwhite); }
.site-header.solid:not(.dark) .pill:hover { background: var(--ink); color: var(--offwhite); border-color: var(--ink); }
.pill-light { background: var(--offwhite); color: var(--ink); border-color: var(--offwhite); font-size: 1rem; padding: 16px 30px; }
.pill-light:hover { background: transparent; color: var(--offwhite); }
.site-header .pill { white-space: nowrap; }
.menu-btn { display: none; }
@media (max-width: 760px) { .site-header { gap: 12px; } .site-header .pill { margin-left: auto; padding: 8px 12px; font-size: .75rem; } .logo { width: 124px; }
  /* Phones: the nav becomes a drop-down under the header, opened by the three-line button. */
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 0 9px; margin-right: -9px; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .site-header.menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 20px; background: var(--forest); box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); }
  .nav a { padding: 16px 0; font-size: 1.25rem; color: var(--offwhite); border-bottom: 1px solid rgba(241,243,244,.12); }
  .nav a:last-child { border-bottom: 0; }
  .site-header.menu-open, .site-header.solid.dark.menu-open { background: var(--forest); color: var(--offwhite); }
  .site-header.menu-open .nav { display: flex; } }

/* ---------- HERO: the VR2 fly-through under the guide-site hero (phdraft.netlify.app) ---------- */
.hero { position: relative; background: var(--deep); color: var(--offwhite); }
.hero-stage { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* Shade for legibility: darker on the left, where the text sits, and along the bottom. */
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(13,13,13,.82) 0%, rgba(13,13,13,.58) 38%, rgba(13,13,13,.2) 64%, rgba(13,13,13,.06) 82%),
  linear-gradient(180deg, rgba(13,13,13,.5) 0%, rgba(13,13,13,0) 24%, rgba(13,13,13,0) 52%, rgba(13,13,13,.7) 100%); }

.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto; padding: 160px var(--gutter) clamp(72px, 11vh, 120px); }
.hero-label { display: flex; align-items: center; gap: 12px; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.hero-label::before { content: ""; width: 10px; height: 10px; flex: none;
  background: linear-gradient(var(--cambridge), var(--cambridge)) center / 100% 3px no-repeat, linear-gradient(var(--cambridge), var(--cambridge)) center / 3px 100% no-repeat; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 6.5rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; max-width: 12ch; margin-bottom: 26px; text-shadow: 0 2px 28px rgba(13,13,13,.3); }
.hero h1 span { display: block; font-weight: 300; }
.hero-lede { max-width: 72ch; text-wrap: balance; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.6; color: rgba(241,243,244,.94); margin: 0; text-shadow: 0 1px 14px rgba(13,13,13,.35); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 3px; text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s, border-color .25s; }
.btn-solid { background: var(--offwhite); color: var(--green); border: 1px solid var(--offwhite); }
.btn-solid:hover { background: var(--cambridge); border-color: var(--cambridge); color: var(--night); }
.btn-line { border: 1px solid currentColor; color: var(--offwhite); }
.btn-line:hover { background: rgba(128,166,160,.15); }

/* The text rises in on load. */
.hero-inner > * { animation: rise 1s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: .1s; } .hero-inner > :nth-child(3) { animation-delay: .2s; }
.hero-inner > :nth-child(4) { animation-delay: .3s; } .hero-inner > :nth-child(5) { animation-delay: .4s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hero-stage::after { background: linear-gradient(180deg, rgba(13,13,13,.45) 0%, rgba(13,13,13,.25) 24%, rgba(13,13,13,.74) 48%, rgba(13,13,13,.92) 100%); }

  /* Phones: the house is wider than a phone screen, so it sits whole in a 16:10 band under the header and the copy
     follows on forest green, instead of a full-screen crop that showed a quarter of it behind the text. */
  .hero { background: var(--forest); }
  .hero-stage { display: block; min-height: 0; padding-top: 72px; }
  .hero .hero-img { position: relative; inset: auto; display: block; height: auto; aspect-ratio: 16 / 10; }
  .hero-stage::after { top: 72px; bottom: auto; height: 62.5vw; background: linear-gradient(180deg, rgba(10,37,31,0) 62%, rgba(10,37,31,.85) 100%); }
  .hero-inner { padding: 28px var(--gutter) 56px; } }

/* ---------- Shared ---------- */
.wide { grid-column: 1 / span 10; }
@media (max-width: 900px) { .wide { grid-column: 1 / -1; } }
/* Process imagery: Brunswick monochrome, so phone footage reads as one deliberate treatment. */
.duo { filter: grayscale(1) contrast(1.12) brightness(.92); }
.is-duo::before { content: ""; position: absolute; inset: 0; background: var(--green); mix-blend-mode: color; opacity: .42; pointer-events: none; z-index: 1; }
/* Self-advancing frame sequences (engineered viewer, source to site): main.js toggles .on. */
.seq-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.seq-frame.on { opacity: 1; z-index: 1; }

/* ---------- System page 01, the source: copy left, a real globe right, the whole chapter on one screen ---------- */
#source { padding: 0; }
.src-stage { min-height: 100svh; display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: var(--col-gap); align-items: center; max-width: var(--max); margin: 0 auto; padding: 104px var(--gutter) 56px; }
.src-title { font-size: clamp(2rem, 4vw, 4rem); line-height: 1; margin-bottom: 24px; }
.src-body { margin: 0; max-width: 40ch; }
.src-body strong { display: block; margin-top: 14px; color: var(--offwhite); font-weight: 600; }
.src-globe { position: relative; justify-self: center; width: min(100%, calc(100svh - 170px), 720px); aspect-ratio: 1; margin: 0; }
#globe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.g-coord { position: absolute; top: 0; right: 0; margin: 0; white-space: pre; color: var(--cambridge); letter-spacing: .14em; }
.g-caps { position: relative; height: 5.6em; margin-top: clamp(28px, 4vh, 48px); font-size: clamp(1.25rem, 1.9vw, 1.75rem); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; font-family: var(--display); font-size: 1em; line-height: 1.15; letter-spacing: -.02em; color: var(--offwhite); opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .7s var(--ease); }
.g-cap.on { opacity: 1; transform: none; }
.g-cap .mono { display: block; margin-bottom: 10px; color: var(--cambridge); letter-spacing: .14em; }
.g-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(241,243,244,.38); }
.g-rail li { position: relative; padding-top: 10px; border-top: 1px solid rgba(241,243,244,.16); transition: color .4s; }
.g-rail li::before { content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--cambridge); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.g-rail li.on { color: rgba(241,243,244,.72); }
.g-rail li.on::before { transform: scaleX(1); }
.g-rail li.now { color: var(--offwhite); }
.g-note { margin: 18px 0 0; opacity: .45; }
@media (max-width: 900px) { /* Phones: headline and copy, then the globe, then the running caption beneath it. */
  .src-stage { grid-template-columns: 1fr; gap: 0; padding-top: 92px; }
  .src-copy { display: contents; }
  .src-globe { order: 4; width: min(100%, 480px); margin-top: 28px; }
  .src-copy .label { order: 1; } .src-title { order: 2; } .src-body { order: 3; }
  .g-caps { order: 5; margin-top: 20px; } .g-rail { order: 6; } .g-note { order: 7; }
  .g-coord { top: -18px; } }

/* ---------- System page 02, engineered before the site: Victory Ranch viewer ---------- */
.eng { align-items: center; row-gap: 32px; }
.eng-copy { grid-column: 1 / span 4; }
.eng-copy h2 { font-size: clamp(2rem, 3.8vw, 3.75rem); margin-bottom: 24px; }
.eng-copy .body strong { display: block; margin-bottom: 12px; font-weight: 600; }
.eng-viewer { grid-column: 5 / -1; }
.eng-frames { position: relative; aspect-ratio: 1028 / 690; background: #11312d; overflow: hidden; }
.eng-frames img { width: 100%; height: 100%; object-fit: cover; }
/* White lines on Brunswick: the frame is its own stacking context, so it carries the background the drawing blends with. */
.eng-line { background: #1A574F; }
.eng-line img { filter: invert(1) contrast(1.2); mix-blend-mode: screen; }
.eng-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(241,243,244,.2); }
.eng-rail button { position: relative; display: block; width: 100%; padding: 14px 10px 0 0; background: none; border: 0; font: inherit; font-size: .9375rem; font-weight: 500; text-align: left; color: var(--offwhite); cursor: pointer; opacity: .42; transition: opacity .4s; }
.eng-rail button::before { content: ""; position: absolute; top: -1px; left: 0; right: 10px; height: 2px; background: var(--cambridge); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.eng-rail button:hover, .eng-rail button.on { opacity: 1; }
.eng-rail button.on::before { transform: scaleX(1); }
.eng-rail .mono { display: block; color: var(--cambridge); margin-bottom: 4px; }
@media (max-width: 900px) { .eng-copy, .eng-viewer { grid-column: 1 / -1; }
  .eng-rail button { font-size: .75rem; padding-right: 4px; overflow-wrap: anywhere; } }
/* Phones: the five steps in two rows of three, so long names never push past the screen edge. */
@media (max-width: 560px) { .eng-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }

/* ---------- System page 03, built in parallel: two workstreams converging at installation ---------- */
.par-body { grid-column: 1 / span 7; margin: 24px 0 0; }
@media (max-width: 900px) { .par-body { grid-column: 1 / -1; } }
.par { grid-column: 1 / -1; margin: clamp(48px, 6vw, 88px) 0 0; }
.par svg { display: block; width: 100%; height: auto; overflow: visible; }
.par .par-tall { display: none; }
.p-time { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; fill: var(--earth); }
.p-axis { fill: none; stroke: var(--earth); stroke-width: 1; }
.p-lane { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.01em; fill: var(--green); }
.p-lane.site { fill: var(--earth); }
.p-line { fill: none; stroke: var(--green); stroke-width: 3; }
.p-line.site { stroke: var(--earth); }
#parallel.in .p-line { transition: stroke-dashoffset 2.6s linear .3s; }
.p-nodes g { opacity: 0; transition: opacity .4s ease; transition-delay: calc(.55s + var(--d) * .55s); }
.in .p-nodes g { opacity: 1; }
.p-nodes rect { fill: var(--green); }
.p-nodes .site rect { fill: var(--earth); }
.p-nodes text { font-family: var(--sans); font-size: 17px; fill: var(--ink); }
.par-wide .p-nodes text { text-anchor: middle; }
.p-install circle { fill: var(--offwhite); stroke: var(--green); stroke-width: 3; transition: fill .6s ease 3s; }
.in .p-install circle { fill: var(--cambridge); }
.p-install text { font-family: var(--display); font-size: 22px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.p-install, .p-home { opacity: 0; transition: opacity .6s ease 2.9s; }
.p-home { transition-delay: 3.4s; }
.in .p-install, .in .p-home { opacity: 1; }
.p-home path { fill: none; stroke: var(--ink); stroke-width: 2; }
.p-home text { font-family: var(--display); font-size: 28px; font-weight: 600; fill: var(--green); }
@media (max-width: 760px) { .par .par-wide { display: none; }
  .par .par-tall { display: block; max-width: 400px; margin: 0 auto; }
  .par-tall .p-nodes text { font-size: 15px; }
  .par-tall .p-lane { font-size: 22px; } }

/* ---------- System page 04, precision fabrication: fabricated abroad, assembled at home ---------- */
.mfg-title { grid-column: 1 / span 11; font-size: clamp(2rem, 5vw, 5rem); }
.mfg-body { grid-column: 1 / span 7; margin: 28px 0 0; }
.kit { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 140px 1fr; gap: 20px; align-items: stretch; margin-top: clamp(48px, 6vw, 88px); }
.kit-side { display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 32px); background: var(--offwhite); border: 1px solid rgba(var(--line), .16); }
.kit-domestic { background: var(--green); border-color: var(--green); color: var(--offwhite); }
.kit-head { margin: 0; color: var(--earth); }
.kit-head b { display: block; margin-bottom: 6px; font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
.kit-domestic .kit-head { color: var(--cambridge); }
.kit-domestic .kit-head b { color: var(--offwhite); }
.kit-art { display: block; width: 100%; height: clamp(160px, 18vw, 240px); margin: 18px 0 22px; overflow: visible; }
.kit-art .k-edge { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.kit-art .k-face { fill: rgba(26,87,79,.1); stroke: none; }
.kit-domestic .kit-art .k-edge { stroke: var(--offwhite); }
.kit-domestic .kit-art .k-face { fill: rgba(241,243,244,.08); }
.kit-art .k-part { opacity: 0; transform: translateY(-14px); transition: opacity .5s ease, transform .7s var(--ease); transition-delay: calc(var(--d) * .14s + .2s); }
.in .kit-art .k-part { opacity: 1; transform: none; }
.kit-domestic .kit-art { opacity: 0; transition: opacity .9s ease 1.9s; }
.in .kit-domestic .kit-art { opacity: 1; }
.kit-list { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kit-list li { font-size: .8125rem; padding: 6px 10px; border: 1px solid rgba(var(--line), .22); }
.kit-domestic .kit-list li { border-color: rgba(241,243,244,.3); }
.kit-ship { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--earth); }
.kit-ship svg { width: 100%; height: auto; overflow: visible; }
.kit-ship path { fill: none; stroke: var(--green); stroke-width: 2; }
#manufacturing.in .kit-ship path { transition-delay: 1.1s; }
.kit-ship .mono { margin: 0; text-align: center; }
@media (max-width: 900px) { .mfg-title, .mfg-body { grid-column: 1 / -1; }
  .kit { grid-template-columns: 1fr; }
  .kit-ship { flex-direction: row; }
  .kit-ship svg { width: 64px; transform: rotate(90deg); } }

/* ---------- Shared: tags ---------- */
.tag { position: absolute; left: var(--gutter); bottom: 20px; color: var(--offwhite); background: rgba(17,19,18,.55); padding: 5px 9px; }

/* ---------- Final ---------- */
.final { padding-bottom: clamp(80px, 10vw, 140px); }
.final-title { grid-column: 1 / -1; font-size: clamp(2.25rem, 9vw, 9rem); line-height: .98; letter-spacing: -.035em; font-weight: 500; background: var(--brushed); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; margin-top: clamp(40px, 5vw, 72px); }
.final-row .mono { margin: 0; line-height: 1.9; }
.final-row a { text-decoration: none; }
.form { grid-column: 1 / span 8; margin-top: clamp(72px, 9vw, 120px); padding-top: 28px; border-top: 1px solid rgba(244,242,238,.2); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.form label { display: block; font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244,242,238,.6); margin-bottom: 22px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 8px; font: inherit; font-family: var(--sans); font-size: 1.0625rem; letter-spacing: 0; text-transform: none; color: var(--offwhite); background: transparent; border: 0; border-bottom: 1px solid rgba(244,242,238,.3); border-radius: 0; padding: 8px 0; }
.form select option { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--offwhite); }
.form-note { margin-top: 16px; background: #FFE066; color: var(--ink); padding: 10px 12px; font-size: .875rem; }
@media (max-width: 900px) { .form { grid-column: 1 / -1; } }
@media (max-width: 560px) { .f-row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Projects page ---------- */
.page-head { padding-top: clamp(112px, 9vw, 148px); padding-bottom: clamp(28px, 3vw, 44px); }
.page-title { font-size: clamp(2.25rem, 7.4vw, 7.5rem); line-height: 1; letter-spacing: -.035em; font-weight: 500; background: var(--brushed); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.case { background: var(--offwhite); padding-bottom: var(--chapter); }
.case-media { position: relative; height: clamp(420px, 86vh, 920px); overflow: hidden; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; }
.case-body { margin-top: 40px; row-gap: 24px; align-items: start; }
.case-title { grid-column: 1 / span 4; }
.case-title h2 { font-size: clamp(2rem, 4vw, 3.75rem); margin: 10px 0 6px; }
.case-loc { color: var(--ink-2); }
.case-text { grid-column: 5 / span 4; font-size: 1.0625rem; color: var(--ink-2); }
.case-data { grid-column: 9 / -1; grid-row: 1 / span 2; margin: 0; border-top: 1px solid rgba(var(--line), .18); }
.case-film { grid-column: 1 / span 8; grid-row: 2; margin: clamp(8px, 1.5vw, 24px) 0 0; }
.case-film figcaption { margin-top: 10px; opacity: .6; }
@media (max-width: 900px) { .case-data, .case-film { grid-column: 1 / -1; grid-row: auto; } }
.case-data div { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 0; border-bottom: 1px solid rgba(var(--line), .18); font-size: .9375rem; }
.case-data dt { color: var(--earth); padding-top: 3px; }
.case-data dd { margin: 0; }
.case-strip { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }
.case-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-strip figcaption { margin-top: 10px; opacity: .6; }
.film-row { display: grid; grid-template-columns: 1fr 2fr; gap: var(--col-gap); align-items: end; margin-top: clamp(72px, 9vw, 128px); }
.film-title { font-size: clamp(1.75rem, 3vw, 3rem); margin: 10px 0 14px; }
.film { width: 100%; aspect-ratio: 16 / 9; background: var(--night); }

@media (max-width: 900px) { .case-title, .case-text, .case-data { grid-column: 1 / -1; }
  .case-strip { grid-template-columns: 1fr 1fr; }
  .film-row { grid-template-columns: 1fr; } }

/* Fabrication (projects page) */
.fab { row-gap: clamp(32px, 4vw, 56px); align-items: start; }
.fab-head { grid-column: 1 / span 5; }
.fab-head h2 { font-size: clamp(2rem, 4vw, 4rem); }
.fab-media { grid-column: 6 / -1; grid-row: 1 / span 2; position: relative; }
.fab-media video { width: 100%; aspect-ratio: 1028 / 720; object-fit: cover; background: var(--charcoal-2); }
.fab-media figcaption, .fab-still figcaption { margin-top: 12px; opacity: .55; }
.fab-specs { grid-column: 1 / span 4; margin: 0; border-top: 1px solid rgba(244,242,238,.16); }
.fab-specs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(244,242,238,.16); }
.fab-specs dt { opacity: .55; padding-top: 3px; }
.fab-specs dd { margin: 0; font-size: .9375rem; }
.fab-still { grid-column: 9 / -1; margin-top: clamp(24px, 4vw, 64px); }
.fab-still img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .fab-head, .fab-media, .fab-specs, .fab-still { grid-column: 1 / -1; grid-row: auto; }
  .fab-still { transform: none; margin-top: 0; } }

/* From factory to landscape (projects page) */
#journey { padding: 0; }
.journey-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); }
.journey-track { display: flex; height: 100%; width: 500vw; transform: translateX(calc(var(--i, 0) * -100vw)); transition: transform 1.3s cubic-bezier(.65,0,.35,1); will-change: transform; }
.leg { position: relative; flex: 0 0 100vw; height: 100%; overflow: hidden; }
.leg video, .leg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.leg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,18,.55) 0%, rgba(17,19,18,0) 30%, rgba(17,19,18,0) 50%, rgba(17,19,18,.8) 100%); }
.leg-copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(56px, 10vh, 110px); max-width: 720px; }
.leg-copy h3 { font-size: clamp(2rem, 5vw, 5rem); line-height: 1; margin: 12px 0 16px; font-weight: 500; letter-spacing: -.03em; }
.leg-copy p:last-child { font-size: 1.0625rem; color: rgba(244,242,238,.82); max-width: 40ch; margin: 0; }
.journey-head { position: absolute; z-index: 5; top: 92px; left: var(--gutter); right: var(--gutter); display: grid; grid-template-columns: auto 1fr; gap: 12px 32px; align-items: center; }
.journey-head .label { margin: 0; }
.journey-index { display: flex; justify-content: flex-end; gap: clamp(12px, 2.4vw, 36px); }
.journey-index button { font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 4px 0; color: var(--offwhite); opacity: .45; cursor: pointer; transition: opacity .4s; }
.journey-index button:hover, .journey-index button.on { opacity: 1; }
.journey-bar { grid-column: 1 / -1; height: 1px; background: rgba(241,243,244,.25); }
.journey-bar span { display: block; height: 100%; width: 0; background: var(--cambridge); }
.journey-bar span.run { width: 100%; transition: width var(--leg-ms, 5000ms) linear; }
@media (max-width: 760px) { .journey-index { display: none; } .journey-head { grid-template-columns: 1fr; top: 80px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--offwhite); padding: 48px 0 72px; }
.foot { align-items: center; row-gap: 16px; }
.foot-logo { grid-column: 1 / span 2; width: 120px; }
.foot p { margin: 0; opacity: .7; }
.foot p:nth-of-type(1) { grid-column: 4 / span 3; }
.foot p:nth-of-type(2) { grid-column: 7 / span 4; }
.foot p:nth-of-type(3) { grid-column: 11 / -1; text-align: right; }
.foot a { text-decoration: none; }
@media (max-width: 900px) { .foot > * { grid-column: 1 / -1 !important; text-align: left !important; } }

/* ---------- Draw-on lines: any path with pathLength="1" inside a chapter draws itself when the chapter enters ---------- */
[data-view] path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
[data-view].in path[pathLength] { stroke-dashoffset: 0; }

/* Method drawings (projects page mini case studies) */
.method-art { width: 100%; max-width: 280px; height: auto; display: block; margin-bottom: 22px; fill: none; stroke: var(--green); stroke-width: 1.4; }
.method-art .thin { stroke-width: .8; opacity: .55; }

/* ---------- System page 05, from source to site: quick factory and road frames in monochrome, the crane set in color ---------- */
#s2s { padding: 0; }
/* clip, not hidden: the scaled photos would otherwise let a focused button scroll the stage sideways */
.s2s-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; overflow: clip; background: var(--night); }
.s2s-frame { transition-duration: .55s; }
.s2s-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s2s-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,13,13,.6) 0%, rgba(13,13,13,0) 30%, rgba(13,13,13,0) 45%, rgba(13,13,13,.85) 100%); }
.s2s-copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 11vh, 120px); max-width: 820px; opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .6s var(--ease); }
.s2s-frame.on .s2s-copy { opacity: 1; transform: none; transition-delay: .2s; }
.s2s-copy .mono { color: var(--cambridge); margin: 0; }
.s2s-copy h3 { font-size: clamp(2.25rem, 6vw, 6rem); line-height: 1; letter-spacing: -.035em; margin: 14px 0 16px; color: var(--offwhite); }
.s2s-copy p:last-child { font-size: clamp(1rem, 1.3vw, 1.1875rem); color: rgba(241,243,244,.82); max-width: 44ch; margin: 0; }
.s2s-cap { position: absolute; z-index: 2; right: var(--gutter); bottom: 24px; color: rgba(241,243,244,.7); }
.s2s-head { color: var(--offwhite); }
@media (max-width: 760px) { .s2s-cap { left: var(--gutter); right: auto; bottom: 16px; } .s2s-copy { bottom: 64px; } }

/* Closing line under "Bring us the opportunity." */
.final-line { grid-column: 1 / span 9; margin: clamp(20px, 2.4vw, 32px) 0 0; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.2; letter-spacing: -.015em; }
@media (max-width: 900px) { .final-line { grid-column: 1 / -1; } }
/* ---------- Projects: delivery breakdown and mini case studies ---------- */
.delivery { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); }
/* On site: real drone footage of the Victory Ranch set. A wide loop, then three stills in a row. Photos only fade in. */
.onsite { margin-top: clamp(72px, 9vw, 128px); row-gap: clamp(20px, 2.4vw, 32px); }
.onsite-head { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
.onsite-head .delivery-head { grid-column: 1 / -1; margin: 0; }
.onsite-title { grid-column: 1 / span 7; margin: 10px 0 0; font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.05; }
.onsite-text { grid-column: 9 / -1; margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.onsite-loop { grid-column: 1 / -1; margin: 0; overflow: hidden; border-radius: 2px; background: var(--deep-2); }
.onsite-loop video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.onsite-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.onsite-strip figure { margin: 0; }
.onsite-strip img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; background: var(--deep-2); }
.onsite-strip figcaption { margin-top: 10px; opacity: .6; }
.onsite-note { grid-column: 1 / -1; margin: 0; opacity: .5; }
.onsite-loop, .onsite-strip figure { opacity: 0; transition: opacity 1s ease; }
.onsite.in .onsite-loop, .onsite.in .onsite-strip figure { opacity: 1; }
.onsite.in .onsite-strip figure:nth-child(2) { transition-delay: .15s; }
.onsite.in .onsite-strip figure:nth-child(3) { transition-delay: .3s; }
@media (max-width: 900px) { .onsite-title, .onsite-text { grid-column: 1 / -1; } .onsite-text { margin-top: 12px; } }
@media (max-width: 760px) { .onsite-strip { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .onsite-loop, .onsite-strip figure { opacity: 1; transition: none; } }
.delivery-head { color: var(--earth); margin-bottom: 14px; }
.delivery-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); column-gap: var(--col-gap); border-top: 1px solid rgba(var(--line), .2); }
.delivery-steps li { padding-top: 16px; position: relative; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease); }
.delivery-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--green); }
.delivery-steps li .mono { color: var(--green); }
.delivery-steps li p { margin: 8px 0 0; font-size: .9375rem; color: var(--ink-2); }
.in .delivery-steps li { opacity: 1; transform: none; }
.in .delivery-steps li:nth-child(2) { transition-delay: .15s; } .in .delivery-steps li:nth-child(3) { transition-delay: .3s; }
.in .delivery-steps li:nth-child(4) { transition-delay: .45s; } .in .delivery-steps li:nth-child(5) { transition-delay: .6s; }
.cases { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); margin-top: clamp(40px, 5vw, 72px); }
.mini-case { border-top: 1px solid rgba(var(--line), .2); padding-top: 26px; }
.mini-case .mono:first-of-type { color: var(--earth); }
.mini-case h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); margin: 8px 0 4px; }
.mini-case > p:not(.mono):not(.case-loc) { color: var(--ink-2); font-size: .9375rem; }
.mini-data { margin: 18px 0 0; border-top: 1px solid rgba(var(--line), .14); }
.mini-data div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(var(--line), .14); font-size: .875rem; }
.mini-data dt { color: var(--earth); padding-top: 2px; }
.mini-data dd { margin: 0; }
@media (max-width: 1000px) { .delivery-steps { grid-template-columns: 1fr 1fr; row-gap: 22px; } }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .delivery-steps { grid-template-columns: 1fr; } }
/* ---------- Homepage (simplified, October 29, 2026): the why on the homepage, the how on system.html ---------- */
/* Hero: the one rhetorical question, between the headline and the lede. */
.hero-q { font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; color: var(--cambridge); margin: -6px 0 18px; }

@keyframes why-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 01 Why Papaya (cards): five large light cards on Brunswick Green, after the papaya.homes approach cards. Hover on
   desktop, or tap (main.js toggles .open), reveals the supporting line inside the card; card heights are fixed so the
   row never jumps. Below about 1180px the row scrolls sideways with snap. Then the engineered-to-realized split. */
.vcards { grid-column: 1 / -1; list-style: none; margin: clamp(44px, 5vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.vcard { position: relative; display: flex; flex-direction: column; min-height: 420px; padding: 34px 26px 26px; background: var(--offwhite); color: #312B29; border-radius: 3px;
  box-shadow: 0 1px 0 rgba(13,13,13,.06), 0 24px 48px -28px rgba(13,13,13,.55); opacity: 0; transform: translateY(18px);
  transition: opacity .8s ease calc(var(--i) * .1s), transform .9s var(--ease) calc(var(--i) * .1s), box-shadow .4s ease; }
.in .vcard { opacity: 1; transform: none; }
.vcard-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; width: 100%; padding: 0; font: inherit; text-align: left; color: inherit; background: none; border: 0; cursor: pointer; }
.vcard-icon { width: 52px; height: 52px; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vcard-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.125rem, 1.35vw, 1.375rem); line-height: 1.2; letter-spacing: -.01em; }
.vcard-chev { position: absolute; left: 26px; bottom: 26px; width: 34px; height: 34px; border: 1px solid rgba(26,87,79,.35); border-radius: 50%; transition: background .3s, border-color .3s; }
.vcard-chev::after { content: ""; position: absolute; left: 50%; top: 45%; width: 8px; height: 8px; border-right: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: translate(-50%, -50%) rotate(45deg); transition: transform .35s var(--ease); }
.vcard-copy { margin: 18px 0 0; font-size: .9375rem; line-height: 1.55; color: #404040; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .5s var(--ease); }
.vcard.open .vcard-copy { opacity: 1; transform: none; }
.vcard.open .vcard-chev { background: var(--green); border-color: var(--green); }
.vcard.open .vcard-chev::after { border-color: var(--offwhite); transform: translate(-50%, -20%) rotate(225deg); }
@media (hover: hover) and (min-width: 1181px) { .vcard:hover { box-shadow: 0 1px 0 rgba(13,13,13,.06), 0 34px 60px -26px rgba(13,13,13,.7); }
  .vcard:hover .vcard-copy { opacity: 1; transform: none; }
  .vcard:hover .vcard-chev { background: var(--green); border-color: var(--green); }
  .vcard:hover .vcard-chev::after { border-color: var(--offwhite); transform: translate(-50%, -20%) rotate(225deg); } }
@media (max-width: 1180px) { .vcards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); padding-bottom: 8px; scrollbar-width: none; }
  .vcards::-webkit-scrollbar { display: none; }
  .vcard { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; min-height: 380px; } }
/* Engineered to realized: a drag-to-compare divider. The component model sits over the rendering and is clipped at --pos
   (set by main.js from the pointer or the arrow keys). Vertical page scrolling still works on touch (pan-y). */
.er { position: relative; margin-top: clamp(64px, 7vw, 104px); height: clamp(380px, 74vh, 820px); overflow: hidden; background: #0a1716; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.er-real, .er-eng, .er-eng img { position: absolute; inset: 0; width: 100%; height: 100%; }
.er-real { object-fit: cover; }
.er-eng { clip-path: inset(0 calc(100% - var(--pos)) 0 0); background: var(--deep); }   /* the drawing's own background */
.er-eng img { object-fit: cover; }   /* same framing as the photo below, so they line up */
.er.hint .er-eng { transition: clip-path 1.6s var(--ease); }
.er.hint .er-handle { transition: left 1.6s var(--ease); }
.er-tag { position: absolute; z-index: 2; top: clamp(18px, 2.6vw, 34px); margin: 0; display: flex; flex-direction: column; gap: 6px; color: var(--offwhite); pointer-events: none; text-shadow: 0 1px 12px rgba(13,13,13,.5); }
.er-tag-l { left: clamp(16px, 2.6vw, 34px); }
.er-tag-r { right: clamp(16px, 2.6vw, 34px); text-align: right; }
.er-tag .mono { font-size: .8125rem; letter-spacing: .2em; }
.er-note { font-size: .75rem; opacity: .75; }
.er-handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 0; outline: none; }
.er-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--offwhite); box-shadow: 0 0 18px rgba(13,13,13,.45); }
.er-handle span { position: absolute; left: 0; top: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--offwhite); box-shadow: 0 10px 30px rgba(13,13,13,.45); transition: transform .3s var(--ease); }
.er-handle span::before, .er-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--green); border-left: 1.5px solid var(--green); }
.er-handle span::before { left: 16px; transform: translateY(-50%) rotate(-45deg); }
.er-handle span::after { right: 16px; transform: translateY(-50%) rotate(135deg); }
.er.dragging .er-handle span, .er-handle:focus-visible span { transform: translate(-50%, -50%) scale(1.1); }
.er-handle:focus-visible span { box-shadow: 0 0 0 3px var(--cambridge), 0 10px 30px rgba(13,13,13,.45); }
@media (max-width: 760px) { .er { height: 110vw; max-height: 620px; }

  .er-note { display: none; }
  .er-handle span { width: 48px; height: 48px; }
  .er-handle span::before { left: 13px; } .er-handle span::after { right: 13px; } }
/* 02 Traditional vs Papaya: the commercial outcome as headline proof. Four large claims on hairlines, one line, then one
   timeline on a 24-month scale. Positions come from --s and --e (months); both rows draw at the same pace. */
.claims { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid rgba(var(--line), .16); }
.claims div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 18px; padding: clamp(32px, 4vw, 56px) clamp(16px, 3vw, 48px) clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid rgba(var(--line), .16);
  opacity: 0; transform: translateY(16px); transition: opacity .8s ease calc(var(--i) * .12s), transform .9s var(--ease) calc(var(--i) * .12s); }
.claims div:nth-child(even) { padding-left: clamp(16px, 3vw, 48px); border-left: 1px solid rgba(var(--line), .16); }
.in .claims div { opacity: 1; transform: none; }
.claims dt { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.claims .is-papaya dt { color: var(--cambridge); }
.claims dd { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(3.5rem, 9vw, 9rem); line-height: .92; letter-spacing: -.035em; white-space: nowrap; color: var(--steel-light); }
.claims .is-papaya dd { color: var(--offwhite); font-weight: 500; }
.claims dd small { font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-left: 14px; opacity: .7; vertical-align: .35em; }
.claims dd small.pre { display: block; margin: 0 0 10px; vertical-align: 0; }
.claims-line { grid-column: 1 / span 10; margin: clamp(48px, 6vw, 88px) 0 0; font-size: clamp(1.5rem, 3vw, 2.75rem); line-height: 1.15; }
.cmp { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); --name: 200px; --end: 130px; }
.cmp-axis, .cmp-row { display: grid; grid-template-columns: var(--name) minmax(0, 1fr) var(--end); column-gap: 28px; }
.cmp-axis { position: relative; height: 20px; margin-bottom: 14px; }
.cmp-axis span { position: absolute; bottom: 0; left: calc(var(--name) + 28px + (100% - var(--name) - var(--end) - 56px) * var(--m) / 24); padding-left: 8px; border-left: 1px solid rgba(var(--line), .3); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.cmp-row { align-items: center; padding: 22px 0; }
.cmp-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--ink-2); }
.cmp-new .cmp-name { color: var(--cambridge); }
.cmp-track { position: relative; list-style: none; margin: 0; padding: 0; height: 8px; }
.cmp-new .cmp-track { height: 22px; }
.cmp-track li { position: absolute; top: 0; height: 8px; left: calc(var(--s) / 24 * 100%); width: calc((var(--e) - var(--s)) / 24 * 100% - 3px); background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease) calc(var(--i) * .3s + .4s); }
.cmp-track li.lane-a { background: var(--cambridge); }
.cmp-track li.lane-b { top: 14px; background: var(--offwhite); }
.cmp-track li.cmp-range { background: repeating-linear-gradient(135deg, rgba(var(--line), .45) 0 2px, transparent 2px 6px); }
.cmp-track li.lane-b.cmp-range { background: repeating-linear-gradient(135deg, rgba(128,166,160,.8) 0 2px, transparent 2px 6px); }
.in .cmp-track li { transform: none; }
.cmp-end { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 1.8vw, 1.625rem); white-space: nowrap; color: var(--steel-light); opacity: 0; transition: opacity .6s ease 2.8s; }
.cmp-new .cmp-end { color: var(--offwhite); font-weight: 600; transition-delay: 1.7s; }
.in .cmp-end { opacity: 1; }
.cmp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 0 calc(var(--name) + 28px); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cmp-legend span { width: 18px; height: 6px; margin-left: 12px; }
.cmp-legend span:first-child { margin-left: 0; }
.k-a { background: var(--cambridge); } .k-b { background: var(--offwhite); }
.k-r { background: repeating-linear-gradient(135deg, rgba(128,166,160,.8) 0 2px, transparent 2px 5px); }
@media (max-width: 760px) { .claims { grid-template-columns: 1fr; }
  .claims div, .claims div:nth-child(even) { padding: 28px 0; border-left: 0; }
  .claims dd { font-size: clamp(3.25rem, 17vw, 5rem); }
  .claims-line { grid-column: 1 / -1; }
  .cmp { --name: 0px; --end: 0px; }
  .cmp-axis { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .cmp-axis span { left: calc(100% * var(--m) / 24); }
  .cmp-axis span:last-child { transform: translateX(-100%); padding: 0 8px 0 0; border-left: 0; border-right: 1px solid rgba(var(--line), .3); }
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; column-gap: 16px; }
  .cmp-name { grid-column: 1; grid-row: 1; }
  .cmp-end { grid-column: 2; grid-row: 1; text-align: right; }
  .cmp-track { grid-column: 1 / -1; grid-row: 2; }
  .cmp-legend { margin-left: 0; } }

/* 03 Victory Ranch 1: the homepage centerpiece. Editorial opening, three tabs with a sliding underline (main.js moves
   .cs-ink), full-bleed imagery. Panels fade up as they open. */
.cs { padding-bottom: 0; }
.cs-head { align-items: end; }
.cs-title { grid-column: 1 / -1; font-size: clamp(2.75rem, 8vw, 8rem); line-height: .95; letter-spacing: -.02em; }
.cs-sub { grid-column: 1 / span 8; margin: clamp(16px, 2vw, 26px) 0 0; font-family: var(--display); font-size: clamp(1.375rem, 2.6vw, 2.375rem); font-weight: 300; line-height: 1.2; }
.cs-sub .soft { font-weight: 500; }
.cs-tabs { grid-column: 1 / -1; position: relative; display: flex; gap: clamp(24px, 4vw, 56px); margin: clamp(44px, 5vw, 72px) 0 clamp(28px, 3vw, 44px); border-bottom: 1px solid rgba(241,243,244,.14); }
.cs-tabs button { font: inherit; font-size: .8125rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--offwhite); background: none; border: 0; padding: 0 0 18px; cursor: pointer; opacity: .45; transition: opacity .35s; }
.cs-tabs button:hover, .cs-tabs button[aria-selected="true"] { opacity: 1; }
.cs-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--cambridge); transition: transform .55s var(--ease), width .55s var(--ease); }
.cs-panel:not([hidden]) { animation: cs-in .8s var(--ease) both; }
@keyframes cs-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cs figure { position: relative; margin: 0; overflow: hidden; }
.cs figure img { width: 100%; height: 100%; object-fit: cover; }
.cs figcaption.mono { position: absolute; left: 16px; bottom: 16px; padding: 5px 9px; color: var(--offwhite); background: rgba(13,13,13,.45); }
/* The Home */
.cs-lead { height: clamp(420px, 84vh, 980px); }
.cs-meta { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(32px, 4vw, 56px); align-items: baseline; row-gap: 20px; }
.cs-facts { grid-column: 1 / span 5; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(241,243,244,.7); }
.cs-facts li:not(:last-child)::after { content: "·"; margin: 0 .8em; color: var(--cambridge); }
.cs-line { grid-column: 6 / -1; margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 300; line-height: 1.25; }
.cs-line .soft { font-weight: 500; }
.cs-gallery { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: clamp(220px, 34vh, 400px) clamp(220px, 34vh, 400px); gap: 6px; }
.cs-gallery .g-wide { grid-row: 1 / span 2; }
/* Delivery */
.cs-seq { position: relative; }
.cs .cs-seq .seq-frame { position: absolute; top: 0; left: 0; right: 0; height: clamp(420px, 80vh, 920px); }
.cs-seq::before { content: ""; display: block; height: clamp(420px, 80vh, 920px); background: var(--night); }
.cs-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,13,13,0) 45%, rgba(13,13,13,.82) 100%); }
.cs-cap { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 7vh, 80px); opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .6s var(--ease); }
.cs-frame.on .cs-cap { opacity: 1; transform: none; transition-delay: .2s; }
.cs-cap .mono { color: var(--cambridge); margin: 0 0 12px; }
.cs-cap h3 { font-size: clamp(2rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -.02em; color: var(--offwhite); }
.cs-seq-nav { padding-top: 22px; padding-bottom: clamp(56px, 7vw, 96px); row-gap: 14px; }
.cs-steps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 3vw, 40px); }
.cs-steps button { font: inherit; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--offwhite); background: none; border: 0; padding: 4px 0; cursor: pointer; opacity: .4; transition: opacity .35s; }
.cs-steps button:hover, .cs-steps button.on { opacity: 1; }
/* Proof */
.cs-nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 clamp(44px, 5vw, 72px); }
.cs-nums div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 16px; padding: 8px 24px 0 0; }
.cs-nums div + div { padding-left: 24px; border-left: 1px solid rgba(241,243,244,.14); }
.cs-nums dt { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cambridge); }
.cs-nums dd { margin: 0; font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 7.4vw, 7.5rem); line-height: .92; letter-spacing: -.035em; white-space: nowrap; }
.cs-nums small { font-family: var(--sans); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-left: 12px; opacity: .7; }
.cs-nums sup { font-size: .45em; vertical-align: top; }

.cs-more { display: inline-block; margin-top: 28px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--offwhite); border-bottom: 1px solid var(--cambridge); padding-bottom: 4px; }
.cs-more:hover { color: var(--cambridge); }
@media (max-width: 900px) { .cs-facts, .cs-line { grid-column: 1 / -1; }
  .cs-sub { grid-column: 1 / -1; } }
@media (max-width: 760px) { .cs-gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .cs-gallery figure { height: 62vw; }
  .cs-gallery .g-wide { grid-row: auto; height: 80vw; }
  .cs-lead { height: 120vw; max-height: 640px; }
  .cs .cs-seq .seq-frame, .cs-seq::before { height: 120vw; max-height: 640px; }
  .cs-nums { grid-template-columns: 1fr; row-gap: 28px; }
  .cs-nums div + div { padding-left: 0; border-left: 0; }
  
  .cs-tabs { gap: 22px; }
  .cs-tabs button { font-size: .75rem; letter-spacing: .14em; } }
/* 04 The system teaser */
.sys { overflow: hidden; }
.sys::after { content: ""; position: absolute; inset: 0 0 0 auto; width: min(58%, 900px); background: url(../img/photos/homes-victory-ranch-front-line.webp) center / cover no-repeat; filter: invert(1); mix-blend-mode: screen; opacity: .16; pointer-events: none; }
.sys .grid { position: relative; z-index: 1; }
.sys-list { grid-column: 1 / -1; list-style: none; margin: clamp(36px, 4vw, 56px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font-family: var(--display); font-size: clamp(1.25rem, 2.4vw, 2.25rem); letter-spacing: -.02em; }
.sys-list li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s var(--ease); }
.sys-list li:not(:last-child)::after { content: "·"; margin: 0 .5em; color: var(--cambridge); }
.in .sys-list li { opacity: 1; transform: none; }
.in .sys-list li:nth-child(2) { transition-delay: .12s; } .in .sys-list li:nth-child(3) { transition-delay: .24s; }
.in .sys-list li:nth-child(4) { transition-delay: .36s; } .in .sys-list li:nth-child(5) { transition-delay: .48s; }
.sys-go { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(40px, 5vw, 72px); }
.sys-go p { margin: 0; font-size: 1.0625rem; color: rgba(241,243,244,.75); }
@media (max-width: 760px) { .sys::after { width: 100%; opacity: .09; } .sys-list { flex-direction: column; } .sys-list li::after { display: none; } }

/* System page: one line under the title */
.page-lede { grid-column: 1 / span 8; margin: clamp(24px, 3vw, 40px) 0 0; font-family: var(--display); font-size: clamp(1.125rem, 1.8vw, 1.625rem); line-height: 1.3; letter-spacing: -.01em; color: rgba(241,243,244,.8); }
@media (max-width: 900px) { .page-lede { grid-column: 1 / -1; } }

/* ---------- Typeface: Montserrat, set as on the guide site (phdraft): headlines Bold with light tracking,
   small labels Medium, uppercase and tracked. Montserrat runs wider than Archivo, so the largest sizes step down. ---------- */
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.8vw, 3.75rem); }
.mono { font-weight: 500; letter-spacing: .12em; }
.label { font-weight: 500; letter-spacing: .16em; }

.final-title { font-size: clamp(1.625rem, 4.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.015em; font-weight: 700; }
.final-title { white-space: nowrap; }
@media (max-width: 760px) { .final-title { font-size: 5vw; } }
.page-title { font-size: clamp(2rem, 4.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.015em; font-weight: 700; }

.s2s-copy h3 { font-size: clamp(2rem, 5vw, 5rem); letter-spacing: -.015em; }
.leg-copy h3 { font-size: clamp(1.75rem, 4.2vw, 4.25rem); font-weight: 700; letter-spacing: -.015em; }
.src-title { letter-spacing: -.01em; }

.hero-q { font-weight: 600; letter-spacing: -.005em; text-shadow: 0 1px 18px rgba(13,13,13,.35); }
.g-cap, .sys-list, .final-line, .page-lede { letter-spacing: -.005em; }
.sys-list { font-weight: 500; }

/* ---------- Luxury dark pass (October 29, 2026): every chapter is dark. The former light chapters become Night and a
   deep near-black; Brunswick chapters deepen. Text, hairlines and quiet accents flip through the variables below. ---------- */
body { background: var(--night); color: var(--offwhite); }
.stone { background: var(--deep-2); }
.offwhite, .case { background: var(--night); }
.stone, .offwhite, .case { color: var(--offwhite); --ink: #F1F3F4; --ink-2: rgba(241,243,244,.68); --earth: #80A6A0; --line: 241,243,244; }
.charcoal { background: var(--deep); }
.green { background: var(--green); }
.chapter + .chapter, .case + .chapter, .chapter + .case { box-shadow: inset 0 1px 0 rgba(241,243,244,.07); }
.tbd, .form-note { color: #312B29; }
.site-header.solid, .site-header.solid.dark { background: var(--night); color: var(--offwhite); }
.site-header.solid:not(.dark) .pill:hover { background: var(--offwhite); color: var(--night); border-color: var(--offwhite); }
/* Brunswick marks would vanish on near-black: diagrams switch to Cambridge Blue and Ash. */
.p-lane, .p-home text { fill: var(--cambridge); }
.p-line { stroke: var(--cambridge); }
.p-nodes rect { fill: var(--cambridge); stroke: none; }
.p-lane.site, .p-nodes .site rect { fill: var(--steel); }
.p-line.site { stroke: var(--steel); }
.p-install circle { fill: var(--night); stroke: var(--cambridge); }
.kit-side { background: rgba(241,243,244,.035); }
.kit-art .k-face { fill: rgba(128,166,160,.12); }
.kit-ship path { stroke: var(--cambridge); }
.method-art { stroke: var(--cambridge); }
.delivery-steps li::before { background: var(--cambridge); }
.delivery-steps li .mono { color: var(--cambridge); }

/* ---------- Refinement pass (October 29, 2026): more expensive cards, dominant claims, the architectural pause ---------- */
/* Why Papaya cards: taller, more air, a quieter icon, a hairline number. */
.vcards { gap: 18px; margin-top: clamp(56px, 6vw, 88px); counter-reset: vcard; }
.vcard { min-height: 510px; padding: 44px 32px 32px; border-radius: 2px; counter-increment: vcard; }
.vcard::before { content: "0" counter(vcard); position: absolute; top: 40px; right: 32px; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; color: var(--earth); }
.vcard-btn { gap: 40px; }
.vcard-icon { width: 40px; height: 40px; stroke-width: 1.25; }
.vcard-title { font-size: clamp(1.25rem, 1.55vw, 1.5rem); font-weight: 600; line-height: 1.18; letter-spacing: -.015em; max-width: 10ch; }
.vcard-copy { margin-top: 22px; font-size: .9375rem; line-height: 1.6; color: #4a4a4a; }
.vcard-chev { left: 32px; bottom: 32px; }
.vcard::after { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 2px; background: var(--cambridge); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.vcard.open::after { transform: none; }
@media (hover: hover) and (min-width: 1181px) { .vcard:hover::after { transform: none; } }
@media (max-width: 1180px) { .vcard { min-height: 420px; } }

/* Claims: the numbers dominate; the line and the timeline step back. */
.claims div { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); gap: 22px; }
.claims dd { font-size: clamp(4rem, 11vw, 11rem); letter-spacing: -.045em; }
.claims dt { font-size: .6875rem; letter-spacing: .2em; }
.claims-line { margin-top: clamp(56px, 7vw, 104px); font-size: clamp(1.25rem, 2.2vw, 2rem); font-weight: 500; line-height: 1.25; }
.cmp { margin-top: clamp(40px, 5vw, 64px); opacity: .82; }
.cmp-name { font-size: .875rem; font-weight: 500; }
.cmp-end { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.cmp-track li { height: 6px; }
.cmp-track li.lane-b { top: 12px; }
.cmp-new .cmp-track { height: 18px; }
@media (max-width: 760px) { .claims dd { font-size: clamp(3.5rem, 19vw, 5.5rem); } }

/* Section 2 sits over the Lake Tahoe terrace rendering (deck image 166), under a deep Brunswick wash so the
   headline and the light cards stay legible. Still: no zoom or pan. */
.why2 { background: linear-gradient(180deg, rgba(15,48,43,.88) 0%, rgba(26,87,79,.7) 45%, rgba(15,48,43,.9) 100%), url(../img/tahoe/tahoe-166.webp) center / cover no-repeat, var(--green); }
@media (max-width: 760px) { .why2 { background-image: linear-gradient(180deg, rgba(15,48,43,.9) 0%, rgba(26,87,79,.82) 45%, rgba(15,48,43,.94) 100%), url(../img/tahoe/tahoe-166-800.webp); } }

/* The supporting line on each card is always shown (team, October 30, 2026); the hairline at the top stays as a quiet accent. */
.vcard-btn { cursor: default; }
.vcard-copy { opacity: 1; transform: none; }
.vcard::after { transform: none; }

/* Why Papaya: the headline on one line, the cards close beneath it. */
.why-title { grid-column: 1 / -1; white-space: nowrap; font-size: clamp(1.5rem, 3.3vw, 3.25rem); }
.why2 .label { margin-bottom: 22px; }
.vcards { margin-top: clamp(28px, 3vw, 40px); }
@media (max-width: 900px) { .why-title { white-space: normal; } }

/* Section 2, second layout: the timeline leads at full strength; the four claims sit below in one row, smaller,
   and the one under the pointer lifts while the others step back. */
.diff-title { grid-column: 1 / -1; margin-bottom: clamp(36px, 4vw, 56px); font-size: clamp(1.75rem, 3.3vw, 3.25rem); }
#compare .label { margin-bottom: 22px; }
#compare .cmp { margin-top: 0; opacity: 1; }
/* "Build time" heads the row names, on the line of the month scale, so the bars read as durations. */
.cmp-axis-label { position: absolute; left: 0; bottom: 0; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--offwhite); white-space: nowrap; }
@media (max-width: 760px) { .cmp-axis { margin-top: 30px; } .cmp-axis-label { bottom: 26px; } }
#compare .cmp-track li { height: 8px; }
#compare .cmp-track li.lane-b { top: 14px; }
#compare .cmp-new .cmp-track { height: 22px; }
#compare .cmp-name { font-size: 1rem; font-weight: 600; }
#compare .cmp-end { font-size: clamp(1.25rem, 1.8vw, 1.75rem); }
.claims { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 5vw, 72px); border-top: 1px solid rgba(var(--line), .16); border-bottom: 1px solid rgba(var(--line), .16); }
.claims div, .claims div:nth-child(even) { padding: clamp(24px, 2.4vw, 34px) clamp(16px, 1.8vw, 28px); border-bottom: 0; border-left: 1px solid rgba(var(--line), .16); gap: 14px; position: relative;
  transition: opacity .8s ease calc(var(--i) * .12s), transform .9s var(--ease) calc(var(--i) * .12s), background .35s ease; }
.claims div:first-child { border-left: 0; padding-left: 0; }
.claims dd { font-size: clamp(2.25rem, 4.2vw, 4.25rem); letter-spacing: -.035em; transform-origin: left bottom; transition: transform .45s var(--ease), color .35s ease; }
.claims dd small { font-size: .6875rem; margin-left: 8px; }
/* "Up to" sits inline before 30%, so all four numbers share one baseline. */
.claims dd small.pre { display: inline; margin: 0 10px 0 0; vertical-align: .35em; }
.claims dt { font-size: .625rem; letter-spacing: .18em; line-height: 1.5; }
.claims div::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cambridge); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.claims div:first-child::after { left: 0; }
@media (hover: hover) { .in .claims:hover div { opacity: .45; }
  .in .claims div:hover { opacity: 1; background: rgba(241,243,244,.035); }
  .claims div:hover dd { transform: scale(1.12); color: var(--offwhite); }
  .claims div:hover::after { transform: none; } }
/* Where the time and the savings come from: two short paragraphs under the claims. */
.how { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 4.4vw, 64px); }
/* Each "where it comes from" is a dropdown: label and lead line as the header, the detail opens beneath. */
.how-item { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-item summary { position: relative; display: block; padding: 20px 48px 20px 0; list-style: none; cursor: pointer; }
.how-item summary::-webkit-details-marker { display: none; }
.how-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(241,243,244,.35); border-radius: 50%; font-size: 1.25rem; font-weight: 300; line-height: 1; color: var(--offwhite); transition: transform .35s var(--ease), background .3s, color .3s; }
.how-item summary:hover::after { background: var(--offwhite); color: var(--night); }
.how-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.how-item summary:focus-visible { outline: 1px solid var(--cambridge); outline-offset: 4px; }
.how-item summary .how-kicker, .how-item summary .how-lead { display: block; }
.how-more { padding: 0 48px 22px 0; }
.how-item[open] .how-more { animation: cs-in .5s var(--ease) both; }
.how-kicker { color: var(--cambridge); margin: 0 0 14px; }
.how-item summary .how-lead { margin-bottom: 0; }
.how-lead { margin: 0 0 14px; max-width: 26ch; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.25; letter-spacing: -.01em; color: var(--offwhite); }
.how-text + .how-text { margin-top: 14px; }
.how-proof { color: var(--cambridge) !important; font-weight: 500; }
.how-text { margin: 0; max-width: 46ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }
.how-item { opacity: 0; transform: translateY(12px); transition: opacity .8s ease .3s, transform .9s var(--ease) .3s; }
.how-item + .how-item { transition-delay: .45s; }
.in .how-item { opacity: 1; transform: none; }
@media (max-width: 760px) { .how { grid-template-columns: 1fr; } }
/* The line sits right under "Why we're better.", before the timeline. */
.diff-title:has(+ .claims-line) { margin-bottom: 0; }
.claims-line { grid-column: 1 / -1; margin: clamp(14px, 1.6vw, 22px) 0 clamp(36px, 4vw, 56px); font-family: var(--display); color: var(--offwhite); }
.claims-line .soft { display: block; margin-top: .3em; font-size: 1.2em; }
/* Cleanup (November 2, 2026): two figures, the savings as a number and the labor point as a short statement; the
   timeline's key sits quietly under the bars. */
.claims.claims-two { grid-template-columns: 1fr 1fr; }
.claims .claim-text dd { white-space: normal; max-width: 22ch; font-size: clamp(1.25rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.claims div.claim-text:hover dd { transform: none; }
#compare .cmp-legend { margin-top: 10px; opacity: .7; }
/* Sized to fit one screen at 1440 x 900. */
#compare { padding-top: clamp(48px, 4.4vw, 72px); padding-bottom: clamp(48px, 4.4vw, 72px); }
#compare .claims-line { margin-bottom: clamp(24px, 2.4vw, 36px); }
#compare .cmp-row { padding: 14px 0; }
#compare .claims { margin-top: clamp(24px, 2.4vw, 36px); }
#compare .claims div { padding-top: clamp(18px, 1.8vw, 26px); padding-bottom: clamp(18px, 1.8vw, 26px); }
#compare .how { margin-top: clamp(20px, 2vw, 28px); }
#compare .claims-line .soft { margin-top: 0; }
@media (max-width: 900px) { .claims { grid-template-columns: 1fr 1fr; }
  .claims div, .claims div:nth-child(even) { padding: 22px 16px; border-left: 0; border-top: 1px solid rgba(var(--line), .16); }
  .claims div:nth-child(odd) { padding-left: 0; }
  .claims div:nth-child(-n+2) { border-top: 0; }
  .claims dd { font-size: clamp(2.25rem, 10vw, 3.25rem); }
  .claims dd small { display: block; margin: 8px 0 0; vertical-align: 0; }
  .claims dd small.pre { display: inline; margin: 0 8px 0 0; vertical-align: .3em; } }

/* Project spotlight (October 30, 2026): set like a feature in an architecture publication. A quiet label, the name in
   light weight, one line of facts, then the tabs; generous air around the imagery. */
.cs-head { padding-top: clamp(8px, 2vw, 32px); }
.cs-title { font-weight: 300; font-size: clamp(3rem, 9.5vw, 9.5rem); line-height: .95; letter-spacing: -.035em; }
.cs-head .cs-facts { grid-column: 1 / -1; margin-top: clamp(18px, 2vw, 28px); color: rgba(241,243,244,.62); }
.cs-tabs { margin-top: clamp(56px, 6vw, 96px); }
.cs-gallery { margin-top: 8px; gap: 8px; }
@media (max-width: 760px) { .cs-title { font-size: clamp(2.75rem, 15vw, 4rem); } }

/* The process: one stage for seven steps, the step copy beside it, and a rail beneath. Frames cross-fade only. */
.pr-head .label { margin-bottom: 22px; }
.pr-title { grid-column: 1 / -1; font-size: clamp(1.75rem, 3.3vw, 3.25rem); text-wrap: balance; }
/* Cover over the whole process body until "Start the process": a finished interior, shaded, the button centred.
   It fades away (the photo never moves). */
.pr-body { position: relative; }
.pr-cover { position: absolute; z-index: 6; inset: 0; overflow: hidden; border-radius: 2px; background: var(--night); transition: opacity .9s ease, visibility 0s linear .9s; }
.pr-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 40% at 50% 50%, rgba(13,13,13,.5) 0%, rgba(13,13,13,.28) 70%, rgba(13,13,13,.45) 100%); }
.pr-cover-inner { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; }
/* The line above the button reads at a glance: larger, bold, white, on a darker centre to the shade. */
.pr-cover-kicker { margin: 0; font-size: clamp(.9375rem, 1.25vw, 1.25rem); font-weight: 600; letter-spacing: .22em; color: var(--offwhite); text-shadow: 0 2px 18px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); }
.pr-start { display: inline-flex; align-items: center; gap: 14px; padding: 20px 36px; font: inherit; font-size: .9375rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--night); background: var(--offwhite); border: 1px solid var(--offwhite); border-radius: 999px; cursor: pointer; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); transition: background .3s, color .3s, border-color .3s; }
.pr-start span { transition: transform .3s var(--ease); }
.pr-start:hover { background: var(--cambridge); border-color: var(--cambridge); }
.pr-start:hover span { transform: translateX(4px); }
.pr-start:focus-visible { outline: 2px solid var(--offwhite); outline-offset: 4px; }
.pr.started .pr-cover { opacity: 0; visibility: hidden; pointer-events: none; }
/* Full-page cover (team, November 3, 2026): before the process starts, the rendering fills the whole section edge to
   edge, with the section label and title over it. Once started, the section returns to its normal layout. */
#process { position: relative; }
#process:not(.started) { min-height: 100svh; }
#process .pr-body { position: static; }
#process .pr-cover { inset: 0; border-radius: 0; }
#process .pr-cover::after { background:
  linear-gradient(180deg, rgba(13,13,13,.7) 0%, rgba(13,13,13,.15) 35%, rgba(13,13,13,.15) 65%, rgba(13,13,13,.55) 100%),
  radial-gradient(ellipse 46% 40% at 50% 50%, rgba(13,13,13,.35) 0%, rgba(13,13,13,0) 70%); }
#process:not(.started) .pr-head { position: relative; z-index: 7; }
#process:not(.started) .pr-head .label, #process:not(.started) .pr-title { text-shadow: 0 2px 18px rgba(0,0,0,.6); }
@media (max-width: 760px) { .pr-start { padding: 16px 24px; font-size: .8125rem; letter-spacing: .12em; } }
/* "Watch the full film" heads the step copy, level with the top of the stage, above the step number. */
.pr-film { grid-row: 3; grid-column: 1; justify-self: start; align-self: end; margin-top: clamp(28px, 3vw, 40px); gap: 10px; white-space: nowrap; background: none; font-family: inherit; cursor: pointer; }
/* The film lightbox: native dialog, the film at up to 1280px wide on a dark scrim. */
.film-modal { width: min(1280px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.film-modal::backdrop { background: rgba(7,8,8,.88); }
.film-modal .film { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 120px); background: #000; border-radius: 2px; }
.film-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(241,243,244,.45); background: none; color: var(--offwhite); font: 300 1.75rem/1 var(--sans); cursor: pointer; transition: background .3s, color .3s; }
.film-close:hover, .film-close:focus-visible { background: var(--offwhite); color: var(--night); }
.pr-body { margin-top: clamp(36px, 4vw, 56px); row-gap: clamp(24px, 3vw, 40px); }
.pr-stage { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 2px; background: var(--deep-2); }
.pr-frame { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.pr-frame.on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.pr-frame > img { width: 100%; height: 100%; object-fit: cover; }
.pr-globe { background: radial-gradient(ellipse at 50% 45%, #12302b 0%, var(--night) 70%); }
.pr-globe canvas { display: block; width: 100%; height: 100%; }
.pr-globe .g-coord { top: 18px; right: 20px; font-size: .625rem; }
.pr-note { position: absolute; left: 20px; bottom: 16px; margin: 0; font-size: .625rem; color: rgba(241,243,244,.42); }
.pr-draw { background: var(--deep); }
.pr-model { background: #0f1a18; }
.pr-frame.pr-model > img { object-fit: contain; }
.pr-kit { display: flex; align-items: center; justify-content: center; background: var(--deep); }
.pr-kit .kit-art { width: 100%; height: 100%; margin: 0; overflow: hidden; }
.pr-kit .kit-art .k-edge { stroke: var(--offwhite); }
/* The camera move carries this drawing, so its parts are simply there (no stagger). */
.pr .pr-kit .kit-art .k-part { opacity: 1; transform: none; transition: none; }
.k-bar { fill: var(--offwhite); stroke: none; }
.k-laser { stroke: #e6fbf7; stroke-width: .5; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 1.5px #80A6A0) drop-shadow(0 0 3px #80A6A0); }
.k-call path { fill: none; stroke: var(--cambridge); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.k-call text { font-family: var(--sans); fill: var(--offwhite); letter-spacing: .12em; }
.k-call-k { font-size: 1.9px; font-weight: 500; fill: var(--cambridge) !important; }
.k-call-v { font-size: 3px; font-weight: 600; }
/* Step 07: interiors stacked in the stage, one shown at a time, crossfading (photos only fade). */
.pr-finish { background: var(--night); }
.pr-finish img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.pr-finish img.on { opacity: 1; }
/* The step number lines up with the top of the photo; the arrows follow the text, and the film button sits at the
   bottom of the column, level with the bottom of the photo. */
.pr-copy { grid-column: 9 / -1; display: grid; grid-template-rows: auto auto 1fr; }
.pr-arrows { grid-row: 2; }
.pr-text { grid-row: 1; grid-column: 1; align-self: start; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s ease, transform .6s var(--ease), visibility 0s linear .5s; }
.pr-text.on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease .15s, transform .7s var(--ease) .15s; }
.pr-num { margin: 0 0 clamp(18px, 2vw, 28px); font-family: var(--display); font-weight: 300; font-size: clamp(4rem, 7vw, 7rem); line-height: .9; letter-spacing: -.04em; color: rgba(241,243,244,.9); }
.pr-text .mono { margin: 0 0 14px; color: var(--cambridge); }
.pr-text h3 { margin: 0 0 16px; font-size: clamp(1.5rem, 2.3vw, 2.25rem); }
.pr-text h3 + p { margin: 0; max-width: 36ch; line-height: 1.6; color: rgba(241,243,244,.7); }
.pr-arrows { display: flex; align-items: center; gap: 18px; margin-top: clamp(28px, 3vw, 40px); padding-top: 22px; border-top: 1px solid rgba(241,243,244,.14); }
.pr-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(241,243,244,.4); background: none; color: var(--offwhite); font: inherit; font-size: 1.125rem; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
.pr-arrows button:hover:not(:disabled) { background: var(--offwhite); color: var(--night); border-color: var(--offwhite); }
.pr-arrows button:disabled { opacity: .25; cursor: default; }
.pr-count { margin: 0; font-size: .6875rem; color: rgba(241,243,244,.5); }
.pr-count b { font-weight: 500; color: var(--offwhite); }
.pr-rail { grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pr { padding-bottom: clamp(36px, 3.6vw, 56px); }
.pr-rail button { position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 16px clamp(24px, 3vw, 48px) 0 0; text-align: left; font: inherit; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; line-height: 1.45; text-transform: uppercase; color: var(--offwhite); background: none; border: 0; border-top: 1px solid rgba(241,243,244,.16); cursor: pointer; opacity: .42; transition: opacity .35s; }
.pr-rail button span { display: block; margin-bottom: 6px; color: var(--cambridge); }
.pr-rail button::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--cambridge); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pr-rail button:hover, .pr-rail button.done { opacity: .72; }
.pr-rail button[aria-selected="true"] { opacity: 1; }
.pr-rail button[aria-selected="true"]::before, .pr-rail button.done::before { transform: none; }
@media (max-width: 900px) { .pr-stage, .pr-copy { grid-column: 1 / -1; }
  .pr-stage { aspect-ratio: 1 / 1; max-height: 560px; }
  .pr-rail { order: 2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .pr-rail::-webkit-scrollbar { display: none; }
  .pr-rail button { flex: 0 0 128px; scroll-snap-align: start; }
  .pr-copy { order: 3; }
  .pr-film { align-self: start; margin-top: 32px; }
  .pr-num { font-size: clamp(3rem, 14vw, 4.5rem); } }
/* Phones: a 4:3 stage matches the site photos, so they show whole. */
@media (max-width: 760px) { .pr-stage { aspect-ratio: 4 / 3; } }

/* Proof: the drag-to-compare follows the numbers; one quiet link closes the tab. */
#cs-result .er { margin-top: 0; }
.cs-proof-more { padding-top: 32px; padding-bottom: clamp(56px, 7vw, 96px); }
.cs-nums dd { font-size: clamp(3.5rem, 8.6vw, 9rem); }
/* Five proof points: the three project facts on one row, the timeline and savings on a second, wider row. */
.cs-nums { grid-template-columns: repeat(6, 1fr); row-gap: clamp(36px, 4vw, 56px); }
.cs-nums div { grid-column: span 2; }
.cs-nums div.wide { grid-column: span 3; padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid rgba(241,243,244,.14); }
.cs-nums div:nth-child(4) { padding-left: 0; border-left: 0; }
.cs-nums small.pre { display: inline; margin: 0 12px 0 0; vertical-align: .4em; }
@media (max-width: 760px) { .cs-nums { grid-template-columns: 1fr; }
  .cs-nums div, .cs-nums div.wide { grid-column: 1; padding-left: 0; border-left: 0; } }
/* Proof, set like an architectural drawing: each figure sits under a dimension line (a hairline with end ticks)
   instead of in a ruled cell. */
.cs-nums div, .cs-nums div + div, .cs-nums div.wide { padding: 0 clamp(20px, 3vw, 48px) 0 0; border: 0; gap: 14px; }
.cs-nums div::before { content: ""; order: 9; height: 11px; margin-bottom: clamp(14px, 1.6vw, 22px); border-left: 1px solid rgba(241,243,244,.4); border-right: 1px solid rgba(241,243,244,.4);
  background: linear-gradient(rgba(241,243,244,.4), rgba(241,243,244,.4)) center / 100% 1px no-repeat; transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .2s; }
.cs-panel:not([hidden]) .cs-nums div::before { transform: none; }
.cs-nums dd { font-weight: 300; }
.cs-nums dt { color: rgba(241,243,244,.6); }

/* Project Spotlight, editorial pass: a darker, more cinematic ground than the sections around it; The Home reads like
   an architecture feature (one line of copy, an offset gallery with small captions); The Build gives each step one
   image, headline and line, with arrows and a counter always in view; The Proof lets the type carry the figures. */
/* Sized so each mode reads on about one screen: a compact title row, then one image block per mode. */
.cs { background: var(--deep); padding-top: clamp(40px, 4vw, 64px); }
/* Spotlight sits on deep Brunswick between Papaya vs Traditional and Apply; full order with the Why Papaya rules. */
#start.final { background: var(--green); }
/* The line under the title stays on one line wherever it fits; phones let it wrap. */
#start .final-line { grid-column: 1 / -1; white-space: nowrap; }
@media (max-width: 760px) { #start .final-line { white-space: normal; } }
/* Apply to build, after papaya.homes: one card, the interior on the left with the contact details over it, the
   application on a light Silver panel on the right. */
.apply { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; margin-top: clamp(32px, 4vw, 56px); border-radius: 2px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); }
.apply-media { position: relative; margin: 0; min-height: 420px; background: var(--deep-2); }
.apply-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apply-contact { position: absolute; left: 0; bottom: 0; display: grid; gap: 14px; padding: 22px 26px; background: rgba(13,13,13,.86); }
.apply-contact p { margin: 0; display: grid; gap: 4px; }
.apply-contact .mono { font-size: .6875rem; color: var(--steel-light); }
.apply-contact a { color: var(--offwhite); text-decoration: none; font-size: .9375rem; }
.apply-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form.apply-form { grid-column: auto; margin: 0; padding: clamp(28px, 3.4vw, 52px); border: 0; background: var(--stone); color: var(--ink); }
.apply-group { margin: 0 0 18px; font-size: clamp(1.25rem, 1.7vw, 1.625rem); font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.apply-group:not(:first-child) { margin-top: 14px; }
.apply-form label { color: rgba(49,43,41,.62); margin-bottom: 20px; }
.apply-form input, .apply-form select { color: var(--ink); border-bottom-color: rgba(49,43,41,.3); }
.apply-form input:focus, .apply-form select:focus { border-bottom-color: var(--green); }
.apply-form input::placeholder { color: rgba(49,43,41,.45); }
.apply-choice { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.apply-choice legend { margin-bottom: 10px; padding: 0; font-size: .875rem; color: var(--ink); }
.apply-form .apply-choice label { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--sans); font-size: .875rem; letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.apply-form .apply-choice input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--green); }
.apply-submit { display: inline-flex; margin-top: 8px; padding: 14px 26px; font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--offwhite); background: var(--green); border: 1px solid var(--green); border-radius: 2px; cursor: pointer; transition: background .3s, color .3s; }
.apply-submit:hover { background: var(--night); border-color: var(--night); }
.apply-form .form-note { margin-top: 16px; background: none; padding: 12px 0 0; border-top: 1px solid rgba(49,43,41,.2); color: var(--green); font-size: .9375rem; }
.apply-form .form-note.is-error { color: #8A2C1F; }
.apply-submit:disabled { opacity: .6; cursor: default; }
.f-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .apply { grid-template-columns: 1fr; } .apply-media { min-height: 0; aspect-ratio: 4 / 3; } }
.cs-head { padding-top: 0; align-items: end; }
.cs-head .label { margin-bottom: clamp(14px, 1.6vw, 22px); }
.cs .cs-title { grid-column: 1 / span 7; font-size: clamp(2.5rem, 5.4vw, 5.25rem); line-height: 1; }
.cs-head .cs-line { grid-column: 8 / -1; justify-self: end; margin: 0; text-align: right; font-size: clamp(1rem, 1.5vw, 1.375rem); font-weight: 300; line-height: 1.35; }
.cs-head .cs-facts { grid-column: 1 / span 6; margin: 0; align-self: center; }
/* Tabs read as controls: numbered, larger, on a visible hairline track with the active one underlined in Cambridge. */
.cs-tabs { grid-column: 7 / -1; justify-self: end; gap: clamp(28px, 3.4vw, 52px); margin: clamp(18px, 2vw, 28px) 0 clamp(14px, 1.4vw, 20px); border-bottom: 1px solid rgba(241,243,244,.22); }
.cs-tabs button { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-size: .9375rem; font-weight: 600; letter-spacing: .16em; padding: 12px 0 14px; opacity: .5; }
.cs-tabs button span { font-size: .6875rem; font-weight: 500; letter-spacing: .1em; color: var(--cambridge); }
.cs-tabs button:hover { opacity: .85; }
.cs-tabs button[aria-selected="true"] { opacity: 1; }
.cs-tabs button:focus-visible { outline: 1px solid var(--cambridge); outline-offset: 4px; }
.cs-ink { height: 3px; bottom: -2px; }
.cs-next-row { padding-bottom: clamp(32px, 3.2vw, 48px); }
.cs-next { grid-column: 1 / -1; justify-self: end; display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--offwhite); background: none; border: 1px solid rgba(241,243,244,.4); border-radius: 999px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.cs-next span { font-size: 1.125rem; transition: transform .3s var(--ease); }
.cs-next:hover { background: var(--offwhite); color: var(--night); border-color: var(--offwhite); }
.cs-next:hover span { transform: translateX(4px); }
.cs-seq .seq-frame { cursor: pointer; }
.cs-steps button { font-size: .8125rem; opacity: .55; }
.cs-steps button:hover { opacity: .9; }
.cs-steps button.on { opacity: 1; box-shadow: inset 0 -2px 0 var(--cambridge); }
.cs-arrows .seq-next:not(:disabled) { background: var(--offwhite); color: var(--night); border-color: var(--offwhite); }
.cs-arrows .seq-next:not(:disabled):hover { background: var(--cambridge); border-color: var(--cambridge); }
/* The Home: one stage, tall enough for the whole house; the exterior and the interiors fade between each other. */
.cs-stage { position: relative; height: clamp(320px, 60vh, 700px); background: var(--deep); }
.cs .cs-pane { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; }
.cs .cs-pane.on { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.cs .cs-lead { height: auto; }
.cs .cs-lead img { object-position: 50% 62%; }
.cs-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: clamp(6px, .8vw, 12px); padding: 0; }
.cs-gallery figure { height: 100%; }
.cs-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-capt { position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 5px 9px; font-size: .625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--offwhite); background: rgba(7,8,8,.55); }
.cs-next-row { padding-top: 16px; align-items: center; }
/* The Build: six steps stacked on the left as an accordion, the set home on the right. */
.cs-build { align-items: stretch; row-gap: 24px; }
.cs-steplist { grid-column: 1 / span 5; align-self: center; border-bottom: 1px solid rgba(241,243,244,.16); }
.cs-steplist details { border-top: 1px solid rgba(241,243,244,.16); }
.cs-steplist summary { display: flex; align-items: baseline; gap: 18px; padding: clamp(11px, 1.2vw, 16px) 0; list-style: none; cursor: pointer; opacity: .62; transition: opacity .3s; }
.cs-steplist summary::-webkit-details-marker { display: none; }
.cs-steplist summary::after { content: "+"; margin-left: auto; font-size: 1.375rem; font-weight: 300; line-height: 1; color: var(--cambridge); transition: transform .35s var(--ease); }
.cs-steplist summary:hover, .cs-steplist details[open] summary { opacity: 1; }
.cs-steplist details[open] summary::after { transform: rotate(45deg); }
.cs-steplist summary:focus-visible { outline: 1px solid var(--cambridge); outline-offset: 4px; }
.cs-sn { flex: none; width: 26px; font-size: .75rem; font-weight: 500; letter-spacing: .1em; color: var(--cambridge); }
.cs-st { font-family: var(--display); font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; color: var(--offwhite); }
.cs-steplist details p { margin: -4px 0 0; padding: 0 40px clamp(16px, 1.7vw, 22px) 44px; max-width: 46ch; font-size: clamp(.9375rem, 1.05vw, 1.0625rem); line-height: 1.55; color: rgba(241,243,244,.75); }
.cs-steplist details[open] p { animation: cs-in .5s var(--ease) both; }
.cs .cs-build-photo { grid-column: 7 / -1; position: relative; height: clamp(340px, 58vh, 640px); }
.cs-build-photo .cs-capt { top: auto; bottom: 12px; }
@media (max-width: 900px) { .cs-steplist, .cs .cs-build-photo { grid-column: 1 / -1; }
  .cs .cs-build-photo { height: 62vw; order: -1; } }
.cs-toggle { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(16px, 2.4vw, 32px); display: inline-flex; padding: 4px; border: 1px solid rgba(241,243,244,.35); border-radius: 999px; background: rgba(15,48,43,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cs-toggle button { padding: 10px 20px; font: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--offwhite); background: none; border: 0; border-radius: 999px; cursor: pointer; opacity: .6; transition: background .3s, color .3s, opacity .3s; }
.cs-toggle button:hover { opacity: 1; }
.cs-toggle button[aria-pressed="true"] { opacity: 1; background: var(--offwhite); color: var(--night); }
.cs-gallery .cs-capt { top: 12px; bottom: auto; }

.cs .cs-seq .seq-frame, .cs-seq::before { height: clamp(300px, 52vh, 580px); }
.cs-cap { bottom: clamp(24px, 4vh, 48px); }
.cs-cap .mono { margin-bottom: 8px; }
.cs-cap h3 { font-size: clamp(1.75rem, 3.6vw, 3.5rem); }
.cs-cap p:not(.mono) { margin: 12px 0 0; max-width: 46ch; font-size: clamp(.9375rem, 1.1vw, 1.0625rem); line-height: 1.5; color: rgba(241,243,244,.82); }
.cs-frame-model { background: #0a1919; }
.cs .cs-frame-model img { object-fit: contain; object-position: 72% 30%; }
.cs-frame-end .cs-cap h3 { font-size: clamp(2.5rem, 6.4vw, 6rem); }
.cs-seq-nav { padding-top: 12px; padding-bottom: 20px; row-gap: 10px; }
.cs-seq-nav { align-items: center; }
.cs-seq-nav .journey-bar { order: -1; }
.cs-steps { grid-column: 1 / span 9; }
.cs-arrows { grid-column: 10 / -1; justify-self: end; display: flex; align-items: center; gap: 18px; }
.cs-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(241,243,244,.4); background: none; color: var(--offwhite); font: inherit; font-size: 1.125rem; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
.cs-arrows button:hover:not(:disabled) { background: var(--offwhite); color: var(--night); border-color: var(--offwhite); }
.cs-arrows button:disabled { opacity: .25; cursor: default; }
.seq-count { margin: 0; font-size: .6875rem; color: rgba(241,243,244,.5); }
.seq-count b { font-weight: 500; color: var(--offwhite); }

.cs-nums { grid-template-columns: repeat(5, auto); justify-content: space-between; margin: clamp(8px, 1vw, 16px) 0 clamp(28px, 3vw, 44px); row-gap: 28px; }
.cs-nums div, .cs-nums div.wide { grid-column: auto; padding: 0; border: 0; gap: 10px; }
.cs-nums div::before { display: none; }
.cs-nums dd { font-size: clamp(2rem, 3.8vw, 4rem); }
.cs-nums small { margin-left: 8px; font-size: .6875rem; }
.cs-nums small.pre { margin: 0 8px 0 0; }
/* The Proof: case-study summary and spec on the left, the figures as large type in two columns on the right, the
   savings figure leading the last row in Cambridge Blue. */
.cs-proof { align-items: center; row-gap: 40px; padding-top: clamp(16px, 2vw, 32px); padding-bottom: clamp(32px, 3.2vw, 48px); }
.cs-proof-copy { grid-column: 1 / span 5; }
.cs-proof-title { margin: 0 0 clamp(16px, 1.8vw, 24px); font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
.cs-proof-text { margin: 0 0 clamp(20px, 2.2vw, 32px); max-width: 48ch; font-size: clamp(.9375rem, 1.1vw, 1.0625rem); line-height: 1.6; color: rgba(241,243,244,.75); }
.cs-spec { margin: 0 0 clamp(20px, 2.2vw, 30px); border-top: 1px solid rgba(241,243,244,.16); }
.cs-spec div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(241,243,244,.16); }
.cs-spec dt { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,243,244,.55); }
.cs-spec dd { margin: 0; font-size: .9375rem; text-align: right; }
.cs-proof-copy .cs-more { margin-top: 0; }
.cs .cs-figs { grid-column: 7 / -1; grid-template-columns: 1fr 1fr; justify-content: stretch; column-gap: clamp(24px, 3vw, 48px); row-gap: clamp(18px, 2vw, 28px); margin: 0; }
.cs .cs-figs div { grid-column: auto; flex-direction: column; justify-content: flex-start; gap: 10px; padding-top: clamp(12px, 1.2vw, 16px); border-top: 1px solid rgba(241,243,244,.16); }
.cs .cs-figs dd { font-size: clamp(2.5rem, 4.4vw, 4.5rem); }
.cs .cs-figs .cs-fig-hero { grid-column: 1 / -1; }
.cs .cs-figs .cs-fig-hero dd { font-size: clamp(3rem, 6vw, 6rem); color: var(--cambridge); }
.cs-vs { display: block; margin-top: 10px; font-family: var(--sans); font-size: .75rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; white-space: normal; color: rgba(241,243,244,.6); }
@media (max-width: 900px) { .cs-proof-copy, .cs .cs-figs { grid-column: 1 / -1; } }
.cs-proof-more { padding-top: 16px; padding-bottom: clamp(32px, 3.2vw, 48px); align-items: center; }
.cs-er-line { grid-column: 1 / span 8; margin: 0; font-size: .75rem; letter-spacing: .2em; color: var(--offwhite); }
.cs-proof-more .cs-more { grid-column: 9 / -1; justify-self: end; margin-top: 0; }
@media (max-width: 900px) {
  .cs .cs-title, .cs-head .cs-line { grid-column: 1 / -1; }
  .cs-head .cs-line { justify-self: start; text-align: left; margin-top: 14px; }
  .cs-head .cs-facts { grid-column: 1 / -1; margin-top: 14px; }
  .cs-tabs { grid-column: 1 / -1; justify-self: start; }
  .cs-nums { grid-template-columns: repeat(3, auto); } }
@media (max-width: 760px) {
  .cs-stage { height: 56vw; }
  .cs .cs-lead img { object-position: 50% 50%; }
  .cs-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cs-gallery::-webkit-scrollbar { display: none; }
  .cs-gallery figure { flex: 0 0 88%; height: 100%; scroll-snap-align: start; }
  .cs-toggle { left: 50%; transform: translateX(-50%); top: 10px; bottom: auto; }
  .cs-gallery .cs-capt { top: auto; bottom: 10px; }
  .cs-toggle button { padding: 8px 16px; }
  .cs .cs-seq .seq-frame, .cs-seq::before { height: 112vw; max-height: 560px; }
  .cs .er { height: 92vw; max-height: 520px; }
  .cs-nums { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .cs-er-line, .cs-proof-more .cs-more { grid-column: 1 / -1; justify-self: start; }
  .cs-proof-more .cs-more { margin-top: 18px; }
  .cs-steps { display: none; }
  .cs-arrows { grid-column: 1 / -1; justify-self: start; }
  .cs-cap p:not(.mono) { font-size: .9375rem; }
  .cs-tabs button { font-size: .75rem; letter-spacing: .12em; white-space: nowrap; gap: 6px; }
  .cs-tabs { gap: 18px; }
  .cs-next { justify-self: stretch; justify-content: center; }
  .cs .cs-frame-model img { object-position: 50% 20%; } }
/* Projects page: each home as a row, image on one side and its facts on the other, alternating sides. */
.projects { padding-top: clamp(32px, 3.6vw, 56px); }
.proj { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 24px; align-items: center; }
/* A Brunswick Green rule separates each project from the next. */
.proj + .proj { margin-top: clamp(48px, 6vw, 96px); padding-top: clamp(48px, 6vw, 96px); border-top: 2px solid var(--green); }
.proj-img { grid-column: 1 / span 7; margin: 0; overflow: hidden; border-radius: 2px; background: var(--deep-2); aspect-ratio: 3 / 2; }
.proj-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proj-body { grid-column: 9 / -1; }
.proj:nth-child(even) .proj-img { grid-column: 6 / -1; grid-row: 1; }
.proj:nth-child(even) .proj-body { grid-column: 1 / span 4; grid-row: 1; }
.proj-kicker { margin: 0 0 14px; color: var(--cambridge); }
.proj-name { margin: 0; font-weight: 300; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.proj-loc { margin: 12px 0 0; font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(241,243,244,.62); }
.proj-text { margin: clamp(18px, 2vw, 26px) 0; font-size: clamp(.9375rem, 1.1vw, 1.0625rem); line-height: 1.65; color: rgba(241,243,244,.75); }
.proj-data { margin: 0; border-top: 1px solid rgba(241,243,244,.16); }
.proj-data div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(241,243,244,.16); }
.proj-data dt { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(241,243,244,.55); }
.proj-data dd { margin: 0; font-size: .875rem; text-align: right; }
.proj-img, .proj-body { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1s var(--ease); }
.proj-body { transition-delay: .15s; }
.in .proj-img, .in .proj-body { opacity: 1; transform: none; }
/* Victory Ranch leads the list: the project, then its two residences stacked, each with its own facts; the first
   links down to the case study. */
.proj-units { display: grid; gap: clamp(20px, 2vw, 28px); }
.proj-unit-name { margin: 0 0 10px; color: var(--offwhite); }
.proj-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--offwhite); text-decoration: none; border-bottom: 1px solid var(--cambridge); padding-bottom: 4px; }
.proj-cta span { transition: transform .3s var(--ease); }
.proj-cta:hover span { transform: translateX(4px); }
.proj-vr .proj-img img { object-position: 40% 50%; }
.cs-intro-band { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(40px, 4vw, 64px); }
@media (max-width: 900px) {
  .proj-img, .proj-body, .proj:nth-child(even) .proj-img, .proj:nth-child(even) .proj-body { grid-column: 1 / -1; grid-row: auto; } }
/* Phones: each project photo shows whole, at its own proportions. */
@media (max-width: 760px) { .proj-img { aspect-ratio: auto; } .proj-img img { height: auto; }
  .case-media { height: auto; aspect-ratio: 16 / 10; } }
/* Team page: a portrait beside the name, title and bio, on the 12-column grid. */
.person { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 32px; align-items: start; }
.person-photo { grid-column: 1 / span 4; margin: 0; overflow: hidden; border-radius: 2px; background: var(--deep-2); }
.person-photo img { display: block; width: 100%; height: auto; }
.person-body { grid-column: 6 / -1; }
.person-role { margin: 0 0 14px; color: var(--cambridge); }
.person-name { margin: 0 0 clamp(24px, 3vw, 40px); font-weight: 300; font-size: clamp(2.25rem, 5vw, 4.5rem); letter-spacing: -.03em; }
.person-bio p { margin: 0 0 1.1em; max-width: 60ch; font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.65; color: rgba(241,243,244,.72); }
.team-more { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 88px); }
.person + .person { margin-top: clamp(64px, 8vw, 120px); }
.person-photo-tbd { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; border: 1px dashed rgba(241,243,244,.25); color: rgba(241,243,244,.45); }
.person-photo, .person-body { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform 1s var(--ease); }
.person-body { transition-delay: .15s; }
.in .person-photo, .in .person-body { opacity: 1; transform: none; }
@media (max-width: 760px) { .person-photo { grid-column: 1 / span 9; } .person-body { grid-column: 1 / -1; } }

/* Why Papaya, set like an architecture publication: the claim in white capitals, a much smaller conclusion as the one
   Cambridge accent, a wide cinematic image, then the question and a single narrow paragraph offset to the right with
   open space on the left. The image only fades in (no movement on photographs). */
/* Fits one screen: copy on the left (about 40%), the image on the right (about 60%). The copy reads as one block,
   centered on the image. The ground is deep Brunswick with a softer Brunswick glow behind the photo (team, November 2,
   2026); Cambridge Blue appears once, on the conclusion. */
.mf { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); background: radial-gradient(60% 70% at 70% 50%, rgba(26,87,79,.55) 0%, rgba(15,48,43,0) 70%), var(--deep); }
.mf .label { color: var(--steel); }
.mf .label span { color: var(--cambridge); opacity: 1; }
/* More green (November 2, 2026): every chapter ground is a green; only the hero intro stays black. Three greens
   alternate so no two neighbours match. Homepage: Why Papaya (deep), Process (forest), Our approach (Brunswick),
   Papaya vs Traditional (deep), Spotlight (forest), Apply (Brunswick), footer (forest). Projects and Team: title
   (deep), body (forest), close (deep). Inside Process, the drawing frames sit on deep Brunswick so they read as a stage. */
.night, .site-footer, .case { background: var(--forest); }
#process.night { background: var(--forest); }
#process .pr-draw, #process .pr-kit { background: var(--deep); }
#compare.stone { background: var(--deep); }
.cs { background: var(--forest); }
.mf .grid { grid-template-rows: auto 1fr auto auto auto 1fr; row-gap: 0; }
.mf .label { grid-row: 1; margin-bottom: clamp(18px, 2vw, 28px); }
.mf-title { grid-column: 1 / span 4; grid-row: 3; margin: 0; padding-right: clamp(8px, 1vw, 16px); font-size: clamp(1.375rem, 2.1vw, 2.25rem); font-weight: 700; line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; color: var(--offwhite); }
/* One sentence per line, never wrapped: sized to the grid's own width (cqi), not the screen, so it still fits the
   four-column copy area once the grid stops growing on wide screens (each line is about 14.6 times the font size). */
.mf .grid { container-type: inline-size; }
.mf-title span { display: block; white-space: nowrap; }
.mf-title { font-size: clamp(1.125rem, 1.9vw, 2.25rem); font-size: clamp(1.125rem, 2.05cqi, 2.5rem); padding-right: 0; }
@media (max-width: 900px) { .mf-title { font-size: min(6vw, 2.25rem); } }
.mf-sub { grid-column: 1 / span 4; grid-row: 4; margin: clamp(12px, 1.4vw, 18px) 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 1.75vw, 1.75rem); letter-spacing: .005em; color: var(--cambridge); }
/* The image takes eight columns and runs off the right edge of the page. */
.mf-img { grid-column: 5 / -1; grid-row: 2 / span 5; align-self: center; aspect-ratio: 16 / 9; margin: 0 calc(var(--gutter) * -1) 0 clamp(8px, 1.5vw, 24px); overflow: hidden; border-radius: 2px 0 0 2px; background: var(--deep-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.mf-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Before/after slider (after papaya.homes): the rendering is clipped from the handle rightwards; an invisible range
   input over the whole frame takes drag, tap, and arrow keys. */
.ba { position: relative; }
.ba .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--ba)); }
.ba-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-handle { position: absolute; z-index: 3; top: 50%; left: var(--ba); width: 64px; height: 64px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 50%; background: var(--green); pointer-events: none; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.ba-handle svg { width: 48px; height: 24px; }
.ba-input:focus-visible ~ .ba-handle { outline: 2px solid var(--cambridge); outline-offset: 3px; }
@media (max-width: 760px) { .ba-handle { width: 48px; height: 48px; } .ba-handle svg { width: 36px; height: 18px; } }
.mf-text { grid-column: 1 / span 4; grid-row: 5; max-width: 520px; margin-top: clamp(28px, 3vw, 44px); padding-top: clamp(20px, 2vw, 28px); padding-right: clamp(8px, 1vw, 16px); border-top: 1px solid rgba(195,203,201,.18); }
.mf-q { margin: 0 0 clamp(14px, 1.4vw, 20px); font-family: var(--display); font-weight: 300; font-size: clamp(.9375rem, 1.15vw, 1.125rem); line-height: 1.5; color: var(--offwhite); }
.mf-a { margin: 0; font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.6; color: rgba(241,243,244,.8); }
/* The turn in the argument: its own line, white and bold, a step larger than the paragraph it opens. */
.mf-turn { display: block; margin-bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 1.12em; letter-spacing: -.005em; color: var(--offwhite); }
.mf-title, .mf-sub, .mf-text { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform 1s var(--ease); }
.mf-img { opacity: 0; transition: opacity 1.4s ease .25s; }
.mf-sub { transition-delay: .15s; } .mf-text { transition-delay: .3s; }
.mf.in .mf-title, .mf.in .mf-sub, .mf.in .mf-text { opacity: 1; transform: none; }
.mf.in .mf-img { opacity: 1; }
@media (max-width: 900px) { .mf .grid { grid-template-rows: none; }
  .mf .label, .mf-title, .mf-sub, .mf-img, .mf-text { grid-column: 1 / -1; grid-row: auto; }
  .mf-img { margin: 28px 0 0; border-radius: 2px; }
  .mf-text { max-width: 620px; padding-right: 0; } }
@media (max-width: 760px) { .mf-img { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .mf-title, .mf-sub, .mf-text, .mf-img { opacity: 1; transform: none; } }

/* ---------- Reduced motion: final states shown, no movement ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }

  .journey-track { width: auto; transform: none; flex-direction: column; }
  .journey-stage { height: auto; }
  .leg { flex: none; width: 100%; height: 80vh; }
  .journey-head { position: relative; top: auto; padding: 96px 0 32px; }
  .journey-bar { display: none; }
  .hero-img, .fab-still, .case-media img, .s2s-frame > img, .kit-art .k-part { transform: none !important; }
  
  .hero-img, .hero-inner > * { animation: none !important; } }
