/* Morrow Delivery — fictional workshop site */

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2-variations"),
       url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #102331;
  --ink-2: #1a3244;
  --ink-3: #27455b;
  --paper: #f4f5ef;
  --paper-2: #e8eadf;
  --lime: #d9fc69;
  --muted: #4a5a66;
  --muted-dark: #b7c3cb;
  --line: rgba(16, 35, 49, 0.16);
  --line-dark: rgba(244, 245, 239, 0.18);
  --error: #a3241b;
  --focus: var(--ink);

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img, video { height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.002em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 2rem + 5.2vw, 6.4rem); text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 1.6rem + 2.8vw, 4rem); text-transform: uppercase; }
h3 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); line-height: 1.05; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark { --focus: var(--lime); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.on-dark { background: var(--ink); color: var(--paper); }
.on-dark .muted, .on-dark .lede { color: var(--muted-dark); }
.muted { color: var(--muted); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
  flex: none;
}
.on-dark .eyebrow::before { background: var(--lime); }

.lede { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 52ch; }

/* ---------- Buttons & links ---------- */

.arrow { width: 1.1em; height: 1.1em; flex: none; transition: transform 200ms var(--ease); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: 700 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.btn-primary { background: var(--lime); color: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: #cdf24f; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn { border-color: var(--paper); }
.on-dark .btn-primary { border-color: var(--lime); }
.on-dark .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn:hover .arrow, .btn:focus-visible .arrow,
.text-link:hover .arrow, .text-link:focus-visible .arrow { transform: translateX(4px); }

.demo-tag {
  display: inline-block;
  padding: 2px 6px 1px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.on-dark .text-link { border-bottom-color: var(--lime); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.demo-note { margin-top: 14px; font-size: 0.9rem; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.wordmark::after { content: ""; width: 100%; height: 3px; background: var(--lime); }
.wordmark small { font-family: var(--body); }

.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 6px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .btn { margin-left: 8px; min-height: 44px; padding: 8px 14px; }

@media (max-width: 859px) {
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid var(--paper);
    border-radius: var(--radius);
    background: transparent;
    color: var(--paper);
    font: 700 0.95rem/1 var(--body);
    cursor: pointer;
  }
  .nav-toggle .bars { width: 18px; height: 12px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
    transition: transform 200ms var(--ease), top 200ms var(--ease);
  }
  .nav-toggle .bars::before { top: 2px; }
  .nav-toggle .bars::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 5px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 5px; transform: rotate(-45deg); }

  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 24px;
  }
  .js .site-nav[hidden] { display: none; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a:not(.btn) { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .js .site-nav a:not(.btn)::after { left: 0; right: auto; width: 40px; bottom: -1px; }
  .js .site-nav .btn { margin: 20px 0 0; justify-content: center; }

  /* Without JavaScript the links simply wrap below the wordmark. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 860px) {
  .section-head.split { grid-template-columns: 5fr 6fr; align-items: end; gap: 48px; }
}

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

/* ---------- Home hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero-copy { padding-block: 40px 32px; }
.hero-copy h1 { max-width: 9ch; }
.hero-copy .lede { margin-top: 20px; }
.hero-copy .btn-row { margin-top: 28px; }

/* The hero video file is 16:9 but its picture is a 3:2 shot with ~100px black
   bars on each side (content runs x=100–1178 of 1280). The still and the video
   share a frame with the picture's own aspect ratio (a safe 1070×720 crop),
   sized to cover the hero like object-fit: cover. The video element is
   enlarged inside that frame so its black bars always fall outside it. */
.hero-media {
  --pic-ar: 1.48611;      /* 1070 / 720 */
  --fx: 1;                /* horizontal alignment of the frame: keep the van's front in view */
  --fy: 0.5;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
  container-type: size;
}
.hero-frame {
  --fw: max(100cqw, 100cqh * var(--pic-ar));
  --fh: max(100cqh, 100cqw / var(--pic-ar));
  position: absolute;
  width: var(--fw);
  height: var(--fh);
  left: calc((100cqw - var(--fw)) * var(--fx));
  top: calc((100cqh - var(--fh)) * var(--fy));
}
.hero-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-frame video {
  position: absolute;
  top: 0;
  height: 100%;
  width: 119.626%;        /* 1280 / 1070 */
  left: -9.7196%;         /* 104 / 1070 */
  max-width: none;
}
@supports not (width: 1cqw) {
  .hero-frame { inset: 0; width: auto; height: auto; }
  .hero-frame video { left: 0; width: 100%; object-fit: cover; object-position: 100% 50%; }
}
.hero-media video { opacity: 0; transition: opacity 500ms ease; }
.hero-media video.is-playing { opacity: 1; }

.video-toggle {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid rgba(244, 245, 239, 0.7);
  border-radius: 999px;
  background: rgba(16, 35, 49, 0.78);
  color: var(--paper);
  font: 600 0.85rem/1 var(--body);
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.video-toggle:hover { background: var(--ink); border-color: var(--lime); }
.video-toggle[hidden] { display: none; }
.video-toggle svg { width: 14px; height: 14px; }

@media (max-width: 899px) {
  .hero-copy { padding-block: 28px 24px; }
  .hero-copy .eyebrow { margin-bottom: 14px; }
  .hero-copy .lede { margin-top: 16px; font-size: 1.04rem; }
  .hero-copy .btn-row { margin-top: 20px; gap: 10px; }
  .hero-copy .btn { padding: 10px 14px; }
  .hero-copy .demo-note { margin-top: 12px; font-size: 0.85rem; }
}
@media (max-width: 420px) {
  .hero-copy .btn .arrow { display: none; }
}

@media (min-width: 900px) {
  .hero { min-height: min(86vh, 820px); display: flex; align-items: flex-end; }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-media { --fy: 0.45; }
  .hero-media::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(16, 35, 49, 0.94) 0%, rgba(16, 35, 49, 0.82) 30%, rgba(16, 35, 49, 0.25) 52%, rgba(16, 35, 49, 0) 66%),
      linear-gradient(270deg, rgba(16, 35, 49, 0.3) 0%, rgba(16, 35, 49, 0) 5%),
      linear-gradient(0deg, rgba(16, 35, 49, 0.6) 0%, rgba(16, 35, 49, 0) 35%);
    pointer-events: none;
  }
  .hero-copy { position: relative; z-index: 2; padding-block: 120px clamp(56px, 8vh, 96px); }
  .hero-copy > * { max-width: min(520px, 38vw); }
  .hero-copy h1 { font-size: clamp(3.4rem, 1.5rem + 4.4vw, 6rem); }
  .video-toggle { right: var(--gutter); bottom: 28px; }
}
@media (min-width: 1500px) {
  .hero-copy > * { max-width: 560px; }
}

/* ---------- Page header (inner pages) ---------- */

.page-head { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.page-head h1 { max-width: 14ch; }
.page-head .lede { margin-top: 24px; }
.page-head-grid { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .page-head-grid { grid-template-columns: 6fr 5fr; align-items: end; gap: 64px; }
}

.band { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 55%; }
@media (min-width: 900px) { .band { aspect-ratio: 5 / 2; } .band img { object-position: 60% 50%; } }

/* ---------- Service cards (home) ---------- */

.service-grid { display: grid; gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 860px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms, transform 200ms var(--ease);
}
.service-card::before {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: -1px;
  height: 4px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms var(--ease);
}
.service-card:hover, .service-card:focus-within { border-color: var(--ink); }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card .when {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-card p { margin: 0; }
.service-card .text-link { margin-top: auto; align-self: flex-start; }
.service-card .text-link::after { content: ""; position: absolute; inset: 0; }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-content: start;
  gap: 4px 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line-dark);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--lime);
}
.steps h3 { font-size: 1.5rem; }
.steps p { margin: 0; color: var(--muted-dark); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li { grid-template-columns: 1fr; padding-top: 28px; border-top-width: 1px; }
  .steps li::before { grid-row: auto; font-size: 3.6rem; margin-bottom: 12px; }
}
.section:not(.on-dark) .steps li { border-top-color: var(--line); }
.section:not(.on-dark) .steps li::before { color: var(--ink); -webkit-text-stroke: 0; }
.section:not(.on-dark) .steps p { color: var(--muted); }

/* ---------- Split feature ---------- */

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 96px); }
  .split.reverse > :first-child { order: 2; }
}
.photo { margin: 0; position: relative; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 48%; border-radius: var(--radius); }
@media (min-width: 900px) { .photo img { aspect-ratio: 4 / 5; } }
.photo::after {
  content: "";
  position: absolute;
  left: 24px; bottom: -6px;
  width: 96px; height: 6px;
  background: var(--lime);
}

.checklist { list-style: none; margin: 20px 0 0; padding: 0; }
.checklist li { position: relative; padding: 10px 0 10px 32px; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.05em;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg);
}
.on-dark .checklist li { border-color: var(--line-dark); }
.on-dark .checklist li::before { border-color: var(--lime); }

/* ---------- CTA block ---------- */

.cta-block { display: grid; gap: 28px; }
@media (min-width: 900px) { .cta-block { grid-template-columns: 7fr 5fr; align-items: end; gap: 64px; } }
.cta-block h2 { max-width: 12ch; }
.demo-box {
  border: 1px solid var(--line-dark);
  border-left: 4px solid var(--lime);
  padding: 20px 22px;
  border-radius: var(--radius);
}
.demo-box p { color: var(--muted-dark); font-size: 0.95rem; }
.demo-box .btn { margin-top: 18px; }

/* ---------- Services page ---------- */

.service-index { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; margin: 28px 0 0; padding: 0; }
.service-index a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; text-decoration: none; background: #fff;
}
.service-index a:hover { border-color: var(--ink); }

.service-detail { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.service-detail-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .service-detail-grid { grid-template-columns: 4fr 7fr; gap: 64px; } }
.service-detail .num {
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: 0.14em;
  display: inline-block; padding: 2px 8px; background: var(--ink); color: var(--lime); margin-bottom: 18px;
}
.service-detail h2 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); }
.service-detail .summary { font-size: 1.15rem; margin-top: 18px; }
.facts { display: grid; gap: 0; margin: 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; }
.facts ul { margin: 0; padding-left: 1.1em; }
.facts li + li { margin-top: 4px; }
.service-detail .btn { margin-top: 28px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); }
.table-wrap:focus-visible { outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line-dark); }
thead th { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: var(--lime); }
tbody th { font-weight: 700; width: 22%; color: var(--muted-dark); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
tbody tr:last-child > * { border-bottom: 0; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  min-height: 56px; padding: 16px 0;
  font-weight: 700; font-size: 1.08rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 20px; color: var(--muted); }
.two-col { display: grid; gap: 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 4fr 7fr; gap: 64px; } }

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

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.principles li { padding: 28px 24px; background: var(--ink-2); border-top: 4px solid var(--lime); border-radius: var(--radius); }
.principles h3 { margin-bottom: 12px; }
.principles p { color: var(--muted-dark); margin: 0; }

.notice {
  display: grid; gap: 12px;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--ink);
  border-radius: var(--radius);
}
.notice h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
.notice ul { margin: 0; padding-left: 1.2em; }
.notice li + li { margin-top: 6px; }

/* ---------- Planner ---------- */

.planner-shell { display: grid; gap: 32px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 112px); }
@media (min-width: 960px) { .planner-shell { grid-template-columns: 3fr 8fr; gap: 64px; align-items: start; } }

.planner-aside { display: grid; gap: 24px; }
@media (min-width: 960px) { .planner-aside { position: sticky; top: 96px; } }

.progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
@media (min-width: 960px) { .progress { flex-direction: column; gap: 0; } }
.progress li {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-top: 4px solid var(--line);
  font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
@media (min-width: 960px) {
  .progress li { border-top: 0; border-left: 4px solid var(--line); padding: 14px 0 14px 16px; font-size: 1rem; }
}
.progress .n {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid currentColor;
  font-weight: 800; font-size: 0.8rem;
}
.progress li.is-done { color: var(--ink); border-color: var(--ink); }
.progress li[aria-current="step"] { color: var(--ink); border-color: var(--lime); }
.progress li[aria-current="step"] .n { background: var(--ink); border-color: var(--ink); color: var(--lime); }
@media (max-width: 520px) { .progress .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .progress li[aria-current="step"] .label { position: static; width: auto; height: auto; clip-path: none; } }

.demo-banner {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--paper);
  border-left: 6px solid var(--lime);
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.demo-banner strong { color: var(--lime); }
.demo-banner p { margin: 0; }

.step-panel[hidden] { display: none; }
.step-panel h2 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin-bottom: 8px; }
.step-panel h2:focus { outline: none; }
.step-panel h2:focus-visible { outline: 3px solid var(--focus); }
.step-intro { color: var(--muted); margin-bottom: 28px; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; font-size: 1.02rem; margin-bottom: 10px; }

.choice-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .card {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px 18px 18px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms, box-shadow 160ms;
}
.choice .card strong { font-family: var(--display); font-size: 1.55rem; line-height: 1; }
.choice .card span { color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.choice .tick {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; margin-bottom: 4px;
}
.choice:hover .card { border-color: var(--ink); }
.choice input:checked + .card { border-color: var(--ink); box-shadow: inset 0 4px 0 var(--lime); }
.choice input:checked + .card .tick { background: var(--ink); border-color: var(--ink); }
.choice input:checked + .card .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.choice input:focus-visible + .card { outline: 3px solid var(--ink); outline-offset: 3px; }

.field-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .field-grid.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 700; }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0; }
.optional { font-weight: 500; color: var(--muted); font-size: 0.88rem; }

input[type="text"], input[type="date"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 2px solid #8795a0;
  border-radius: var(--radius);
  font: 500 1rem/1.4 var(--body);
}
textarea { min-height: 104px; resize: vertical; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
[aria-invalid="true"] { border-color: var(--error) !important; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  background: #fff; border: 2px solid #8795a0; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.pill input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.pill:hover span { border-color: var(--ink); }
fieldset[aria-invalid="true"] .pill span, fieldset[aria-invalid="true"] .choice .card { border-color: var(--error); }

.error {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 2px 0 0;
  color: var(--error);
  font-weight: 700;
  font-size: 0.92rem;
}
.error[hidden] { display: none; }
.error::before {
  content: "!"; flex: none;
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; margin-top: 2px;
  border-radius: 50%; background: var(--error); color: #fff; font-size: 0.75rem;
}

.error-summary {
  margin-bottom: 24px; padding: 16px 18px;
  border: 2px solid var(--error); border-radius: var(--radius); background: #fff;
}
.error-summary[hidden] { display: none; }
.error-summary h3 { font-family: var(--body); font-size: 1rem; color: var(--error); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--error); outline-offset: 2px; }

.group-block { display: grid; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.group-block:first-of-type { border-top: 0; padding-top: 0; }
.group-title { font-family: var(--display); font-size: 1.4rem; line-height: 1; margin: 0; }

.step-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
}
.step-actions .btn-row { margin-left: auto; }

.review { display: grid; gap: 16px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.review-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-card h3 { font-size: 1.5rem; }
.edit-btn {
  min-height: 44px; padding: 8px 12px;
  background: none; border: 0; color: var(--ink);
  font: 700 0.95rem/1 var(--body);
  text-decoration: underline; text-underline-offset: 0.2em;
  cursor: pointer;
}
.edit-btn:hover { text-decoration-thickness: 2px; }
.review dl { display: grid; margin: 0; }
.review dl div { display: grid; gap: 2px 20px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .review dl div { grid-template-columns: 180px 1fr; } }
.review dt { font-weight: 700; color: var(--muted); font-size: 0.92rem; }
.review dd { margin: 0; overflow-wrap: anywhere; }

.complete { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); }
.complete .stamp {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px; background: var(--lime); color: var(--ink);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; margin-bottom: 18px;
}
.complete h2 { color: var(--paper); }
.complete .brief {
  margin: 24px 0; padding: 20px 22px;
  background: var(--ink-2); border-radius: var(--radius);
  font-size: 0.95rem;
}
.complete .brief h3 { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.complete .brief dl { display: grid; margin: 0; }
.complete .brief dl div { display: grid; gap: 0 16px; padding: 6px 0; border-top: 1px solid var(--line-dark); }
@media (min-width: 600px) { .complete .brief dl div { grid-template-columns: 150px 1fr; } }
.complete .brief dt { color: var(--muted-dark); }
.complete .brief dd { margin: 0; overflow-wrap: anywhere; }

.noscript-box { padding: 24px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; }

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

.site-footer { padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 4fr 3fr 4fr; gap: 48px; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { font-size: 0.9rem; color: var(--muted-dark); }
.footer-base { max-width: none; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: var(--muted-dark); }

/* ---------- Reveal motion (only applied by JS, only when motion is allowed) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-pending { opacity: 0; transform: translateY(18px); }
  .reveal.is-shown { opacity: 1; transform: none; transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .video-toggle, .hero-media { display: none; }
}
