/* Landing page. Nav and unlock card styles live in gate.css. */

:root {
  --paper: #fdfbf6;
  --paper-deep: #f7f1e6;
  --white: #ffffff;
  --ink: #1e293b;
  --ink-2: #434c5e;
  --muted: #667085;
  --accent: #547a95;
  --accent-deep: #45657c;
  --sand: #a79277;
  --sand-deep: #7a6650;
  --sand-soft: #eadbc8;
  --line: rgba(30, 41, 59, 0.1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", cursive;

  --shadow-sm: 0 1px 2px rgba(30, 41, 59, 0.04), 0 6px 16px -6px rgba(30, 41, 59, 0.08);
  --shadow-md: 0 2px 4px rgba(30, 41, 59, 0.04), 0 22px 44px -18px rgba(30, 41, 59, 0.22);
  --shadow-lg: 0 2px 6px rgba(30, 41, 59, 0.06), 0 40px 80px -32px rgba(30, 41, 59, 0.42);

  /* Motion. One curve for things settling, one with a little overshoot. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.2s;
  --dur-mid: 0.6s;
  --dur-slow: 1.1s;
  --stagger: 70ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: 84px;
}

::selection {
  background: var(--sand-soft);
}

main a:focus-visible,
main summary:focus-visible,
.footer a:focus-visible,
.mobile-bar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 9vw, 124px) 0;
}

/* ---------- Type ---------- */

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h1 em {
  position: relative;
  font-weight: 400;
  color: var(--accent-deep);
}

.scribble {
  position: absolute;
  left: -3%;
  bottom: -0.16em;
  width: 106%;
  height: 0.3em;
  overflow: visible;
  pointer-events: none;
}

.scribble path {
  fill: none;
  stroke: var(--sand);
  stroke-width: 2.6;
  stroke-linecap: round;
}

.scribble path + path {
  stroke-width: 1.8;
  opacity: 0.6;
}

h2 {
  font-size: clamp(1.95rem, 4.3vw, 3rem);
  line-height: 1.09;
  letter-spacing: -0.022em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--sand);
}

.eyebrow--light {
  color: var(--sand-soft);
}

.eyebrow + h2 {
  margin-top: 16px;
}

.lede {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  line-height: 1.6;
  color: var(--ink-2);
}

h2 + .lede {
  margin-top: 16px;
}

.meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn svg {
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(30, 41, 59, 0.6);
}

.btn--primary:hover {
  background: #0f172a;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: rgba(30, 41, 59, 0.2);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
  transform: translateY(-1px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.actions--center {
  justify-content: center;
}

.actions--inline {
  gap: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  top: -260px;
  right: -220px;
  width: 760px;
  height: 760px;
  background: radial-gradient(closest-side, rgba(234, 219, 200, 0.8), rgba(234, 219, 200, 0));
}

.hero::after {
  bottom: -320px;
  left: -260px;
  width: 680px;
  height: 680px;
  background: radial-gradient(closest-side, rgba(84, 122, 149, 0.13), rgba(84, 122, 149, 0));
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__copy h1 {
  margin-top: 20px;
}

.hero__sub {
  max-width: 33rem;
  margin-top: 22px;
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero__fine {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: var(--sand-soft);
  transform: rotate(-4deg) translate(-8px, 10px);
}

.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 28px;
  background: var(--sand-soft);
  box-shadow: var(--shadow-lg);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

.hero__route,
.hero__notes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__route {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero__route-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 28;
  stroke-linecap: round;
}

.hero__route-line {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 0.1 8;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1.5px rgba(30, 41, 59, 0.45));
}

.note {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 9px 14px 7px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(30, 41, 59, 0.08), 0 14px 26px -12px rgba(30, 41, 59, 0.4);
  font-family: var(--hand);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.note span {
  margin-bottom: 3px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.note--a {
  top: 7%;
  left: -8px;
  transform: rotate(-4deg);
}

.note--b {
  top: 25%;
  right: -8px;
  transform: rotate(3deg);
}

.note--c {
  bottom: 8%;
  left: -8px;
  transform: rotate(2deg);
}

@media (max-width: 520px) {
  .hero .actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 960px) {
  .hero {
    padding: 84px 0 104px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
  }

  .hero__visual {
    margin-right: 12px;
  }

  .note--a,
  .note--c {
    left: -26px;
  }

  .note--b {
    right: -24px;
  }
}

/* ---------- Proof ---------- */

.proof {
  border-block: 1px solid var(--line);
}

.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.proof__item {
  padding: 26px 12px;
  background: var(--paper);
  text-align: center;
}

.proof__value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.proof__label {
  margin-top: 9px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.proof__item--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.proof__item--link .proof__value {
  transition: color 0.2s ease;
}

.proof__item--link .proof__label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.proof__item--link:hover {
  background: #fff;
}

.proof__item--link:hover .proof__value {
  color: var(--accent-deep);
}

.proof__item--link:hover .proof__label {
  color: var(--ink-2);
  text-decoration-color: var(--sand);
}

.proof__item--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@media (min-width: 768px) {
  .proof__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .proof__item {
    padding: 36px 16px;
  }
}

/* ---------- Jump chips ---------- */

.jump {
  padding: 44px 0 0;
  text-align: center;
}

.jump__label {
  font-family: var(--hand);
  font-size: 21px;
  font-weight: 700;
  color: var(--sand-deep);
}

.jump__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 820px;
  margin: 16px auto 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 17px;
  border: 1px solid rgba(30, 41, 59, 0.14);
  border-radius: 999px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

/* ---------- Why ---------- */

.why__grid {
  display: grid;
  gap: 36px;
}

.why__list li {
  position: relative;
  padding: 20px 0 20px 46px;
  border-top: 1px solid var(--line);
}

.why__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.why__list li::before {
  content: "\00d7";
  position: absolute;
  left: 0;
  top: 22px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(30, 41, 59, 0.2);
  border-radius: 50%;
  font-size: 17px;
  line-height: 1;
  color: var(--muted);
}

.why__list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.why__list span {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.why__answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 30rem;
  margin: clamp(44px, 7vw, 76px) auto 0;
  font-family: var(--hand);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}

.why__answer svg {
  color: var(--sand);
}

@media (min-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

.why {
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- Library ---------- */

.library {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.stage {
  display: grid;
  gap: 22px;
  padding: 34px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.12);
}

.stage:last-child {
  padding-bottom: 0;
}

.stage__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.stage__num {
  flex: none;
  min-width: 58px;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--sand);
}

.stage__title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.stage__note {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.stage__cards {
  display: grid;
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(30, 41, 59, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card__meta {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.card__title a {
  text-decoration: none;
}

.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.card__promise {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.card__inside {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px dashed rgba(30, 41, 59, 0.16);
}

.card__inside li {
  position: relative;
  padding-left: 25px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.card__inside li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-deep);
}

.card__cta svg {
  transition: transform 0.2s ease;
}

.card:hover .card__cta svg {
  transform: translateX(4px);
}

@media (min-width: 680px) {
  .stage__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage__cards--single {
    grid-template-columns: 1fr;
  }

  .stage__cards--single .card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "main inside" "cta inside";
    column-gap: 36px;
  }

  .stage__cards--single .card__main {
    grid-area: main;
  }

  .stage__cards--single .card__inside {
    grid-area: inside;
    align-content: center;
    margin-top: 0;
    padding: 2px 0 2px 34px;
    border-top: 0;
    border-left: 1px dashed rgba(30, 41, 59, 0.16);
  }

  .stage__cards--single .card__cta {
    grid-area: cta;
  }
}

@media (min-width: 960px) {
  .stage {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 48px;
    padding: 48px 0;
  }

  .stage__head {
    position: sticky;
    top: 92px;
    align-self: start;
    display: block;
  }

  .stage__num {
    font-size: 3.6rem;
  }

  .stage__title {
    margin-top: 12px;
  }
}

/* ---------- Spotlight ---------- */

.spotlight__grid {
  display: grid;
  gap: 52px;
  align-items: center;
}

.paper-stack {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
}

.paper-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--sand-soft);
  transform: rotate(4deg);
}

.paper {
  position: relative;
  padding: 32px 30px 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(30, 41, 59, 0.08), 0 34px 60px -30px rgba(30, 41, 59, 0.45);
  rotate: -2.5deg;
  font-family: var(--hand);
}

.paper__kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.paper__title {
  margin-top: 4px;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.paper__list {
  margin-top: 14px;
  counter-reset: paper;
}

.paper__list li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed rgba(84, 122, 149, 0.35);
  counter-increment: paper;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.paper__list li::before {
  content: counter(paper) ".";
  flex: none;
  width: 1.1em;
  font-weight: 700;
  color: var(--accent);
}

.margin-note {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 2px solid var(--sand);
}

.margin-note p {
  font-family: var(--hand);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.margin-note cite {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-style: normal;
  color: var(--muted);
}

@media (min-width: 900px) {
  .spotlight__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 88px;
  }
}

/* ---------- About ---------- */

.about {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #f5f1e8;
}

.about::before {
  content: "";
  position: absolute;
  top: -300px;
  right: -240px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(84, 122, 149, 0.42), rgba(84, 122, 149, 0));
  pointer-events: none;
}

.about__grid {
  position: relative;
  display: grid;
  gap: 44px;
  align-items: center;
}

.about__photo {
  width: min(100%, 400px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  outline: 1px solid rgba(255, 255, 255, 0.14);
  outline-offset: -1px;
  box-shadow: 0 44px 80px -34px rgba(0, 0, 0, 0.7);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about h2 {
  color: #fff;
}

.about .lede {
  color: rgba(245, 241, 232, 0.84);
}

.about__story {
  max-width: 40rem;
  margin-top: 18px;
}

.about__story p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(245, 241, 232, 0.76);
}

.timeline {
  display: grid;
  margin-top: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 15px;
  line-height: 1.4;
  color: rgba(245, 241, 232, 0.88);
}

.timeline time {
  flex: none;
  width: 78px;
  font-family: var(--hand);
  font-size: 16px;
  color: var(--sand-soft);
}

.timeline .is-key {
  font-weight: 600;
  color: #fff;
}

.about__quote {
  margin-top: 32px;
  padding-left: 20px;
  border-left: 2px solid var(--sand);
}

.about__quote p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.42;
  color: #fff;
}

.about .btn {
  margin-top: 32px;
}

@media (min-width: 640px) {
  .timeline {
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    column-gap: 36px;
  }
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 76px;
    align-items: start;
  }

  .about__photo {
    position: sticky;
    top: 96px;
  }
}

/* ---------- Newsletter ---------- */

.newsletter__card {
  position: relative;
  display: grid;
  gap: 30px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.newsletter__card::before {
  content: "";
  position: absolute;
  top: -180px;
  left: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(234, 219, 200, 0.7), rgba(234, 219, 200, 0));
  pointer-events: none;
}

.newsletter__card > * {
  position: relative;
  min-width: 0;
}

.newsletter__fine {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.newsletter__form {
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

/* The Beehiiv script sets an inline width and height. Keep its height, fit our width. */
.newsletter__form iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 230px;
  margin: 0;
  border: 0;
  border-radius: 12px !important;
  background: transparent;
}

@media (min-width: 900px) {
  .newsletter__card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
  }
}

.newsletter {
  padding-bottom: 0;
}

/* ---------- FAQ ---------- */

.faq__list {
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-deep);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--ink-2);
}

.faq details a {
  color: var(--accent-deep);
  text-underline-offset: 3px;
}

/* ---------- Closing ---------- */

.closing {
  padding: clamp(72px, 10vw, 132px) 0;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  text-align: center;
}

.closing h2 {
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  letter-spacing: -0.03em;
}

.closing .lede {
  margin-inline: auto;
}

/* ---------- Footer ---------- */

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 22px;
}

.footer__brand {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.footer__brand span {
  color: var(--sand);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__links a {
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__note {
  max-width: 60ch;
  margin-top: 6px;
  line-height: 1.6;
}

/* ---------- Mobile bar ---------- */

.mobile-bar {
  display: none;
}

@media (max-width: 720px) {
  .mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9000;
    display: block;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(253, 251, 246, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: translateY(110%);
    transition: transform 0.3s ease;
  }

  .mobile-bar.is-visible {
    transform: none;
  }

  .mobile-bar .btn {
    width: 100%;
    height: 48px;
  }

  .footer {
    padding-bottom: 96px;
  }
}

/* ---------- Motion ----------
   Base states below are static. Every entrance, loop and hover effect sits
   inside the no-preference block, and anything hidden first also needs the
   .js class, so the page reads fine with motion off or scripts blocked. */

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9500;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.timeline .is-key span::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--sand);
  vertical-align: 0.12em;
}

.closing {
  position: relative;
  overflow: hidden;
}

.closing::before,
.closing::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.closing::before {
  top: -260px;
  left: 4%;
  width: 560px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(234, 219, 200, 0.85), rgba(234, 219, 200, 0));
}

.closing::after {
  right: 2%;
  bottom: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(84, 122, 149, 0.14), rgba(84, 122, 149, 0));
}

.closing .wrap {
  position: relative;
  z-index: 1;
}

@media (min-width: 720px) {
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9400;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.16 0 0 0 0 0.23 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.07;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: vt-out 0.22s ease both;
  }

  ::view-transition-new(root) {
    animation: vt-in 0.55s var(--ease-out) both;
  }

  /* Sections */

  .js .reveal {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 0.8s var(--ease-out), translate 1s var(--ease-out);
  }

  .js .reveal.is-in {
    opacity: 1;
    translate: 0 0;
  }

  .js .stagger:not(.is-in) > * {
    opacity: 0;
  }

  .js .stagger.is-in > * {
    animation: rise-in 0.8s var(--ease-out) both;
    animation-delay: calc(var(--base, 0s) + min(var(--i, 0), 12) * var(--stagger));
  }

  /* Headings rise in word by word. If the script never runs, they show anyway. */
  .js [data-split]:not(.split) {
    opacity: 0;
    animation: show-late 0.01s 2s forwards;
  }

  .js [data-split] .w,
  .js [data-split] .w__in {
    display: inline-block;
  }

  .js [data-split] .w__in {
    opacity: 0;
    translate: 0 0.42em;
    filter: blur(8px);
  }

  .js [data-split].is-in .w__in {
    animation: word-in 0.95s var(--ease-out) both;
    animation-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms);
  }

  /* Hero */

  .js .hero .eyebrow,
  .js .hero__sub,
  .js .hero .actions,
  .js .hero__fine {
    animation: rise-in 0.9s var(--ease-out) both;
  }

  .js .hero .eyebrow {
    animation-delay: 0.05s;
  }

  .js .hero h1 {
    --d: 0.15s;
  }

  .js .hero__sub {
    animation-delay: 0.6s;
  }

  .js .hero .actions {
    animation-delay: 0.72s;
  }

  .js .hero__fine {
    animation-delay: 0.84s;
  }

  .js .scribble path,
  .js .hero__route-draw,
  .js .why__answer svg path {
    opacity: 0;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .js .scribble path {
    animation: draw 0.8s var(--ease-out) 1.05s forwards;
  }

  .js .scribble path + path {
    --o: 0.6;
  }

  .js .scribble path + path {
    animation-delay: 1.3s;
  }

  .js .hero__visual::before {
    animation: card-in 1.2s var(--ease-out) 0.15s both;
  }

  .js .hero__frame {
    animation: rise-in 1s var(--ease-out) 0.2s both;
  }

  .js .hero__frame img {
    scale: 1.12;
    translate: 0 calc(var(--hero-scroll, 0) * 4%);
    animation: photo-in 1.5s var(--ease-out) 0.35s both;
  }

  .js .note {
    animation:
      note-pop 0.8s var(--ease-spring) var(--nd) both,
      note-float var(--nf) ease-in-out calc(var(--nd) + 0.8s) infinite alternate;
  }

  .note--a {
    --nd: 0.95s;
    --nf: 6.5s;
  }

  .note--b {
    --nd: 1.1s;
    --nf: 8s;
  }

  .note--c {
    --nd: 1.25s;
    --nf: 7.2s;
  }

  .js .hero__route-draw {
    animation: draw 1.9s var(--ease-out) 1.35s forwards;
  }

  /* Depth: the notes and route float above the photo as the pointer moves. */
  .hero__frame {
    transform: perspective(1100px) rotateX(calc(var(--py, 0) * -4deg))
      rotateY(calc(var(--px, 0) * 5deg));
  }

  .hero__notes,
  .hero__route {
    translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 10px);
  }

  .hero__visual::before {
    translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -6px);
  }

  /* Proof */

  .proof__count {
    font-variant-numeric: tabular-nums;
  }

  /* Why: the scattered sources get crossed out, then the answer draws in. */

  .js .why__list strong {
    display: inline-block;
    background: linear-gradient(var(--sand), var(--sand)) 0 58% / 0 2px no-repeat;
    transition: background-size 0.7s var(--ease-out);
    transition-delay: calc(0.55s + var(--i, 0) * 220ms);
  }

  .js .why__list.is-in strong {
    background-size: 100% 2px;
  }

  .js .why__list.is-in li::before {
    animation: x-in 0.6s var(--ease-spring) both;
    animation-delay: calc(0.35s + var(--i, 0) * 220ms);
  }

  .js .why__answer.is-in svg path {
    animation: draw 0.9s var(--ease-out) 0.5s forwards;
  }

  .js .why__answer.is-in svg path + path {
    animation-duration: 0.45s;
    animation-delay: 1.2s;
  }

  /* Library */

  .js .stage {
    border-top-color: transparent;
    background: linear-gradient(rgba(30, 41, 59, 0.16), rgba(30, 41, 59, 0.16)) 0 0 / 0 1px no-repeat;
    transition: opacity 0.8s var(--ease-out), translate 1s var(--ease-out),
      background-size 1.4s var(--ease-out) 0.1s;
  }

  .js .stage.is-in {
    background-size: 100% 1px;
  }

  .js .stage.is-in .stage__num {
    animation: rise-in 1s var(--ease-out) 0.1s both;
  }

  .js .stage__cards {
    --base: 0.15s;
  }

  .chip {
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
      transform 0.3s var(--ease-spring);
  }

  .chip:hover {
    transform: translateY(-2px);
  }

  /* Spotlight: the page settles onto the stack, then lists itself. */

  .js .paper,
  .paper-stack::before {
    transition: rotate 1.2s var(--ease-spring), translate 0.6s var(--ease-out);
  }

  .js .paper-stack:not(.is-in) .paper {
    rotate: -11deg;
  }

  .js .paper-stack:not(.is-in)::before {
    rotate: -8deg;
  }

  .paper-stack:hover .paper {
    rotate: 0deg;
    translate: 0 -6px;
  }

  .paper-stack:hover::before {
    rotate: 3deg;
  }

  .js .paper__list {
    --base: 0.35s;
  }

  /* About */

  .js .about__photo img {
    clip-path: inset(14% 10% 14% 10%);
    scale: 1.16;
    transition: clip-path 1.5s var(--ease-out) 0.1s, scale 2.4s var(--ease-out);
  }

  .js .about__photo.is-in img {
    clip-path: inset(0 0 0 0);
    scale: 1;
  }

  .timeline .is-key span::after {
    animation: pulse 2.4s ease-out infinite;
  }

  /* Newsletter: a slow light runs round the card while it is on screen. */

  .newsletter__card::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from var(--spin), transparent 0 50%, var(--sand) 68%, var(--accent) 82%, transparent 96%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin 10s linear infinite paused;
    pointer-events: none;
  }

  .newsletter__card.is-live::after {
    animation-play-state: running;
  }

  /* Closing */

  .closing::before {
    animation: drift-a 18s ease-in-out infinite alternate;
  }

  .closing::after {
    animation: drift-b 22s ease-in-out infinite alternate;
  }

  /* Buttons and cards */

  .btn {
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
      box-shadow 0.15s ease, translate 0.35s var(--ease-out);
  }

  .btn--primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  .btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    translate: -120% 0;
    transition: translate 0.9s var(--ease-out);
    pointer-events: none;
  }

  .btn--primary:hover::after {
    translate: 120% 0;
  }

  @media (hover: hover) {
    .card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(84, 122, 149, 0.11), transparent 65%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .card:hover::before {
      opacity: 1;
    }
  }

  /* FAQ answers slide open where the browser supports it. */

  :root {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
  }

  .faq details[open]::details-content {
    block-size: auto;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 16px;
      filter: blur(6px);
    }
  }

  @keyframes word-in {
    to {
      opacity: 1;
      translate: 0 0;
      filter: blur(0);
    }
  }

  @keyframes show-late {
    to {
      opacity: 1;
    }
  }

  @keyframes draw {
    from {
      opacity: var(--o, 1);
      stroke-dashoffset: 1;
    }
    to {
      opacity: var(--o, 1);
      stroke-dashoffset: 0;
    }
  }

  @keyframes card-in {
    from {
      opacity: 0;
      scale: 0.9;
    }
  }

  @keyframes photo-in {
    from {
      clip-path: inset(100% 0 0 0);
      scale: 1.25;
    }
    to {
      clip-path: inset(0 0 0 0);
      scale: 1.12;
    }
  }

  @keyframes note-pop {
    from {
      opacity: 0;
      scale: 0.55;
    }
  }

  @keyframes note-float {
    from {
      translate: 0 0;
    }
    to {
      translate: 0 -7px;
    }
  }

  @keyframes x-in {
    from {
      opacity: 0;
      scale: 0.4;
      rotate: -90deg;
    }
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(167, 146, 119, 0.65);
    }
    70%,
    100% {
      box-shadow: 0 0 0 10px rgba(167, 146, 119, 0);
    }
  }

  @keyframes spin {
    to {
      --spin: 360deg;
    }
  }

  @keyframes drift-a {
    to {
      translate: 140px 70px;
    }
  }

  @keyframes drift-b {
    to {
      translate: -160px -50px;
    }
  }

  @keyframes vt-out {
    to {
      opacity: 0;
    }
  }

  @keyframes vt-in {
    from {
      opacity: 0;
      translate: 0 14px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn svg,
  .card,
  .card__cta svg,
  .mobile-bar {
    transition: none;
  }
}
