/* amazingft.com. Direction and rules: site/DESIGN.md. */
:root {
  --stage: #0b0c0d;
  --panel: #131517;
  --rule: #272a2d;
  --bone: #f2eee6;
  --mute: #979ba1;
  --paper: #efeae0;
  --paper-rule: #d3ccbe;
  --ink: #101213;
  --ink-mute: #565a5f;
  --signal: #ffb224;
  --err: #ff8a7a;
  --radius: 14px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(72px, 10vw, 136px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stage);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2 {
  font-stretch: 112%;
  font-weight: 560;
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.5;
}
.caption { margin-top: 18px; font-size: 0.85rem; color: var(--mute); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--signal); color: var(--ink); padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
section > .wrap > .label { margin-bottom: 18px; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(11, 12, 13, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font-weight: 600; font-stretch: 108%; letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.92rem; }
.nav a { text-decoration: none; color: rgba(242, 238, 230, .82); }
.nav a:hover { color: var(--bone); }
.nav .nav-cta { white-space: nowrap; color: var(--bone); border: 1px solid rgba(242, 238, 230, .45); padding: 8px 16px; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--bone); color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #ffc552; }
.btn-ghost { background: rgba(11, 12, 13, .35); color: var(--bone); border-color: rgba(242, 238, 230, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-line { color: var(--bone); border-color: rgba(242, 238, 230, .45); }
.btn-line:hover { background: var(--bone); color: var(--ink); }
.btn-wide { width: 100%; }
.round {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--bone); border: 1px solid var(--rule); transition: border-color .15s, background .15s;
}
.round:hover { border-color: var(--bone); }
.round svg { width: 16px; height: 16px; }

/* 1. Hero */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #1a1c1e; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, var(--stage) 0%, rgba(11, 12, 13, .78) 22%, rgba(11, 12, 13, .15) 55%, rgba(11, 12, 13, .45) 100%),
    linear-gradient(to right, rgba(11, 12, 13, .55) 0%, rgba(11, 12, 13, 0) 60%);
}
.hero-inner { padding-bottom: 44px; }
.hero .label { color: rgba(242, 238, 230, .86); display: flex; align-items: center; gap: 10px; }
.hero-inner .label { margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 178, 36, .22); }
.hero h1 { font-size: clamp(3.4rem, 10.5vw, 8.2rem); line-height: .94; letter-spacing: -0.035em; text-shadow: 0 2px 40px rgba(0, 0, 0, .35); }
.lede { margin-top: 26px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; color: rgba(242, 238, 230, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hud { border-top: 1px solid rgba(242, 238, 230, .16); background: rgba(11, 12, 13, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud-row { display: flex; align-items: center; gap: 28px; min-height: 56px; }
.hud-place { color: var(--bone); white-space: nowrap; }
.waypoints { display: flex; align-items: center; gap: 0; flex: 1; min-width: 0; overflow: hidden; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(242, 238, 230, .5); }
.waypoints li { display: flex; align-items: center; white-space: nowrap; transition: color .3s; }
.waypoints li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; margin-right: 8px; transition: background .3s, border-color .3s; }
.waypoints li + li { margin-left: 10px; }
.waypoints li + li::before { margin-left: 0; }
.waypoints li:not(:last-child)::after { content: ""; width: clamp(10px, 2.2vw, 34px); height: 1px; background: currentColor; opacity: .5; margin-left: 10px; }
.waypoints li.is-past { color: rgba(242, 238, 230, .78); }
.waypoints li.is-past::before { background: currentColor; }
.waypoints li.is-now { color: var(--signal); }
.waypoints li.is-now::before { background: var(--signal); border-color: var(--signal); }
.hud-pause { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--mute); cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 10px 0; white-space: nowrap; }
.hud-pause:hover { color: var(--bone); }
.hud-pause svg { width: 14px; height: 14px; fill: currentColor; }
.hud-pause .i-play, .hud-pause.is-paused .i-pause { display: none; }
.hud-pause.is-paused .i-play { display: block; }

/* 2. Statement */
.statement { padding: var(--pad) 0; }
.statement-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 14ch; }
.statement-copy { display: grid; gap: 18px; color: var(--mute); font-size: 1.15rem; max-width: 30em; padding-bottom: 8px; }
.statement-copy p:last-child { color: var(--bone); }

/* 3. Route */
.route { padding: 0 0 var(--pad); }
.route-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.route-head .label { margin-bottom: 18px; }
.route-nav { display: flex; gap: 10px; }
.route-scroll { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-inline: max(20px, calc((100vw - 1200px) / 2)); scroll-padding-inline: max(20px, calc((100vw - 1200px) / 2)); }
.route-scroll::-webkit-scrollbar { display: none; }
.route-track { display: flex; gap: 20px; width: max-content; position: relative; padding-top: 2px; }
.route-track::before { content: ""; position: absolute; left: 4px; right: 0; top: 10px; height: 1px; background: linear-gradient(to right, var(--signal), var(--signal) 92%, transparent); opacity: .7; }
.wp { width: min(78vw, 400px); scroll-snap-align: start; position: relative; }
.wp-n { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); display: flex; align-items: center; gap: 10px; flex-direction: column; align-items: flex-start; }
.wp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--stage); display: block; margin-top: 4px; margin-bottom: 4px; position: relative; }
.wp img { margin-top: 14px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--panel); }
.wp-text { margin-top: 14px; color: var(--mute); font-size: 1rem; max-width: 26em; }

/* 4. Case file: the one light chapter */
.case { background: var(--paper); color: var(--ink); padding: var(--pad) 0; color-scheme: light; }
.case .label { color: var(--ink-mute); }
.case h2 { max-width: 16ch; }
.case-grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px) clamp(20px, 3.4vw, 48px); align-items: end; }
.case figcaption { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--paper-rule); padding-top: 10px; }
.case figcaption .label { color: var(--ink); }
.fig-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); text-align: right; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0d0f10; box-shadow: 0 24px 60px -30px rgba(16, 18, 19, .6); }
.player iframe, .player-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-facade { padding: 0; cursor: pointer; background: #0d0f10; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .2s; opacity: .95; }
.player-facade:hover img { transform: scale(1.02); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 88px; height: 88px; border-radius: 50%; background: var(--signal); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 34px rgba(0, 0, 0, .4); transition: transform .2s; }
.player-facade:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.play svg { width: 38px; height: 38px; margin-left: 5px; }
.phone { width: min(100%, 250px); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 30px; border: 8px solid #17191b; background: #17191b; overflow: hidden; box-shadow: 0 24px 50px -26px rgba(16, 18, 19, .7); position: relative; }
.phone::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; border-radius: 999px; background: #17191b; z-index: 1; }
.phone-video { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.case-plan a { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--paper-rule); }
.case-plan img { width: 100%; height: auto; transition: transform .4s ease; }
.case-plan a:hover img { transform: scale(1.015); }
.case-notes { align-self: start; }

/* Ledgers (case notes and pricing share the pattern) */
.ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger > div:first-child { border-top: 1px solid var(--rule); }
.ledger-ink > div { border-color: var(--paper-rule); display: block; }
.ledger-ink dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 4px; }
.ledger-ink dd { font-weight: 500; }

/* 5. Who it's for */
.who { padding: var(--pad) 0; }
.tabs { margin-top: clamp(28px, 4vw, 48px); display: flex; gap: 0; border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-size: 1.05rem; font-weight: 500; color: var(--mute); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 4px; margin-right: 32px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.tab:hover { color: var(--bone); }
.tab[aria-selected="true"] { color: var(--bone); border-bottom-color: var(--signal); }
html:not(.js) .tabs { display: none; }
html:not(.js) .panel[hidden] { display: grid; }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 4vw, 52px); }
.panel[hidden] { display: none; }
.panel-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.panel-img figcaption { margin-top: 12px; }
.panel-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 108%; font-weight: 560; letter-spacing: -0.015em; line-height: 1.1; }
.panel-copy > p { margin-top: 14px; color: var(--mute); }
.gets { margin-top: 22px; border-top: 1px solid var(--rule); }
.gets li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--rule); position: relative; }
.gets li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 12px; height: 1px; background: var(--signal); }
.panel-copy .note { font-size: 0.95rem; }
.panel-copy .btn { margin-top: 24px; }

/* 6. How it works */
.how { padding: 0 0 var(--pad); }
.timeline { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 4px; right: 0; top: 8px; height: 1px; background: var(--signal); opacity: .7; transform-origin: left; }
.js .timeline::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .timeline.is-in::before { transform: scaleX(1); }
.timeline li { padding-right: clamp(20px, 3vw, 48px); }
.tl-when { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone); }
.tl-when .wp-dot { margin: 4px 0 14px; }
.timeline h3 { margin-top: 14px; }
.timeline li > p:last-child { margin-top: 10px; color: var(--mute); font-size: 1rem; }

/* 7. Pricing */
.price { padding: var(--pad) 0; border-top: 1px solid var(--rule); background: linear-gradient(to bottom, var(--panel), var(--stage)); }
.price-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.price-head h2 { max-width: 12ch; }
.price-sub { margin-top: 20px; color: var(--mute); max-width: 28em; }
.ledger-price dt { font-size: 1.1rem; }
.ledger-price dd { font-stretch: 112%; font-weight: 560; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.ledger-price > div { padding: 22px 0; }
.ledger-quote dd { font-size: 1rem; font-stretch: 100%; font-weight: 500; letter-spacing: 0; }
.ledger-quote a { color: var(--signal); text-underline-offset: 4px; }

/* 8. Book */
.book { padding: var(--pad) 0; }
.book-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.book-copy .label { margin-bottom: 18px; }
.book-copy h2 { max-width: 13ch; }
.book-copy > p:not(.label) { margin-top: 18px; color: var(--mute); }
.contact { margin-top: 36px; border-top: 1px solid var(--rule); }
.contact > div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact dd { font-weight: 500; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.form { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.9rem; font-weight: 500; }
.opt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-left: 6px; }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--bone);
  background: var(--stage); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 13px; width: 100%;
  transition: border-color .15s;
}
input:hover, select:hover, textarea:hover { border-color: #3a3e42; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; border-color: transparent; border-radius: 10px; }
textarea { resize: vertical; }
input[aria-invalid="true"] { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 0.88rem; color: var(--mute); }
.form-status { font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--signal); font-weight: 600; }
.form-status.err { color: var(--err); }
.form-status a { color: inherit; }
/* No-JavaScript result notes: hidden until the redirect's #sent-ok / #sent-err targets one. Zero height rather than
   display: none, so the browser can still scroll to the targeted note. */
.form-note { height: 0; overflow: hidden; visibility: hidden; margin: 0; font-size: 0.95rem; }
.form-note:target { height: auto; visibility: visible; }
.form-note.ok { color: var(--signal); font-weight: 600; }
.form-note.err { color: var(--err); }
.form-note a { color: inherit; }
/* Controls that need app.js: hidden without it (the route strip still scrolls by hand). */
html:not(.js) .hud-pause, html:not(.js) .route-nav { display: none; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 36px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bone); }

/* Policy pages (terms.html, privacy.html): plain reading column, no hero. */
.policy-top { position: sticky; background: var(--stage); border-bottom-color: var(--rule); }
.policy { padding: 56px 0 var(--pad); }
.policy-wrap { max-width: 720px; }
.policy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 10px 0 8px; }
.policy h2 { font-size: 1.3rem; font-weight: 600; font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.25; max-width: none; margin: 36px 0 10px; }
.policy p, .policy li { color: rgba(242, 238, 230, .86); }
.policy p + p { margin-top: 12px; }
.policy-date { font-family: var(--mono); font-size: 13px; color: var(--mute); margin-bottom: 28px; }
.policy-list { display: grid; gap: 10px; padding-left: 1.1em; list-style: disc; }
.policy a { color: var(--signal); }
.policy strong { color: var(--bone); font-weight: 600; }

/* Tablet */
@media (max-width: 1000px) {
  .nav a:not(.nav-cta) { display: none; }
  .statement-grid, .price-grid, .book-grid { grid-template-columns: 1fr; }
  .statement-grid { align-items: start; }
  .panel { grid-template-columns: 1fr; align-items: start; }
  .panel-img img { aspect-ratio: 16 / 9; }
  .hero .hud-place { display: none; }
  .case-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { width: min(1200px, 100% - 32px); }
  .hero { min-height: max(600px, 100svh); }
  .hero-inner { padding-bottom: 28px; }
  .lede { margin-top: 18px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .waypoints li { display: none; }
  .waypoints li.is-now { display: flex; }
  .waypoints li.is-now::after { display: none; }
  .hud-pause-text { position: absolute; left: -9999px; }
  .hud-pause { min-width: 44px; min-height: 44px; justify-content: center; }
  .route-head { align-items: flex-start; }
  .route-nav { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .phone { width: 210px; }
  .play { width: 64px; height: 64px; }
  .play svg { width: 28px; height: 28px; margin-left: 4px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; transform-origin: top; }
  .js .timeline::before { transform: scaleY(0); }
  .js .timeline.is-in::before { transform: scaleY(1); }
  .timeline li { padding: 0 0 32px 30px; position: relative; }
  .timeline li:last-child { padding-bottom: 0; }
  .tl-when .wp-dot { position: absolute; left: 0; top: 2px; margin: 0; }
  .field-row { grid-template-columns: 1fr; }
  .tab { margin-right: 22px; font-size: 1rem; }
  .ledger-price dt { font-size: 1rem; }
  .contact > div { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .timeline::before { transform: none; }
}
