/* ============================================================
   GENE HEW v12 - UPGRADE (2026-09-24)
   Same sections, same words. Lifts the craft: warmer paper taken from his
   photos, hero photos as white-bordered prints, labels in plain sentence
   case, an asymmetric "what I build" spread, the van as the page's peak,
   and quiet entrance motion. Additive layer, loaded last.
   ============================================================ */

:root {
  --paper: #F7F6F1;          /* sun-bleached paper, off the cool mint-white */
  --card: #FBFAF6;
  --band: #EFEDE5;           /* warm sand band, was a pale mint wash */
  --green-ghost: #EFEDE5;
  --ink: #16201A;
  --ink-soft: #57655D;
  --line: color-mix(in oklab, #16201A, transparent 88%);
  --print-shadow: 0 1px 1px rgba(22, 32, 26, 0.10), 0 10px 22px -12px rgba(22, 32, 26, 0.30), 0 34px 60px -34px rgba(22, 32, 26, 0.40);
}
body { background: var(--paper); }

/* ---------- 1. labels: plain sentence case, body font ----------
   The uppercase letter-spaced mono labels read as a template tell. */
.sec-eyebrow, .hx-avail, .hero-stakes, .hero-foot { display: none !important; }
.stat-t > span, .bld-tag, .w-tag, .web-badge, .bw-cap, .film figcaption, .rail-hint,
.sheet-gallery .sheet-label, .models-shell .sheet-label, .cform label, .cform .req-note,
.inst-head .inst-eyebrow, .disclosure-label, .contact-or, .cform-needs legend {
  font-family: var(--font-body) !important; text-transform: none !important;
  letter-spacing: 0 !important; font-weight: 500;
}
.quote-block cite, .sm-note.mono, .analyst .mono, .rag-left {
  font-family: var(--font-body) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500;
}
.quote-block cite { font-size: 14px; color: var(--ink-soft); }
.stat-t > span { font-size: 15px; color: var(--ink-soft); }
.inst-head .inst-eyebrow { font-size: 14px !important; }
.cform label, .cform-needs legend { font-size: 14px; }
.contact-or { font-size: 15px; font-weight: 600; }

/* ---------- 2. hero: photos as white-bordered prints ---------- */
.hero-c { background: var(--paper); }
.hero-floats .float-ph {
  background: #fff; padding: clamp(5px, 0.45vw, 8px); border-radius: 3px; overflow: visible;
  box-shadow: var(--print-shadow);
}
.hero-floats .float-ph img { border-radius: 1px; position: relative; }
.hero-floats .fp1 { rotate: -3deg; }
.hero-floats .fp2 { rotate: 2.5deg; }
.hero-floats .fp3 { rotate: -2deg; }
.hero-floats .fp4 { rotate: 3deg; }
.hero-floats .fp5 { rotate: -2.5deg; }
@media (max-width: 760px) {
  .hero-floats .fp1 { rotate: -3deg; }
  .hero-floats .fp4 { rotate: 1.5deg; }
  .hero-floats .fp5 { rotate: 3deg; }
}
.hero-kicker { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---------- 3. stats + what I build ---------- */
.doors { background: var(--band); }
.doors .stats { border-bottom-color: var(--line); }
@media (min-width: 981px) {
  .door-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; }
  .door:first-child { grid-row: span 2; }
  .door:first-child .door-shot { height: auto; flex: 1; min-height: 340px; }
  .door:first-child .door-back { left: 7%; top: 34px; width: 64%; }
  .door:first-child .door-front { right: 8%; top: 56px; width: 27%; }
  .door:first-child .door-title { font-size: clamp(1.9rem, 2.6vw, 2.4rem); }
  .door:first-child .door-text { font-size: 16.5px; max-width: 40ch; }
  .door:not(:first-child) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .door:not(:first-child) .door-shot { height: auto; min-height: 220px; }
  .door:not(:first-child) .door-back { top: 22px; width: 76%; left: 7%; }
  .door:not(:first-child) .door-front { top: 40px; width: 36%; right: 6%; }
}
.door { background: var(--card); border-radius: 18px; }
.door-shot { background: color-mix(in oklab, var(--green), var(--band) 88%); }
.ask-band .instrument { background: var(--card); }

/* ---------- 4. marquee: a slow serif line instead of mono caps ---------- */
.marquee { background: var(--paper); padding: clamp(18px, 2.2vw, 28px) 0; }
.marquee span {
  font-family: var(--font-display) !important; font-style: italic; text-transform: none !important;
  letter-spacing: -0.01em !important; font-size: clamp(22px, 2.4vw, 34px) !important; color: var(--ink) !important;
  font-weight: 450; padding-right: 0.9em;
}
.marquee span b { color: var(--green-deep); font-weight: 600; }
.marquee span::after { content: "" !important; display: inline-block; width: 0.28em; height: 0.28em; border-radius: 50%; background: var(--green); margin-left: 0.9em; vertical-align: 0.18em; padding: 0 !important; }
.marquee .mq-track { animation-duration: 70s; }

/* ---------- 5. warm bands ---------- */
.explore, .sites, .design, .analyst, .approach { background: var(--paper); }
.explore { background: var(--band); }

/* ---------- 6. the van is the peak ---------- */
.van-sec { padding-top: 0 !important; }
.van-hero { position: relative; margin: 0 0 clamp(-190px, -14vw, -110px); height: min(86vh, 860px); overflow: hidden; }
.van-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; display: block; }
.van-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,20,16,0) 42%, rgba(11,20,16,0.55) 70%, var(--black) 100%); }
.van-hero figcaption { position: absolute; right: var(--pad); bottom: clamp(130px, 16vw, 210px); z-index: 1; color: rgba(233,242,236,0.78); font-size: 14px; }
.van-sec .sec-head { position: relative; z-index: 2; }
.van-sec .sec-title { font-size: clamp(2.8rem, 7vw, 6.4rem); line-height: 0.94; }
.acc-panel { border-radius: 8px; }
.acc-panel .van-label {
  font-family: var(--font-body) !important; text-transform: none !important; letter-spacing: 0 !important;
  background: none !important; color: #fff !important; font-weight: 600; font-size: 15px;
  padding: 0 !important; left: 16px !important; bottom: 14px !important; top: auto !important;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55); opacity: 1 !important; transform: none !important;
}
.acc-panel::after { content: ""; position: absolute; inset: 50% 0 0; z-index: 0; background: linear-gradient(180deg, rgba(8,16,9,0), rgba(8,16,9,0.72)); pointer-events: none; }
.acc-panel .van-label { z-index: 1; }
.spec b {
  font-family: var(--font-display) !important; text-transform: none !important; letter-spacing: -0.01em !important;
  font-size: 19px !important; font-weight: 600 !important; color: var(--green) !important;
}
.spec span { font-size: 15px; }
@media (max-width: 620px) {
  .specs { grid-template-columns: 1fr !important; }
  .spec b { font-size: 18px !important; }
  /* phone: the van photos as a two-column album instead of eight stacked strips */
  .van-acc { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
  .van-acc .acc-panel { aspect-ratio: 4 / 5 !important; flex: none; }
  .van-hero { height: 62vh; }
}

/* ---------- 7. approach: outlined numerals, no icon tiles ---------- */
.approach .rule-viz { display: none !important; }
.approach .principle .num {
  display: block; font-family: var(--font-display) !important; font-size: clamp(56px, 6vw, 88px) !important;
  line-height: 0.9; letter-spacing: -0.03em !important; font-weight: 600;
  color: transparent !important; -webkit-text-stroke: 1.5px var(--green-deep); margin: 18px 0 14px;
}

/* ---------- 8. motion: titles rise, pictures unveil ---------- */
body.js .sec-title.up-line { overflow: hidden; }
body.js .sec-title .ln { display: block; transform: translateY(0.9em); opacity: 0; transition: transform var(--dur-enter) var(--ease-standard), opacity var(--dur-enter) var(--ease-standard); }
body.js .sec-title.up-in .ln { transform: none; opacity: 1; }
body.js .sec-title.up-in .ln:nth-child(2) { transition-delay: 90ms; }
body.js .unveil { clip-path: inset(10% 6% 10% 6% round 14px); transition: clip-path 1100ms var(--ease-standard); }
body.js .unveil.unveil-in { clip-path: inset(0 0 0 0 round 0); }
@media (prefers-reduced-motion: reduce) {
  body.js .sec-title .ln { transform: none; opacity: 1; transition: none; }
  body.js .unveil { clip-path: none; transition: none; }
}

/* ---------- 9. approach on phones: numeral beside the title, text full width ----------
   v8 gives each step a 58px first column for its icon tile. Section 7 hid the tile and
   showed the numeral, so the paragraph fell into that 58px column, one word per line. */
@media (max-width: 720px) {
  .approach .principle { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .approach .principle .num { grid-column: 1; grid-row: 1; margin: 0 !important; font-size: 44px !important; }
  .approach .principle h3 { grid-column: 2; grid-row: 1; margin: 0; }
  .approach .principle p { grid-column: 1 / -1; grid-row: 2; margin: 10px 0 0; }
}

/* ---------- 10. AI selector: five plain buttons ----------
   Gene: the numbered trail (v10) read as a progress bar, not as something to press.
   Same buttons, ARIA and browse.js. Each waypoint becomes a raised white pill with its
   number inside; the selected one is filled deep green. The dashed trail line is gone. */
.ai-browser .browse-navigation { align-items: center; }
.ai-browser .browse-navigation .ai-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.ai-browser .browse-navigation .ai-tabs::before { display: none; }
.ai-browser .browse-navigation .ai-tabs button,
.ai-browser .browse-navigation .ai-tabs button[aria-selected="true"],
.ai-browser .browse-navigation .ai-tabs button:not([aria-selected="true"]):hover,
.ai-browser .browse-navigation .ai-tabs button:not([aria-selected="true"]):active {
  flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 48px; padding: 7px 20px 7px 8px;
  border: 1px solid color-mix(in oklab, var(--ink), transparent 84%); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
  box-shadow: 0 1px 1px rgba(22, 32, 26, 0.06), 0 8px 18px -12px rgba(22, 32, 26, 0.35);
  cursor: pointer; overflow: hidden;
  transition: transform var(--dur-feedback) var(--ease-standard), box-shadow var(--dur-feedback) ease,
              border-color var(--dur-feedback) ease, background-color var(--dur-feedback) ease, color var(--dur-feedback) ease;
}
.ai-browser .browse-navigation .ai-tabs button::before {
  width: 32px; height: 32px; flex: none; border: 0; background: var(--band); color: var(--green-deep); font-size: 11px; box-shadow: none;
}
@media (hover: hover) {
  .ai-browser .browse-navigation .ai-tabs button:not([aria-selected="true"]):hover {
    transform: translateY(-1px); border-color: var(--green);
    box-shadow: 0 1px 1px rgba(22, 32, 26, 0.06), 0 12px 22px -12px rgba(22, 32, 26, 0.42);
  }
  .ai-browser .browse-navigation .ai-tabs button:hover::before { border: 0; }
}
.ai-browser .browse-navigation .ai-tabs button[aria-selected="true"] {
  background: var(--green-deep); border-color: var(--green-deep); color: #fff; font-weight: 650;
  box-shadow: 0 10px 22px -12px color-mix(in oklab, var(--green-deep), transparent 15%);
}
.ai-browser .browse-navigation .ai-tabs button[aria-selected="true"]::before { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: none; }
/* autoplay countdown: a light line along the bottom of the selected pill */
.ai-browser .browse-navigation .ai-tabs button > .tab-timer { inset: auto 20px 5px 50px; width: auto; height: 2px; background: rgba(255, 255, 255, 0.55); transition: opacity var(--dur-feedback) ease; }
/* paused tour: no half-filled line left behind */
.ai-browser:not(.tour-running) .browse-navigation .ai-tabs button > .tab-timer { opacity: 0; }
.ai-browser .browse-navigation .ai-tabs button:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.ai-browser .browse-navigation .ai-tabs button:focus-visible::before { outline: 0; }
@media (max-width: 720px) {
  /* three per row; the pause button takes the empty sixth cell */
  .ai-browser .browse-navigation { position: relative; display: block; }
  .ai-browser .browse-navigation .ai-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ai-browser .browse-navigation .ai-tabs button,
  .ai-browser .browse-navigation .ai-tabs button[aria-selected="true"],
  .ai-browser .browse-navigation .ai-tabs button:not([aria-selected="true"]):hover,
  .ai-browser .browse-navigation .ai-tabs button:not([aria-selected="true"]):active {
    min-height: 44px; gap: 6px; padding: 6px 8px 6px 6px; font-size: 13px;
  }
  .ai-browser .browse-navigation .ai-tabs button::before { width: 24px; height: 24px; font-size: 9.5px; }
  .ai-browser .browse-navigation .ai-tabs button > .tab-timer { left: 36px; right: 10px; bottom: 4px; }
  .ai-browser .browse-navigation .view-switcher {
    position: absolute; right: 0; bottom: 0; width: calc((100% - 16px) / 3); height: 44px;
    display: flex; align-items: center; justify-content: center; margin: 0;
  }
}
/* ---------- 11. phone polish (mobile audit, 2026-09-24) ---------- */
@media (max-width: 720px) {
  /* spreadsheet mocks: columns size to their content and words never split mid-word
     (v8 fixed the layout and allowed overflow-wrap:anywhere, giving "Cou/ntr/y") */
  .models-shell .sheet table { table-layout: auto; }
  .models-shell .sheet th, .models-shell .sheet td { width: auto; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
  .models-shell .sheet.has-filter .hrow td { padding-right: 11px; }
  .models-shell .sheet.has-filter .hrow td::after { right: 2px; }

  /* small labels up to a readable 12px (mock spreadsheet cells and fake URL bars stay small) */
  .product-story .story-source, .proof-diagram .disclosure-label, .aimap-flow span, .proof-kicker,
  .proof-dashboard p, .approval-note, .bld-tag, .bld-url, .website-gallery .w-tag,
  .sheet-label, #analytics figcaption, .cform .req-note, .app-tabs button small { font-size: 12px !important; }

  /* inputs at 16px so iOS Safari does not zoom the page on focus; the ask box is tappable edge to edge */
  #rag-q, .cform input, .cform textarea { font-size: 16px !important; }
  .rag-field input { min-height: 44px; }

  /* websites: the first six, then a button for the rest (upgrade.js adds it) */
  .website-gallery.is-collapsed > .web-card:nth-child(n+7) { display: none; }
  .website-gallery .web-more {
    grid-column: 1 / -1; min-height: 48px; margin-top: 2px; border: 1px solid color-mix(in oklab, var(--ink), transparent 84%);
    border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1 var(--font-body); cursor: pointer;
    box-shadow: 0 1px 1px rgba(22, 32, 26, 0.06), 0 8px 18px -12px rgba(22, 32, 26, 0.35);
  }
  .website-gallery .web-more:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
}
.website-gallery .web-more { display: none; }
@media (max-width: 720px) { .website-gallery.is-collapsed .web-more { display: block; } }

/* the last uppercase mono leftovers, in sentence case like every other label since v12 */
.w-plus .mono, .footer-row .mono { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font-body) !important; font-weight: 500; }

@media (max-width: 370px) {
  .models-shell .sheet.has-filter .hrow td { padding-right: 3px; }
  .models-shell .sheet.has-filter .hrow td::after { display: none; }
  .ai-browser .browse-navigation .ai-tabs button,
  .ai-browser .browse-navigation .ai-tabs button[aria-selected="true"] { justify-content: center; padding: 6px; }
  .ai-browser .browse-navigation .ai-tabs button::before { display: none; }
}
