/* arca ring — Arca Labs
   Archivo, one family, condensed for display. Technical-drawing language: outlines,
   leaders, ticks. Rich light blue is a fill; deep blue is a line and text colour.
   Square UI chrome. Round shapes belong to the ring. */

:root {
  --white: #ffffff;
  --ink: #12222b;
  --ink-2: #52657a;
  --rule: #d5dee8;
  --pale: #eaf3ff;
  --blue: #46a2ff;
  --blue-hover: #2f93fb;
  --blue-deep: #1b6fd8;

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.25rem;
  --fs-4: 1.5rem;
  --fs-5: 2rem;
  --fs-6: 2.75rem;
  --fs-hero: clamp(3.5rem, 2rem + 7vw, 7.5rem);

  --wrap: 1200px;
  --gutter: 24px;
  --measure: 32em;
}
@media (min-width: 720px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-2);
  line-height: 1.5;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }

a { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Type */
h1, h2 { text-wrap: balance; }
h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  font-stretch: 90%;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h1 .h-line { display: block; }
h2 {
  font-size: var(--fs-5);
  font-weight: 500;
  font-stretch: 94%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 14em;
}
@media (min-width: 900px) { h2 { font-size: var(--fs-6); } }
p { max-width: var(--measure); }
.who { color: var(--blue-deep); font-weight: 500; margin-right: 10px; }

/* Buttons */
.btn {
  display: inline-block; padding: 15px 24px;
  font-size: 1rem; font-weight: 500; line-height: 1;
  text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
.btn-primary { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: var(--white); color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--fs-3); letter-spacing: -0.02em; }
.wordmark:hover { color: var(--ink); }
.wordmark-light { font-weight: 500; }
.header-cta { font-size: var(--fs-1); font-weight: 500; text-decoration: none; }
.header-cta:hover { text-decoration: underline; }

/* Hero */
.hero { padding-block: 56px 64px; }
.hero-grid { display: grid; gap: 40px; }
.hero .lede { font-size: var(--fs-3); line-height: 1.4; margin-top: 28px; max-width: 22em; }
.actions { margin-top: 32px; }
.hero-figure { max-width: 500px; }
.hero-figure figcaption { margin-top: 6px; font-size: var(--fs-0); color: var(--ink-2); max-width: 30em; }
@media (min-width: 900px) {
  .hero { padding-block: 80px 88px; }
  .hero-grid { grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; }
  .hero-figure { justify-self: end; width: 100%; }
}

/* Load moment: headline lines, then the drawing draws itself */
.h-line { opacity: 0; animation: appear 0.5s ease forwards; }
.h-line:nth-child(1) { animation-delay: 0.05s; }
.h-line:nth-child(2) { animation-delay: 0.3s; }
.h-line:nth-child(3) { animation-delay: 0.55s; }
.drawing-hero .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: calc(var(--d, 0s) + 0.2s); }
.drawing-hero .label, .drawing-hero .centre, .drawing-hero .button { opacity: 0; animation: appear 0.4s ease forwards; animation-delay: 1.2s; }
.drawing-hero .band-fill, .drawing-hero .band-hole { opacity: 0; animation: appear 0.6s ease forwards; animation-delay: 0.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* Drawings */
.drawing { width: 100%; height: auto; }
.drawing text { font-family: var(--font); font-size: 15px; fill: var(--blue-deep); }
.drawing .band-fill { fill: var(--white); }
.drawing .band-hole { fill: var(--pale); }
.drawing .outline { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.drawing .button { fill: var(--blue); stroke: var(--ink); stroke-width: 1.5; transition: transform 200ms ease, fill 200ms ease; }
.drawing .centre line { stroke: var(--blue-deep); stroke-width: 1; stroke-dasharray: 8 4 2 4; }
.drawing .leader { fill: none; stroke: var(--blue-deep); stroke-width: 1; }
.drawing .arc { fill: none; stroke: var(--blue); stroke-width: 12; stroke-dasharray: 1; stroke-dashoffset: 1; }
.drawing .hold-time { font-size: 40px; font-weight: 500; font-stretch: 90%; fill: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.drawing .hold-label { font-size: 14px; fill: var(--ink-2); }

/* Sections stack: each one sits above the one before it, so a section that
   follows a pinned scene slides up over the scene's stage instead of pushing it away. */
main > section { position: relative; background: var(--white); }
.hero { z-index: 1; }
.scene-say { z-index: 2; }
.scene-know { z-index: 3; }
.offer { z-index: 4; }
.scene-five { z-index: 5; }
.scene-days { z-index: 6; }
.tail { position: relative; z-index: 7; background: var(--white); min-height: 100svh; display: flex; flex-direction: column; }
.tail .beta { flex: 1; display: grid; align-items: center; }
.overlap { margin-top: -100svh; border-top: 1px solid var(--rule); }

/* Scenes: a tall section with a pinned stage. --p runs 0 → 1 while pinned, and reaches 1
   one viewport before the section ends, which is the stretch the next section slides over. */
.scene { position: relative; --p: 0; }
.scene-pin { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; overflow: hidden; }
.scene-say { height: 400vh; }
.scene-know { height: 300vh; background: var(--pale); }
.scene-five { height: 340vh; background: var(--pale); }
.scene-days { height: 340vh; }
.scene-kicker { font-size: var(--fs-1); color: var(--ink-2); }

/* Say it */
.say-grid { display: grid; gap: 20px; grid-template-areas: "art" "copy"; }
.say-copy { grid-area: copy; }
.say-art { grid-area: art; }
.say-quote {
  margin-top: 20px;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3rem);
  font-weight: 500; font-stretch: 94%;
  line-height: 1.12; letter-spacing: -0.02em;
  max-width: 15em;
}
.say-quote .w { opacity: clamp(0.14, calc((var(--p) - 0.04) / 0.46 * var(--n) - var(--i)), 1); }
.say-results { margin-top: 28px; border-top: 1px solid var(--rule); max-width: 30em; opacity: 0; transform: translateY(10px); transition: opacity 350ms ease, transform 350ms ease; }
.say-results > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-1); }
.say-results dt { color: var(--ink-2); }
.say-reply { margin-top: 18px; font-size: var(--fs-3); max-width: 24em; opacity: 0; transform: translateY(10px); transition: opacity 350ms ease, transform 350ms ease; }
.scene-say[data-step="2"] .say-results, .scene-say[data-step="3"] .say-results { opacity: 1; transform: none; }
.scene-say[data-step="3"] .say-reply { opacity: 1; transform: none; }
.say-art { max-width: 150px; justify-self: start; }
.say-art .arc { stroke-dashoffset: calc(1 - clamp(0, calc((var(--p) - 0.04) / 0.46), 1)); }
.scene-say[data-step="0"] .say-art .button, .scene-say[data-step="1"] .say-art .button { transform: translateX(-4px); fill: var(--blue-hover); }
@media (max-width: 899px) {
  .say-quote { font-size: clamp(1.4rem, 1rem + 2.4vw, 1.9rem); margin-top: 14px; }
  .say-results { margin-top: 18px; }
  .say-results > div { padding: 8px 0; font-size: var(--fs-0); }
  .say-reply { margin-top: 14px; font-size: var(--fs-2); }
  .scene-pin { align-items: start; padding-top: 76px; }
  .scene-know .scene-pin, .scene-five .scene-pin, .scene-days .scene-pin { align-items: center; padding-top: 0; }
}
@media (min-width: 900px) {
  .say-grid { grid-template-columns: 7fr 5fr; grid-template-areas: "copy art"; gap: 64px; align-items: center; }
  .say-art { max-width: 440px; justify-self: end; }
}

/* It knows your life */
.know-grid { display: grid; gap: 32px; }
.know-line { margin-top: 20px; font-size: var(--fs-3); max-width: 22em; }
.know-line-2 { opacity: 0; transform: translateY(8px); transition: opacity 350ms ease, transform 350ms ease; }
.scene-know[data-step="1"] .know-line-2 { opacity: 1; transform: none; }
.know-art { max-width: 520px; justify-self: center; width: 100%; }
.chord { width: 100%; height: auto; }
.chord-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.chord-lines path { fill: none; stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, calc(var(--p) * 1.7 - var(--i) / var(--paths) * 0.7), 1)); }
.chord-node { fill: var(--ink); opacity: clamp(0.3, calc(var(--p) * 4 - var(--i) * 0.25), 1); }
.chord-label { font-family: var(--font); font-size: 17px; fill: var(--ink); opacity: clamp(0.3, calc(var(--p) * 4 - var(--i) * 0.25), 1); }
@media (min-width: 900px) {
  .know-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .know-art { justify-self: end; }
}

/* It offers */
.offer { padding-block: 112px 120px; }
.offer-grid { display: grid; gap: 36px; }
.offer-copy p { margin-top: 16px; font-size: var(--fs-3); }
.offer-art { border-top: 2px solid var(--ink); padding-top: 18px; max-width: 480px; }
.offer-said { font-size: var(--fs-4); font-weight: 500; font-stretch: 94%; letter-spacing: -0.015em; position: relative; }
.offer-said::before { content: "\201C"; position: absolute; left: -0.55em; color: var(--blue-deep); }
.offer-said::after { content: "\201D"; color: var(--blue-deep); }
.offer-reply { margin-top: 14px; font-size: var(--fs-2); }
.offer-choice { display: flex; gap: 10px; margin-top: 20px; }
.choice { display: inline-block; padding: 11px 16px; border: 1px solid var(--ink); font-size: var(--fs-1); font-weight: 500; }
.choice-yes { background: var(--blue); border-color: var(--blue); }
@media (min-width: 900px) {
  .offer-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .offer-art { justify-self: end; width: 100%; }
}

/* Five seconds */
.five-grid { display: grid; gap: 40px; }
.five-line { margin-top: 20px; font-size: var(--fs-3); max-width: 22em; }
.ladder { border-left: 1px solid var(--ink); max-width: 420px; }
.ladder li { position: relative; padding: 12px 0 12px 24px; font-size: var(--fs-3); line-height: 1.3; }
.ladder li::before { content: ""; position: absolute; left: -5px; top: 18px; width: 9px; height: 9px; background: var(--ink); }
.ladder li.drop {
  overflow: hidden;
  --c: clamp(0, calc((0.15 + var(--k) * 0.18 - var(--p)) * 6), 1);
  max-height: calc(60px * var(--c));
  padding-top: calc(12px * var(--c)); padding-bottom: calc(12px * var(--c));
  opacity: var(--c);
}
.ladder li.drop::before { top: calc(18px * var(--c)); }
.ladder .swap { display: grid; }
.ladder .swap span { grid-area: 1 / 1; transition: opacity 300ms ease; }
.ladder .swap .now { opacity: 0; color: var(--blue-deep); font-weight: 500; }
.scene-five[data-step="4"] .swap .was { opacity: 0; }
.scene-five[data-step="4"] .swap .now { opacity: 1; }
.scene-five[data-step="4"] .ladder { border-left-color: var(--blue-deep); }
.scene-five[data-step="4"] .ladder li.keep::before { background: var(--blue); }
@media (min-width: 900px) {
  .five-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
  .ladder { justify-self: end; width: 100%; }
}

/* Day 365 */
.days-wrap { display: grid; gap: 16px; }
.days-count { font-size: clamp(5rem, 2rem + 16vw, 15rem); font-weight: 500; font-stretch: 84%; line-height: 0.95; letter-spacing: -0.04em; max-width: none; }
.days-word { font-size: 0.42em; font-stretch: 94%; letter-spacing: -0.02em; vertical-align: baseline; margin-right: 0.08em; }
.days-num { font-variant-numeric: tabular-nums; }
.days-lines { position: relative; min-height: 2.6em; font-size: var(--fs-4); }
.days-line { position: absolute; left: 0; top: 0; max-width: 24em; opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 300ms ease; }
.scene-days[data-step="0"] .days-line[data-at="0"], .scene-days[data-step="1"] .days-line[data-at="1"],
.scene-days[data-step="2"] .days-line[data-at="2"], .scene-days[data-step="3"] .days-line[data-at="3"] { opacity: 1; transform: none; }
.days-close { font-size: var(--fs-3); color: var(--ink-2); max-width: 26em; opacity: 0; transition: opacity 400ms ease; }
.scene-days[data-step="3"] .days-close { opacity: 1; }

/* Beta */
.beta { padding-block: 96px 104px; background: var(--blue); color: var(--ink); }
.beta-grid { display: grid; gap: 36px; }
.beta-copy p { margin-top: 16px; font-size: var(--fs-3); max-width: 24em; }
.beta-form label { display: block; font-size: var(--fs-1); font-weight: 500; margin-bottom: 8px; }
.beta-form input { display: block; width: 100%; padding: 13px 14px; background: var(--white); color: var(--ink); border: 1px solid var(--ink); border-radius: 0; }
.beta-form input::placeholder { color: var(--ink-2); }
.beta-form input:focus-visible, .beta-form .btn:focus-visible { outline-color: var(--ink); }
.beta-form .btn { margin-top: 12px; }
.form-note { margin-top: 14px; font-size: var(--fs-1); }
@media (min-width: 900px) {
  .beta-grid { grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
  .beta-form { max-width: 400px; justify-self: end; width: 100%; padding-top: 8px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-links { display: flex; gap: 20px; margin-left: auto; }
.footer-links a { color: var(--ink); font-size: var(--fs-1); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { font-size: var(--fs-0); color: var(--ink-2); }

/* Reduced motion: no pinning, every scene at rest in its final state */
@media (prefers-reduced-motion: reduce) {
  .h-line, .drawing-hero .draw, .drawing-hero .label, .drawing-hero .centre, .drawing-hero .button,
  .drawing-hero .band-fill, .drawing-hero .band-hole { opacity: 1; animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .say-results, .say-reply, .know-line-2, .days-close, .days-line, .ladder .swap span { transition: none; }
}
html.static .scene { height: auto; }
html.static .overlap { margin-top: 0; }
html.static .tail { min-height: 0; }
html.static .scene-pin { position: static; height: auto; padding-block: 88px; overflow: visible; }
html.static .days-lines { min-height: 0; }
html.static .days-line { position: static; opacity: 1; transform: none; }
html.static .scene-days[data-step] .days-line { opacity: 1; }
