/* Plotline public site. Values carried over from the Claude Design file (Home.dc.html et al). */

:root {
  --ink: #111;
  --paper: #f6f4ee;
  --blue: #2347ff;
  --yellow: #ffd60a;
  --pink: #ff5c8a;
  --stone: #e4e1d8;
  --gutter: max(clamp(16px, 3vw, 48px), calc((100% - 1664px) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--ink); text-decoration: underline; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
.page { overflow-x: clip; }
.mono { font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Colour pairs */
.c-blue { background: var(--blue); color: #fff; }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-pink { background: var(--pink); color: var(--ink); }
.c-black { background: var(--ink); color: #fff; }
.c-white { background: #fff; color: var(--ink); }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-reveal][data-in] { opacity: 1; transform: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 40; padding: 14px clamp(12px, 3vw, 24px) 0; }
.site-header__bar {
  position: relative; max-width: 1712px; margin: 0 auto; background: #fff; border-radius: 999px;
  box-shadow: 0 6px 24px rgba(17, 17, 17, .06); display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 8px 0 24px;
}
.logo-link { margin-right: auto; display: flex; }
.logo-link:hover { text-decoration: none; }
.logo { position: relative; display: inline-flex; gap: .15em; font-weight: 800; font-size: 22px; letter-spacing: -.035em; line-height: 1; }
.logo__plot { background: var(--blue); color: #fff; border-radius: .2em; padding: .1em .22em .16em; }
.logo__line { background: var(--yellow); color: var(--ink); border-radius: .2em; padding: .1em .22em .16em; }
.logo__pin { position: relative; width: 0; flex: none; }
.logo__pin > span { position: absolute; left: 0; top: -.34em; bottom: -.2em; width: .07em; margin-left: -.035em; background: var(--pink); border-radius: .02em; z-index: 2; }
.logo__pin > span::before { content: ''; position: absolute; left: 50%; top: 0; width: .28em; height: .22em; margin-left: -.14em; background: var(--pink); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
.site-nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--blue); text-decoration: none; }
.header-cta { background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.header-cta:hover { background: var(--blue); color: #fff; text-decoration: none; }
.menu-toggle { display: none; }

@media (max-width: 720px) {
  .site-header__bar { gap: 8px; padding-left: 18px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
    border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; order: 3;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s; }
  .menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .site-header[data-open] .menu-toggle span { background: transparent; }
  .site-header[data-open] .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open] .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; gap: 4px;
    background: #fff; border-radius: 28px; padding: 12px; box-shadow: 0 16px 36px rgba(17, 17, 17, .12); font-size: 18px;
  }
  .site-nav a { padding: 12px 14px; border-radius: 16px; }
  .site-nav a:hover { background: var(--paper); }
  .site-header[data-open] .site-nav { display: flex; }
}
@media (max-width: 400px) {
  .header-cta { padding: 12px 16px; font-size: 14px; }
  .logo { font-size: 20px; }
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
main { padding: 0 var(--gutter); }
.section { padding-bottom: clamp(48px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 40px; margin-bottom: 28px; padding: 0 clamp(0px, 1vw, 8px); }
.section-title { font-size: clamp(34px, 4.4vw, 60px); line-height: .98; letter-spacing: -.045em; }
.link-arrow { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.link-arrow:hover { color: var(--blue); }
.hl { border-radius: .16em; padding: .02em .16em .08em; }

/* Page intro used on inner pages */
.page-head { padding: clamp(28px, 5vw, 64px) clamp(8px, 2vw, 24px) clamp(28px, 4vw, 48px); display: grid; gap: 24px; }
.page-head h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1.12; letter-spacing: -.05em; max-width: 14ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 50ch; color: #333; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; padding: 16px 26px; border-radius: 999px; white-space: nowrap; flex: none; line-height: 1.2; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { text-decoration: none; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--yellow); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; padding: 15px 24px; }
.btn--dark:hover { background: var(--blue); color: #fff; }
.btn--paper { background: var(--paper); color: var(--ink); padding: 15px 24px; }
.btn--paper:hover { background: #ecebe4; color: var(--ink); }
.tri { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(20px, 3vw, 36px) clamp(8px, 2vw, 24px) clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__copy { display: grid; gap: 30px; }
.hero h1 { font-size: clamp(40px, 4.8vw, 104px); line-height: .95; letter-spacing: -.05em; display: grid; gap: .1em; white-space: nowrap; }
.hero h1 > span { display: flex; flex-wrap: nowrap; align-items: center; }
.hero__l1 { gap: .22em; }
.hero__l2 { gap: .14em; }
.hero__word { display: inline-flex; background: var(--blue); color: #fff; border-radius: .16em; padding: .02em .16em .08em; overflow: hidden; }
.hero__word > span { display: inline-block; white-space: nowrap; animation: hx-word 2.4s cubic-bezier(.2, .8, .2, 1) infinite; }
.hero__sense { background: var(--yellow); color: var(--ink); border-radius: .16em; padding: .02em .16em .08em; }
.hero__pin { position: relative; width: .12em; height: 1em; flex: none; }
.hero__pin > span { position: absolute; left: 50%; top: -.16em; bottom: -.1em; width: .06em; margin-left: -.03em; background: var(--pink); border-radius: .02em; }
.hero__pin > span::before { content: ''; position: absolute; left: 50%; top: 0; width: .24em; height: .19em; margin-left: -.12em; background: var(--pink); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
.hero .lead { max-width: 44ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero__stage { position: relative; width: 100%; max-width: 760px; justify-self: center; }
@media (max-width: 400px) { .hero h1 { font-size: 34px; } }

/* Boardline: four storyboard panels lit in turn under a running playhead */
.board { position: relative; aspect-ratio: 1 / .68; background: var(--blue); border-radius: 36px; overflow: hidden; }
.board__ruler {
  position: absolute; left: 6%; right: 6%; top: 9%; height: 9%; display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 2px solid rgba(255, 255, 255, .35); padding-bottom: 6px;
}
.board__ruler span { font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .85); line-height: 1; }
.board__panels { position: absolute; left: 6%; right: 6%; top: 26%; bottom: 12%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.panel { position: relative; background: #fff; border-radius: 16px; padding: 8px; display: grid; grid-template-rows: 1fr auto; gap: 6px; animation: 6s linear infinite; }
.panel:nth-child(1) { animation-name: hx-lit0; }
.panel:nth-child(2) { animation-name: hx-lit1; }
.panel:nth-child(3) { animation-name: hx-lit2; }
.panel:nth-child(4) { animation-name: hx-lit3; }
.panel__ring { position: absolute; inset: -5px; border: 4px solid var(--pink); border-radius: 20px; opacity: 0; pointer-events: none; animation: hx-step 6s steps(1) infinite both; }
.panel:nth-child(2) .panel__ring { animation-delay: -4.5s; }
.panel:nth-child(3) .panel__ring { animation-delay: -3s; }
.panel:nth-child(4) .panel__ring { animation-delay: -1.5s; }
.panel__art { border-radius: 11px; background: #eef0ff; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.panel__label { display: flex; justify-content: space-between; padding: 0 4px 2px; font-weight: 700; font-size: clamp(11px, 1vw, 14px); line-height: 1.3; color: var(--ink); }
.panel__label span:last-child { color: var(--blue); }
.art-lines { width: 70%; display: grid; gap: 7px; }
.art-lines span { height: 8px; border-radius: 999px; background: #c9cff5; }
.art-lines span:nth-child(2) { background: var(--blue); }
.art-sketch { width: 84%; }
.art-blob { width: 46%; aspect-ratio: 1; background: var(--blue); animation: ph-morph 4s cubic-bezier(.6, 0, .3, 1) infinite; }
.art-play { width: 44%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.art-play::before { content: ''; border-left: 14px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.board__head { position: absolute; left: 6%; right: 6%; top: 12%; bottom: 7%; pointer-events: none; }
.playhead { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--pink); border-radius: 2px; animation: ph-run 6s linear infinite; }
.playhead::before { content: ''; position: absolute; top: -2px; left: 50%; width: 18px; height: 14px; margin-left: -9px; background: var(--pink); clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%); }
@media (max-width: 520px) {
  .board { border-radius: 24px; }
  .board__panels { gap: 6px; }
  .panel { padding: 5px; border-radius: 11px; }
  .panel__ring { border-width: 3px; inset: -4px; border-radius: 14px; }
  .panel__label { padding: 0 2px; justify-content: center; }
  .panel__label span:last-child { display: none; }
  .board__ruler span { font-size: 10px; }
}

/* ── Marquee ────────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; margin: 0 calc(-1 * clamp(12px, 3vw, 24px)) clamp(28px, 4vw, 44px); padding: 14px 0; background: var(--ink); transform: rotate(-1.2deg); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; font-weight: 800; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; letter-spacing: -.03em; color: #fff; animation: hx-marquee 32s linear infinite; }
.marquee__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; }
.marquee__dot { width: 14px; height: 14px; border-radius: 4px; display: block; }
.marquee__item:nth-child(even) .marquee__dot { border-radius: 50%; }
.marquee__item:nth-child(4n+1) .marquee__dot { background: var(--blue); }
.marquee__item:nth-child(4n+2) .marquee__dot { background: var(--yellow); }
.marquee__item:nth-child(4n+3) .marquee__dot { background: var(--pink); }
.marquee__item:nth-child(4n+4) .marquee__dot { background: #fff; }

/* ── Work cards ─────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.feature-grid__stack { display: grid; gap: 16px; }
.card {
  background: #fff; border-radius: 32px; padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 18px; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(17, 17, 17, .09); text-decoration: none; color: var(--ink); }
.card--big { grid-row: span 2; }
.card__text { display: grid; gap: 8px; padding: 0 10px; }
.card__title { font-weight: 800; font-size: 21px; line-height: 1.1; letter-spacing: -.03em; }
.card--big .card__title { font-size: clamp(26px, 2.6vw, 34px); }
.card__summary { font-size: 15px; line-height: 1.5; color: #555; max-width: 44ch; }

.media { position: relative; border-radius: 22px; overflow: hidden; background: var(--stone); aspect-ratio: 16 / 10; }
.media--fill { flex: 1; min-height: 320px; aspect-ratio: auto; }
.media--wide { aspect-ratio: 16 / 8; border-radius: 26px; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media__ph { position: absolute; inset: 0; display: grid; place-items: center; }
.media__ph::before, .media__ph::after { content: ''; position: absolute; }
.media__ph::before { width: 26%; aspect-ratio: 1; left: 30%; top: 50%; translate: -50% -50%; border-radius: 50%; background: var(--ph, var(--blue)); opacity: .9; }
.media__ph::after { width: 20%; aspect-ratio: 1; left: 64%; top: 50%; translate: -50% -50%; rotate: 12deg; border-radius: 14%; border: 6px dashed rgba(17, 17, 17, .22); }
.ph-blue { --ph: var(--blue); }
.ph-yellow { --ph: var(--yellow); }
.ph-pink { --ph: var(--pink); }
.ph-black { --ph: var(--ink); }
.cat-chip { position: absolute; left: 14px; top: 14px; border-radius: 999px; padding: 7px 14px; font-size: 13px; line-height: 1.2; font-weight: 700; pointer-events: none; white-space: nowrap; z-index: 1; }
.play { position: absolute; left: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; }
.play::before { content: ''; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.play--lg { width: 64px; height: 64px; }
.play--lg::before { border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; }
.play--xl { width: 76px; height: 76px; }
.play--xl::before { border-left-width: 21px; border-top-width: 13px; border-bottom-width: 13px; }
.play--md { width: 56px; height: 56px; }
.play--md::before { border-left-width: 16px; border-top-width: 10px; border-bottom-width: 10px; }

/* Work page */
.latest { display: grid; gap: 20px; background: #fff; border-radius: 36px; padding: 14px 14px 28px; color: var(--ink); transition: box-shadow .25s var(--ease); }
.latest:hover { box-shadow: 0 18px 40px rgba(17, 17, 17, .09); text-decoration: none; color: var(--ink); }
.latest__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px clamp(24px, 4vw, 56px); padding: 0 clamp(8px, 2vw, 20px); }
.latest__title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.04em; max-width: 16ch; }
.latest__copy { display: grid; gap: 20px; align-content: start; }
.latest__copy p { font-size: 17px; line-height: 1.6; color: #333; max-width: 50ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border-radius: 999px; padding: 9px 16px; font-size: 14px; line-height: 1.2; font-weight: 600; }
.chip--hl { background: var(--yellow); }
.rows { display: grid; gap: 16px; }
.row {
  background: #fff; border-radius: 32px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(20px, 3vw, 40px); align-items: center; color: var(--ink); transition: box-shadow .25s var(--ease);
}
.row:hover { box-shadow: 0 16px 36px rgba(17, 17, 17, .08); text-decoration: none; color: var(--ink); }
.row__text { display: grid; gap: 12px; padding: 12px clamp(8px, 2vw, 24px); }
.row__title { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.06; letter-spacing: -.035em; max-width: 18ch; }
.row__text p { font-size: 16px; line-height: 1.6; color: #444; max-width: 46ch; }
@media (min-width: 760px) { .row--flip .media { order: 2; } }
.empty { background: #fff; border-radius: 32px; padding: clamp(28px, 4vw, 48px); font-size: 18px; color: #555; }

/* Article page */
.article-head { padding: clamp(28px, 5vw, 64px) clamp(8px, 2vw, 24px) clamp(24px, 3vw, 40px); display: grid; gap: 20px; }
.article-head h1 { font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -.05em; max-width: 18ch; }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.article-head__meta .cat-chip { position: static; }
.article-media { background: #fff; border-radius: 36px; padding: 14px; margin-bottom: 16px; }
.article-media .media { aspect-ratio: 16 / 9; border-radius: 26px; }
.article-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-body { background: #fff; border-radius: 36px; padding: clamp(24px, 5vw, 72px) clamp(20px, 5vw, 72px); margin-bottom: clamp(48px, 7vw, 88px); display: grid; gap: 32px; }
.prose { max-width: 68ch; font-size: 18px; line-height: 1.7; color: #222; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.035em; margin-top: 1.6em; }
.prose h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; margin-top: 1.4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose blockquote { margin-left: 0; padding: 18px 24px; border-radius: 20px; background: var(--paper); font-weight: 600; font-size: 20px; line-height: 1.5; }
.prose img, .prose video { border-radius: 20px; width: 100%; height: auto; }
.prose hr { border: 0; height: 2px; background: #f1efe8; }
.prose code { font-family: 'DM Mono', monospace; font-size: .88em; background: var(--paper); padding: .1em .35em; border-radius: 6px; }
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--pink); color: var(--ink); font-weight: 600; font-size: 15px; text-align: center; padding: 8px 16px; }
.preview-bar a { color: var(--ink); text-decoration: underline; }

/* ── Services ───────────────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(240px, calc((100% - 32px) / 3))), 1fr)); gap: 16px; }
.service-card { background: #fff; border-radius: 28px; padding: 14px 14px 24px; display: grid; grid-template-rows: 92px auto; align-content: start; gap: 18px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(17, 17, 17, .08); text-decoration: none; color: var(--ink); }
.service-chip { border-radius: 16px; padding: 16px 18px; display: flex; align-items: center; font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; min-height: 92px; }
.service-card__text { display: grid; gap: 8px; padding: 0 8px; }
.service-card__tag { font-weight: 600; font-size: 16px; line-height: 1.4; }
.service-card__blurb { font-size: 15px; line-height: 1.5; color: #555; }

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta { background: var(--yellow); border-radius: clamp(24px, 3vw, 36px); padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); margin-bottom: 24px; display: grid; gap: 36px; }
.cta h2 { font-size: clamp(44px, 7.4vw, 108px); line-height: .92; letter-spacing: -.05em; max-width: 12ch; }
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 8px; background: var(--ink); border-radius: 20px; padding: 8px; }
.step { border-radius: 14px; padding: 14px; font-weight: 700; font-size: clamp(13px, 1.3vw, 17px); line-height: 1.25; display: grid; gap: 10px; align-content: start; }
.step__n { font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; letter-spacing: -.05em; font-feature-settings: 'tnum' 1; }
a.step { font-weight: 800; }
a.step:hover { background: #fff; color: var(--ink); text-decoration: none; }
.cta__email { font-size: 17px; font-weight: 600; color: var(--ink); justify-self: start; }
.cta__email:hover { color: var(--blue); }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps[data-odd] > :last-child { grid-column: span 2; }
  .step { font-size: 15px; }
}

/* ── Process ────────────────────────────────────────────────────────────── */
.timeline { background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(16px, 2vw, 24px); }
.timeline__scroll { overflow-x: auto; }
.timeline__inner { min-width: max(760px, calc(var(--n, 5) * 152px)); display: grid; gap: 14px; }
.timeline__days { display: flex; justify-content: space-between; color: #8f8c86; font-size: 11px; padding: 0 4px; white-space: nowrap; }
.timeline__lane { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; background: #222; border-radius: 16px; padding: 6px; }
.tl-step { border-radius: 11px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.tl-step__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tl-step__n { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.05em; font-feature-settings: 'tnum' 1; }
.tl-step__days { font-size: 11px; opacity: .75; white-space: nowrap; color: inherit; }
.tl-step__label { font-weight: 800; font-size: 17px; line-height: 1.2; letter-spacing: -.02em; }
.timeline__head { position: absolute; left: 6px; right: 6px; top: -10px; bottom: -10px; pointer-events: none; }
.timeline__head .playhead { animation-duration: 10s; }
.timeline__notes { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; padding: 0 6px 6px; }
.timeline__notes p { font-size: 15px; line-height: 1.55; color: #d8d6d2; padding: 4px 10px 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.tile { background: #fff; border-radius: 28px; padding: 14px 14px 26px; display: grid; align-content: start; gap: 18px; }
.tile__n { border-radius: 16px; padding: 16px 18px; font-weight: 800; font-size: 22px; line-height: 1.3; min-height: 80px; }
.tile__text { display: grid; gap: 8px; padding: 0 8px; }
.tile__title { font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.tile__text span:last-child { font-size: 15.5px; line-height: 1.6; color: #444; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.faq__item { background: #fff; border-radius: 28px; padding: 28px; display: grid; gap: 10px; align-content: start; }
.faq__item h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; }
.faq__item p { font-size: 15.5px; line-height: 1.6; color: #444; }

/* ── Quote form ─────────────────────────────────────────────────────────── */
.form-card { background: #fff; border-radius: 36px; padding: clamp(20px, 3vw, 40px); }
.form { display: grid; gap: 32px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-group { display: grid; gap: 12px; }
.form-group--fields { gap: 16px; }
.form-group legend, .form-title { font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.03em; padding: 0; margin-bottom: 12px; }
.form-title--lg { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.035em; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span { display: inline-block; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 13px 20px; font-size: 16px; line-height: 1.2; font-weight: 600; cursor: pointer; transition: background .15s; }
.pill span:hover { background: #ecebe4; }
.pill input:checked + span { background: var(--blue); color: #fff; }
.pills--yellow .pill input:checked + span { background: var(--yellow); color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-note { font-size: 15px; line-height: 1.5; color: #555; max-width: 60ch; }
.grid-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.field label { display: block; font-family: 'DM Mono', monospace; font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: #555; margin: 0 0 8px; }
.field label small { text-transform: none; letter-spacing: 0; color: #999; font-size: 12px; }
.input { width: 100%; background: var(--paper); border: 2px solid transparent; border-radius: 16px; padding: 14px 16px; font-family: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); outline: none; transition: border-color .15s, background .15s; }
.input:focus { border-color: var(--blue); background: #fff; }
textarea.input { resize: vertical; min-height: 150px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; border-top: 2px solid #f1efe8; padding-top: 24px; }
.submit { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 16px 28px; font-family: inherit; font-size: 16px; line-height: 1.2; font-weight: 600; cursor: pointer; }
.submit:hover { background: var(--ink); }
.submit[aria-disabled='true'] { background: var(--stone); color: #8f8c86; cursor: not-allowed; }
.form-hint { font-size: 14px; color: #777; }
.errors { background: #ffe3ea; color: #6b0f2a; border-radius: 20px; padding: 16px 20px; font-size: 15px; line-height: 1.5; }
.errors ul { margin: 6px 0 0; padding-left: 1.2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; gap: 16px; padding: clamp(8px, 2vw, 24px) 0; }
.done__tick { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; }
.done h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1; letter-spacing: -.04em; }
.done p { font-size: 17px; line-height: 1.6; color: #333; max-width: 54ch; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 28px max(clamp(24px, 4vw, 64px), calc((100% - 1632px) / 2)) 40px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; font-size: 14px; color: #555; }
.site-footer a { color: #555; }
.site-footer a:hover { color: var(--blue); }

/* 404 */
.notfound { padding: clamp(40px, 8vw, 120px) clamp(8px, 2vw, 24px); display: grid; gap: 24px; justify-items: start; }
.notfound h1 { font-size: clamp(44px, 7vw, 104px); line-height: 1.05; letter-spacing: -.05em; }

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes hx-word { 0% { transform: translateY(105%); } 10%, 88% { transform: translateY(0); } 100% { transform: translateY(-105%); } }
@keyframes hx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hx-step { 0%, 23% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes hx-lit0 { 0%, .5% { filter: grayscale(1); opacity: .4; } 1%, 98% { filter: grayscale(0); opacity: 1; } 100% { filter: grayscale(1); opacity: .4; } }
@keyframes hx-lit1 { 0%, 24.5% { filter: grayscale(1); opacity: .4; } 25%, 98% { filter: grayscale(0); opacity: 1; } 100% { filter: grayscale(1); opacity: .4; } }
@keyframes hx-lit2 { 0%, 49.5% { filter: grayscale(1); opacity: .4; } 50%, 98% { filter: grayscale(0); opacity: 1; } 100% { filter: grayscale(1); opacity: .4; } }
@keyframes hx-lit3 { 0%, 74.5% { filter: grayscale(1); opacity: .4; } 75%, 98% { filter: grayscale(0); opacity: 1; } 100% { filter: grayscale(1); opacity: .4; } }
@keyframes ph-run { from { left: 0%; } to { left: 100%; } }
@keyframes ph-morph { 0%, 100% { border-radius: 50%; transform: rotate(0deg) scale(1); } 33% { border-radius: 18%; transform: rotate(90deg) scale(.86); } 66% { border-radius: 50% 50% 18% 50%; transform: rotate(180deg) scale(1); } }

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