/* Mivu site. Tokens follow the app's Precision Glass palette. */
:root {
  color-scheme: light dark;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --stage: #e6eff0;
  --ink: #142023;
  --muted: #53646b;
  --line: #d5dfe1;
  --accent: #006d75;
  --on-accent: #ffffff;
  --protein: #195dc2;
  --carbs: #925000;
  --fat: #7b3fb8;
  --field-1: #e6eff0;
  --field-2: #cfe2e4;
  --field-3: #00636b;
  --field-4: #f7e1c8;
  --marker: #fbe3c4;

  --gutter: 32px;
  --frame: 1360px;
  /* One frame for the whole page: content at most --frame wide, centred, equal margins.
     % resolves against each full-width section, so the scrollbar never skews it. */
  --m: max(var(--gutter), calc((100% - var(--frame)) / 2));
  --reel-w: clamp(420px, 30vw, 500px);
  --radius: 4px;
  --t-xl: clamp(36px, 3.4vw, 56px);
  --t-l: 30px;
  --t-m: 22px;
  --t-body: 17px;
  --t-s: 13px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111516;
    --surface: #1d2324;
    --stage: #182022;
    --ink: #f4f7f6;
    --muted: #b7c4c8;
    --line: #374346;
    --accent: #63d5cd;
    --on-accent: #092126;
    --protein: #91bcff;
    --carbs: #f4bc62;
    --fat: #c9a2f2;
    --field-1: #162022;
    --field-2: #1d2b2e;
    --field-3: #0b4a50;
    --field-4: #3a2a1c;
    --marker: #5a3d1e;
  }
}

@media (max-width: 760px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Controls: one button shape (fully round), one text link style. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s;
}
.button:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.button:active { transform: scale(.97); }
.link { color: var(--ink); font-weight: 600; text-decoration: none; transition: color .15s; }
.link:hover { color: var(--accent); }

/* Top bar */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--m);
}
.bar.static { position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--t-body); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.bar nav a:not(.button) { text-decoration: none; color: var(--ink); }
.bar nav a:not(.button):hover, .bar nav a[aria-current] { color: var(--accent); }
@media (max-width: 760px) {
  .bar nav { gap: 16px; }
  .bar nav .wide { display: none; }
  .bar .button { padding: 0 16px; }
}

/* Hero: a sentence split by a reel of frames */
.hero { position: relative; height: 260vh; }
.hero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; container-type: inline-size; }
/* Each half gets the room beside the frame; the size follows that room so each stays on one line. */
.hero h1 { position: absolute; inset: 0; font-weight: 600;
  font-size: min(var(--t-xl), calc((min(100cqw - 2 * var(--gutter), var(--frame)) - var(--reel-w)) / 18 - 3px)); }
.hero h1 .half {
  position: absolute; top: 50%; transform: translateY(-50%);
  max-width: calc((100% - 2 * var(--m) - var(--reel-w)) / 2 - 24px);
}
.hero h1 .half:first-child { left: var(--m); }
.hero h1 .half:last-child { right: var(--m); text-align: right; }
.line { display: block; overflow: hidden; padding-bottom: .08em; }
.line > span { display: block; }
.reel {
  position: absolute; left: 50%; top: 50%; width: var(--reel-w);
  display: grid; gap: 24px;
  transform: translate(-50%, calc(-1 * var(--frame-h) / 2 - var(--reel-y, 0px)));
  --frame-h: min(calc(var(--reel-w) * .75), calc(100svh - 200px));
}
.frame {
  height: var(--frame-h); border-radius: var(--radius); overflow: hidden;
  background: var(--stage); position: relative;
}
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame.center { display: grid; place-items: center; }
.frame > img { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translateY(-1.5%); } }
.frame figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: var(--t-s); font-weight: 600;
}
.hero-foot {
  position: absolute; left: var(--m); bottom: 32px; max-width: 30ch; z-index: 2;
  font-size: var(--t-body); display: grid; gap: 16px; justify-items: start;
}
.hero-foot p { color: var(--ink); max-width: 34ch; }

@media (max-width: 1199px) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; overflow: visible; padding: 96px var(--m) 56px; display: grid; gap: 20px; }
  .hero h1 { position: static; display: grid; gap: 20px; font-size: min(9vw, 64px); }
  .hero h1 .half { position: static; transform: none; max-width: none; }
  .hero h1 .half:last-child { order: 3; text-align: right; }
  .hero h1 .reel-slot { order: 2; }
  .reel { position: static; width: 100%; max-width: 720px; justify-self: center; transform: none; --frame-h: auto; }
  .reel .frame:not(.live) { display: none; }
  .hero-foot { position: static; max-width: none; font-size: 16px; }
}

/* App fragments (data-ui): the app's own conventions apply inside. */
[data-ui] {
  font-size: 15px; line-height: 1.35; color: var(--ink);
  --ui-radius: 18px;
}
.ui-card { background: var(--surface); border-radius: var(--ui-radius); padding: 16px 18px; }
.ui-muted { color: var(--muted); }
.ui-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ui-title { font-weight: 700; font-size: 15px; }
.ui-big { font-size: var(--t-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.ui-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.ui-macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-macros b { display: block; font-size: 17px; font-weight: 600; }
.ui-bubble {
  justify-self: end; max-width: 88%; padding: 10px 16px; border-radius: 20px;
  background: var(--accent); color: var(--on-accent); font-size: 15px;
}
.ui-saved { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ui-saved::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); }
.ui-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--stage); font-size: 13px; font-weight: 600; }

/* The live Coach fragment in the first frame */
.coach { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px; }
.coach-say { display: flex; gap: 8px; }
.coach-say input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px;
}
.coach-say button { min-width: 44px; min-height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 20px; cursor: pointer; transition: transform .15s var(--ease); }
.coach-say button:active { transform: scale(.92); }
.coach-log { overflow: hidden; display: grid; align-content: start; gap: 10px; }
.receipt-items { display: grid; gap: 4px; margin: 8px 0; }
.receipt-items .unsure { color: var(--carbs); }
.coach-foot { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.coach-foot img { width: 44px; height: 44px; object-fit: contain; }
.coach-try { display: flex; gap: 6px; flex-wrap: wrap; }
.coach-try button { border: 0; background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 32px; }
.coach-try button:hover { background: var(--line); }

/* Sections */
section { position: relative; }
.wrap { padding: 0 var(--m); }
.gap { margin-top: clamp(120px, 14vw, 200px); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }

/* Outputs: index on the left, live sheet on the stage */
.outputs h2 { font-size: var(--t-m); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 24px; }
.outputs .names { grid-column: 1 / 6; align-self: start; position: sticky; top: 96px; }
.outputs .names ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.outputs .names button {
  border: 0; background: none; padding: 0; text-align: left; cursor: pointer;
  font-family: inherit; font-size: var(--t-xl); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--muted);
  opacity: .55; transition: opacity .2s, color .2s;
}
.outputs .names button:hover { opacity: .85; }
.outputs .names button[aria-selected="true"] { color: var(--ink); opacity: 1; }
.outputs .names p { margin-top: 32px; max-width: 34ch; }
.stage {
  grid-column: 7 / 13; height: 88svh; min-height: 640px; background: var(--stage);
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.sheet { position: absolute; left: 64px; top: 72px; transition: opacity .2s; }
.sheet[hidden] { display: block; opacity: 0; pointer-events: none; visibility: hidden; }
.sheet.w300 { width: 300px; } .sheet.w440 { width: 440px; } .sheet.w560 { width: 560px; }
.meal-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.meal-list { display: grid; gap: 2px; margin-top: 12px; }
.meal-list .ui-row { align-items: center; padding: 10px 0; }
.meal-list img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.meal-list .who { display: flex; align-items: center; gap: 12px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 180px; margin: 20px 0 8px; position: relative; }
.week span { background: color-mix(in srgb, var(--accent) 45%, var(--stage)); border-radius: 6px 6px 2px 2px; }
.week span.today { background: var(--accent); }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.week-target { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--muted); opacity: .5; }
.file { display: flex; gap: 12px; align-items: center; }
.file-icon { width: 40px; height: 48px; border-radius: 6px; background: var(--stage); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--accent); }
.sheet pre { margin: 14px 0 0; padding: 14px; border-radius: 12px; background: var(--stage); font-size: 12.5px; line-height: 1.5; overflow: hidden; white-space: pre; }

@media (max-width: 900px) {
  .outputs .grid { display: block; }
  .outputs .names { position: static; }
  .outputs .names ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .outputs .names button { font-size: var(--t-m); }
  .outputs .names p { margin: 16px 0 24px; }
  .stage { height: 70svh; min-height: 520px; }
  .sheet { left: 50%; top: 24px; transform: translateX(-50%); }
}
@media (max-width: 600px) { .sheet { left: 16px; top: 16px; transform: none; } }

/* How a meal lands: four fields, one card further along each time */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 var(--m); border-radius: var(--radius); overflow: hidden; }
.field { position: relative; height: 84svh; min-height: 620px; padding: 28px; display: flex; flex-direction: column; }
.field:nth-child(1) { background: var(--field-1); }
.field:nth-child(2) { background: var(--field-2); }
.field:nth-child(3) { background: var(--field-3); color: #fff; }
.field:nth-child(4) { background: var(--field-4); }
.field h2 { font-size: var(--t-l); font-weight: 800; letter-spacing: -0.02em; }
.field .card {
  position: absolute; top: 38%; left: 50%; width: min(260px, calc(100% - 40px));
  transform: translate(-50%, -50%); transition: transform .15s var(--ease);
}
.field:hover .card { transform: translate(-50%, calc(-50% - 6px)); }
.field .clause { margin-top: auto; font-size: var(--t-m); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; max-width: 13ch; }
.field .card [data-ui] { display: grid; gap: 10px; }
.field .card .ui-card { display: grid; gap: 8px; }
.thinking { display: flex; gap: 4px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.thinking i:nth-child(2) { animation-delay: .2s; } .thinking i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper b { min-width: 20px; text-align: center; }
.stepper span { width: 24px; height: 24px; border-radius: 50%; background: var(--stage); display: grid; place-items: center; font-weight: 700; }
@media (max-width: 900px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field { height: auto; min-height: 520px; padding: 24px 24px 32px; }
  .field .card { position: static; transform: none; width: min(260px, 100%); margin: 32px auto 0; order: 3; }
  .field:hover .card { transform: translateY(-6px); }
  .field .clause { margin-top: 16px; order: 2; }
}
@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
  .field { min-height: 0; padding-bottom: 48px; }
  .field .card { margin: 32px 0 0; }
}

/* Make it yours: pinned output, live controls */
.yours .grid { align-items: start; }
.pin {
  grid-column: 1 / 7; position: sticky; top: 0; height: 100svh;
  background: var(--stage); display: grid; place-items: center; border-radius: var(--radius);
}
.today { width: 420px; display: grid; gap: 16px; padding: 22px; transition: background-color .3s, color .3s; }
.today.dark { --surface: #1d2324; --ink: #f4f7f6; --muted: #b7c4c8; --stage: #182022; --accent: #63d5cd; background: #1d2324; color: #f4f7f6; }
.today-head { display: flex; justify-content: space-between; align-items: baseline; }
.today-main { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 8px; }
.today-main img { width: 170px; height: 170px; object-fit: contain; }
.ring { height: 8px; border-radius: 999px; background: var(--stage); overflow: hidden; margin-top: 12px; }
.ring i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s var(--ease); }
.blocks { grid-column: 8 / 13; padding: 72px 0 24vh; }
.blocks h2 { font-size: var(--t-xl); margin-bottom: 18vh; }
.block { margin-bottom: 26vh; max-width: 44ch; }
.block:last-child { margin-bottom: 0; }
.block h3 { font-size: var(--t-l); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.block p { margin-bottom: 20px; }
.control { display: flex; align-items: center; gap: 16px; }
.control output { min-width: 7ch; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { flex: 1; accent-color: var(--accent); min-height: 44px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--stage); }
.seg button { border: 0; background: none; border-radius: 999px; min-height: 40px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; transition: background-color .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); font-weight: 600; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--stage); color: var(--ink); font-size: 22px; cursor: pointer; transition: transform .15s var(--ease); }
.round:active { transform: scale(.9); }
.switch { width: 52px; height: 32px; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
@media (max-width: 900px) {
  .yours .grid { display: block; }
  .pin { position: static; height: auto; padding: 24px 16px; }
  .today { width: min(420px, 100%); }
  .today-main { grid-template-columns: 120px 1fr; }
  .today-main img { width: 120px; height: 120px; }
  .blocks { padding: 40px 0 0; }
  .blocks h2 { margin-bottom: 40px; }
  .block { margin-bottom: 56px; }
  .block h3 { font-size: var(--t-m); }
}

/* Letter */
.letter { max-width: 520px; margin: 0 auto; padding: 160px var(--gutter); box-sizing: content-box; }
.letter h2 { font-size: var(--t-m); margin-bottom: 24px; letter-spacing: -0.01em; }
.letter > img { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 28px; }
.letter p { margin-bottom: 1.4em; }
.letter mark { background: var(--marker); color: inherit; padding: 0 2px; }
.letter .sign { font-style: italic; font-size: var(--t-m); margin: 8px 0 0; }
.letter .role { font-size: var(--t-s); color: var(--muted); }

/* Questions: index left, answer right */
.faq .grid { align-items: start; }
.faq .qs { grid-column: 1 / 6; }
.faq h2 { font-size: var(--t-body); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 18px; }
.faq ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.faq .q { display: flex; gap: 14px; align-items: baseline; border: 0; background: none; padding: 0; font: inherit; font-size: var(--t-body); text-align: left; color: var(--muted); cursor: pointer; min-height: 32px; transition: color .15s; }
.faq .q::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-2px); transition: background-color .15s; }
.faq .q[aria-expanded="true"] { color: var(--ink); }
.faq .q[aria-expanded="true"]::before { background: var(--accent); }
.faq .a-inline { display: none; }
.faq .pane { grid-column: 7 / 13; position: sticky; top: 120px; font-size: var(--t-l); line-height: 1.3; max-width: 30ch; transition: opacity .15s; }
@media (max-width: 900px) {
  .faq .grid { display: block; }
  .faq .pane { display: none; }
  .faq .a-inline { padding: 8px 0 4px 22px; font-size: var(--t-body); }
  .faq .q[aria-expanded="true"] + .a-inline { display: block; }
}

/* Close */
.close { padding: 12svh var(--m) 10svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: center; }
.close-text { grid-column: 1 / 6; }
.close-pip { grid-column: 7 / 13; display: block; width: min(520px, 100%); justify-self: end; }
.close p { font-size: var(--t-m); max-width: 34ch; margin-bottom: 24px; }
.close .actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer.site-foot {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end;
  padding: 0 var(--m) 30px; font-size: var(--t-s); color: var(--muted);
}
footer.site-foot nav { display: flex; gap: 24px; }
footer.site-foot a { color: var(--ink); text-decoration: none; }
footer.site-foot a:hover { color: var(--accent); }
footer.site-foot .end { text-align: right; }
.credits { padding: 0 var(--m) 32px; font-size: var(--t-s); color: var(--muted); }
.credits span { display: block; max-width: 60ch; }
.credits a { color: var(--muted); }
@media (max-width: 760px) {
  .close { padding: 12svh var(--m) 10svh; grid-template-columns: 1fr; }
  .close-text, .close-pip { grid-column: 1; }
  .close-pip { width: 280px; justify-self: start; margin-top: 32px; }
  footer.site-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 0; }
  footer.site-foot .end { text-align: left; }
}

/* Document pages (privacy, support, 404) */
.doc { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 72px var(--m) 0; }
.doc-head { grid-column: 1 / 6; align-self: start; }
.doc-head img, .lost img { animation: idle 5s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes idle { from { transform: rotate(-1.5deg) translateY(0); } to { transform: rotate(1.5deg) translateY(-6px); } }
.doc-head h1 { font-size: var(--t-xl); margin-bottom: 20px; }
.doc-head p { color: var(--muted); max-width: 32ch; }
.doc-head img { width: 320px; margin-top: 32px; }
.doc-body { grid-column: 7 / 13; max-width: 62ch; }
.doc-body h2 { font-size: var(--t-m); letter-spacing: -0.01em; margin: 56px 0 12px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { margin-bottom: 12px; }
.doc-body ul { padding-left: 20px; margin: 0 0 12px; }
.summary { background: var(--stage); border-radius: var(--radius); padding: 24px 28px; font-size: var(--t-m); line-height: 1.4; margin-bottom: 56px; }
.help { display: grid; gap: 0; }
.help details { padding: 18px 0; background: none; }
.help details + details { border-top: 0; }
.help summary { cursor: pointer; font-size: var(--t-m); font-weight: 600; list-style: none; display: flex; gap: 14px; align-items: baseline; }
.help summary::-webkit-details-marker { display: none; }
.help summary::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transform: translateY(-3px); }
.help details[open] summary::before { background: var(--accent); }
.help details p { padding: 10px 0 0 22px; }
.mailbox { margin-top: 56px; background: var(--field-3); color: #fff; border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; justify-items: start; }
.mailbox p { font-size: var(--t-m); line-height: 1.3; max-width: 26ch; }
.mailbox .button { background: #fff; color: #00454b; }
.lost { min-height: 70svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 40px var(--m); }
.lost h1 { font-size: var(--t-xl); margin-bottom: 16px; }
.lost p { margin-bottom: 24px; max-width: 32ch; }
.lost img { width: min(560px, 100%); justify-self: center; }
@media (max-width: 900px) {
  .doc { display: block; padding-top: 32px; }
  .doc-head { position: static; margin-bottom: 40px; }
  .doc-head img { width: 140px; margin-top: 24px; }
  .lost { grid-template-columns: 1fr; }
}

/* Entrances: content stays visible without script. */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .line > span { transform: translateY(105%); transition: transform .75s cubic-bezier(.16, 1, .3, 1); }
.js .lift .line > span { transform: none; }
.js .half:last-child .line > span { transition-delay: .09s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js [data-rise], .js .line > span { opacity: 1; transform: none; }
}
