/* Ca-fiat site styles */
@font-face { font-family: "Young Serif"; font-weight: 400; font-display: swap; src: url(fonts/young-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 400; font-display: swap; src: url(fonts/libre-franklin-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 500; font-display: swap; src: url(fonts/libre-franklin-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 600; font-display: swap; src: url(fonts/libre-franklin-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Libre Franklin"; font-weight: 700; font-display: swap; src: url(fonts/libre-franklin-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Table-It Health brand guidelines, design system v3 */
  --ink: #134f7d;
  --ink-deep: #0c3a5e;
  --ink-mid: #1a6496;
  --muted: #4a7598;
  --nav: #1a5c8f;
  --sky: #a9dcf1;
  --sky-deep: #74c0e2;
  --sky-pale: #e8f6fc;
  --butter: #f7f0a0;
  --butter-lo: #ece27a;
  --cream: #fffbea;
  --paper: #fffdf4;
  --success: #1a7a4a;

  --ink-soft: var(--muted);
  --board: var(--sky-pale);
  --line: var(--sky);
  --physio: var(--ink);
  --ot: var(--butter);
  --slt: var(--sky);
  --psych: var(--sky-deep);
  --ward: var(--paper);
  --family: var(--success);
  --display: "Young Serif", Georgia, serif;
  --body: "Libre Franklin", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a.tab {
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
}

.site-nav a.tab:hover { background: var(--board); }

.site-nav a.tab[aria-current="page"] {
  border-bottom-color: var(--sky-deep);
  border-radius: 8px 8px 0 0;
}

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.7rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.button:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }

.button.small { padding: 0.45rem 0.9rem; margin-left: 0.5rem; }

.text-link { font-weight: 600; text-underline-offset: 4px; }

/* Hero */
.hero {
  background-color: var(--sky);
  background-image: radial-gradient(circle, rgba(30, 92, 143, 0.15) 2px, transparent 2px);
  background-size: 40px 40px;
  border-bottom: 2px solid var(--ink);
  padding-block: 4rem 4.5rem;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3.5rem;
  align-items: center;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }

.lede {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  max-width: 34rem;
  margin: 1.25rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

/* Timetable board */
.board {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--sky-deep), 5px 5px 0 5px var(--ink);
  margin: 8px !important;
  overflow-x: auto;
}

.board-grid {
  display: grid;
  grid-template-columns: 3.2rem repeat(5, minmax(4.6rem, 1fr));
  gap: 6px;
  min-width: 29rem;
}

.board-grid .day,
.board-grid .time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.board-grid .day { text-align: center; padding-bottom: 0.2rem; }
.board-grid .time { align-self: center; font-variant-numeric: tabular-nums; }

.slot {
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
  border-radius: 7px;
  padding: 0.25rem;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  animation: place 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
  animation-delay: calc(var(--i) * 55ms + 250ms);
}

.slot.physio { background: var(--physio); color: var(--paper); }
.slot.ot { background: var(--ot); }
.slot.slt { background: var(--slt); }
.slot.psych { background: var(--psych); color: var(--ink-deep); }
.slot.ward { background: var(--ward); }
.slot.family { background: var(--family); color: var(--paper); border-color: var(--success); }
.slot.rest {
  color: var(--ink-soft);
  font-weight: 600;
  background: repeating-linear-gradient(135deg, var(--paper) 0 8px, var(--sky-pale) 8px 16px);
  border: 1.5px dashed var(--sky-deep);
}

@keyframes place {
  from { opacity: 0; transform: translateY(-14px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.board-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

/* Sections */
.band { padding-block: 5rem; }
.band.tint { background: var(--board); border-block: 1px solid var(--line); --ink-soft: var(--ink-mid); }

.section-intro { max-width: 40rem; margin-bottom: 3rem; }
.section-intro p { color: var(--ink-soft); font-size: 1.125rem; margin: 1rem 0 0; }

/* Feature rows */
.features { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }

.features li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 4fr) minmax(0, 6fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.features p { margin: 0; color: var(--ink-soft); max-width: 36rem; }

.magnet {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  margin-top: 0.35rem;
  border: 1.5px solid var(--ink);
  background: var(--c, var(--ink));
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.steps p { margin: 0.5rem 0 0; color: var(--ink-soft); }

/* Product teaser and two-column blocks */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  align-items: start;
}

.split p { color: var(--ink-soft); }

.ledger {
  background: var(--paper);
  border: 1.5px solid var(--sky-deep);
  border-radius: 10px;
  box-shadow: 3px 3px 0 2px var(--sky-deep);
  padding: 1.75rem;
}

.ledger h3 { margin-bottom: 1rem; }
.ledger ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); }
.ledger li { margin-bottom: 0.5rem; }
.ledger li::marker { color: var(--sky-deep); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.legend li {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--c);
  border: 1.5px solid var(--ink);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.legend li.light-text { color: var(--paper); }

/* Demo form */
.demo { background: var(--nav); color: var(--paper); padding-block: 5rem; border-top: 2px solid var(--ink); }
.demo h2 { color: var(--butter); }
.demo .section-intro p { color: var(--paper); }

.demo form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 44rem;
}

.demo label { display: block; font-weight: 600; font-size: 0.95rem; }
.demo .full { grid-column: 1 / -1; }

.demo input,
.demo textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink-deep);
  border-radius: 6px;
  padding: 0.65rem 0.8rem;
}

.demo input:focus-visible,
.demo textarea:focus-visible,
.demo .button:focus-visible,
.demo a:focus-visible { outline-color: var(--butter); }

.demo .button { border-color: var(--ink-deep); box-shadow: 3px 3px 0 var(--ink-deep); justify-self: start; }
.demo .button:hover { box-shadow: 2px 2px 0 var(--ink-deep); }

.form-status { grid-column: 1 / -1; margin: 0; min-height: 1.6em; color: var(--paper); }
.form-status a { color: var(--butter); }

/* Footer */
.site-footer { padding-block: 2rem; font-size: 0.95rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }

/* Small screens */
@media (max-width: 860px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero { padding-block: 2.75rem 3.25rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .features li { grid-template-columns: 1.1rem minmax(0, 1fr); }
  .features p { grid-column: 2; }
  .band, .demo { padding-block: 3.5rem; }
}

@media (max-width: 560px) {
  .site-header .wrap { flex-wrap: wrap; padding-block: 0.6rem; gap: 0.4rem 1rem; }
  .site-nav a.tab { padding: 0.4rem 0.55rem; }
  .demo form { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slot { animation: none; }
  .button { transition: none; }
}

/* Table-It Health lock-up: smiling cloud and two-tone wordmark */
.wm { font-family: var(--display); letter-spacing: -0.01em; line-height: 1; color: var(--ink); }
.wm span { color: var(--ink-mid); }
.wm.dark { color: var(--butter); }
.wm.dark span { color: var(--sky); }

.lockup { display: flex; align-items: center; gap: 1rem; }
.lockup svg { width: 5.5rem; flex: none; }
.lockup .wm { font-size: 1.6rem; }
.lockup small { display: block; margin-top: 0.35rem; font-size: 0.85rem; font-weight: 500; }

.hero .lockup { margin-bottom: 1.25rem; }
.hero .lockup svg { width: clamp(6rem, 12vw, 9rem); }
.hero .lockup h1 span { color: var(--ink-mid); }

.demo .lockup { margin-bottom: 2.25rem; }
.hero .lockup h1.wm { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.ledger .legend { margin-top: 1.25rem; padding-left: 0; }
@media (max-width: 560px) { .hero .lockup { flex-direction: column; align-items: flex-start; gap: 0.5rem; } }
.hero .lockup { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.hero .lockup h1.wm { font-size: clamp(2rem, 4.2vw, 3.3rem); white-space: nowrap; }
.site-nav a.tab, .site-nav .button { white-space: nowrap; }
@media (max-width: 560px) { .button.small { margin-left: 0; } }

/* Deck-based content: promises, today vs Table-It, product screens */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 1.75rem;
}
.card p { margin: 0.6rem 0 0; color: var(--ink); }

.hero h1.dose span { display: block; }

.stats, .promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.stats h3 { font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1.05; }
.source { margin: 1.75rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.promises .card { display: flex; flex-direction: column; background: var(--butter); }
.promises h3 { font-size: 1.6rem; }
.promises .text-link { margin-top: auto; padding-top: 1.25rem; }

.promise-name { margin: 0 0 0.5rem; font-weight: 700; color: var(--ink-mid); }
.section-intro .promise-name { font-size: 1.05rem; color: var(--ink-mid); }

.compare { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 2rem; align-items: start; }
.compare ul { margin: 1rem 0 0; padding-left: 1.2rem; }
.compare li { margin-bottom: 0.6rem; }
.today { border: 2px dashed var(--ink); border-radius: 12px; padding: 1.75rem; background: var(--paper); }
.with { background: var(--butter); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); padding: 1.75rem; }

.screens { display: grid; grid-template-columns: minmax(0, 1fr); }
.screen { margin: 2.5rem 0 0; }
.screen img { display: block; width: 100%; height: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--sky-deep); }
.screen figcaption { margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-soft); }
.band.tint .screen figcaption, .band.tint .source { color: var(--ink-mid); }

.demo .wm small { color: var(--paper); font-family: var(--body); letter-spacing: 0; }

@media (max-width: 860px) {
  .stats, .promises, .compare, .screens { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Softer scrolling: cloud-edged sections, open layouts, gentle reveals ---- */
[id] { scroll-margin-top: 7.5rem; }
main { overflow-x: clip; }

.hero, .band, .demo { position: relative; }
.hero { border-bottom: 0; padding-bottom: 7rem; }
.hero::after, .band.tint::before, .band.tint::after, .demo::before {
  content: ""; position: absolute; left: 0; right: 0; height: 44px;
  background-size: 600px 44px; background-repeat: repeat-x; pointer-events: none;
}
.hero::after { bottom: -1px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20600%2044%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23fffdf4%22%20d%3D%22M0%2044V40a40%2030%200%200%201%2080%200a30%2022%200%200%201%2060%200a55%2034%200%200%201%20110%200a35%2024%200%200%201%2070%200a45%2030%200%200%201%2090%200a30%2020%200%200%201%2060%200a65%2036%200%200%201%20130%200V44Z%22/%3E%3C/svg%3E"); }
.band.tint { border: 0; margin-block: 44px; }
.band.tint::before { top: -43px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20600%2044%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23e8f6fc%22%20d%3D%22M0%2044V40a40%2030%200%200%201%2080%200a30%2022%200%200%201%2060%200a55%2034%200%200%201%20110%200a35%2024%200%200%201%2070%200a45%2030%200%200%201%2090%200a30%2020%200%200%201%2060%200a65%2036%200%200%201%20130%200V44Z%22/%3E%3C/svg%3E"); background-position: 140px 0; }
.band.tint::after { bottom: -43px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20600%2044%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%23e8f6fc%22%20d%3D%22M0%2044V40a40%2030%200%200%201%2080%200a30%2022%200%200%201%2060%200a55%2034%200%200%201%20110%200a35%2024%200%200%201%2070%200a45%2030%200%200%201%2090%200a30%2020%200%200%201%2060%200a65%2036%200%200%201%20130%200V44Z%22%20transform%3D%22scale%281%2C-1%29%20translate%280%2C-44%29%22/%3E%3C/svg%3E"); background-position: 320px 0; }
.demo { border-top: 0; margin-top: 44px; }
.demo::before { top: -43px; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%20600%2044%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20fill%3D%22%231a5c8f%22%20d%3D%22M0%2044V40a40%2030%200%200%201%2080%200a30%2022%200%200%201%2060%200a55%2034%200%200%201%20110%200a35%2024%200%200%201%2070%200a45%2030%200%200%201%2090%200a30%2020%200%200%201%2060%200a65%2036%200%200%201%20130%200V44Z%22/%3E%3C/svg%3E"); background-position: 60px 0; }
.band.tint + .demo { margin-top: 0; }
.band.tint:has(+ .demo) { margin-bottom: 0; padding-bottom: 8rem; }
.band.tint:has(+ .demo)::after { display: none; }

/* drifting clouds in the hero */
.drift { position: absolute; width: 7rem; opacity: 0.9; pointer-events: none; animation: drift 38s ease-in-out infinite alternate; }
.drift.one { top: 1.25rem; right: 6%; }
.drift.two { bottom: 4.5rem; left: 42%; width: 4.5rem; animation-duration: 52s; animation-direction: alternate-reverse; }
@keyframes drift { from { translate: -2.5rem 0; } to { translate: 2.5rem 0; } }
.hero .wrap { position: relative; z-index: 1; }

/* open, less boxed layouts */
.stats .card { background: none; border: 0; box-shadow: none; padding: 0; }
.stats .card p { color: var(--ink-soft); max-width: 17rem; }
.stats .card:nth-child(2) { margin-top: 2.5rem; }
.stats .card:nth-child(3) { margin-top: 5rem; }

.promises { align-items: start; }
.promises .card { border-radius: 18px; }
.promises .card:nth-child(1) { rotate: -0.8deg; }
.promises .card:nth-child(2) { margin-top: 2.25rem; rotate: 0.5deg; }
.promises .card:nth-child(3) { margin-top: 4.5rem; rotate: -0.4deg; }

.today { border: 0; border-left: 3px dashed var(--sky-deep); border-radius: 0; background: none; padding: 0.25rem 0 0.25rem 1.5rem; margin-top: 1.5rem; }
.with { border-radius: 18px; rotate: 0.4deg; }
.screen img { border-radius: 16px; }
.ledger { border-radius: 16px; }

/* section progress for the product page */
.subnav { position: sticky; top: 4.25rem; z-index: 9; display: flex; justify-content: center; padding: 0.6rem 1rem 0; margin-bottom: -3.2rem; pointer-events: none; }
.subnav ol { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0.3rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--sky-deep); pointer-events: auto; }
.subnav a { display: block; padding: 0.35rem 0.95rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; transition: background-color 0.3s ease; }
.subnav a.here { background: var(--butter); }

/* reveal on scroll (only when script.js has run) */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity 0.8s ease, translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--n, 0) * 110ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 860px) {
  .stats .card:nth-child(n), .promises .card:nth-child(n) { margin-top: 0; }
  .drift.two { display: none; }
  .drift.one { width: 4.5rem; top: 0.75rem; }
  .subnav a { padding: 0.3rem 0.7rem; font-size: 0.88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .drift { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---- Patient journey ---- */
.hero .wrap.narrow { grid-template-columns: minmax(0, 46rem); }
.opening { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.35; max-width: 46rem; margin: 0 0 3.5rem; }
.journey { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 0 1.5rem; }
.rail { position: relative; }
.rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 3px dashed var(--sky-deep); }
.walker { position: sticky; top: 42vh; display: block; width: 5rem; margin-block: 1rem; }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.stage { counter-increment: stage; padding-block: 2.25rem 3.25rem; }
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.25rem; margin-bottom: 1.25rem; }
.stage-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.stage-head h3::before { content: counter(stage) ". "; color: var(--ink-mid); }
.tag { font-weight: 700; font-size: 0.9rem; text-decoration: none; padding: 0.25rem 0.8rem; background: var(--sky); border: 1.5px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.tag:hover { background: var(--butter); }
.stage h4 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--ink-mid); }
.stage .with h4 { color: var(--ink); }
.stage p { margin: 0; }
.stage .today { margin-top: 0.75rem; }
.stage:nth-child(even) .with { rotate: -0.4deg; }
.journey-link { margin: 1.25rem 0 0; }
@media (max-width: 860px) {
  .journey { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1rem; }
  .walker { width: 2.75rem; }
}
@media (max-width: 560px) { .site-nav { flex-wrap: wrap; row-gap: 0.3rem; } }

/* ---- About ---- */
.story { max-width: 42rem; }
.story p { font-size: 1.15rem; color: var(--ink); margin: 0 0 1.25rem; }
.beliefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.beliefs h3 { font-size: 1.5rem; }
.beliefs p { margin: 0.6rem 0 0; color: var(--ink-mid); }
.beliefs > div:nth-child(2) { margin-top: 2rem; }
.beliefs > div:nth-child(3) { margin-top: 4rem; }
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 44rem; }
.founders .card { border-radius: 18px; }
.founders .card:nth-child(1) { rotate: -0.6deg; }
.founders .card:nth-child(2) { rotate: 0.5deg; margin-top: 1.5rem; }
.founders h3 { font-size: 1.4rem; }
.stats + .journey-link { margin-top: 2.5rem; }
@media (max-width: 860px) {
  .beliefs, .founders { grid-template-columns: minmax(0, 1fr); }
  .beliefs > div:nth-child(n), .founders .card:nth-child(n) { margin-top: 0; }
}
@media (max-width: 560px) { .wrap.narrow ~ .drift, .hero:has(.wrap.narrow) .drift { display: none; } }

/* Founder cards: equal size, with a photo slot */
.founders { align-items: stretch; }
.founders .card:nth-child(n) { rotate: none; margin-top: 0; }
.photo { position: relative; aspect-ratio: 1; margin-bottom: 1.25rem; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--sky); }
.photo::before { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 3.5rem; color: var(--ink); }
.photo img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
