/* Saffrai
   Colour: pure black ground, one saffron accent (#F5A524). Saffron = action or "the engineer at work".
   Type: Instrument Serif only for three moments (hero, reveal, book) + wordmark. Geist everywhere else.
   Geist Mono only for document and data labels (job description, badge, week scale).
   The ball (assets/gen/ball.webp) is the only 3D object. It rests in: hero, demo icon, reveal, pilot, book. */

:root {
  --bg: #000;
  --lift: #070707;
  --surface: #0b0b0b;
  --surface-2: #111;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --text: #ededed;
  --text-2: #a1a1a1;
  --mute: #8f8f8f;
  --dim: #8a8a8a;
  --saffron: #f5a524;
  --saffron-ink: #1a1103;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, blockquote, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); font-style: normal; }
.saffron { color: var(--saffron); }
.mute { color: var(--mute); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.fine { font-size: 14px; color: #8f8f8f; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--saffron); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.h2 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 500; line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.sub { font-size: 17px; color: var(--mute); margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.btn-saffron { background: var(--saffron); color: var(--saffron-ink); }
.btn-saffron:hover { background: #ffb840; }
.btn-ghost { color: var(--text); border-color: #333; background: rgba(255,255,255,0.03); font-weight: 500; }
.btn-ghost:hover { border-color: #666; }
.btn-light { background: var(--text); color: #000; font-weight: 500; }
.btn-light:hover { background: #fff; }
.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .3s; }
.nav.scrolled { background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 75%, rgba(0,0,0,0) 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.wordmark { font-family: var(--serif); font-size: 28px; color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--mute); text-decoration: none; }
.nav-links a:hover { color: #fff; }
.nav-cta .short { display: none; }

/* ---------- The ball ---------- */
.ball-rest { pointer-events: none; }
.ball-static { width: 100%; height: 100%; object-fit: contain; }
.ball-rest { z-index: 4; }
/* a soft saffron glow under the ball that slowly breathes (opacity only) */
.ball-rest::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,165,36,0.32), rgba(245,165,36,0.08) 55%, transparent 75%); animation: glow 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
/* parallax + mouse tilt are set on this wrapper by main.js; the image itself drifts */
.ball-par { position: absolute; inset: 0; display: block; will-change: transform; }
.ball-par .ball-static { animation: drift 7s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(-8px) rotate(-1.5deg); } 50% { transform: translateY(8px) rotate(1.5deg); } }
.reveal-ball .ball-static { animation-delay: -2s; }
.pilot-ball .ball-static { animation-delay: -4s; animation-duration: 8s; }
.book-ball .ball-static { animation-duration: 9s; }
.book-ball::before { animation-duration: 5.5s; background: radial-gradient(closest-side, rgba(245,165,36,0.4), rgba(245,165,36,0.1) 55%, transparent 75%); }
/* text sits above the ball */
.hero-copy, .reveal-copy, .pilot-copy, .pilot-steps, .book-copy, .founder-inner, .hire-inner, .demo > .wrap, .demo-pin > .wrap, .tools, .lifted .wrap { position: relative; z-index: 6; }
.ball-mini { width: 28px; height: 28px; object-fit: contain; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; overflow: hidden; }
.hero-rays { position: absolute; top: 0; right: 0; width: 72%; height: 100%; background: url(assets/gen/hero-rays.webp) right top / cover no-repeat; opacity: 0.7; z-index: 2; pointer-events: none; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%); mask-image: linear-gradient(0deg, transparent 0%, #000 30%); }
.hero-ball { position: absolute; right: 4%; top: 50%; width: min(44vw, 640px); aspect-ratio: 1; transform: translateY(-46%) rotate(-6deg); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #000 22%, transparent 55%); pointer-events: none; z-index: 3; }
.hero-copy { padding-top: 72px; }
.hero h1 { font-size: clamp(54px, 8vw, 116px); line-height: 0.95; letter-spacing: -0.025em; max-width: 9.5ch; color: #fff; }
.lede { font-size: 21px; color: #b3b3b3; max-width: 24em; margin-top: 28px; }

/* ---------- 2. Demo ---------- */
.demo { position: relative; padding-top: 72px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line); }
.steps li { padding: 16px 20px 0 0; border-top: 2px solid var(--line); margin-top: -1px; font-size: 16px; color: #8a8a8a; transition: color .4s, border-color .4s; cursor: pointer; }
.steps li span { display: block; font-size: 12px; margin-bottom: 4px; }
.steps li.past { color: #b3b3b3; border-top-color: #5c5c5c; }
.steps li.on { color: #fff; font-weight: 500; border-top-color: var(--saffron); }
.steps li.on span { color: var(--saffron); }

.demo-pin { padding-top: 0; }
.demo-stage { position: relative; max-width: 1336px; margin: 28px auto 0; height: clamp(560px, calc(100svh - 200px), 760px); border-radius: 22px; overflow: hidden; border: 1px solid #1a1a1a; background: url(assets/gen/demo-backdrop.jpg) center 30% / cover no-repeat; }
.demo-shade { position: absolute; inset: 0; background: radial-gradient(85% 90% at 50% 35%, rgba(0,0,0,0.1), rgba(0,0,0,0.8) 100%); }
.notify { position: absolute; left: 3%; top: 40px; z-index: 3; width: 280px; background: rgba(17,17,17,0.86); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 24px 50px -20px rgba(0,0,0,0.95); }
.notify-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mute); }
.notify-head img { width: 18px; height: 18px; }
.notify-head time { margin-left: auto; }
.notify p { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text); }

.app { position: absolute; left: 50%; top: 120px; transform: translateX(-50%); width: min(1160px, 94%); border-radius: 14px 14px 0 0; border: 1px solid rgba(255,255,255,0.1); border-bottom: 0; background: var(--surface); box-shadow: 0 50px 100px rgba(0,0,0,0.8); overflow: hidden; z-index: 2; }
.app-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #262626; }
.app-bar span { margin: 0 auto; font-size: 12px; color: var(--dim); transform: translateX(-20px); }
.app-body { display: flex; min-height: 600px; }
.ticket { flex: 1 1 auto; min-width: 0; padding: 24px 28px; }
.meta { font-size: 12px; color: var(--dim); }
.ticket-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.ticket-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.ticket-who { margin-top: 4px; font-size: 13px; color: var(--mute); }
.ticket-status { font-size: 13px; color: var(--mute); }
.ticket-status b { color: var(--text); font-weight: 500; margin-left: 6px; }
.suggest { margin-top: 22px; background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.suggest-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-size: 13px; }
.suggest-head b { font-weight: 500; color: var(--text); }
.suggest-head span { font-size: 12px; color: var(--mute); }
.row { display: grid; grid-template-columns: 22px 140px minmax(0, 1fr) 150px 18px; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.05); transition: background .5s; }
.row img { width: 20px; height: 20px; border-radius: 5px; object-fit: contain; }
.row .f { font-size: 13px; color: var(--mute); }
.row .v { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .v s { color: #7a7a7a; text-decoration: none; margin-right: 8px; }
.row .src { font-size: 12px; color: var(--dim); }
.tick { width: 16px; height: 16px; border-radius: 4px; border: 1px solid #3a3a3a; position: relative; transition: background .3s, border-color .3s; }
.tick.on { background: var(--text); border-color: var(--text); }
.tick.on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.row.live { background: linear-gradient(90deg, rgba(245,165,36,0.04), rgba(245,165,36,0.15), rgba(245,165,36,0.04)); background-size: 200% 100%; }
.row.live .src { color: var(--saffron); }
.row.live.done { background: transparent; }
.row.live.done .src { color: var(--dim); }
.caret { display: inline-block; width: 2px; height: 15px; background: var(--saffron); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.row.live.done .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.approve { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,0.05); background: #0e0e0e; font-size: 13px; color: var(--mute); }
.approve > span:first-child { margin-right: auto; }
.btn-mini { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text); }
.btn-mini.primary { background: var(--saffron); border-color: var(--saffron); color: var(--saffron-ink); font-weight: 600; }

.thread { width: 300px; flex-shrink: 0; border-left: 1px solid rgba(255,255,255,0.07); padding: 24px 20px; background: #0d0d0d; }
.thread-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.thread-head b { font-weight: 500; color: var(--text); }
.ball-mini { width: 28px; height: 28px; object-fit: contain; }
.thread .meta { margin-top: 22px; }
.thread ol { margin-top: 14px; padding-left: 14px; border-left: 1px solid #222; display: grid; gap: 18px; }
.thread li { position: relative; font-size: 13px; line-height: 1.45; }
.thread li::before { content: ""; position: absolute; left: -18px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.thread li b { display: block; font-weight: 400; color: var(--text); }
.thread li span { display: block; font-size: 12px; color: var(--dim); }
.thread li.new::before { background: var(--text); }
.thread li.new b { color: #fff; }
.thread li.new span { color: var(--saffron); }

/* step highlighting (only while the demo plays) */
.demo.armed .suggest .row, .demo.armed .thread li { opacity: 0; transform: translateY(8px); }
.demo .suggest .row, .demo .thread li { transition: opacity .45s ease, transform .45s ease, background .5s; }
.demo.armed .suggest .row.shown, .demo.armed .thread li.shown { opacity: 1; transform: none; }
.demo.armed .notify { opacity: 0; transform: translateY(-8px); }
.demo.armed .approve { opacity: 0; }
.approve { transition: opacity .5s ease; }
.demo.armed .approve.shown { opacity: 1; }
.notify { transition: opacity .5s ease, transform .5s ease; }
.demo.armed .notify.shown { opacity: 1; transform: none; }
.replay { margin-top: 14px; background: none; border: 1px solid var(--line-2); color: var(--text-2); font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.replay:hover { color: #fff; border-color: #555; }

.tools { text-align: center; margin-top: 48px; }
.tools > p:first-child { font-size: 16px; color: var(--text-2); margin-bottom: 24px; }
.logo-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1100px; margin: 0 auto; }
.logo-wall li { width: 64px; height: 64px; border-radius: 16px; background: #141414; border: 1px solid #242424; display: flex; align-items: center; justify-content: center; }
.logo-wall img { width: 34px; height: 34px; object-fit: contain; }
.logo-wall img.r { border-radius: 8px; }
.logo-wall img.inv { filter: invert(1); }
.logo-wall img.lite { filter: invert(1) hue-rotate(180deg); }
.logo-wall li.txt { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.logo-wall li.yours { background: transparent; border: 1px dashed #3a3a3a; font-size: 12px; color: var(--mute); }
.tools .fine { margin-top: 18px; }

/* ---------- 3. Reveal ---------- */
.reveal { position: relative; margin-top: 56px; min-height: 740px; display: flex; align-items: center; overflow: hidden; }
.reveal-ball { position: absolute; left: 50%; bottom: 96px; width: 400px; aspect-ratio: 1; transform: translateX(-50%) rotate(8deg); }
.reveal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 60% at 50% 70%, rgba(245,165,36,0.07), transparent 70%); pointer-events: none; }
.reveal-copy { text-align: center; }
.reveal-kicker { font-size: 20px; color: #e5e5e5; margin-bottom: 18px; text-shadow: 0 2px 20px #000; }
.reveal-title { font-size: clamp(64px, 11vw, 168px); line-height: 0.88; letter-spacing: -0.03em; color: #fff; text-shadow: 0 4px 60px rgba(0,0,0,0.5); }
.reveal-title span { display: inline-block; }
.reveal-sub { position: relative; font-size: 22px; line-height: 1.55; color: #f2f2f2; max-width: 28em; margin: 36px auto 0; text-shadow: 0 1px 3px #000, 0 2px 24px #000; }
.reveal-sub .scrim { position: absolute; inset: -30px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(0,0,0,0.5), rgba(0,0,0,0.25) 60%, transparent); pointer-events: none; }

/* ---------- 4/5. Lifted band: JD + projects ---------- */
.lifted { position: relative; background: linear-gradient(180deg, #121212 0%, #0a0a0a 45%, #000 100%); padding: 96px 0 96px; }
.lifted::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #2a2a2a, transparent); }
.jd .sub { max-width: 30em; }
.jd-grid { max-width: 1180px; margin: 48px auto 0; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.jd-doc { flex: 1.7 1 560px; min-width: 0; background: #0c0c0c; border: 1px solid #222; border-radius: 6px; box-shadow: 0 40px 80px -40px #000; }
.jd-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 32px; border-bottom: 1px solid #1c1c1c; }
.jd-top .mono { font-size: 12px; color: #6b6b6b; }
.jd-top .serif { font-size: 20px; color: var(--text-2); }
.jd-body { padding: 32px; }
.jd-role { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chips span { font-size: 14px; color: #d4d4d4; border: 1px solid var(--line-2); padding: 7px 12px; border-radius: 999px; }
.chips i { font-size: 11px; color: #6b6b6b; margin-right: 6px; }
.jd-list { margin-top: 30px; border-top: 1px solid #1c1c1c; }
.jd-list li { display: grid; grid-template-columns: 52px 1fr; align-items: baseline; padding: 20px 0; border-bottom: 1px solid #1c1c1c; font-size: 26px; font-weight: 500; letter-spacing: -0.02em; color: #fff; }
.jd-list .mono { font-size: 14px; color: var(--saffron); }
.jd-body .fine { margin-top: 26px; }

.badge { flex: 0 1 300px; min-width: 260px; background: #161616; border: 1px solid #262626; border-radius: 18px; padding: 22px 24px 26px; box-shadow: 0 40px 80px -30px #000; transform: rotate(2deg); }
.badge-slot { display: block; width: 56px; height: 8px; margin: 0 auto; border-radius: 4px; background: #000; border: 1px solid var(--line-2); }
.badge-row { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.badge-row .serif { font-size: 20px; color: var(--text); }
.badge-row .mono { font-size: 10px; }
.badge-photo { width: 150px; height: 150px; margin: 18px auto 0; border-radius: 50%; background: #000; overflow: hidden; border: 1px solid #262626; }
.badge-photo img { width: 100%; height: 100%; object-fit: cover; transform: rotate(-4deg) scale(1.12); }
.badge-name { margin-top: 14px; text-align: center; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.badge-role { margin-top: 4px; text-align: center; font-size: 13px; color: var(--mute); }
.badge dl { margin-top: 20px; padding-top: 16px; border-top: 1px solid #222; display: grid; gap: 10px; }
.badge dl div { display: flex; justify-content: space-between; gap: 12px; }
.badge dt { font-size: 11px; color: #6b6b6b; }
.badge dd { font-size: 13px; color: var(--text); }

.projects { padding-top: 96px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.head-row .fine { max-width: 26em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { display: block; text-decoration: none; background: var(--surface); border: 1px solid #1c1c1c; border-radius: 18px; overflow: hidden; transition: border-color .3s, transform .3s; }
.card:hover { border-color: #333; transform: translateY(-4px); }
.card-pv { height: 260px; background: radial-gradient(90% 80% at 50% 100%, rgba(245,165,36,0.13), transparent 70%), #141414; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; }
.card-pv > div { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-pv > div { transform: scale(1.04); }
.card-pv.right { justify-content: flex-end; padding-right: 0; }
.pv-mail { width: 100%; background: #222; border-radius: 14px; padding: 16px; transform: rotate(-2deg); box-shadow: 0 20px 40px -20px #000; }
.pv-mail p { font-size: 16px; line-height: 1.4; color: var(--text); }
.pv-mail p.mute { font-size: 13px; }
.pv-mail p.saffron { font-size: 13px; margin-top: 12px; }
.pv-mail p + p { margin-top: 6px; }
.pv-table { width: 100%; background: #222; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px -20px #000; }
.pv-th { display: flex; justify-content: space-between; padding: 14px 16px; font-size: 13px; color: var(--mute); border-bottom: 1px solid #262626; }
.pv-tr { display: flex; justify-content: space-between; align-items: center; padding: 16px; font-size: 16px; color: #fff; }
.pv-tr.dim { padding-top: 0; color: var(--mute); }
.pv-tr.dim span:last-child { font-size: 13px; }
.pill { color: var(--saffron-ink); background: var(--saffron); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 6px; }
.pv-split { display: flex; width: 120%; background: #222; border-radius: 14px 0 0 14px; overflow: hidden; box-shadow: 0 20px 40px -20px #000; }
.pv-split > div { flex: 1; padding: 16px; border-right: 1px solid #262626; }
.pv-split p { font-size: 15px; line-height: 1.4; color: #d4d4d4; }
.pv-split .mute { font-size: 13px; }
.pv-split .side { flex: 0 0 150px; background: #141414; border: 0; }
.pv-split .tiny { font-size: 11px; }
.pv-split .b { font-size: 15px; font-weight: 600; color: #fff; margin-top: 6px; }
.card-body { padding: 22px 22px 24px; }
.card-body .mute { font-size: 13px; color: #6b6b6b; }
.card-body h3 { margin-top: 8px; font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; color: #fff; }
.card-foot { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.card-foot img { width: 18px; height: 18px; object-fit: contain; }
.card-foot img.r { border-radius: 4px; }
.card-foot span { margin-left: auto; font-size: 13px; color: var(--text); }

/* ---------- 6. Why not hire ---------- */
.paint { position: absolute; inset: 0; background-repeat: no-repeat; pointer-events: none; }
.paint-hire { background-image: url(assets/gen/paint-hire.jpg); background-size: max(140%, 1700px) auto; background-position: center 70%; opacity: 0.9; }
.paint-dusk { background-image: url(assets/gen/paint-dusk.jpg); background-size: max(120%, 1600px) auto; background-position: 70% 65%; opacity: 1; }
.paint-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.35) 72%, #000 100%); }
.paint-shade.side { background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 70%), linear-gradient(180deg, #000 0%, transparent 25%, transparent 75%, #000 100%); }
.hire { position: relative; overflow: hidden; }
.hire-inner { position: relative; padding-top: 120px; padding-bottom: 120px; }
.race { margin-top: 52px; }
.race + .race { margin-top: 44px; }
.race-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.race-head p:first-child { font-size: 17px; color: var(--text-2); }
.race-head .saffron { font-weight: 500; }
.big { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.big.grey { color: var(--mute); }
.bar { margin-top: 14px; height: 44px; border-radius: 10px; background: rgba(40,40,40,0.85); overflow: hidden; }
.bar .fill { width: 46%; height: 100%; background: rgba(120,120,120,0.55); }
.ticks { display: grid; grid-template-columns: 2fr 6fr 5fr 4fr 1fr; margin-top: 10px; font-size: 12px; color: var(--dim); }
.ticks span { transition: color .3s; }
.ticks span.lit { color: #d4d4d4; }
.ticks .end { text-align: right; }
.bar-row { margin-top: 14px; display: flex; gap: 6px; align-items: center; }
.bar-short { flex: 0 0 11%; height: 44px; border-radius: 10px; background: var(--saffron); transform-origin: left center; }
.bar-run { flex: 1 1 auto; height: 44px; border-radius: 10px; border: 1px solid rgba(245,165,36,0.35); display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: var(--text-2); }
.hire .fine { margin-top: 20px; color: var(--dim); font-size: 13px; }
.labels { margin-top: 40px; font-size: 16px; color: var(--text); word-spacing: 2px; }
.labels i { font-style: normal; color: #3a3a3a; margin: 0 16px; }

/* ---------- 7. Pilot ---------- */
.pilot-wrap { padding-top: 88px; }
.pilot { position: relative; border-radius: 24px; border: 1px solid rgba(245,165,36,0.3); background: #000; box-shadow: 0 0 140px -50px rgba(245,165,36,0.4); padding: 64px 64px 48px; overflow: hidden; }
.pilot-ball { position: absolute; right: 56px; top: 44px; width: 300px; aspect-ratio: 1; transform: rotate(4deg); }
.pilot-glow { position: absolute; inset: 0; background: radial-gradient(45% 80% at 82% 35%, rgba(245,165,36,0.12), transparent 65%); pointer-events: none; }
.pilot-copy { max-width: 640px; }
.h2.big { font-size: clamp(38px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.pilot-copy p { font-size: 19px; color: #c7c7c7; margin-top: 20px; max-width: 30em; }
.pilot-copy .btn { margin-top: 32px; }
.pilot-steps { margin-top: 56px; padding-top: 28px; border-top: 1px solid #222; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 19px; font-weight: 500; color: #fff; }
.pilot-steps span { display: block; font-size: 13px; font-weight: 400; color: var(--mute); margin-bottom: 6px; }
.pilot-steps span.saffron { color: var(--saffron); }

/* ---------- 8. Founder ---------- */
.founder { position: relative; margin-top: 64px; overflow: hidden; }
.founder-inner { position: relative; padding-top: 110px; padding-bottom: 110px; display: flex; gap: 72px; align-items: center; flex-wrap: wrap; }
.founder blockquote { flex: 1.4 1 520px; min-width: 0; }
.founder blockquote p { font-size: clamp(32px, 4vw, 54px); font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; color: #fff; max-width: 20ch; }
.founder blockquote footer { margin-top: 30px; font-size: 16px; color: var(--text); }
.photo { position: relative; flex: 0 1 340px; aspect-ratio: 4 / 5; border-radius: 6px; border: 1px dashed #3a3a3a; background: #0b0b0b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo span { font-size: 14px; color: #6b6b6b; }
.photo:has(img) { border: 0; }

/* ---------- 9. Book ---------- */
.book { position: relative; padding: 110px 0 96px; text-align: center; overflow: hidden; }
.book-ball { position: relative; width: 340px; aspect-ratio: 1; margin: 0 auto; transform: rotate(-6deg); }
.book-glow { position: absolute; left: 50%; top: 120px; width: 760px; height: 520px; transform: translateX(-50%) translateY(-40px); background: radial-gradient(50% 50% at 50% 40%, rgba(245,165,36,0.2), transparent 70%); pointer-events: none; }
.book-rays { position: absolute; left: 0; bottom: 0; width: 70%; height: 90%; background: url(assets/gen/hero-rays.webp) right top / cover no-repeat; transform: scale(-1, -1); opacity: 0.32; pointer-events: none; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
.book h2 { font-size: clamp(46px, 6.4vw, 92px); line-height: 0.98; color: #fff; margin-top: 8px; }
.book-copy > p { font-size: 19px; color: var(--text-2); margin-top: 20px; }
.book-copy .btn { margin-top: 36px; }
.book-copy .fine { margin-top: 24px; font-size: 15px; }
.book-copy .fine a { color: var(--text-2); }

.footer { border-top: 1px solid #141414; }
.footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.footer .serif { font-size: 22px; color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (min-width: 761px) and (max-height: 860px) {
  .app { top: 96px; transform: translateX(-50%) scale(0.86); transform-origin: top center; }
  .notify { top: 20px; transform: scale(0.9); transform-origin: top left; }
  .steps { margin-top: 22px; }
  .steps li { padding-top: 12px; font-size: 15px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .thread { display: none; }
  .row { grid-template-columns: 22px 120px minmax(0, 1fr) 18px; }
  .row .src { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav-cta { min-height: 36px; padding: 7px 14px; font-size: 13px; }
  .nav-cta .long { display: none; }
  .nav-cta .short { display: inline; }
  .suggest-head span { display: none; }
  .hero { align-items: flex-end; padding-bottom: 64px; }
  .hero-ball { right: -24%; top: 3%; width: 78vw; transform: rotate(-6deg); }
  .hero-shade { background: linear-gradient(0deg, #000 35%, rgba(0,0,0,0.4) 70%, transparent 100%); }
  .hero-rays { width: 100%; }
  .lede { font-size: 18px; }
  .cta-row .btn { flex: 1 1 100%; }
  .demo { padding-top: 96px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .demo-stage { height: 620px; margin-left: 12px; margin-right: 12px; border-radius: 16px; }
  .notify { left: 12px; right: 12px; width: auto; top: 14px; }
  .app { top: 116px; width: calc(100% - 24px); }
  .ticket { padding: 16px; }
  .ticket-title { font-size: 18px; }
  .row { grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 10px; padding: 12px; }
  .row .f { display: none; }
  .approve > span:first-child, .approve .btn-mini:not(.primary) { display: none; }
  .logo-wall li { width: 52px; height: 52px; border-radius: 13px; }
  .logo-wall img { width: 28px; height: 28px; }
  .reveal { min-height: 760px; margin-top: 110px; }
  .reveal-ball { width: 240px; bottom: 72px; }
  .reveal-sub { font-size: 18px; }
  .lifted { padding: 90px 0 100px; }
  .jd-body { padding: 22px; }
  .jd-top { padding: 14px 22px; }
  .jd-role { font-size: 26px; }
  .jd-list li { font-size: 20px; grid-template-columns: 40px 1fr; }
  .badge { transform: none; margin: 0 auto; }
  .projects { padding-top: 110px; }
  .cards { grid-template-columns: 1fr; }
  .hire-inner { padding-top: 100px; padding-bottom: 100px; }
  .ticks { font-size: 10px; }
  .ticks span:nth-child(1), .ticks span:nth-child(5) { display: none; }
  .ticks { grid-template-columns: 6fr 5fr 4fr; }
  .labels i { margin: 0 8px; }
  .pilot-wrap { padding-top: 100px; }
  .pilot { padding: 36px 22px 28px; }
  .pilot-ball { width: 170px; right: -24px; top: -20px; opacity: 0.85; }
  .pilot-copy { padding-right: 60px; }
  .pilot-steps { grid-template-columns: 1fr 1fr; font-size: 17px; }
  .founder { margin-top: 100px; }
  .founder-inner { padding-top: 80px; padding-bottom: 80px; gap: 40px; }
  .photo { flex-basis: 100%; max-width: 300px; }
  .book { padding: 120px 0 100px; }
  .book-ball { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   v2 sections (hero A, demo with side steps, definition, job listing,
   light project screens, impact, footer, cookie consent)
   ===================================================================== */

/* ---------- Hero A: the stone is a sun over the painted horizon ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: block; }
.hero-sky { position: absolute; inset: 0; background: url(assets/gen/paint-dusk.jpg) center 40% / cover no-repeat; transform: scaleX(-1); }
.hero-sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.25) 25%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.8) 66%, #000 84%); }
.hero-glow { position: absolute; left: 50%; top: calc(14% + 210px); width: 900px; height: 280px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(245,165,36,0.48), rgba(245,165,36,0.12) 55%, transparent); z-index: 1; animation: glow 4.5s ease-in-out infinite; pointer-events: none; }
.hero-ball { position: absolute; left: 50%; right: auto; top: 14%; width: 240px; aspect-ratio: 1; transform: translateX(-50%); }
.hero-ball::before { display: none; }
.hero-copy { position: absolute; left: 0; right: 0; top: calc(14% + 270px); text-align: center; padding-top: 0; }
.hero h1 { font-size: clamp(50px, 7vw, 104px); line-height: 0.96; max-width: 13ch; margin: 0 auto; }
.hero .lede { margin: 22px auto 0; text-align: center; }
.hero .cta-row { justify-content: center; margin-top: 30px; }
@media (max-height: 800px) and (min-width: 761px) {
  .hero-ball { top: 11%; width: 200px; } .hero-glow { top: calc(11% + 180px); } .hero-copy { top: calc(11% + 230px); } .hero h1 { font-size: 76px; }
}

/* ---------- Demo: steps on the left ---------- */
.demo-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 40px; }
.demo-side { position: sticky; top: 100px; }
.demo .steps { display: block; margin: 0; border: 0; }
.demo .steps li { display: flex; gap: 14px; padding: 16px 0 16px 16px; margin: 0; border-top: 0; border-left: 2px solid var(--line); font-size: 15px; color: #8a8a8a; cursor: pointer; transition: border-color .4s, color .4s; }
.demo .steps li .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #3a3a3a; display: grid; place-items: center; font-size: 12px; margin: 0; color: #8a8a8a; transition: all .4s; }
.demo .steps li b { display: block; font-weight: 500; color: inherit; font-size: 16px; }
.demo .steps li p { margin-top: 4px; font-size: 14px; line-height: 1.5; color: #8a8a8a; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .4s ease; }
.demo .steps li.past { color: #b3b3b3; border-left-color: #5c5c5c; }
.demo .steps li.past .n { border-color: var(--saffron); color: var(--saffron); }
.demo .steps li.on { color: #fff; border-left-color: var(--saffron); }
.demo .steps li.on .n { background: var(--saffron); border-color: var(--saffron); color: var(--saffron-ink); font-weight: 600; }
.demo .steps li.on p { max-height: 80px; opacity: 1; }
.demo:not(.armed) .steps li p { max-height: 80px; opacity: 1; }
.demo .replay { margin: 18px 0 0 16px; }
.demo-grid .demo-stage { margin: 0; max-width: none; height: 640px; }
.demo-grid .app { top: 96px; width: calc(100% - 48px); }
.demo-grid .notify { top: 22px; left: 24px; }
/* the active step's part of the screen gets a saffron outline */
.zone { position: relative; border-radius: 12px; transition: box-shadow .4s; }
.stage-1 .z1, .stage-2 .z2, .stage-3 .z3, .stage-4 .z4 { box-shadow: 0 0 0 2px var(--saffron), 0 0 30px -6px rgba(245,165,36,0.5); }
.z1 { padding: 4px 6px; margin: -4px -6px; }
.approve.zone { border-radius: 0 0 12px 12px; }
.ticket .approve { margin-top: 0; background: #0e0e0e; border-radius: 0 0 12px 12px; }
.thread.zone { border-radius: 0; }

/* ---------- Definition (what is an FDE) ---------- */
.reveal { min-height: 0; margin-top: 0; padding: 130px 0 120px; display: block; }
.reveal::before { background: radial-gradient(50% 70% at 50% 45%, rgba(245,165,36,0.08), transparent 70%); }
.reveal-kicker { font-size: 20px; color: #bdbdbd; margin-bottom: 10px; text-shadow: none; }
.reveal-title { font-size: clamp(54px, 8.4vw, 128px); line-height: 0.95; text-shadow: none; }
.definition { max-width: 760px; margin: 56px auto 0; padding: 32px 0; border-top: 1px solid #2a2a2a; border-bottom: 1px solid #2a2a2a; text-align: left; }
.def-word { font-size: 15px; color: var(--mute); }
.def-word .serif { font-size: 30px; color: #fff; margin-right: 8px; }
.def-word i { font-family: var(--serif); font-size: 20px; color: var(--saffron); }
.def-text { margin-top: 14px; font-size: 24px; line-height: 1.45; color: #ededed; letter-spacing: -0.01em; }
.def-text em { font-style: normal; color: var(--saffron); }
.def-note { margin-top: 16px; font-size: 16px; color: var(--mute); }

/* ---------- Job listing (a real-looking light listing) ---------- */
.jd { padding: 110px 0 0; background: none; }
.listing { max-width: 880px; margin: 44px auto 0; background: #f6f6f4; color: #161616; border-radius: 16px; padding: 30px 34px; box-shadow: 0 40px 80px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,0.06); }
.listing-top { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #e3e3df; }
.listing-logo { width: 52px; height: 52px; border-radius: 12px; background: #111; color: var(--saffron); display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.listing-role { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #111; }
.listing-meta { font-size: 14px; color: #666; margin-top: 2px; }
.listing-status { margin-left: auto; font-size: 13px; font-weight: 600; color: #7a4a00; background: #fde9c4; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.listing-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.listing-tags li { font-size: 13px; color: #333; background: #ebebe7; padding: 6px 12px; border-radius: 8px; }
.listing-body { margin-top: 24px; }
.listing-h { font-size: 13px; font-weight: 600; color: #666; text-transform: none; }
.listing-list { margin-top: 8px; }
.listing-list li { display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-bottom: 1px solid #e3e3df; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; color: #111; }
.listing-list li span { font-family: var(--mono); font-size: 13px; color: #b06f00; padding-top: 5px; }
.listing-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: #666; }

/* ---------- Projects: white CRM screens inside the cards ---------- */
.card-pv.light { background: radial-gradient(90% 80% at 50% 100%, rgba(245,165,36,0.22), transparent 70%), #1c1c1c; }
.lm-mail, .lm-table, .lm-split { background: #fff; color: #1f2328; border-radius: 12px; box-shadow: 0 24px 40px -20px rgba(0,0,0,0.9); font-size: 13px; }
.lm-mail { width: 100%; padding: 14px 16px; transform: rotate(-1.5deg); }
.lm-mail-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.lm-mail-top img { width: 16px; height: 16px; }
.lm-from { margin-top: 10px; font-weight: 600; font-size: 13px; color: #111; }
.lm-from span { font-weight: 400; color: #888; margin-left: 6px; font-size: 12px; }
.lm-body { margin-top: 4px; color: #444; line-height: 1.45; }
.lm-tag { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 600; color: #7a4a00; background: #fde9c4; padding: 3px 8px; border-radius: 6px; }
.lm-table { width: 100%; overflow: hidden; }
.lm-th { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 600; border-bottom: 1px solid #eee; }
.lm-btn { font-size: 11px; color: #fff; background: #111; padding: 4px 8px; border-radius: 6px; font-weight: 500; }
.lm-tr { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f2f2f2; color: #222; }
.lm-tr:last-child { border-bottom: 0; }
.lm-warn, .lm-ok, .lm-wait { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.lm-warn { color: #7a4a00; background: #fde9c4; } .lm-ok { color: #1a6b3c; background: #dcf3e5; } .lm-wait { color: #555; background: #eee; }
.lm-split { display: flex; width: 118%; border-radius: 12px 0 0 12px; overflow: hidden; }
.lm-left { flex: 1; padding: 14px; }
.lm-side { flex: 0 0 150px; padding: 14px; background: #f6f7f9; border-left: 1px solid #eee; }
.lm-side-h { font-size: 10px; font-weight: 600; color: #b06f00; }
.lm-side-t { margin-top: 4px; font-weight: 600; color: #111; }
.lm-side-v { font-size: 12px; color: #555; margin-top: 2px; }

/* ---------- Spacing and section fixes ---------- */
.projects { padding-top: 110px; }
.pilot-wrap { padding-top: 110px; }
.hire-inner { padding-top: 96px; padding-bottom: 80px; }
.founder { margin-top: 40px; }
.founder-inner { padding-top: 80px; padding-bottom: 80px; }
.book { padding: 110px 0 100px; }
/* founder photo blends into the painting: no box */
.photo { border: 0; background: none; aspect-ratio: 4 / 5; }
.photo img { mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(70% 66% at 50% 40%, #000 50%, transparent 100%); mask-image: radial-gradient(70% 66% at 50% 40%, #000 50%, transparent 100%); }

/* ---------- Impact ---------- */
.impact { padding: 100px 0 40px; }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid #262626; }
.impact-cell { padding: 30px 24px 10px 0; }
.impact-cell + .impact-cell { padding-left: 24px; border-left: 1px solid #1c1c1c; }
.impact-num { font-size: clamp(44px, 5vw, 72px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; color: #fff; }
.impact-cell:first-child .impact-num { color: var(--saffron); }
.impact-what { margin-top: 12px; font-size: 16px; color: #ededed; }
.impact-how { margin-top: 8px; font-size: 14px; color: var(--mute); line-height: 1.5; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid #1a1a1a; padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-mark { font-size: 30px; color: #fff; }
.foot-brand p { margin-top: 12px; font-size: 14px; color: var(--mute); max-width: 26em; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-h { font-size: 13px; color: #6b6b6b; margin-bottom: 4px; }
.foot-col a, .linkish { color: var(--text-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.foot-col a:hover, .linkish:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid #141414; font-size: 13px; color: #6b6b6b; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; left: 20px; bottom: 20px; z-index: 80; width: min(420px, calc(100% - 40px)); background: #111; border: 1px solid #2a2a2a; border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 60px -20px #000; }
.consent[hidden] { display: none; }
.consent-title { font-weight: 600; color: #fff; font-size: 15px; }
.consent-text { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.consent-text a { color: var(--text); }
.consent-prefs { margin-top: 12px; display: grid; gap: 10px; }
.consent-prefs[hidden] { display: none; }
.pref { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.pref b { color: #fff; font-weight: 500; margin-right: 6px; }
.pref input { margin-top: 3px; accent-color: var(--saffron); }
.consent-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.cbtn { font: inherit; font-size: 13px; padding: 9px 14px; border-radius: 999px; border: 1px solid #333; background: transparent; color: var(--text); cursor: pointer; min-height: 38px; }
.cbtn.primary { background: var(--saffron); border-color: var(--saffron); color: var(--saffron-ink); font-weight: 600; }

/* ---------- v2 responsive ---------- */
@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-side { position: static; }
  .demo .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .impact-cell:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-ball { width: 150px; top: 13%; }
  .hero-glow { top: calc(13% + 130px); width: 480px; }
  .hero-copy { top: calc(13% + 190px); }
  .hero h1 { font-size: 46px; }
  .demo .steps { grid-template-columns: 1fr; }
  .demo .steps li p { display: none; }
  .demo .steps li.on p { display: block; }
  .demo-grid .demo-stage { height: 600px; }
  .demo-grid .app { top: 112px; width: calc(100% - 24px); }
  .demo-grid .notify { left: 12px; right: 12px; width: auto; top: 12px; }
  .reveal { padding: 90px 0 80px; }
  .def-text { font-size: 19px; }
  .listing { padding: 22px 18px; }
  .listing-top { flex-wrap: wrap; }
  .listing-status { margin-left: 0; }
  .listing-list li { font-size: 17px; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-cell, .impact-cell + .impact-cell { padding: 22px 0 6px; border-left: 0; border-top: 1px solid #1c1c1c; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* the founder band has no ball, so it must not isolate: lets the photo blend into the painting */
.founder-inner { z-index: auto; }

/* ---------- review fixes (round v2.1) ---------- */
/* cookie notice: a slim bar along the bottom, never over content; Accept and Reject equal */
.consent { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border: 0; border-top: 1px solid #2a2a2a; padding: 12px 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: rgba(12,12,12,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.consent-title { display: none; }
.consent-text { margin: 0; flex: 1 1 420px; }
.consent-prefs { flex: 1 1 100%; order: 3; margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.consent-prefs[hidden] { display: none; }
.consent-btns { margin: 0; }
.cbtn.primary, #consentReject { background: #ededed; border-color: #ededed; color: #000; font-weight: 600; }
/* founder photo: keep the whole person; soften the edges and darken the painting behind */
.photo img { mix-blend-mode: normal; -webkit-mask-image: radial-gradient(80% 78% at 50% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(80% 78% at 50% 45%, #000 60%, transparent 100%); }
.photo::before { content: ""; position: absolute; inset: -12%; background: radial-gradient(closest-side, rgba(0,0,0,0.75), transparent); pointer-events: none; }
.photo img { position: absolute; z-index: 1; }
/* demo: rows are faint skeletons until their update arrives, so the panel is never empty */
.demo.armed .suggest .row { opacity: 0.4; transform: none; }
.demo.armed .suggest .row:not(.shown) .v, .demo.armed .suggest .row:not(.shown) .src { color: transparent; background: #1c1c1c; border-radius: 4px; }
.demo.armed .suggest .row:not(.shown) .v *, .demo.armed .suggest .row:not(.shown) .src * { visibility: hidden; }
.demo.armed .suggest .row:not(.shown) img { filter: grayscale(1); opacity: 0.5; }
.demo.armed .suggest .row:not(.shown) .tick { opacity: 0.3; }
.demo.armed .suggest .row.shown { opacity: 1; }
/* definition: plain, no dictionary styling */
.def-word { display: none; }
.definition { padding: 28px 0; }
.def-text { margin-top: 0; }
/* impact: three numbers, note right under them */
.impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.impact-note { margin-top: 18px; font-size: 14px; color: var(--mute); }
@media (max-width: 1100px) { .impact-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .impact-grid { grid-template-columns: 1fr; } .consent { padding: 12px 16px; } }

/* ---------- review fixes (round v2.2) ---------- */
/* demo: give the values room; keep the approve bar in frame */
.demo-grid .row { grid-template-columns: 22px 110px minmax(130px, 1fr) auto 18px; }
.demo-grid .thread { width: 240px; }
.demo-grid .demo-stage { height: 770px; }
.approve .btn-mini { white-space: nowrap; }
@media (max-width: 1400px) { .approve .btn-mini:not(.primary) { display: none; } .demo-grid .row .src { display: none; } .demo-grid .row { grid-template-columns: 22px 110px minmax(130px, 1fr) 18px; } }
/* book: no streak at the left edge of the mirrored rays */
.book-rays { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%), linear-gradient(90deg, transparent 0%, #000 30%); -webkit-mask-composite: source-in; mask-image: linear-gradient(0deg, transparent 0%, #000 35%), linear-gradient(90deg, transparent 0%, #000 30%); mask-composite: intersect; }
@media (max-width: 760px) {
  .hero-copy { top: calc(13% + 238px); }
  .demo-grid .demo-stage { height: 740px; }
  .consent { gap: 8px; padding: 10px 14px; }
  .consent-text { font-size: 12px; line-height: 1.45; }
  .consent-btns { width: 100%; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .cbtn { padding: 7px 8px; font-size: 12px; min-height: 34px; }
}

/* ---------- user feedback round v2.3 ---------- */
/* Steps: all text always there; only colour changes, so nothing jumps */
.demo .steps li p { max-height: none; opacity: 1; overflow: visible; transition: color .5s ease; color: #555; }
.demo .steps li { color: #666; transition: border-color .5s ease, color .5s ease; }
.demo .steps li.past { color: #9a9a9a; }
.demo .steps li.past p { color: #6f6f6f; }
.demo .steps li.on { color: #fff; }
.demo .steps li.on p { color: #b3b3b3; }
.demo:not(.armed) .steps li p { color: #8a8a8a; }
.demo:not(.armed) .steps li { color: #d9d9d9; }

/* Demo focus: no yellow outlines; the part that is changing stays bright, the rest dims */
.stage-1 .z1, .stage-2 .z2, .stage-3 .z3, .stage-4 .z4 { box-shadow: none; }
.zone { transition: opacity .6s ease; }
.demo-stage[class*="stage-"] .zone { opacity: 0.5; }
.stage-1 .z1, .stage-2 .z2, .stage-3 .z3, .stage-4 .z4 { opacity: 1 !important; }
.thread li.new { border: 0; background: none; box-shadow: none; }

/* Forward deployed engineer: a warm horizon behind, the definition on glass */
.reveal { min-height: 0; padding: 130px 0 140px; background:
  radial-gradient(60% 55% at 50% 108%, rgba(245,165,36,0.30), rgba(245,165,36,0.08) 45%, transparent 72%),
  radial-gradient(40% 30% at 50% 100%, rgba(255,190,90,0.18), transparent 70%); }
.reveal::before { background: linear-gradient(180deg, #000 0%, transparent 30%); }
.reveal::after { content: ""; position: absolute; left: 50%; bottom: -62%; width: 140%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border-top: 1px solid rgba(245,165,36,0.35); box-shadow: 0 -30px 80px -40px rgba(245,165,36,0.45); pointer-events: none; }
.definition { position: relative; z-index: 1; margin-top: 52px; padding: 30px 36px; border: 1px solid rgba(255,255,255,0.10); border-radius: 18px; background: rgba(12,12,12,0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* Job description: dark, like the rest of the site */
.listing { background: #0d0d0d; color: #ededed; border: 1px solid #242424; box-shadow: 0 40px 80px -40px #000; }
.listing-top { border-bottom-color: #1f1f1f; }
.listing-logo { background: #151515; border: 1px solid #2a2a2a; }
.listing-role { color: #fff; }
.listing-meta, .listing-h, .listing-foot { color: #8a8a8a; }
.listing-status { color: var(--saffron); background: rgba(245,165,36,0.10); border: 1px solid rgba(245,165,36,0.30); }
.listing-tags li { color: #cfcfcf; background: #161616; border: 1px solid #232323; }
.listing-list li { color: #fff; border-bottom-color: #1c1c1c; }
.listing-list li span { color: var(--saffron); }

/* Project cards: real-looking app windows rising from the bottom of the card */
.card-pv, .card-pv.light { height: 250px; padding: 30px 26px 0; align-items: flex-end; background: radial-gradient(80% 90% at 50% 110%, rgba(245,165,36,0.22), transparent 70%), #121212; }
.lm-mail, .lm-table, .lm-win { width: 100%; transform: none; border-radius: 12px 12px 0 0; background: #fff; color: #1f2328; font-size: 13px; box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); overflow: hidden; }
.lm-mail { padding: 0 0 14px; }
.lm-mail > *:not(.lm-bar) { margin-left: 16px; margin-right: 16px; }
.lm-mail .lm-mail-top { padding-top: 12px; }
.lm-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f3f1; border-bottom: 1px solid #e6e6e2; }
.lm-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d4; }
.lm-bar span { margin-left: 8px; font-size: 11px; font-weight: 500; color: #777; }
.lm-split { width: 100%; border-radius: 0; box-shadow: none; }
.lm-side { flex-basis: 46%; }
.card:hover .card-pv > div { transform: translateY(-6px); }

/* Founder: the photo sits on pure black, so there is no box and nothing is see-through */
.founder .paint-dusk { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 58%); mask-image: linear-gradient(90deg, #000 0%, #000 30%, transparent 58%); }
.photo::before { display: none; }
.photo img { mix-blend-mode: normal; -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }

/* Nav: the section you are in */
.nav-links a { transition: color .3s; }
.nav-links a.active { color: #fff; }

@media (max-width: 760px) {
  .demo .steps li p, .demo .steps li.on p { display: none; }
  .demo .steps li { padding: 10px 0 10px 14px; }
  .reveal { padding: 90px 0 100px; }
  .definition { padding: 22px 20px; }
  .founder .paint-dusk { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 25%, transparent 50%); mask-image: linear-gradient(180deg, #000 0%, #000 25%, transparent 50%); }
  .card-pv, .card-pv.light { height: 220px; }
}
@media (max-width: 760px) {
  .row .v s { display: none; }
  .row .v { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
}

/* ---------- Fable round v2.3 fixes ---------- */
/* lead the eye by brightness, not by greying the product */
.demo-stage[class*="stage-"] .zone { opacity: 0.72; }
.stage-1 .z1, .stage-2 .z2, .stage-3 .z3, .stage-4 .z4 { background-color: #161616; }
.stage-2 .z2 li b, .stage-3 .z3 .v, .stage-1 .z1 * { color: #fff; }
/* Replay only after the demo has played once */
.demo.armed:not(.played) .replay { visibility: hidden; }
/* a little more air between the tools line and the next section */
.tools .fine { margin-bottom: 16px; }
@media (max-width: 760px) {
  .demo-grid .demo-stage { margin-top: 16px; height: 660px; }
  .demo-grid .app { top: 24px; }
  .demo-grid .notify { top: 8px; z-index: 4; }
  .photo img { -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, #000 90%, transparent 100%); }
}

/* =====================================================================
   Round v3: owner feedback (demo flow, merged FDE, cards, impact, form)
   ===================================================================== */

/* ---------- Demo: steps fill the column, each with a burning fuse ---------- */
.demo-grid { align-items: stretch; }
.demo-side { display: flex; flex-direction: column; }
.demo .steps { flex: 1; display: flex; flex-direction: column; }
.demo .steps li { flex: 1; position: relative; padding: 18px 0 18px 18px; border-left: 2px solid #232323; }
.demo .steps li::after { content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 0; background: linear-gradient(180deg, var(--saffron), #ffcf7a); box-shadow: 0 0 10px rgba(245,165,36,0.6); }
.demo .steps li.past::after { height: 100%; box-shadow: none; background: #6b5326; }
.demo .steps li.on::after { animation: fuseY var(--d, 4000ms) linear forwards; }
.demo.paused .steps li.on::after { animation-play-state: paused; }
.demo:not(.armed) .steps li::after { height: 100%; animation: none; }
@keyframes fuseY { from { height: 0; } to { height: 100%; } }
@keyframes fuseX { from { width: 0; } to { width: 100%; } }
.step-caption { display: none; }
.demo .replay { display: none; }

/* stage grows with the app: no empty band underneath */
.demo-grid .demo-stage { height: auto; padding: 92px 0 0; }
.demo-grid .app { position: relative; top: auto; left: auto; transform: none; margin: 0 auto; width: calc(100% - 48px); }
.demo-grid .notify { left: auto; right: 24px; top: 18px; z-index: 6; }
.demo-grid .row { grid-template-columns: 22px 104px minmax(150px, 1fr) auto 18px; }
.approve-note { margin-right: auto; white-space: nowrap; }

/* the Gmail window for step 1 */
.mailwin { position: absolute; left: 24px; top: 70px; z-index: 5; width: min(600px, 74%); background: #fff; color: #1f1f1f; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.95), 0 0 0 1px rgba(255,255,255,0.1); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.mailwin.shown { opacity: 1; transform: none; }
.mw-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #ececec; background: #f6f8fc; font-size: 14px; }
.mw-bar img { width: 22px; height: 22px; }
.mw-bar b { font-weight: 500; color: #444; }
.mw-search { margin-left: 12px; flex: 1; max-width: 300px; background: #e9eef6; border-radius: 999px; padding: 7px 14px; font-size: 13px; color: #777; }
.mw-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 13px; color: #5f6368; }
.mw-row > b { font-weight: 500; color: #3c4043; }
.mw-row span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mw-row span b { font-weight: 500; color: #3c4043; }
.mw-row time { text-align: right; font-size: 12px; }
.mw-row.new { background: #fff; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; transition: max-height .5s ease, padding .5s ease, opacity .5s ease, background 1s ease; }
.mw-row.new > b, .mw-row.new span b, .mw-row.new time { font-weight: 700; color: #111; }
.mailwin.arrived .mw-row.new { max-height: 60px; padding-top: 12px; padding-bottom: 12px; opacity: 1; background: #fff6e3; }
.mw-made { display: flex; align-items: center; gap: 10px; margin: 12px 16px 14px; padding: 10px 14px; border-radius: 10px; background: #111; color: var(--saffron); font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.mw-made .ball-mini { width: 22px; height: 22px; }
.mw-made.shown { opacity: 1; transform: none; }

/* ticket header appears once the ticket is created */
.demo.armed .app .z1 > * { transition: opacity .5s ease; }
.demo.armed .app:not(.made) .z1 > * { opacity: 0; }
#ticketStatus { transition: color .3s; }

/* approve: a press, then saved */
#approveBtn { transition: transform .15s ease, background .3s, color .3s, border-color .3s; white-space: nowrap; }
#approveBtn.pressed { transform: scale(0.93); }
.app.saved #approveBtn { background: #1f7a45; border-color: #1f7a45; color: #fff; }
.app.saved .tick.on { background: #2fbf71; border-color: #2fbf71; }
.app.saved .approve-note { color: #7fd9a5; }

/* focus: the active zone gets brighter, the rest stays readable */
.demo-stage[class*="stage-"] .zone { opacity: 0.72; }

/* ---------- Forward deployed engineer (merged with the job description) ---------- */
.reveal { overflow: visible; padding: 120px 0 110px; background: radial-gradient(70% 60% at 50% 62%, rgba(245,165,36,0.16), rgba(245,165,36,0.04) 50%, transparent 75%); }
.reveal::before, .reveal::after { display: none; }
.reveal .def-text { max-width: 30em; margin: 36px auto 0; font-size: 24px; line-height: 1.45; color: #ededed; }
.reveal .def-note { max-width: 36em; margin: 14px auto 0; font-size: 15px; color: var(--mute); }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.role-grid li { position: relative; padding: 26px 22px 24px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); border: 1px solid rgba(255,255,255,0.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.role-grid svg { width: 30px; height: 30px; fill: none; stroke: var(--saffron); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.role-grid .mono { position: absolute; right: 20px; top: 24px; font-size: 12px; color: #555; }
.role-grid b { display: block; margin-top: 18px; font-size: 18px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.role-grid p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.skip-row { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.skip-h { font-size: 14px; color: var(--mute); }
.skip-row ul { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.skip-row li { font-size: 14px; color: #8a8a8a; padding: 6px 12px; border-radius: 999px; border: 1px solid #262626; text-decoration: line-through; text-decoration-color: rgba(245,165,36,0.7); }

/* ---------- Project cards: three identical windows, each with its app's logo ---------- */
.card-pv, .card-pv.light { height: 236px; padding: 32px 26px 0; }
.lm-mail, .lm-table, .lm-win { height: 204px; }
.lm-bar img { width: 14px; height: 14px; margin-left: 6px; }
.lm-bar img + span { margin-left: 6px; }
.lm-side-h { display: flex; align-items: center; gap: 5px; }
.lm-side-h img { width: 11px; height: 11px; }

/* ---------- Pilot: pilot + quote ---------- */
.pilot-copy .cta-row { margin-top: 28px; }
.pilot-price { margin-top: 16px; font-size: 14px; color: var(--mute); }

/* ---------- Why not hire: both rows on the same 18-week scale ---------- */
.s-bar { position: relative; display: flex; background: rgba(40,40,40,0.6); }
.bar .fill.saff { width: 11.1%; background: var(--saffron); transform-origin: left center; flex-shrink: 0; }
.s-run { flex: 1; display: flex; align-items: center; padding: 0 16px; font-size: 13px; color: #f3d9a6; background: repeating-linear-gradient(135deg, rgba(245,165,36,0.14) 0 10px, rgba(245,165,36,0.06) 10px 20px); }
.s-ticks { grid-template-columns: 11.1% 1fr; }
.s-ticks span { color: #b3b3b3; }
.s-ticks .live { color: var(--saffron); padding-left: 8px; }

/* ---------- Impact: ticker-style drops ---------- */
.impact { padding: 88px 0 24px; }
.impact .impact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 0; margin-top: 32px; }
.tk { padding: 22px 22px 20px; border-radius: 16px; background: #0c0c0c; border: 1px solid #1f1f1f; }
.tk-what { font-size: 15px; color: #d4d4d4; }
.tk-num { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.tk-arrow { font-size: 0.42em; color: #f2555a; transform: translateY(-0.35em); }
.tk-num small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: #f2555a; background: rgba(242,85,90,0.12); padding: 3px 8px; border-radius: 6px; }
.spark { display: block; width: 100%; height: 56px; margin-top: 16px; }
.spark .line { fill: none; stroke: #f2555a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .area { fill: rgba(242,85,90,0.10); }
.tk-how { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--mute); }

/* ---------- Founder: the painting is back; a black pool behind the photo removes the box ---------- */
.founder { margin-top: 24px; }
.founder-inner { padding-top: 64px; padding-bottom: 64px; }
.founder .paint-dusk { -webkit-mask-image: none; mask-image: none; }
.photo { overflow: visible; }
.photo::before { display: block; content: ""; position: absolute; inset: -30% -40%; z-index: 0; background: radial-gradient(closest-side, #000 58%, rgba(0,0,0,0.85) 70%, transparent 100%); pointer-events: none; }
.photo img { z-index: 1; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 86%, transparent 100%); mask-composite: intersect; }

/* ---------- Less black at the bottom of the page ---------- */
.pilot-wrap { padding-top: 88px; }
.hire-inner { padding-top: 88px; padding-bottom: 72px; }
.book { padding: 72px 0 72px; }
.book-ball { width: 280px; }
.book-rays { -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 40%), linear-gradient(90deg, transparent 0%, transparent 12%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 40%), linear-gradient(90deg, transparent 0%, transparent 12%, #000 45%); }
.cta-row.center { justify-content: center; }
.book-copy .cta-row { margin-top: 32px; }
.book-copy .cta-row .btn { margin-top: 0; }
.site-foot { padding: 52px 0 24px; }

/* ---------- Booking form ---------- */
html.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease; }
.modal-card { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); width: min(880px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: #0d0d0d; border: 1px solid #262626; border-radius: 20px; box-shadow: 0 60px 120px -30px #000; animation: popIn .3s cubic-bezier(.2,.7,.2,1); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-x { position: absolute; right: 14px; top: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2a2a2a; background: #141414; color: #bbb; font-size: 20px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: #fff; }
.modal-side { padding: 36px 30px; background: radial-gradient(90% 60% at 50% 30%, rgba(245,165,36,0.16), transparent 70%), #090909; border-right: 1px solid #1c1c1c; }
.modal-ball { width: 120px; height: 120px; object-fit: contain; }
.modal-side .serif { margin-top: 18px; font-size: 32px; line-height: 1.05; color: #fff; }
.modal-side ul { margin-top: 22px; display: grid; gap: 10px; }
.modal-side li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text-2); }
.modal-side li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); }
.book-form, .form-done { padding: 32px 32px 28px; display: grid; gap: 14px; align-content: start; }
.form-h { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; color: #fff; padding-right: 40px; }
.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid #2c2c2c; font-size: 14px; color: var(--text-2); transition: all .2s; }
.choice input:checked + span { border-color: var(--saffron); color: #fff; background: rgba(245,165,36,0.12); }
.choice input:focus-visible + span { outline: 2px solid var(--saffron); outline-offset: 2px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-form label:not(.choice label) { display: grid; gap: 6px; font-size: 13px; color: #bdbdbd; }
.book-form label i { font-style: normal; color: #666; }
.book-form input:not([type="radio"]), .book-form textarea { width: 100%; font: inherit; font-size: 15px; color: #fff; background: #141414; border: 1px solid #2a2a2a; border-radius: 10px; padding: 11px 12px; transition: border-color .2s; }
.book-form textarea { resize: vertical; min-height: 84px; }
.book-form input:focus, .book-form textarea:focus { outline: none; border-color: var(--saffron); }
.book-form .btn { justify-self: start; margin-top: 4px; }
.form-err { font-size: 13px; color: #ff8a8a; }
.form-fine { font-size: 12px; line-height: 1.5; color: #777; }
.form-fine a { color: #aaa; }
.form-done { justify-items: start; align-content: center; min-height: 360px; }
.form-done p:not(.form-h) { color: var(--text-2); font-size: 15px; }
.done-tick { width: 44px; height: 44px; border-radius: 50%; background: rgba(47,191,113,0.15); border: 1px solid #2fbf71; position: relative; }
.done-tick::after { content: ""; position: absolute; left: 16px; top: 10px; width: 9px; height: 17px; border: solid #2fbf71; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid .demo-stage { padding-top: 88px; }
}
@media (max-width: 760px) {
  /* steps become a story-style progress bar with a caption under it */
  .demo .steps { flex-direction: row; gap: 6px; }
  .demo .steps li { flex: 1; padding: 12px 0 0; border-left: 0; border-top: 2px solid #2a2a2a; }
  .demo .steps li > div { display: none; }
  .demo .steps li .n { width: 22px; height: 22px; font-size: 11px; }
  .demo .steps li::after { left: 0; top: -2px; width: 0; height: 2px; }
  .demo .steps li.past::after { width: 100%; height: 2px; }
  .demo .steps li.on::after { animation-name: fuseX; height: 2px; }
  .demo:not(.armed) .steps li::after { width: 100%; height: 2px; }
  .step-caption { display: block; margin-top: 14px; min-height: 66px; font-size: 14px; line-height: 1.5; color: var(--mute); }
  .step-caption b { display: block; font-size: 16px; font-weight: 500; color: #fff; }
  .demo-grid .demo-stage { padding-top: 84px; }
  .demo-grid .notify { left: 12px; right: 12px; top: 10px; }
  .demo-grid .app { width: calc(100% - 20px); }
  .mailwin { left: 10px; right: 10px; width: auto; top: 64px; }
  .mw-row { grid-template-columns: 88px minmax(0, 1fr) 44px; gap: 8px; padding: 10px 12px; font-size: 12px; }
  .mw-search { display: none; }
  .approve-note { display: none; }
  .reveal { padding: 84px 0 80px; }
  .reveal .def-text { font-size: 19px; }
  .role-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 40px; }
  .role-grid li { padding: 20px 18px; display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; }
  .role-grid svg { grid-row: span 2; }
  .role-grid b { margin-top: 0; font-size: 17px; }
  .role-grid p { margin-top: 2px; }
  .impact { padding-top: 64px; }
  .impact .impact-grid { grid-template-columns: 1fr; }
  .founder-inner { padding-top: 48px; padding-bottom: 40px; }
  .photo::before { inset: -20% -25%; }
  .book { padding: 56px 0 60px; }
  .book-ball { width: 210px; }
  .book-copy .cta-row .btn { flex: 1 1 100%; }
  .s-ticks { grid-template-columns: 22% 1fr; }
  .bar .fill.saff { width: 22%; }
  .modal { padding: 0; align-items: end; }
  .modal-card { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; max-height: 92svh; }
  .modal-side { display: none; }
  .book-form, .form-done { padding: 26px 20px 22px; }
  .f2 { grid-template-columns: 1fr; }
  .book-form .btn { justify-self: stretch; }
}
@media (max-width: 1400px) { .demo-grid .row { grid-template-columns: 22px 104px minmax(150px, 1fr) 18px; } }
/* single-column layouts: the steps become a story-style progress bar */
@media (max-width: 1000px) {
  .demo .steps { flex-direction: row; gap: 6px; }
  .demo .steps li { flex: 1; padding: 12px 0 0; border-left: 0; border-top: 2px solid #2a2a2a; }
  .demo .steps li > div { display: none; }
  .demo .steps li::after { left: 0; top: -2px; width: 0; height: 2px; }
  .demo .steps li.past::after { width: 100%; height: 2px; }
  .demo .steps li.on::after { animation-name: fuseX; height: 2px; }
  .demo:not(.armed) .steps li::after { width: 100%; height: 2px; }
  .step-caption { display: block; margin-top: 14px; min-height: 66px; font-size: 15px; line-height: 1.5; color: var(--mute); }
  .step-caption b { display: block; font-size: 17px; font-weight: 500; color: #fff; }
}
@media (max-width: 760px) {
  .bar .fill.saff { width: 11.1%; }
  .s-ticks { grid-template-columns: 11.1% 1fr; }
  .s-ticks span:first-child { visibility: hidden; }
}
.book-form[hidden], .form-done[hidden] { display: none; }
/* Fable v3 polish */
.mailwin { top: 46px; }
.s-ticks .live { font-size: 13px; font-weight: 500; }

/* ---------- Round v3.1: owner feedback ---------- */
/* tighter sections */
.demo { padding-top: 64px; }
.tools { margin-top: 40px; }
.reveal { padding: 96px 0 40px; }
.role-grid { margin-top: 52px; }
.projects { padding-top: 80px; }
.pilot-wrap { padding-top: 72px; }
.hire { margin-top: 0; }
.hire-inner { padding-top: 72px; padding-bottom: 56px; }
.impact { padding: 64px 0 16px; }
.founder-inner { padding-top: 48px; padding-bottom: 48px; }
.book { padding: 56px 0 64px; }
@media (max-width: 760px) {
  .demo { padding-top: 64px; }
  .reveal { padding: 72px 0 32px; }
  .projects { padding-top: 64px; }
  .pilot-wrap { padding-top: 56px; }
  .hire-inner { padding-top: 56px; padding-bottom: 48px; }
  .impact { padding-top: 48px; }
}

/* partner portal: Jira-style board */
.lm-board { width: 100%; height: 204px; background: #fff; color: #1f2328; border-radius: 12px 12px 0 0; overflow: hidden; font-size: 12px; box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 8px; }
.lb-top b { font-size: 13px; font-weight: 600; color: #111; }
.lb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.lb-col { background: #f4f5f7; border-radius: 8px; padding: 7px; min-height: 120px; }
.lb-col > p { font-size: 10px; font-weight: 600; color: #5e6c84; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.lb-col > p i { font-style: normal; color: #97a0af; margin-left: 3px; }
.lb-card { background: #fff; border-radius: 6px; padding: 7px 8px; box-shadow: 0 1px 2px rgba(9,30,66,0.2); display: grid; gap: 5px; justify-items: start; }
.lb-card + .lb-card { margin-top: 6px; }
.lb-card b { font-size: 11.5px; font-weight: 500; color: #172b4d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lb-card .lm-warn, .lb-card .lm-ok, .lb-card .lm-wait { font-size: 10px; padding: 2px 6px; }
.lb-av { width: 18px; height: 18px; border-radius: 50%; background: #dfe1e6; color: #42526e; font-size: 8px; font-weight: 600; display: grid; place-items: center; }
.card:hover .card-pv > .lm-board { transform: translateY(-6px); }

/* CRM sidebar: a few more fields */
.lm-side { padding: 10px 12px; }
.lm-kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin-top: 6px; font-size: 11px; }
.lm-kv dt { color: #888; }
.lm-kv dd { margin: 0; color: #222; font-weight: 500; text-align: right; white-space: nowrap; }
.lm-kv dd.warn { color: #b06f00; }
.tk-num small { white-space: nowrap; }
.lb-cols { gap: 6px; padding: 0 10px; }
.lb-col { padding: 6px; }
.lb-card span { white-space: nowrap; }

/* ---------- Demo v3.2: a clear fuse rail through the numbers, an email that types out ---------- */
.demo .steps li { padding: 4px 0 26px 44px; border-left: 0; }
.demo .steps li .n { position: absolute; left: 0; top: 2px; z-index: 1; background: #0a0a0a; }
.demo .steps li::before { content: ""; position: absolute; left: 12px; top: 32px; bottom: 4px; width: 3px; border-radius: 3px; background: #262626; }
.demo .steps li::after { left: 12px; top: 32px; width: 3px; border-radius: 3px; height: 0; max-height: calc(100% - 36px); background: linear-gradient(180deg, #b87610, var(--saffron) 70%, #ffd58a); box-shadow: 0 0 12px rgba(245,165,36,0.7), 0 6px 14px rgba(255,200,110,0.9); }
.demo .steps li.on::after { animation: fuseRail var(--d, 4000ms) linear forwards; }
.demo .steps li.past::after { height: calc(100% - 36px); background: #8a5d12; box-shadow: none; }
.demo:not(.armed) .steps li::after { height: calc(100% - 36px); }
.demo .steps li:last-child::before, .demo .steps li:last-child::after { bottom: 4px; }
@keyframes fuseRail { from { height: 0; } to { height: calc(100% - 36px); } }
.demo .steps li.on .n { box-shadow: 0 0 0 4px rgba(245,165,36,0.18); }

/* step 1: the email opens and types itself out */
.mw-open { max-height: 0; opacity: 0; overflow: hidden; padding: 0 16px; border-top: 1px solid transparent; transition: max-height .6s ease, opacity .5s ease, padding .6s ease; }
.mailwin.opened .mw-open { max-height: 200px; opacity: 1; padding: 14px 16px 4px; border-top-color: #ececec; }
.mailwin.opened .mw-row:not(.new) { display: none; }
.mw-subj { font-size: 17px; font-weight: 500; color: #1f1f1f; }
.mw-from { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #5f6368; }
.mw-from b { font-weight: 600; color: #1f1f1f; }
.mw-av { width: 26px; height: 26px; border-radius: 50%; background: #e8710a; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.mw-body { margin-top: 12px; min-height: 44px; font-size: 14px; line-height: 1.55; color: #202124; }
.mw-body .caret { background: #1a73e8; }

@media (max-width: 1000px) {
  .demo .steps li { padding: 12px 0 0; }
  .demo .steps li .n { position: static; }
  .demo .steps li::before { display: none; }
  .demo .steps li::after { left: 0; top: -2px; height: 2px; max-height: none; width: 0; box-shadow: 0 0 8px rgba(245,165,36,0.7); }
  .demo .steps li.on::after { animation: fuseX var(--d, 4000ms) linear forwards; height: 2px; }
  .demo .steps li.past::after { width: 100%; height: 2px; }
  .demo:not(.armed) .steps li::after { width: 100%; height: 2px; }
  .demo .steps li { border-top-width: 3px; }
}
/* before step 3: no approve bar, and the empty rows read as calm placeholders, not a broken load */
.demo.armed .approve:not(.shown) { opacity: 0 !important; }
.demo.armed .suggest .row:not(.shown) { opacity: 1; transform: none; background: transparent; }
.demo.armed .suggest .row:not(.shown) > * { visibility: hidden; }
.demo.armed .suggest .row:not(.shown)::before { content: ""; position: absolute; left: 14px; right: 40%; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: #1c1c1c; }
.suggest .row { position: relative; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Suggested updates: a real table with Source / Field / Value columns ---------- */
.demo-grid .row, .demo-grid .cols-h { grid-template-columns: 56px 116px minmax(150px, 1fr) auto 18px; gap: 14px; padding-left: 18px; padding-right: 18px; }
.cols-h { display: grid; align-items: center; padding-top: 9px; padding-bottom: 9px; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: #6f6f6f; }
.suggest-head { position: relative; z-index: 1; background: var(--surface-2); }
/* faint column lines between Source | Field | Value */
.demo-grid .suggest { background-image: linear-gradient(90deg, transparent 81px, rgba(255,255,255,0.06) 81px, rgba(255,255,255,0.06) 82px, transparent 82px), linear-gradient(90deg, transparent 211px, rgba(255,255,255,0.06) 211px, rgba(255,255,255,0.06) 212px, transparent 212px); background-color: var(--surface-2); }
@media (max-width: 1400px) {
  .demo-grid .row, .demo-grid .cols-h { grid-template-columns: 56px 116px minmax(150px, 1fr) 18px; }
  .cols-h .src { display: none; }
}
@media (max-width: 760px) {
  .demo-grid .row, .demo-grid .cols-h { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 10px; padding-left: 12px; padding-right: 12px; }
  .cols-h .f { display: none; }
  .demo-grid .suggest { background-image: linear-gradient(90deg, transparent 60px, rgba(255,255,255,0.06) 60px, rgba(255,255,255,0.06) 61px, transparent 61px); }
}
@media (max-width: 760px) {
  .demo-grid .row, .demo-grid .cols-h { grid-template-columns: 60px minmax(0, 1fr) 16px; }
  .cols-h { font-size: 10px; }
  .demo-grid .suggest { background-image: linear-gradient(90deg, transparent 77px, rgba(255,255,255,0.06) 77px, rgba(255,255,255,0.06) 78px, transparent 78px); }
}

/* ---------- partner portal: a Jira-style deal ticket ---------- */
.lm-ticket { width: 100%; height: 204px; background: #fff; color: #172b4d; border-radius: 12px 12px 0 0; overflow: hidden; font-size: 12px; box-shadow: 0 -10px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.lt-body { display: grid; grid-template-columns: minmax(0, 1fr) 132px; }
.lt-main { padding: 10px 12px; min-width: 0; }
.lt-key { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #5e6c84; }
.lt-type { width: 12px; height: 12px; border-radius: 3px; background: var(--saffron); }
.lt-title { margin-top: 5px; font-size: 14px; font-weight: 600; color: #172b4d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-h { margin-top: 9px; font-size: 10px; font-weight: 600; color: #5e6c84; text-transform: uppercase; letter-spacing: .04em; }
.lt-desc { margin-top: 3px; font-size: 11.5px; line-height: 1.45; color: #42526e; }
.lt-doc { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 7px; border: 1px solid #dfe1e6; border-radius: 5px; font-size: 11px; color: #42526e; }
.lt-doc img { width: 12px; height: 12px; }
.lt-side { margin: 0; padding: 10px 12px; border-left: 1px solid #ebecf0; background: #fafbfc; display: grid; grid-template-columns: auto 1fr; gap: 7px 6px; align-content: start; font-size: 11px; }
.lt-side dt { color: #6b778c; }
.lt-side dd { margin: 0; color: #172b4d; font-weight: 500; text-align: right; display: flex; justify-content: flex-end; align-items: center; gap: 4px; white-space: nowrap; }
.lt-side .lm-warn, .lt-side .lm-wait { font-size: 10px; padding: 2px 6px; }
.lt-side .lb-av { width: 16px; height: 16px; font-size: 7px; }
.card:hover .card-pv > .lm-ticket { transform: translateY(-6px); }
.case-visual .lm-ticket { font-size: 13px; }
.case-visual .lt-body { grid-template-columns: minmax(0, 1fr) 170px; }
.case-visual .lt-title { font-size: 17px; }
.case-visual .lt-desc { font-size: 13px; }
.case-visual .lt-side { font-size: 12.5px; gap: 10px 8px; }

/* ---------- Demo v3.3: step 2 email thread, step 3 live call ---------- */
.threadwin .mw-search { max-width: none; color: #444; background: none; padding-left: 0; font-weight: 500; }
.tw-msgs { padding: 6px 0 10px; }
.tw-msgs > * { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s ease, opacity .5s ease, margin .6s ease; }
.tw-msgs > .shown { max-height: 140px; opacity: 1; }
.tw-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 16px; font-size: 13px; line-height: 1.5; color: #3c4043; }
.tw-msg.shown + .tw-msg.shown, .tw-remind.shown + .tw-msg.shown { border-top: 1px solid #f0f0f0; }
.tw-from { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #5f6368; }
.tw-from b { color: #1f1f1f; font-weight: 600; }
.tw-msg .mw-av.blue { background: #1a73e8; }
.tw-remind { display: flex; align-items: center; gap: 10px; margin: 0 16px; padding: 0 12px; border-radius: 10px; background: #fff4dc; border: 1px solid #f5c66b; font-size: 12.5px; color: #6b4a00; }
.tw-remind.shown { margin: 4px 16px 6px; padding: 9px 12px; }
.tw-remind .ball-mini { width: 22px; height: 22px; flex-shrink: 0; }
.tw-remind b { color: #4a3300; }
.tw-cal { display: flex; align-items: center; gap: 10px; margin: 0 16px; padding: 0 12px; border-radius: 10px; background: #e8f0fe; font-size: 12.5px; color: #174ea6; }
.tw-cal.shown { margin: 6px 16px 2px; padding: 9px 12px; }
.tw-cal img { width: 18px; height: 18px; }

.callwin { position: absolute; left: 24px; top: 46px; z-index: 5; width: min(520px, 70%); background: #121212; border: 1px solid #2a2a2a; border-radius: 16px; padding: 16px 18px; box-shadow: 0 40px 80px -20px rgba(0,0,0,0.95); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.callwin.shown { opacity: 1; transform: none; }
.cw-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #222; }
.cw-top > img { width: 34px; height: 34px; border-radius: 9px; }
.cw-top b { display: block; font-size: 15px; font-weight: 500; color: #fff; }
.cw-top span { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.cw-live { margin-left: auto; font-size: 12px; font-weight: 600; color: #ff6b6b !important; display: inline-flex; align-items: center; gap: 6px; }
.cw-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s steps(1) infinite; }
.callwin.ended .cw-live { color: var(--mute) !important; }
.callwin.ended .cw-live::before { background: #555; animation: none; }
.cw-lines { display: grid; gap: 8px; padding: 12px 0; min-height: 150px; align-content: start; }
.cw-line { font-size: 14px; line-height: 1.45; color: #e5e5e5; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.cw-line.shown { opacity: 1; transform: none; }
.cw-line b { display: inline-block; min-width: 56px; margin-right: 8px; font-size: 12px; font-weight: 500; color: var(--saffron); }
.cw-foot { display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #222; font-size: 12.5px; color: var(--saffron); }
.cw-foot .ball-mini { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .callwin { left: 10px; right: 10px; width: auto; top: 64px; padding: 14px; }
  .cw-line { font-size: 13px; }
  .tw-msg { padding: 9px 12px; font-size: 12px; }
}

/* =====================================================================
   Phone layout pass (v4): every section laid out for phones, not just shrunk
   ===================================================================== */
@media (max-width: 760px) {
  /* hero: normal flow, so nothing can be cut off on short screens */
  .hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 40px; }
  .hero-ball { position: relative; left: auto; top: auto; right: auto; width: min(150px, 40vw); margin: 0 auto; transform: none; }
  .hero-glow { top: 34%; width: 420px; height: 220px; }
  .hero-copy { position: relative; top: auto; margin-top: 18px; padding: 0 20px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); line-height: 1; max-width: 11ch; }
  .hero .lede { font-size: 16px; margin-top: 14px; max-width: 22em; }
  .hero .cta-row { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero .cta-row .btn { width: 100%; justify-content: center; }

  /* demo: one screen holds the progress bar, the caption and the whole app */
  .demo-grid { gap: 16px; margin-top: 24px; }
  .step-caption { min-height: 0; margin-top: 12px; font-size: 14px; }
  .step-caption b { font-size: 16px; }
  .demo-grid .demo-stage { padding: 0; height: auto; border-radius: 16px; }
  .demo-grid .app { width: 100%; border-radius: 16px 16px 0 0; border-left: 0; border-right: 0; }
  .app .meta, .app .ticket-who, .app-bar span { display: none; }
  .app .z1 { padding: 12px 14px 0; }
  .app .ticket-head { gap: 8px; }
  .app .ticket-title { font-size: 17px; }
  .app .suggest { margin-top: 12px; }
  .suggest-head { padding: 10px 12px; }
  .demo-grid .row { padding-top: 10px; padding-bottom: 10px; }
  .approve { padding: 10px 12px; }
  .demo-grid .notify { top: 6px; left: 8px; right: 8px; z-index: 7; padding: 10px 12px; }
  .mailwin, .threadwin, .callwin { left: 8px; right: 8px; top: 8px; width: auto; max-height: calc(100% - 16px); overflow: hidden; }
  .mw-bar { padding: 10px 12px; }
  .mw-subj { font-size: 15px; }
  .mw-body { font-size: 13px; }
  .tw-msg { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
  .tw-msg .mw-av { width: 24px; height: 24px; font-size: 11px; }
  .tw-remind.shown, .tw-cal.shown { margin-left: 12px; margin-right: 12px; }
  .cw-lines { min-height: 0; }
  .tools { margin-top: 32px; }

  /* pilot: the stone sits above the copy instead of on top of it */
  .pilot { padding: 28px 20px 24px; }
  .pilot-ball { position: relative; right: auto; top: auto; width: 120px; margin: -6px auto 4px; opacity: 1; transform: rotate(4deg); }
  .pilot-glow { background: radial-gradient(70% 40% at 50% 12%, rgba(245,165,36,0.16), transparent 70%); }
  .pilot-copy { padding-right: 0; text-align: center; }
  .pilot-copy .h2.big { font-size: 34px; }
  .pilot-copy p { font-size: 16px; margin-left: auto; margin-right: auto; }
  .pilot-copy .cta-row { flex-direction: column; gap: 10px; }
  .pilot-copy .cta-row .btn { width: 100%; justify-content: center; margin-top: 0; }
  .pilot-price { font-size: 13px !important; }
  .pilot-steps { margin-top: 28px; padding-top: 20px; gap: 16px; font-size: 16px; text-align: left; }

  /* hire */
  .race-head .big { font-size: 30px; }
  .ticks { font-size: 10px; }
  .s-run { font-size: 11.5px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .labels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; font-size: 14px; word-spacing: 0; }
  .labels i { display: none; }
  .labels span { padding: 6px 12px; border-radius: 999px; border: 1px solid #2a2a2a; color: var(--text); }
  .hire .fine { font-size: 12px; }

  /* founder: a calm stack, quote first, photo smaller and centred */
  .founder { margin-top: 0; }
  .founder .paint-dusk { opacity: 0.55; }
  .founder-inner { flex-direction: column; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 32px; text-align: center; }
  .founder blockquote { flex: none; }
  .founder blockquote p { font-size: 26px; line-height: 1.2; max-width: 16em; margin: 0 auto; }
  .founder blockquote footer { margin-top: 14px; font-size: 14px; }
  .photo { flex: none; width: 210px; max-width: 60vw; }
  .photo::before { inset: -18% -30%; }

  /* book */
  .book { padding: 40px 0 48px; }
  .book-ball { width: 160px; }
  .book-copy h2 { font-size: 38px; line-height: 1.02; }
  .book-copy > p { font-size: 16px; }

  /* footer: brand on top, links in two columns */
  .site-foot { padding: 40px 0 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 6px; }
}
/* very short phones (small screens or browser bars showing) */
@media (max-width: 760px) and (max-height: 700px) {
  .hero-ball { width: 110px; }
  .hero h1 { font-size: 36px; }
  .hero .lede { font-size: 15px; }
}
@media (max-width: 760px) {
  .demo-grid .app-body { min-height: 0; }
  .demo-grid .ticket { padding: 4px 0 0; }
  .demo-grid .mailwin, .demo-grid .threadwin, .demo-grid .callwin { max-height: calc(100% - 16px); }
}
@media (max-width: 760px) {
  #ticks { grid-template-columns: 1fr auto; font-size: 11px; }
  #ticks span:nth-child(2), #ticks span:nth-child(3), #ticks span:nth-child(4) { display: none; }
}

/* =====================================================================
   Phone pass v5 (owner feedback): form fits, hero matches desktop, labels, founder order
   ===================================================================== */
@media (max-width: 760px) {
  /* booking form: a bottom sheet that always fits the visible screen and scrolls inside */
  .modal-card { max-height: 92vh; max-height: 92dvh; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .book-form, .form-done { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }

  /* hero: same composition as desktop — a big stone rising on a glowing horizon over the painted hills */
  .hero { justify-content: flex-start; padding-top: 104px; }
  .hero-glow { display: none; }
  .hero-ball { width: min(220px, 58vw); z-index: 2; isolation: isolate; }
  .hero-ball::after { content: ""; position: absolute; left: 50%; top: 78%; width: 260%; height: 70%; transform: translateX(-50%); z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,165,36,0.55), rgba(245,165,36,0.16) 50%, transparent 78%); animation: glow 4.5s ease-in-out infinite; pointer-events: none; }
  .hero-sky { background-position: 62% 58%; }
  .hero-sky::after { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.25) 16%, rgba(0,0,0,0.04) 38%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.85) 80%, #000 94%); }
  .hero-copy { margin-top: 26px; }
  .hero h1 { font-size: clamp(40px, 11.5vw, 50px); }

  /* hire: the three labels sit on one line */
  .labels { flex-wrap: nowrap; gap: 6px; justify-content: flex-start; }
  .labels span { padding: 5px 9px; font-size: 12px; white-space: nowrap; }

  /* founder: photo first, then the quote */
  .founder-inner .photo { order: -1; }
}
@media (max-width: 370px) {
  .labels span { padding: 4px 7px; font-size: 11px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero { padding-top: 88px; }
  .hero-ball { width: min(160px, 44vw); }
  .hero-copy { margin-top: 18px; }
}
@media (max-width: 760px) {
  .hero-ball::after { top: 70%; width: 320%; height: 60%; background: radial-gradient(closest-side, rgba(245,165,36,0.72), rgba(245,165,36,0.28) 42%, rgba(245,165,36,0.06) 70%, transparent 82%); }
  .hero-sky::after { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.15) 14%, rgba(0,0,0,0) 36%, rgba(0,0,0,0.3) 58%, rgba(0,0,0,0.82) 80%, #000 94%); }
}
@media (max-width: 760px) {
  .founder .paint-dusk { opacity: 0.95; background-size: auto 100%; background-position: 30% 60%; }
  .founder .paint-shade.side { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.15) 18%, rgba(0,0,0,0.25) 70%, #000 100%); }
}

/* =====================================================================
   Phone hero v6 (owner picked design G): the stone as a sun over crisp hills,
   the whole message block at the bottom in thumb reach. Desktop is unchanged.
   ===================================================================== */
.hero-ridge { display: none; }
@media (max-width: 760px) {
  .hero { justify-content: space-between; padding: 124px 0 calc(32px + env(safe-area-inset-bottom)); }
  .hero-sky { background-image: url(assets/gen/paint-dusk-phone.webp); background-size: auto 115%; background-position: 50% -145px; transform: none; opacity: 1; }
  .hero-sky::before { display: none; }
  .hero-sky::after { background: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.25) 11%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.5) 64%, rgba(0,0,0,0.88) 82%, #000 95%); }
  .hero-ball { margin: 0 auto; width: 64vw; max-width: 290px; }
  .hero-ball::after { top: 80%; height: 34%; width: 340%; background: radial-gradient(closest-side, rgba(255,214,140,0.92), rgba(245,165,36,0.4) 34%, rgba(245,165,36,0.1) 62%, transparent 80%); }
  /* sunlight landing on the ridge under the stone */
  .hero-ridge { display: block; position: absolute; left: -10%; right: -10%; top: calc(124px + min(64vw, 290px) * 0.62); height: 36vw; z-index: 1; background: radial-gradient(50% 50% at 50% 50%, rgba(255,190,100,0.22), rgba(245,165,36,0.08) 50%, transparent 75%); mix-blend-mode: screen; pointer-events: none; }
  .hero-copy { margin-top: 0; }
  .hero h1 { font-size: 46px; line-height: 0.95; }
  .hero .lede { max-width: 30ch; color: #d4d4d4; margin-top: 20px; font-size: 16px; }
  .hero .cta-row { margin-top: 28px; }
  .hero .btn-ghost { border-color: #444; }
}
/* short screens (small phones, or browser bars showing) */
@media (max-width: 760px) and (max-height: 720px) {
  .hero { padding-top: 92px; }
  .hero-ball { width: 50vw; }
  .hero-ridge { top: calc(92px + 50vw * 0.62); }
  .hero h1 { font-size: 40px; }
  .hero .lede { margin-top: 14px; font-size: 15px; }
  .hero .cta-row { margin-top: 20px; }
}
@media (max-width: 760px) and (max-height: 660px) {
  .hero { padding-top: 84px; }
  .hero-ball { width: 42vw; }
  .hero-ridge { top: calc(84px + 42vw * 0.62); }
  .hero h1 { font-size: 36px; }
  .hero .cta-row { margin-top: 16px; }
}

/* Cookie banner on phones: about 90px. One short text block, then Customize as a text link with Reject and Accept all side by side. */
@media (max-width: 760px) {
  .consent { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6px 8px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom)); }
  .consent-text { grid-column: 1 / -1; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .consent-prefs { grid-column: 1 / -1; }
  .consent-btns { display: contents; }
  .cbtn { min-height: 38px; padding: 6px 10px; font-size: 13px; }
  #consentCustomize { border: 0; background: none; padding: 6px 6px 6px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--text-2); }
  .cb-long { display: none; }
}

/* ---------- Phone and tablet menu (☰), opened by nav.js ---------- */
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .nav-inner { gap: 10px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 40px; height: 40px; flex: 0 0 40px; padding: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); }
  .nav-toggle span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: #fff; transition: transform .25s ease; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid #f5a524; outline-offset: 2px; }

  .nav.open { background: rgba(3,7,18,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .nav.open .nav-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 12px; right: 12px;
    padding: 6px; border-radius: 18px; background: rgba(8,14,30,0.97); border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 60px rgba(0,0,0,0.55); }
  .nav.open .nav-links a { padding: 15px 16px; font-size: 17px; color: #e8e8e8; border-radius: 12px; }
  .nav.open .nav-links a + a { border-top: 1px solid rgba(255,255,255,0.07); }
  .nav.open .nav-links a:hover, .nav.open .nav-links a.active { background: rgba(255,255,255,0.05); color: #fff; }
  .nav.open .nav-links a.active { color: #f5a524; }
}
@media (max-width: 760px) { .nav-inner { height: 64px; } }
@media (prefers-reduced-motion: reduce) { .nav-toggle span { transition: none; } }
