:root {
  /* Matches the paper the stills are painted on, so art sits on the page without a box. */
  --paper: #fdf1e1;
  --paper-raised: #f6e4cd;
  --card: #fff8ef;
  --ink: oklch(24% 0.03 50);
  --ink-soft: oklch(42% 0.025 52);
  --line: oklch(85% 0.02 68);
  --rust: oklch(45% 0.16 32);
  --moss: oklch(38% 0.07 148);
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-body: "Karla", ui-sans-serif, system-ui, sans-serif;
  --space: 1.25rem;
  --measure: 40rem;
  --page: 76rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust); }

.skip {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
}

.skip:focus { top: 0.5rem; background: var(--paper); padding: 0.4rem 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.wordmark-img { height: 1.55rem; width: auto; }

.nav-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 3px;
  padding: 0.55em 0.9em;
  border: 1.5px solid transparent;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

main { padding-bottom: 3rem; }

section {
  padding: 4.5rem var(--space);
  border-top: 1px solid var(--line);
}

section:first-of-type { border-top: none; }

.wrap { max-width: var(--page); margin: 0 auto; }

.measure { max-width: var(--measure); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }

h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); }

h3 { font-size: 1.25rem; }

.lede { font-size: 1.15rem; margin: 0 0 1rem; }

p { margin: 0 0 0.9rem; }

.eyebrow {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.continue {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--ink);
  font-weight: 600;
}

.art {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.frame {
  margin: 1.25rem 0 0;
}

/* Soft edges on every still, so small tone differences between
   generated images never show as a rectangle. */
.frame.frame-diagram img {
  -webkit-mask-image: none;
  mask-image: none;
}

.frame img,
.arc-panel img {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 6%, #000 94%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect;
}

/* Problem section: two full-width slides read top to bottom. */
.slides {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.slide-copy { max-width: 36rem; }

.slide-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rust);
}

.slide-step::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
}

.slide .frame { margin-top: 0.5rem; }

/* The hero's mist is darker than the page, so its bottom edge fades further. */
#top .frame img {
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 72%, transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 6%, #000 72%, transparent);
}

.cards, .ladder, .ext-list, .surfaces {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card, .ladder li, .surface {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: var(--card);
}

.surface { padding: 1.15rem 1.2rem; }

.cards { margin-top: 2.5rem; }

.card h3 { margin-bottom: 0.4rem; }

.card p { margin: 0; }

.surfaces li { display: flex; }

.surface {
  flex: 1;
  display: block;
  color: inherit;
  text-decoration: none;
}

a.surface:hover { border-color: var(--rust); }

.surface strong { display: block; margin-bottom: 0.2rem; }

.surface span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.ext-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ext {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
}

.ext img {
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper-raised);
}

.chip.is-live {
  color: var(--moss);
  background: color-mix(in oklch, var(--moss) 14%, var(--paper));
}

.chip.is-partial {
  color: var(--rust);
  background: color-mix(in oklch, var(--rust) 12%, var(--paper));
}

.ladder .chip { margin-right: 0.5rem; }

.offers {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.offers li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--card);
}

.offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.offer-icon {
  width: 1.65rem;
  height: 1.65rem;
  color: var(--ink);
}

.offers h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.offers p { margin: 0; }

.offer-more { margin-top: 1.25rem; }

#access form,
#access .note { max-width: 28rem; }

.surfaces + .note,
.ladder + p {
  margin-top: 1rem;
}

.who-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.who-nav button {
  font: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.who-nav button[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.who-panel[hidden] { display: none; }

.note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

input, button[type="submit"] {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}

input {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

button[type="submit"] {
  border: none;
  background: var(--rust);
  color: white;
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.stack .copy { max-width: 36rem; }

.stack .frame { margin-top: 1.75rem; }

.stack .note { margin-top: 0.35rem; }

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  margin-top: 1.5rem;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

table.compare th,
table.compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

table.compare thead th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-raised);
  text-align: center;
}

table.compare tbody th {
  font-weight: 600;
  color: var(--ink-soft);
  width: 30%;
}

table.compare td {
  color: var(--ink-soft);
  text-align: center;
}

table.compare th:first-child,
table.compare td:first-child { text-align: left; }

table.compare thead th:not(:first-child),
table.compare tbody td { width: 17.5%; }

table.compare .col-us { color: var(--ink); font-weight: 600; }

table.compare .yes { color: var(--moss); }

table.compare .strong { color: var(--rust); }

.site-footer {
  width: min(100% - 2.5rem, var(--page));
  margin: 0 auto 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer p { margin: 0; }

.site-footer .footer-mark {
  height: 1.05rem;
  width: auto;
  vertical-align: -0.12em;
  margin-right: 0.45em;
}

.footer-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-links a:hover { color: var(--ink); }

.split > *,
.hero-copy,
.frame {
  min-width: 0;
}

@media (min-width: 880px) {
  section { padding: 6.5rem var(--space); }

  #top {
    padding: 0;
    border-top: none;
  }

  .hero-grid {
    max-width: none;
    min-height: calc(100dvh - 4.25rem);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .hero-copy {
    max-width: 36rem;
    margin-left: auto;
    padding: 3.5rem 3rem 3.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #top .frame { margin: 0; }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }

  .split .art {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .split .art .frame {
    margin-top: 0;
  }

  .slides { gap: 5rem; }

  .surfaces,
  .cards,
  .offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .surfaces { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Arc: vertical scroll drives a horizontal track, then the page continues. */
#arc.arc-scroll {
  padding: 0;
}

.arc-pin {
  position: sticky;
  top: 4.25rem;
  height: calc(100vh - 4.25rem);
  height: calc(100dvh - 4.25rem);
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--paper);
  scroll-snap-type: x mandatory;
}

.arc-scroll.is-driven .arc-pin {
  overflow: hidden;
  scroll-snap-type: none;
}

.arc-track {
  display: flex;
  height: 100%;
  width: max-content;
}

/* Narrow screens: copy on top, the still fills the rest of the panel. */
.arc-panel {
  position: relative;
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.arc-panel img {
  order: 2;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.arc-copy {
  order: 1;
  padding: 4.75rem 1.35rem 0.5rem;
}

.arc-copy h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.arc-copy h3 {
  font-size: clamp(1.65rem, 2.6vw, 2.05rem);
  margin-bottom: 0.55rem;
  line-height: 1.15;
}

.arc-copy .lede,
.arc-copy p {
  font-size: 1.22rem;
  line-height: 1.45;
}

.arc-skip {
  position: absolute;
  right: 1.35rem;
  bottom: 1.2rem;
  z-index: 2;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in oklch, var(--paper) 78%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.4rem);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease, color 0.2s ease;
}

.arc-scroll.is-active .arc-skip {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.arc-skip:hover { color: var(--ink); }

@media (min-width: 880px) {
  /* 4:3 frame at the full viewport height. Capped at the screen width
     when the window is taller than that frame. */
  .arc-panel {
    display: block;
    flex-basis: min(100vw, calc(100dvh * 4 / 3));
  }

  .arc-copy {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 36rem;
    padding: 5.25rem 2rem 1.75rem 3rem;
    background: color-mix(in oklch, var(--paper) 84%, transparent);
    border-radius: 0 0 12px 0;
  }
}

@media (max-width: 720px) {
  .nav-links { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .arc-scroll { height: auto !important; }

  .arc-pin {
    position: static;
    height: auto;
    overflow: visible;
  }

  .arc-track {
    flex-direction: column;
    width: auto;
    transform: none !important;
  }

  .arc-skip {
    position: static;
    display: block;
    margin: 0 auto 2rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .arc-panel {
    display: block;
    flex-basis: auto;
    height: auto;
    max-width: 52rem;
    margin: 0 auto;
    padding: 2.5rem var(--space);
  }

  .arc-panel img { height: auto; }

  .arc-copy {
    position: static;
    max-width: none;
    right: auto;
    padding: 0 0 1rem;
    background: none;
  }
}
