/* Polish pass — premium motion & proportion (Claude Design, 1 Sep 2026).
   Scope: nav glow, tool-rail marquee + proportions, hero scroll settle. */

/* — Nav: soft amber glow on hover — */
.nav-links > a { transition: color .35s ease, text-shadow .35s ease; }
.nav-links > a:hover { color: var(--cream); text-shadow: 0 0 16px rgba(239, 168, 59, .55); }
.podcast-link:hover .podcast-title { text-shadow: 0 0 16px rgba(239, 168, 59, .5); }
.podcast-link .podcast-title { transition: text-shadow .35s ease; }
.logo .ring { transition: box-shadow .4s ease; }
.logo:hover .ring { box-shadow: 0 0 14px rgba(239, 168, 59, .6); }

/* — Buttons: quiet glow instead of jump — */
.btn-primary { transition: transform .3s ease, box-shadow .35s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px -6px rgba(239, 168, 59, .5); }

/* — Tool rail: proportions — even rhythm, no full-width stretch — */
.tool-list { justify-content: flex-start; gap: 44px; }
.tool-list li { transition: color .35s ease; }
.tool-list li:hover { color: rgba(244, 239, 229, .95); }
.tool-list img { transition: opacity .35s ease; }
.tool-list li:hover img { opacity: 1; }

/* — Tool rail: continuous drift (built by polish-motion.js) — */
[data-rail-motion="marquee"] .tool-list-scroll { overflow: hidden; mask-image: none; -webkit-mask-image: none; /* QC round-10: the edge fade is per whole mark in polish-motion.js — a gradient mask cut letters */ }
.tool-marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: rail-drift 22s linear infinite; /* QC: 18s=ticker (r9b), 28s=too slow (r10) — 22s pending Deth's word on the rail */ /* QC round-9b: 18 s read as a ticker; 28 s ≈ a mark-width in 2 s */ /* QC round-7: 38 s read as static at human pace */ }
.tool-marquee-track .tool-list { min-width: 0; width: max-content; gap: 64px; } /* QC round-9 (real finding on the shared bytes): eight marks must span wider than the window so no mark is in view twice */
.tool-marquee-track:hover { animation-play-state: paused; }
@keyframes rail-drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 32px)); } }

/* — Hero: settle out on scroll (transform/opacity set by polish-motion.js) — */
.hero-copy { will-change: transform, opacity; }

@media (max-width: 700px) {
  [data-rail-motion="marquee"] .tool-list-scroll { mask-image: none; -webkit-mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-marquee-track { animation: none; }
  .nav-links > a, .podcast-link .podcast-title, .btn-primary, .tool-list li, .tool-list img { transition: none; }
}

/* — Section system (Jack Roberts, 28 Aug): one viewport, one point. Every fold fills the screen, content centred. — */
.promise, .method, .founder { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
/* QC round 11 (2026-09-02): the closer is one small centred block — a 100svh screen left ~250px of vacant grid above and below it (risk .34). It now sits at its natural height as a closing band above the footer. */
.final { min-height: 0; }
.final-inner { padding-top: 132px; padding-bottom: 148px; }
.promise-inner, .method-inner, .founder-inner { padding-top: 96px; padding-bottom: 96px; }
.promise .promise-copy, .method-head .section-title, .founder-copy .section-title { font-size: clamp(40px, 4vw, 60px); line-height: 1.06; letter-spacing: -.02em; }
.promise .promise-copy { max-width: 12em; }
.promise .promise-inner { gap: 24px; }
.promise .promise-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 96px; }
.promise[data-statement="b-dissolve"] .promise-photo image-slot, .promise[data-statement="b-dissolve"] .promise-photo img { aspect-ratio: 4 / 5; max-height: 400px; }
.promise .promise-support { max-width: 30em; }
.promise .promise-quote { font: italic 400 clamp(19px, 1.5vw, 23px)/1.5 var(--serif); color: var(--muted-dark); max-width: 22em; margin-top: 8px; }
.promise .promise-quote strong { color: var(--amber); font-weight: 400; }
.promise[data-statement="b-dissolve"] .promise-photo { align-self: center; }
.promise[data-statement="b-dissolve"] .promise-photo image-slot, .promise[data-statement="b-dissolve"] .promise-photo img { max-height: 480px; }

/* — #fit: one screen, one point. Left column: label + statement + quote at top, fit pair pinned to the bottom. Right column: photo on the grid, full section height, bleeding to the right edge, dissolving into the dark on its inner side. — */
#fit.promise { min-height: 100svh; display: block; }
#fit.promise::after { display: none; }
#fit .promise-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr auto; column-gap: clamp(48px, 6vw, 96px); row-gap: 0; min-height: 100svh; padding-top: 96px; padding-bottom: 96px; box-sizing: border-box; }
#fit .promise-label { grid-column: 1; grid-row: 1; padding-top: 0; margin-bottom: 28px; }
#fit .promise-body { display: contents; }
#fit .promise-copy { grid-column: 1; grid-row: 2; max-width: 11em; margin: 0; }
#fit .promise-quote { grid-column: 1; grid-row: 3; align-self: start; margin-top: 32px; max-width: 24em; }
#fit .fit-list { grid-column: 1; grid-row: 4; margin-top: 64px; }
#fit .promise-photo { grid-column: 2; grid-row: 1 / 5; display: block; margin: -96px calc(-1 * var(--pad)) -96px 0; min-height: 0; align-self: stretch; justify-self: stretch; width: auto; padding: 0; background: none; transform: none; box-shadow: none; }
#fit .promise-photo::after { display: none; }
#fit .promise-photo image-slot, #fit .promise-photo img { display: block; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; border-radius: 0; object-fit: cover; object-position: 30% 50%; filter: saturate(.86) contrast(1.06) brightness(.88);
  mask-image: linear-gradient(to right, transparent, #000 34%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%), linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in; }
#fit .promise-photo image-slot::part(frame) { border-radius: 0; }
@media (min-width: 1400px) { #fit .promise-photo { margin-right: calc((100vw - var(--wrap)) / -2 - var(--pad)); } }
@media (max-width: 940px) {
  #fit .promise-inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; min-height: 0; }
  #fit .promise-label, #fit .promise-copy, #fit .promise-quote, #fit .fit-list, #fit .promise-photo { grid-column: 1; grid-row: auto; }
  #fit .promise-photo { order: 3; margin: 40px calc(-1 * var(--pad)) 0; height: 360px; }
  #fit .promise-photo image-slot, #fit .promise-photo img { mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent); }
  #fit .fit-list { order: 4; margin-top: 40px; }
}

/* — Fit rows inside the merged Who-we're-for section — */
.promise .fit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 96px; margin-top: 56px; border-top: 0; }
.promise .fit-row { border-bottom: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0 0; }
.promise .fit-row h3 { margin: 12px 0 8px; }
.promise .fit-row p { margin: 0; }
@media (max-width: 940px) {
  .promise .promise-body { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .promise .promise-photo { grid-column: 1; grid-row: 3; }
  .promise[data-statement="b-dissolve"] .promise-photo { align-self: auto; display: block; }
}
@media (max-width: 700px) {
  .promise, .method, .founder, .final { min-height: 0; }
  .promise-inner, .method-inner, .founder-inner, .final-inner { padding-top: 72px; padding-bottom: 72px; }
  .promise .promise-copy { max-width: none; }
  .promise .fit-list { grid-template-columns: minmax(0, 1fr); row-gap: 40px; margin-top: 48px; }
}
