/* Rainier Media site. Same design language as the Reyn Marie site on his call, in cobalt, his pick (2026-11-01), so the two
   brands stay apart. Every colour lives in these tokens. Nothing here is shared with rainierbuilds. */
:root {
  --page: #f8f8fc;
  --card: #fff;
  --ink: #191a24;
  --muted: #5f6272;
  --line: rgba(25, 26, 36, 0.1);
  --line-mid: rgba(25, 26, 36, 0.2);
  --accent: #2447e0;
  --accent-dark: #1a35b0;
  --under: #9db0ff;
  --soft: #e4e9ff;
  --soft-ink: #1f3bb8;
  --glow1: rgba(122, 150, 255, 0.42);
  --glow2: rgba(255, 205, 178, 0.7);
  --glow3: rgba(190, 225, 240, 0.7);
  --tint: #e9edfb;
  --tint-em: #1f3bb8;
  --tint-text: #4a5068;
  --deep: #12142a;
  --deep-2: #20233f;
  --on-dark: #a9bcff;
  --on-dark-soft: rgba(169, 188, 255, 0.16);
  --dark-text: #c5c8d6;
  --dark-glow: rgba(70, 100, 255, 0.34);
  --finale-a: #2447e0;
  --finale-b: #4a6bf0;
  --finale-c: #7c93f7;
  --finale-em: #ffe7a6;
  --finale-text: #e6ebff;
  --gold: #e0a84f;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --shadow-s: 0 1px 2px rgba(20, 24, 60, 0.05), 0 8px 20px -10px rgba(20, 24, 60, 0.16);
  --shadow: 0 1px 2px rgba(20, 24, 60, 0.05), 0 20px 44px -20px rgba(20, 24, 60, 0.3);
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; background: var(--page); }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
h1 em, h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--under); color: var(--ink); }
main { overflow-x: clip; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin-left: auto; margin-right: auto; }
.sec { position: relative; padding-top: clamp(64px, 8vw, 112px); }
.draft { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--under), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; }

/* A short rise only. Content is never hidden, so nothing depends on scroll speed. */
.js .rv { transform: translateY(14px); transition: transform 0.6s var(--ease); }
.js .rv.in { transform: none; }

.spark { position: absolute; color: var(--gold); line-height: 1; pointer-events: none; animation: twinkle 3.2s ease-in-out infinite; }
.spark.s1 { right: 12%; top: -6px; font-size: 22px; }
.spark.s2 { left: -14px; bottom: 18%; font-size: 13px; animation-delay: 1.1s; }
.spark.s3 { left: 46%; bottom: 0; font-size: 20px; animation-delay: 0.6s; color: var(--accent); }
.spark.s4 { right: -8px; top: 40%; font-size: 14px; animation-delay: 1.7s; }
.spark.s5 { right: 6%; top: 18%; font-size: 26px; color: #fff; }
.spark.s6 { right: 16%; bottom: 14%; font-size: 15px; color: #fff; animation-delay: 1.3s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.7); opacity: 0.45; } 50% { transform: scale(1.1) rotate(16deg); opacity: 1; } }
.note { position: absolute; display: inline-flex; gap: 4px; font-family: var(--hand); font-size: 23px; line-height: 1; color: var(--accent); rotate: -3deg; }
.note svg { width: 46px; height: 32px; margin-top: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.n-edit { right: -190px; bottom: -14px; }

/* The menu */
.top {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--wrap), calc(100% - 32px));
  margin: 14px auto 0;
  padding: 8px 9px 8px 16px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1; }
.links { display: flex; gap: clamp(12px, 2vw, 26px); font-size: 14.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.links a { position: relative; padding: 4px 0; transition: color 0.15s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; border: 1px solid var(--line-mid); border-radius: 999px; padding: 7px 14px; font: 600 14px var(--sans); }

.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn b { font-weight: 700; transition: transform 0.2s var(--ease); }
.btn:hover b { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn.solid { background: var(--accent); color: #fff; }
.btn.solid:hover { background: var(--accent-dark); }
.btn.soft { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-mid); }
.btn.soft:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.top .btn { padding: 9px 17px; font-size: 14px; }

/* First screen */
.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: calc(100vh - 92px); min-height: calc(100svh - 92px); padding: 18px 0 28px; }
.pitch { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 600; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--soft); }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 5.4vw, 74px); }
.under { position: relative; display: inline-block; }
.under svg { position: absolute; left: 0; right: 0; bottom: -0.1em; width: 100%; height: 0.2em; overflow: visible; }
.under path { fill: none; stroke: var(--under); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pitch > p { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.35vw, 18.5px); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.points { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.points li { display: inline-flex; align-items: center; gap: 7px; }
.points li::before { content: "✦"; color: var(--accent); font-size: 13px; }

.scene { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 44px 0; }
.blob { position: absolute; border-radius: 50%; pointer-events: none; }
.b1 { width: 74%; aspect-ratio: 1; left: 10%; top: 2%; background: radial-gradient(closest-side, var(--glow1), transparent); }
.b2 { width: 54%; aspect-ratio: 1; right: -8%; bottom: -6%; background: radial-gradient(closest-side, var(--glow2), transparent); }
.b3 { width: 46%; aspect-ratio: 1; left: -8%; bottom: -2%; background: radial-gradient(closest-side, var(--glow3), transparent); }
.fan { position: relative; display: flex; justify-content: center; align-items: center; width: 100%; }
.phone { position: relative; flex: 1 1 0; min-width: 0; aspect-ratio: 9 / 16; border-radius: 22px; border: 4px solid #fff; overflow: hidden; background: #111; box-shadow: var(--shadow); transition: transform 0.35s var(--ease); }
.phone.p0 { transform: translateY(10px) rotate(-2deg); }
.phone.p1 { flex: 1.18 1 0; margin-inline: -14px; z-index: 2; }
.phone.p2 { transform: translateY(-10px) rotate(2deg); }
.phone:hover { transform: translateY(-4px); }
.lab { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.95); font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink); }
.phone.p2 .lab { left: auto; right: 10px; }
.float { position: absolute; z-index: 4; padding: 9px 13px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; line-height: 1.3; }
.float small { display: block; font-size: 11px; font-weight: 700; color: var(--accent); }
.f-hook { left: 0; top: 0; width: 250px; }
.f-hook span { display: block; min-height: 34px; }
.f-job { right: 0; bottom: 3%; }
.ticks { display: flex; gap: 9px; margin-top: 3px; font-size: 12px; }
.ticks span { display: inline-flex; align-items: center; gap: 4px; }
.ticks span::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* The two moving strips */
.track { display: flex; width: max-content; animation: slide 44s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee { overflow: hidden; margin-top: 6px; padding: 15px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: clamp(30px, 4.4vw, 58px); margin-right: clamp(30px, 4.4vw, 58px); font-weight: 700; font-size: 15.5px; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "✦"; font-size: 11px; color: var(--accent); }
.tool { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.tool img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.words { overflow: hidden; margin-top: clamp(48px, 6vw, 72px); }
.words .track { animation-duration: 70s; }
.words span { padding-right: 30px; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 5vw, 60px); color: var(--under); white-space: nowrap; }
.words span::after { content: "✦"; padding-left: 30px; font-family: var(--sans); font-style: normal; font-size: 0.5em; color: var(--gold); vertical-align: 0.3em; }

/* Section heads */
.head { position: relative; max-width: 720px; }
.head h2, .pod-say h2, .finale h2, .me h2 { margin-top: 12px; font-size: clamp(32px, 4.4vw, 56px); }
.head p, .pod-say p, .me p { margin-top: 14px; max-width: 58ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }
.kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--soft-ink); font-size: 13px; font-weight: 700; }
.kicker::before { content: "✦"; font-size: 10px; }
.kicker.on-dark { background: var(--on-dark-soft); color: var(--on-dark); }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-s); }

/* What I edit */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 23vw, 282px); gap: 14px; margin-top: 32px; }
.offer { position: relative; display: block; overflow: hidden; border-radius: 22px; background: #111; box-shadow: var(--shadow-s); }
.offer.big { grid-column: span 2; grid-row: span 2; }
.offer:nth-child(4), .offer:nth-child(5) { grid-column: span 2; }
.offer .frame { position: absolute; inset: 0; }
.offer img, .offer video { object-position: center 22%; transition: transform 0.6s var(--ease); }
.offer:hover img, .offer:hover video { transform: scale(1.04); }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 14, 10, 0) 42%, rgba(15, 14, 10, 0.88)); pointer-events: none; }
.over { position: absolute; left: 14px; right: 14px; bottom: 13px; color: #fff; pointer-events: none; }
.over b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.big .over b { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; }
.over small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; opacity: 0.9; }
.playdot { position: absolute; right: 12px; top: 12px; z-index: 2; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, 0.94); opacity: 0; transform: scale(0.85); transition: opacity 0.2s, transform 0.2s var(--ease); }
.playdot svg { width: 16px; height: 16px; fill: var(--ink); }
.offer:hover .playdot, .offer:focus-visible .playdot, .card:hover .playdot, .card:focus-visible .playdot { opacity: 1; transform: none; }

/* Clips */
.dark { position: relative; overflow: hidden; padding: clamp(24px, 5vw, 64px); border-radius: 32px; background: var(--deep); color: #fff; }
.dark::before { content: ""; position: absolute; right: -12%; top: -18%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--dark-glow), transparent); pointer-events: none; }
.dark h2 em { color: var(--on-dark); }
.dark .head p, .dark .card > span { color: var(--dark-text); }
.dark .card small { color: var(--on-dark); }
.dark .btn.soft { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.dark .btn.soft:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.tall-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(22px, 3vh, 30px) 14px; }
.tall-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wide-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wide-row.one { grid-template-columns: minmax(0, 1fr); }
.head + .wide-row, .head + .tall-row { margin-top: 30px; }
.more-link { margin-top: 26px; }
.wide-row + .tall-row { margin-top: clamp(24px, 3.4vh, 34px); }
.card { position: relative; display: block; }
.card small { display: block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.card b { display: block; margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.card small + b { margin-top: 3px; }
.card > span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.frame { position: relative; overflow: hidden; border-radius: 18px; background: var(--deep-2); }
.tall .frame { aspect-ratio: 9 / 16; }
.wide .frame { aspect-ratio: 16 / 9; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame video { opacity: 0; transition: opacity 0.18s ease; }
.playing .frame video { opacity: 1; }

/* Carousels */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.strip a { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px; background: var(--deep); box-shadow: var(--shadow); transition: transform 0.3s var(--ease); }
.strip a:nth-child(odd) { transform: rotate(-1.2deg); }
.strip a:nth-child(even) { transform: translateY(8px) rotate(1deg); }
.strip a:hover { transform: none; }
.series + .series { margin-top: 30px; }
.head + .series { margin-top: 30px; }
.series h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -0.02em; }
.slides { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; scrollbar-color: var(--deep-2) transparent; }
.slide { flex: 0 0 clamp(190px, 21vw, 248px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--deep-2); scroll-snap-align: start; }
.phone.still { aspect-ratio: 4 / 5; }

/* Podcasts */
.tinted { padding: clamp(24px, 4.4vw, 56px); border-radius: 32px; background: var(--tint); }
.tinted .kicker { background: #fff; color: var(--tint-em); }
.tinted h2 em { color: var(--tint-em); }
.tinted .pod-say p { color: var(--tint-text); }
.pod-say { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(20px, 3vh, 30px); }
.pod-say > div { max-width: 640px; }
.pod-media { display: grid; grid-template-columns: minmax(0, 3.16fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pod-media a { overflow: hidden; border-radius: 20px; border: 3px solid #fff; background: #111; box-shadow: var(--shadow); }
.pod-media .wide { aspect-ratio: 16 / 9; }

/* How a job runs */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 23px; height: 2px; background: linear-gradient(90deg, var(--under), var(--accent)); }
.steps li { position: relative; }
.ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-mid); color: var(--ink); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps li:last-child .ico { background: var(--accent); color: #fff; box-shadow: none; }
.step { display: block; margin-top: 12px; font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }

/* About strip */
.me { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.me .btn { margin-top: 18px; }
.polaroid { position: relative; padding: 12px 12px 44px; border-radius: 6px; background: #fff; box-shadow: var(--shadow); rotate: -3deg; transition: rotate 0.35s var(--ease); }
.polaroid:hover { rotate: 0deg; }
.pic { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; aspect-ratio: 1; padding: 14px; overflow: hidden; border-radius: 3px; background: var(--deep); }
.trk { display: flex; gap: 4px; height: 26px; }
.trk i { display: block; border-radius: 4px; background: var(--under); }
.trk i:nth-child(1) { flex: 3; }
.trk i:nth-child(2) { flex: 1.6; }
.trk i:nth-child(3) { flex: 2.4; }
.trk.t1 i { background: #8fb2e3; }
.trk.t1 i:nth-child(1) { flex: 1.4; }
.trk.t1 i:nth-child(2) { flex: 3.4; }
.trk.t2 i { background: #e9a06b; }
.trk.t2 i:nth-child(2) { flex: 2.6; }
.trk.t2 i:nth-child(3) { flex: 1; }
.trk.t3 i { background: #6d6e78; }
.trk.t3 i:nth-child(1) { flex: 5; }
.pic .plhead { position: absolute; left: 62%; top: 8px; bottom: 8px; width: 2px; background: #fff; }
.tape { position: absolute; z-index: 2; left: 50%; top: -12px; translate: -50% 0; rotate: 2deg; width: 96px; height: 26px; border-radius: 2px; background: var(--under); opacity: 0.85; }
.pen { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-family: var(--hand); font-size: 24px; color: var(--ink); }

/* The close, on every page */
.finale { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 60px); border-radius: 32px; background: linear-gradient(120deg, var(--finale-a), var(--finale-b) 65%, var(--finale-c)); color: #fff; }
.finale h2 { margin: 0; }
.finale h2 em { color: var(--finale-em); }
.finale p { margin-top: 12px; max-width: 52ch; color: var(--finale-text); }
.finale .btn.solid { background: #fff; color: var(--accent-dark); }
.finale .btn.solid:hover { background: var(--finale-em); }
footer { padding: clamp(20px, 3vw, 36px) 0 26px; }
.wordmark { overflow: hidden; font-family: var(--serif); font-style: italic; font-size: clamp(56px, 13.4vw, 176px); line-height: 1; text-align: center; color: transparent; -webkit-text-stroke: 1.5px var(--under); letter-spacing: -0.01em; white-space: nowrap; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px clamp(14px, 2vw, 24px); font-weight: 600; }
.foot nav a:hover { color: var(--ink); }

/* A service page */
.lead { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; min-height: calc(100vh - 92px); min-height: calc(100svh - 92px); padding: 18px 0 28px; }
.lead.wide { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.lead.tall { grid-template-columns: minmax(0, 1fr) auto; }
.lead h1 { margin-top: 18px; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; }
.lede { margin-top: 14px; max-width: 30ch; color: var(--muted); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.35; }
.gets { display: grid; gap: 8px; margin-top: 20px; }
.gets li { display: flex; gap: 9px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.gets li::before { content: "✦"; color: var(--accent); font-size: 13px; line-height: 1.7; }
.lead-clip { position: relative; display: block; overflow: hidden; border-radius: 22px; border: 4px solid #fff; background: #111; box-shadow: var(--shadow); }
.lead.wide .lead-clip { width: 100%; aspect-ratio: 16 / 9; }
.lead.tall .lead-clip { height: min(74vh, 640px); aspect-ratio: 9 / 16; rotate: 2deg; }

/* One piece */
.piece { display: grid; grid-template-columns: auto minmax(280px, 460px); gap: clamp(24px, 4vw, 56px); justify-content: center; align-items: start; padding-top: clamp(20px, 4vh, 40px); }
.piece video, .piece iframe { display: block; border: 0; background: #000; border-radius: 22px; box-shadow: var(--shadow); }
.piece.tall video, .piece.tall iframe { height: min(80vh, 780px); width: auto; aspect-ratio: 9 / 16; }
.piece.wide { grid-template-columns: minmax(0, 1fr); }
.piece.wide video, .piece.wide iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.piece h1 { font-size: clamp(32px, 3.6vw, 48px); }
.back { display: inline-block; margin-bottom: 14px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.back:hover { color: var(--ink); }
.time { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.block { margin-top: 14px; padding: 16px 18px; }
.block h2 { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--accent); }
.block .hook { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.next { display: block; margin-top: 18px; }
.next small { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.next b { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.next i { font-style: normal; display: inline-block; transition: transform 0.2s var(--ease); }
.next:hover i { transform: translateX(3px); }
.piece.wide .copy { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.piece.wide .copy .head-p, .piece.wide .copy .next { grid-column: 1 / -1; }

/* About */
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(36px, 8vh, 88px) 0 0; }
.about-head h1 { margin-top: 18px; font-size: clamp(40px, 5.6vw, 76px); }
.about-head h1 em { display: block; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: clamp(40px, 6vw, 72px); }
.about-grid .panel { padding: clamp(20px, 2.6vw, 30px); }
.edits { margin-top: 14px; }
.edits a { font-size: clamp(25px, 2.7vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.24; }
.edits a:hover { color: var(--accent); }
.tools { margin-top: 14px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.28; }

@media (max-width: 1180px) {
  .note { display: none; }
}
@media (max-width: 1100px) {
  .links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 0; padding: 8px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); font-size: 16px; }
  .top.open .links { display: flex; }
  .links a { padding: 11px 0; border-top: 1px solid var(--line); }
  .links a:first-child { border-top: 0; }
  .links a::after { display: none; }
  .menu-btn { display: block; margin-left: auto; }
}
@media (max-width: 980px) {
  .hero, .lead.wide, .lead.tall { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 26px; gap: 26px; }
  .scene { width: 100%; max-width: 640px; margin: 0 auto; }
  .lead.tall .lead-clip { height: auto; width: min(100%, 340px); rotate: 0deg; }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 30vw, 270px); }
  .offer.big { grid-column: span 2; grid-row: span 1; }
  .offer:nth-child(4), .offer:nth-child(5) { grid-column: span 1; }
  .offer:last-child { grid-column: span 2; }
  .tall-row.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-head { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
}
@media (max-width: 860px) {
  .piece, .piece.wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .piece.tall video, .piece.tall iframe { height: auto; width: 100%; max-height: 74vh; }
  .piece.wide .copy { display: block; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .top { padding-left: 12px; }
  .top .btn { display: none; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 48px); }
  .scene { padding: 58px 0 40px; }
  .phone.p1 { margin-inline: 0; margin-left: -10px; }
  .phone.p2 { display: none; }
  .float { padding: 7px 10px; font-size: 12px; }
  .f-hook { width: min(250px, 76%); }
  .f-job { bottom: 0; }
  .ticks { gap: 6px; font-size: 11px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
  .offer { aspect-ratio: 4 / 5; }
  .offer.big { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 1; }
  .offer:last-child { grid-column: span 1; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .over small { font-size: 12px; }
  .dark, .tinted, .finale { border-radius: 24px; }
  .tall-row, .tall-row.five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  .wide-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pod-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pod-media .wide { grid-column: 1 / -1; }
  .pod-media a:not(.wide) { aspect-ratio: 9 / 16; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .steps li { display: flex; align-items: center; gap: 14px; }
  .step { margin-top: 0; }
  .me, .about-head { grid-template-columns: minmax(0, 1fr); }
  .polaroid { width: min(240px, 70%); margin: 0 auto; }
  .about-head { gap: 34px; padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { transform: none; }
}

/* Automation: a band on the home page and its own page. Patterns seen on n8n.io (wired map, tabbed panel) and lindy.ai (window in the hero, cards holding small working screens, use case pills). */
.auto { display: flex; align-items: center; justify-content: space-between; gap: clamp(20px, 4vw, 48px); padding: clamp(26px, 4.4vw, 52px); border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 255, 255, 0.6); }
.auto h2 { margin-top: 12px; font-size: clamp(30px, 3.8vw, 48px); }
.auto p { max-width: 54ch; margin-top: 12px; color: var(--muted); }
.auto .btn { flex: none; }

.run { position: relative; z-index: 2; width: min(100%, 430px); overflow: hidden; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); rotate: 1.5deg; }
.run-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.run-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-mid); }
.run-bar b { margin-left: 6px; }
.run-bar span { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--accent); font-size: 12.5px; }
.run-bar span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live 1.6s ease-in-out infinite; }
.flow { padding: 10px 12px 12px; }
.flow li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-weight: 600; animation: run-row 9s var(--ease) infinite both; animation-delay: calc(var(--i) * 0.9s); }
.flow li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 13px; font-weight: 800; }
.flow .done { margin-top: 6px; background: var(--accent); color: #fff; }
.flow .done::before { background: rgba(255, 255, 255, 0.2); color: #fff; }
@keyframes run-row { 0% { opacity: 0.25; transform: translateX(-8px); } 7%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0.25; transform: translateX(-8px); } }
@keyframes live { 50% { opacity: 0.3; } }

.explainer { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: min(100%, 920px); aspect-ratio: 16 / 9; margin: 30px auto 0; overflow: hidden; border-radius: 28px; border: 4px solid #fff; background: #000; box-shadow: var(--shadow); }
.explainer.empty { padding: 20px; background: radial-gradient(70% 90% at 75% 10%, var(--dark-glow), transparent), var(--deep); color: #fff; text-align: center; }
.explainer b { margin-top: 10px; font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -0.02em; }
.explainer span:last-child { color: var(--dark-text); font-size: 14px; }
.big-play { display: grid; place-items: center; width: clamp(56px, 8vw, 84px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--accent); animation: ring 2.4s ease-out infinite; }
.big-play svg { width: 44%; fill: currentColor; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(169, 188, 255, 0.55); } 100% { box-shadow: 0 0 0 26px rgba(169, 188, 255, 0); } }

.flip-wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.flip-card { padding: 10px 10px 18px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.flip li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; font-weight: 600; }
.flip li + li { border-top: 1px solid var(--line); }
.toggle { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--accent); animation: tog-bg 12s linear infinite both; animation-delay: calc(var(--i) * 1s); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); animation: tog-knob 12s var(--ease) infinite both; animation-delay: calc(var(--i) * 1s); }
@keyframes tog-bg { 0%, 3% { background: var(--line-mid); } 7%, 80% { background: var(--accent); } 86%, 100% { background: var(--line-mid); } }
@keyframes tog-knob { 0%, 3% { left: 3px; } 7%, 80% { left: 23px; } 86%, 100% { left: 3px; } }
.meter { display: grid; gap: 8px; margin: 8px 14px 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.meter i { display: block; height: 10px; overflow: hidden; border-radius: 999px; background: var(--tint); }
.meter b { display: block; width: 92%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--under), var(--accent)); animation: meter 12s linear infinite both; }
@keyframes meter { 0% { width: 8%; } 40%, 84% { width: 92%; } 92%, 100% { width: 8%; } }

.auto-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.auto-card { padding: 12px 12px 20px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.auto-card > b { display: block; margin: 16px 8px 0; font-size: 18px; letter-spacing: -0.02em; }
.auto-card > span { display: block; margin: 6px 8px 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.mini { display: flex; gap: 10px; height: 150px; padding: 16px; overflow: hidden; border-radius: 14px; background: var(--tint); }
.mini i { display: block; font-style: normal; }
.chat { flex-direction: column; justify-content: center; }
.bub { max-width: 84%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.bub.them { align-self: flex-start; background: #fff; }
.bub.us { align-self: flex-end; background: var(--accent); color: #fff; animation: pop 6s var(--ease) infinite both; }
@keyframes pop { 0%, 18% { opacity: 0; transform: translateY(8px) scale(0.96); } 26%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.trail { position: relative; align-items: center; justify-content: space-between; padding: 16px 22px; }
.trail::before { content: ""; position: absolute; left: 44px; right: 44px; top: 66px; height: 2px; background: var(--line-mid); }
.trail i { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--tint-text); }
.trail b { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--tint); animation: dot 7s linear infinite both; }
.trail i:nth-child(2) b { animation-delay: 1.2s; }
.trail i:nth-child(3) b { animation-delay: 2.4s; }
@keyframes dot { 0%, 6% { background: #fff; } 12%, 76% { background: var(--accent); } 84%, 100% { background: #fff; } }
.fields { flex-direction: column; justify-content: center; }
.fields i { height: 24px; overflow: hidden; border-radius: 8px; background: #fff; }
.fields b { display: block; width: 100%; height: 100%; background: var(--under); transform-origin: 0 50%; animation: fill 6s var(--ease) infinite both; }
.fields i:nth-child(2) b { animation-delay: 0.7s; }
.fields i:nth-child(3) b { animation-delay: 1.4s; }
@keyframes fill { 0%, 6% { transform: scaleX(0); } 22%, 82% { transform: scaleX(1); } 92%, 100% { transform: scaleX(0); } }
.bell { flex-direction: column; align-items: center; justify-content: center; }
.bell svg { width: 54px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 12%; animation: swing 3s ease-in-out infinite; }
.bell i { padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; }
@keyframes swing { 0%, 45%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(8deg); } 38% { transform: rotate(-5deg); } }
.sync { align-items: center; justify-content: center; gap: 14px; }
.sync i { flex: none; width: 62px; height: 62px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-s); }
.sync span { display: flex; gap: 8px; }
.sync b { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: hop 1.5s ease-in-out infinite; }
.sync b:nth-child(2) { animation-delay: 0.2s; }
.sync b:nth-child(3) { animation-delay: 0.4s; }
@keyframes hop { 0%, 100% { opacity: 0.25; transform: translateX(-4px); } 50% { opacity: 1; transform: translateX(4px); } }
.bars { align-items: flex-end; justify-content: center; gap: 12px; }
.bars i { flex: 1; max-width: 30px; height: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--accent), var(--under)); transform-origin: 50% 100%; animation: grow 6s var(--ease) infinite both; }
.bars i:nth-child(1) { scale: 1 0.34; }
.bars i:nth-child(2) { scale: 1 0.5; animation-delay: 0.2s; }
.bars i:nth-child(3) { scale: 1 0.44; animation-delay: 0.4s; }
.bars i:nth-child(4) { scale: 1 0.72; animation-delay: 0.6s; }
.bars i:nth-child(5) { animation-delay: 0.8s; }
@keyframes grow { 0%, 6% { transform: scaleY(0.05); } 24%, 84% { transform: scaleY(1); } 94%, 100% { transform: scaleY(0.05); } }

.app-map { position: relative; display: block; width: 100%; height: auto; margin-top: 26px; }
.map-tall { display: none; }
.app-map .wire { fill: none; stroke: rgba(169, 188, 255, 0.34); stroke-width: 2; stroke-dasharray: 6 7; }
.app-map .pulse { fill: #fff; filter: drop-shadow(0 0 6px var(--on-dark)); }
.app-map .node rect { fill: var(--deep-2); stroke: rgba(169, 188, 255, 0.28); }
.app-map .node svg { fill: none; stroke: var(--on-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-map text { fill: #fff; font-family: var(--sans); font-size: 16px; font-weight: 600; }
.map-tall text { font-size: 12.5px; }
.app-map .hub rect { fill: var(--accent); }
.app-map .hub text { font-size: 17px; font-weight: 800; text-anchor: middle; }

.case-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case-tab { padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--tint-em); font-size: 14.5px; font-weight: 700; }
.case-tab[aria-selected="true"] { background: var(--accent); color: #fff; }
.case-path { position: relative; display: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.case-path.on { display: grid; }
.case-path::before { content: ""; position: absolute; left: 22px; right: 22%; top: 21px; height: 2px; background: var(--under); }
.case-path li { position: relative; display: grid; gap: 12px; }
.case-path i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px var(--tint); animation: lit 7s linear infinite both; animation-delay: calc(var(--i) * 0.9s); }
.case-path i::before { content: "✓"; color: #fff; font-style: normal; font-weight: 800; }
.case-path span { font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
@keyframes lit { 0%, 4% { background: #fff; } 10%, 78% { background: var(--accent); } 86%, 100% { background: #fff; } }

/* The line stops at the last of the three steps. Below 641px .steps turns vertical, so this holds above that only. */
@media (min-width: 641px) {
  .steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps.three::before { right: calc(33.33% + 24px); }
}
@media (max-width: 1000px) {
  .auto-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flip-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .auto { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px) {
  .map-wide { display: none; }
  .map-tall { display: block; }
  .case-path { grid-template-columns: minmax(0, 1fr); }
  .case-path::before { left: 21px; right: auto; top: 22px; bottom: 44px; width: 2px; height: auto; }
  .case-path li { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
  .case-path i { box-shadow: none; }
}
@media (max-width: 560px) {
  .auto-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .auto-page *, .auto-page *::before, .auto-page *::after { animation: none !important; }
  .app-map .pulse { display: none; }
}
