/* ============================================================
   creatorwire.xyz/guide, the Creator Campaign Playbook landing.
   Tokens and recipes from the main site (landing-app/DESIGN.md),
   light default, dark opt-in via data-theme (key cw-theme).
   ============================================================ */

:root,
:root[data-theme='light'] {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-70: rgba(10, 10, 10, .64);
  --line: rgba(10, 10, 10, .08);
  --dot: rgba(20, 20, 20, .14);
  --panel: rgba(255, 255, 255, .78);
  --skeleton: #ececf4;
  --skeleton-soft: #f2f1f8;
  --btn-solid-bg: #0a0a0a;
  --btn-solid-fg: #ffffff;
  --glass-bg: rgba(255, 255, 255, .5);
  --glass-bg-strong: rgba(255, 255, 255, .66);
  --glass-border: rgba(10, 10, 10, .09);
  --glass-highlight: rgba(255, 255, 255, .75);
  --card-shadow: 0 34px 90px rgba(17, 24, 39, .13);
  --hdr-grad-a: rgba(255, 255, 255, .62);
  --hdr-grad-b: rgba(255, 255, 255, .3);
  --hdr-edge-top: rgba(255, 255, 255, 1);
  --hdr-edge-fade: rgba(10, 10, 10, .05);
  --hdr-shadow: 0 18px 40px rgba(17, 24, 39, .1), 0 1px 3px rgba(17, 24, 39, .05);
  --hdr-sheen: rgba(255, 255, 255, .6);
  --pill-glass-a: rgba(255, 255, 255, .55);
  --pill-glass-b: rgba(255, 255, 255, .2);
  --pill-sheen: rgba(255, 255, 255, .85);
  --pill-edge-top: rgba(255, 255, 255, .98);
  --pill-edge-side: rgba(31, 38, 135, .12);
  --pill-edge-bot: rgba(255, 255, 255, .7);
  --pill-inner-top: rgba(255, 255, 255, .9);
  --pill-inner-bot: rgba(31, 38, 135, .05);
  --pill-shadow: 0 8px 32px rgba(31, 38, 135, .16);
  --tile-shadow: 0 14px 30px rgba(15, 23, 42, .09);
  --tile-sm-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 14px -6px rgba(15, 23, 42, .22);
  --tile-shadow-near: 0 24px 48px rgba(15, 23, 42, .17);
  --tile-shadow-far: 0 8px 16px rgba(15, 23, 42, .06);
  --tile-frost: rgba(255, 255, 255, .42);
  --tile-inner-top: rgba(255, 255, 255, .75);
  --tile-tint: 50%;
  --field-bg: rgba(255, 255, 255, .72);
  --green: #27b95c;
  --green-deep: #1e9e57;
  --purple: #8b78f0;
}
:root[data-theme='dark'] {
  --bg: #0d0d0e;
  --fg: #f2ede4;
  --fg-70: rgba(242, 237, 228, .72);
  --line: rgba(242, 237, 228, .1);
  --dot: rgba(242, 237, 228, .13);
  --panel: rgba(255, 255, 255, .06);
  --skeleton: #2a2a30;
  --skeleton-soft: #232328;
  --btn-solid-bg: #f2ede4;
  --btn-solid-fg: #0d0d0e;
  --glass-bg: rgba(23, 23, 26, .62);
  --glass-bg-strong: rgba(23, 23, 26, .82);
  --glass-border: rgba(255, 255, 255, .1);
  --glass-highlight: rgba(255, 255, 255, .08);
  --card-shadow: 0 34px 90px rgba(0, 0, 0, .5);
  --hdr-grad-a: rgba(24, 24, 27, .78);
  --hdr-grad-b: rgba(24, 24, 27, .5);
  --hdr-edge-top: rgba(255, 255, 255, .22);
  --hdr-edge-fade: rgba(255, 255, 255, .04);
  --hdr-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 1px 3px rgba(0, 0, 0, .4);
  --hdr-sheen: rgba(255, 255, 255, .12);
  --pill-glass-a: rgba(255, 255, 255, .12);
  --pill-glass-b: rgba(255, 255, 255, .04);
  --pill-sheen: rgba(255, 255, 255, .2);
  --pill-edge-top: rgba(255, 255, 255, .34);
  --pill-edge-side: rgba(255, 255, 255, .08);
  --pill-edge-bot: rgba(255, 255, 255, .12);
  --pill-inner-top: rgba(255, 255, 255, .18);
  --pill-inner-bot: rgba(0, 0, 0, .3);
  --pill-shadow: 0 8px 32px rgba(0, 0, 0, .45);
  --tile-shadow: 0 14px 30px rgba(0, 0, 0, .32);
  --tile-sm-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 16px -8px rgba(0, 0, 0, .6);
  --tile-shadow-near: 0 24px 52px rgba(0, 0, 0, .46);
  --tile-shadow-far: 0 8px 18px rgba(0, 0, 0, .2);
  --tile-frost: rgba(255, 255, 255, .1);
  --tile-inner-top: rgba(255, 255, 255, .18);
  --tile-tint: 38%;
  --field-bg: rgba(255, 255, 255, .06);
  --green: #3ddc74;
  --green-deep: #3ddc74;
  --purple: #9c8bff;
}
:root { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }

:root {
  --serif: "Neue Haas Unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  transition: background .35s ease, color .35s ease;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.034em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; }
p { margin: 0; }
.mono {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-70);
}
.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- floating liquid-glass header ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 1280px;
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hdr-grad-a), var(--hdr-grad-b));
  box-shadow: var(--hdr-shadow);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--hdr-edge-top), var(--hdr-edge-fade) 45%, transparent 90%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 18% 0%, var(--hdr-sheen), transparent 55%);
  opacity: .5;
  pointer-events: none;
}
.header-logo { display: block; width: 150px; color: var(--fg); position: relative; z-index: 1; }
.header-logo svg { width: 100%; height: auto; display: block; }
.header-cta { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.hbtn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity .2s, border-color .2s, transform .1s;
}
.hbtn:active { transform: translateY(1px); }
.hbtn--solid { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.hbtn--solid:hover { opacity: .85; }
.hbtn--ghost {
  color: var(--fg);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.hbtn--ghost:hover { border-color: var(--fg); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--fg);
  cursor: pointer;
  padding: 0;
  transition: border-color .2s, transform .1s;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle .ico-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .ico-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .ico-moon { display: none; }

/* ---------- canvas pieces ---------- */
.dotgrid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, var(--dot) .85px, transparent .95px) 0 0 / 12px 12px;
  pointer-events: none;
}
.plate {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(1040px, 96vw);
  height: min(640px, 76svh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    var(--bg) 0%, var(--bg) 42%,
    color-mix(in srgb, var(--bg) 92%, transparent) 58%,
    transparent 82%);
  filter: blur(10px);
  pointer-events: none;
}

/* the signature glass pill */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background:
    radial-gradient(120% 100% at 22% 0%, var(--pill-sheen), transparent 55%),
    linear-gradient(135deg, var(--pill-glass-a), var(--pill-glass-b));
  border-radius: 12px;
  box-shadow: var(--pill-shadow), inset 0 1px 0 var(--pill-inner-top), inset 0 -1px 0 var(--pill-inner-bot);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.25px;
  white-space: nowrap;
  color: var(--fg);
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--pill-edge-top), var(--pill-edge-side) 45%, var(--pill-edge-bot) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.pill-glow {
  position: absolute;
  z-index: -1;
  left: 14%;
  top: 30%;
  width: 60%;
  height: 90%;
  border-radius: 50%;
  filter: blur(22px);
  opacity: .8;
  pointer-events: none;
}

/* glass card */
.card {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 23px;
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* brand tile */
.tile {
  position: absolute;
  z-index: 3;
  width: var(--s, 80px);
  height: var(--s, 80px);
  display: grid;
  place-items: center;
  opacity: .82;
  border-radius: calc(var(--s, 80px) * .19);
  background:
    radial-gradient(130% 110% at 24% 0%, var(--tile-frost), transparent 58%),
    color-mix(in srgb, var(--tile-plate, #fff) var(--tile-tint), transparent);
  box-shadow: var(--tile-shadow), inset 0 1px 0 var(--tile-inner-top);
  transform: rotate(var(--rot, 0deg));
  animation: drift 9s ease-in-out infinite;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--pill-edge-top), var(--pill-edge-side) 45%, var(--pill-edge-bot) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.tile img { width: 74%; height: 74%; object-fit: contain; border-radius: calc(var(--s, 80px) * .14); }
.tile--near { opacity: .94; box-shadow: var(--tile-shadow-near), inset 0 1px 0 var(--tile-inner-top); }
.tile--far { opacity: .64; box-shadow: var(--tile-shadow-far), inset 0 1px 0 var(--tile-inner-top); filter: blur(.7px) saturate(.92); }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.tile:nth-child(odd) { animation-duration: 11s; animation-delay: -3s; }

/* buttons */
.btn {
  display: inline-block;
  text-decoration: none;
  font: 600 16px var(--sans);
  padding: 15px 30px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn-solid-bg); color: var(--btn-solid-fg); }
.btn--primary:hover { opacity: .85; }

/* skeleton vocabulary */
.sk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sk-head i { display: block; height: 9px; width: 42%; border-radius: 6px; background: var(--skeleton); }
.sk-head i.w62 { width: 62%; }
.sk-row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.sk-row img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.sk-row i { display: block; height: 8px; border-radius: 6px; background: var(--skeleton); flex: 1; }
.sk-row i.w62 { flex: 0 0 34%; }
.sk-row .bar { display: block; height: 8px; width: var(--w); border-radius: 2px; background: #9c8bff; opacity: .9; margin-left: auto; max-width: 40%; }
.chip {
  font: 600 11px var(--sans);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip--green { color: var(--green-deep); background: rgba(39, 185, 92, .14); border: 1px solid rgba(39, 185, 92, .35); }
.check {
  display: inline-grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 5px;
  background: #7fd39a;
  flex: none;
}
.check::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check--big { width: 26px; height: 26px; border-radius: 8px; background: var(--green); }
.check--big::after { width: 12px; height: 7px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--bg);
  transition: background .35s ease;
}
.content {
  position: relative;
  z-index: 10;
  width: min(760px, 92vw);
  text-align: center;
  display: grid;
  justify-items: center;
}
.pill--kicker { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.04;
}
.sub {
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-70);
}

/* the capture card */
.capture {
  position: relative;
  margin-top: 30px;
  width: min(440px, 100%);
  padding: 18px;
  display: grid;
  gap: 10px;
  text-align: left;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  border-radius: 23px;
  box-shadow: var(--card-shadow), inset 0 1px 0 var(--glass-highlight);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.field { display: grid; gap: 6px; }
.field > span { font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-70); padding-left: 4px; }
.field em { font-style: normal; opacity: .7; text-transform: none; letter-spacing: .04em; }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font: 500 16px var(--sans);
  color: var(--fg);
  background: var(--field-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--fg-70); opacity: .6; }
.field input:focus { border-color: var(--fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fg) 8%, transparent); }
.field.bad input { border-color: #d64545; }
.capture .btn { margin-top: 4px; width: 100%; }
.micro { font-size: 12.5px; color: var(--fg-70); text-align: center; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.capture.busy .btn { opacity: .6; pointer-events: none; }
.capture.busy .btn span::after { content: "…"; }
.done { display: none; align-items: center; gap: 12px; padding: 6px 4px 2px; }
.done strong { font-size: 17px; }
.done-line { display: block; font-size: 13.5px; color: var(--fg-70); }
.done-line b { color: var(--fg); font-weight: 600; }
.done-line a { color: var(--fg); font-weight: 600; text-underline-offset: 3px; }
.capture.invalid .micro { color: #d64545; }
.capture.sent .field, .capture.sent .btn, .capture.sent .micro { display: none; }
.capture.sent .done { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; }
.capture.sent .done strong { grid-column: 2; }
.capture.sent .done .check--big { grid-row: 1 / 3; }
.capture.sent .done-line { grid-column: 2; }

/* floating evidence */
.float { position: absolute; z-index: 4; pointer-events: none; }
.float--book { left: 7%; top: 30%; transform: rotate(-6deg); animation: drift 12s ease-in-out infinite; }
.float--shortlist { right: 5%; top: 52%; width: 280px; padding: 18px 20px 22px; transform: rotate(3deg); animation: drift 10s ease-in-out infinite -4s; }
.float--rate { right: 12%; bottom: 12%; width: 220px; padding: 16px 18px 18px; transform: rotate(-4deg); opacity: .9; animation: drift 13s ease-in-out infinite -6s; }
.pill--float { position: absolute; left: -24px; bottom: -18px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 9px 0; }
.rate-row i { display: block; height: 8px; width: 46%; border-radius: 6px; background: var(--skeleton); }
.rate { font-weight: 600; font-size: 14px; }
.rate--live { color: var(--green-deep); }
.float--rate .check { position: absolute; right: 14px; top: 14px; }

/* the book: the real cover, tilted, with page edges behind it */
.book { position: relative; width: 250px; aspect-ratio: 600 / 850; perspective: 1200px; }
.book-pages {
  position: absolute;
  inset: 8px -10px 4px 14px;
  border-radius: 4px 12px 12px 4px;
  background: linear-gradient(90deg, #e8e8ec, #ffffff 60%, #d9d9de);
  transform: rotateY(-20deg);
  transform-origin: left center;
  box-shadow: 0 30px 60px rgba(17, 24, 39, .22);
}
.book-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 12px 12px 4px;
  transform: rotateY(-20deg);
  transform-origin: left center;
  box-shadow: 0 40px 80px rgba(17, 24, 39, .28), 0 0 0 1px rgba(10, 10, 10, .06);
  background: #fff;
}

/* ---------- clients: brand tiles on a slow wire ---------- */
.clients { padding: 26px 0 26px; text-align: center; }
.clients .mono { margin-bottom: 22px; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  padding: 14px 24px 28px;
  animation: brands 64s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes brands { to { transform: translateX(-50%); } }
.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; white-space: nowrap; }
.tile-sm {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(130% 110% at 24% 0%, var(--tile-frost), transparent 58%),
    color-mix(in srgb, var(--tile-plate, #fff) var(--tile-tint), transparent);
  box-shadow: var(--tile-sm-shadow), inset 0 1px 0 var(--tile-inner-top);
}
.tile-sm::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--pill-edge-top), var(--pill-edge-side) 45%, var(--pill-edge-bot) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.tile-sm img { width: 72%; height: 72%; object-fit: contain; border-radius: 9px; }

/* ---------- sections ---------- */
section .wrap > .mono { margin-bottom: 14px; }
.chapters { padding: 90px 0 30px; }
.chapters h2 { max-width: 26ch; }
.phase-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.phase { padding: 24px 24px 22px; display: grid; gap: 14px; align-content: start; }
.phase h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.phase h3 em { font: 500 11.5px var(--mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-70); }
.phase ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: ch var(--from, 0); }
.phase ol li { position: relative; padding-left: 40px; display: grid; gap: 2px; counter-increment: ch; }
.phase ol li::before {
  content: counter(ch, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--btn-solid-bg); color: var(--btn-solid-fg);
  font: 600 11px var(--mono);
}
.phase ol li strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.phase ol li span { font-size: 14px; line-height: 1.5; color: var(--fg-70); }
.bonus { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-70); }
.bonus b { color: var(--fg); font-weight: 600; }

/* a look inside: a small fan of blurred pages, only the headings readable */
.inside { padding: 64px 0 10px; text-align: center; }
.inside .wrap > .mono { margin-bottom: 14px; }
.inside h2 { max-width: 22ch; margin: 0 auto; }
.peek { margin-top: 38px; display: grid; justify-items: center; gap: 24px; }
.peek-pages { list-style: none; margin: 0; padding: 0 14px; display: flex; justify-content: center; }
.peek-pages li {
  position: relative;
  width: 150px;
  margin: 0 -12px;
  transform: translateY(var(--y, 0px)) rotate(var(--r, 0deg));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.peek-pages li:nth-child(2), .peek-pages li:nth-child(3) { z-index: 2; }
.peek-pages img {
  width: 100%; height: auto; aspect-ratio: 260 / 369;
  border-radius: 6px; background: #fff;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, .06), 0 1px 2px rgba(15, 23, 42, .06), 0 16px 30px -16px rgba(15, 23, 42, .34);
}
.peek-pages li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 55%;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 72%, transparent));
  pointer-events: none;
}
@media (hover: hover) {
  .peek-pages:hover li { transform: translateY(calc(var(--y, 0px) - 6px)) rotate(calc(var(--r, 0deg) * 1.5)); }
}
.peek-lock { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); letter-spacing: .06em; color: var(--fg-70); }

.proof { padding: 90px 0 40px; }
.proof h2 { max-width: 26ch; }
.stats { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats div { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -0.03em; line-height: 1; }
.stats dd { margin: 10px 0 0; font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-70); }

.who { padding: 90px 0 60px; }
.who h2 { max-width: 26ch; }
.who-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.who-card { padding: 22px; display: grid; gap: 12px; justify-items: start; align-content: start; }
.who-card strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.who-card > span:last-child { font-size: 14px; line-height: 1.55; color: var(--fg-70); }

/* ---------- final ---------- */
.final { position: relative; padding: 120px 0 130px; overflow: hidden; display: grid; place-items: center; }
.plate--final { height: 420px; }
.final .content { width: min(880px, 92vw); }
.final h2 { font-size: clamp(36px, 5vw, 64px); max-width: 24ch; }
.final .btn--final { margin-top: 30px; }

/* ---------- footer ---------- */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px min(6vw, 60px) 40px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot-logo { width: 120px; color: var(--fg); }
.foot-logo svg { width: 100%; height: auto; display: block; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(var(--i, 0) * 55ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tile, .float { animation: none; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- adaptive: tablet ---------- */
@media (max-width: 1100px) {
  .float--rate, .float--shortlist { display: none; }
  /* the book leaves the canvas and sits in flow above the copy */
  .float--book { position: relative; left: auto; top: auto; transform: none; animation: none; margin: 0 auto 28px; z-index: 5; }
  .book { width: 170px; margin: 0 auto; }
  .hero { padding-top: 130px; }
}

/* ---------- adaptive: phone, its own composition ---------- */
@media (max-width: 760px) {
  .site-header { top: 10px; left: 12px; right: 12px; height: 60px; padding: 0 8px 0 18px; }
  .header-logo { width: 122px; }
  .hbtn--ghost { display: none; }
  .hbtn { padding: 10px 16px; font-size: 14px; }
  .theme-toggle { width: 40px; height: 40px; }

  .hero { min-height: auto; padding: 110px 0 60px; place-items: start center; }
  .plate { width: 140vw; height: 70svh; top: 58%; }
  .float--shortlist, .float--rate, .tile { display: none; }
  /* the book sits in flow above the copy, small, straight on */
  .float--book { position: relative; left: auto; top: auto; transform: none; animation: none; margin: 0 auto 26px; z-index: 5; }
  .book { width: 150px; margin: 0 auto; }
  .hero { display: block; }
  .content { margin: 0 auto; }
  .hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .sub { font-size: 15px; }
  .capture { padding: 14px; }

  .clients { padding: 10px 0 24px; }
  .marquee-track { gap: 30px; animation-duration: 44s; }
  .brand { font-size: 14px; gap: 10px; }
  .tile-sm { width: 40px; height: 40px; border-radius: 11px; }
  .chapters, .proof, .who, .inside { padding: 64px 0 20px; }
  .phase-grid, .who-grid { grid-template-columns: 1fr; gap: 12px; }
  .phase-grid { margin-top: 28px; }
  .peek { margin-top: 28px; }
  .peek-pages li { width: 96px; margin: 0 -9px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; margin-top: 28px; }
  .final { padding: 80px 0 90px; }
  .foot { justify-content: center; text-align: center; }
}
