/* Memory Ball – shared styles.
   Colours: bright marigold, the ball's orange glow and lavender on warm white (from Muskan's storyboard drawing).
   Type and page layout: from Muskan's Figma prototype. Light Inter Tight headlines, Newsreader serif for
   memories and quotes, IBM Plex Mono for small labels. Mobile first.
   Fonts are served from /fonts (no third-party requests). */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("/fonts/newsreader-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FFFBF3;        /* warm white page */
  --surface: #FFFFFF;      /* cards and fields */
  --ink: #1F1B16;          /* text and outlines, like the drawing's line work */
  --muted: #6B655D;
  --line: #EDE4D3;
  --sun: #F7B32B;          /* marigold: the phone screens in the storyboard */
  --sun-soft: #FFF1D1;
  --glow: #F0731F;         /* the ball's orange light */
  --glow-ink: #B4530F;     /* deeper orange for small labels (readable on white) */
  --lavender: #8B6FD0;     /* the purple ball */
  --lavender-deep: #7A5CC4;/* "share your memory" buttons (white text stays readable) */
  --lavender-soft: #EFE9FB;
  --danger: #C0392B;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 20px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 18px; }
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.015em; }
@media (min-width: 760px) { h1 { font-size: 56px; } h2 { font-size: 36px; } }
p { margin: 0 0 16px; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 700px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.eyebrow { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glow-ink); margin: 0 0 16px; }
.serif { font-family: var(--serif); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 12px 26px;
  font: inherit; font-size: 18px; font-weight: 500; text-decoration: none; text-align: center; line-height: 1.25;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  cursor: pointer; touch-action: manipulation; transition: transform .15s var(--ease), background .2s var(--ease);
}
.button:active { transform: scale(.98); }
.button.secondary { background: var(--surface); }
.button.quiet { background: transparent; border-color: transparent; text-decoration: underline; padding-left: 8px; padding-right: 8px; }
.button.block { width: 100%; }
.button.cta { background: var(--lavender-deep); color: #fff; }    /* share your memory */
.button:disabled, .button[aria-disabled="true"] { opacity: .35; cursor: default; transform: none; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------- Header, menu, footer ---------- */
.site-header { background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.wordmark { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; letter-spacing: 0; text-decoration: none; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; }
.wordmark .orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFE3B0, var(--glow) 62%, #C4510E); box-shadow: 0 0 14px rgba(240, 115, 31, .45); }
.nav-inline { display: none; gap: 28px; }
.nav-inline a { text-decoration: none; color: var(--muted); }
.nav-inline a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.lang { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { font: 500 13px var(--mono); letter-spacing: .06em; padding: 5px 12px; min-height: 36px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--sun); }
.menu-button { font: inherit; font-size: 16px; font-weight: 500; background: none; border: 0; color: var(--ink); padding: 8px 4px; min-height: 44px; cursor: pointer; }
@media (min-width: 820px) { .nav-inline { display: flex; } .menu-button { display: none; } }
.menu-sheet { position: fixed; inset: 0; z-index: 50; background: var(--sun); padding: 20px; display: flex; flex-direction: column; }
.menu-sheet .top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.menu-sheet nav { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.menu-sheet nav a { font-size: 44px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; text-decoration: none; padding: 6px 0; }
.site-footer { margin-top: 72px; padding: 40px 0 110px; background: var(--sun-soft); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
.site-footer a { color: var(--ink); }
.site-footer .credit { flex-basis: 100%; margin: 10px 0 0; max-width: 560px; }

/* ---------- Place session bar ---------- */
.session-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--lavender-soft); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: 0 10px 30px rgba(31, 27, 22, .16); max-width: 680px; margin: 0 auto; font-weight: 500; line-height: 1.3;
}
.session-bar .button { min-height: 44px; padding: 8px 18px; font-size: 16px; flex: none; }

/* ---------- Background lights (every page) ---------- */
.lights { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lights span { position: absolute; border-radius: 50%; background: #FF6A13; opacity: .2; animation: twinkle 6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .12; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .lights span { opacity: .35; } }

/* Sections fade in as they scroll into view (Over, Ons verhaal) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Home ---------- */
.home-intro { padding: 44px 0 32px; max-width: 760px; }
.home-intro h1 { font-size: 48px; margin-bottom: 14px; }
@media (min-width: 760px) { .home-intro { padding: 72px 0 44px; } .home-intro h1 { font-size: 76px; } }
.home-intro p { font-size: 20px; color: var(--muted); max-width: 560px; }
.doors { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .doors { grid-template-columns: 1fr 1fr; gap: 24px; } }
.door { position: relative; display: block; min-height: 46vh; overflow: hidden; border-radius: 28px; border: 2px solid var(--ink); color: #fff; text-decoration: none; }
#door-archive { background: radial-gradient(circle at 70% 30%, #B9A3EE, var(--lavender) 55%, #5E46A8); }
#door-community { background: radial-gradient(circle at 70% 30%, #FFD27A, var(--sun) 45%, var(--glow)); }
@media (min-width: 760px) { .door { min-height: 62vh; } }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s var(--ease); transform: scale(1.04); }
.slide.show { opacity: 1; animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.5%); } }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31,27,22,.62), rgba(31,27,22,0) 55%); }
.door-label { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; }
.door-label h2 { font-size: 42px; margin: 0 0 6px; }
.door-label p { margin: 0; font-size: 17px; opacity: .95; }
.door-label .go { display: inline-flex; margin-top: 14px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 500; font-size: 16px; }
.where-line { margin: 28px 0 0; font-size: 17px; }

/* ---------- Browse ---------- */
.page-head { padding: 44px 0 12px; }
@media (min-width: 760px) { .page-head { padding: 64px 0 16px; } }
.page-head p { color: var(--muted); max-width: 600px; font-size: 19px; }
.page-head .row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.page-head .row h1 { margin: 0; }
.page-head .row + p { margin-top: 14px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 24px; }
.toolbar .count { font: 400 13px var(--mono); letter-spacing: .04em; color: var(--muted); margin-right: auto; }
.toolbar .button { min-height: 44px; padding: 8px 20px; font-size: 16px; background: var(--surface); }
.toolbar select { font: inherit; font-size: 16px; min-height: 44px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 400; padding: 6px 14px; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--ink); }
.card .media { aspect-ratio: 4 / 3; background: var(--line); position: relative; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--lavender-soft); color: var(--lavender); }
.card .ph.text { align-items: flex-start; justify-content: flex-start; background: var(--sun-soft); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.45; overflow: hidden; }
.card .ph.text::before { content: "\201C"; font-size: 48px; line-height: .7; color: var(--glow); margin-right: 4px; }
.card .ph svg { width: 70%; height: auto; }
.card .kind { position: absolute; right: 10px; bottom: 10px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.card .title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .card .title { font-size: 20px; } }
.card .meta { font: 400 12.5px/1.45 var(--mono); letter-spacing: .02em; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.more { display: flex; justify-content: center; margin: 32px 0; }
.empty { padding: 36px 0; color: var(--muted); }

/* Bottom sheet (filters) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(31,27,22,.4); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 86vh; overflow: auto; background: var(--paper); border-radius: 28px 28px 0 0; padding: 22px 20px 24px; box-shadow: 0 -10px 34px rgba(0,0,0,.18); }
@media (min-width: 760px) { .sheet { left: 50%; transform: translateX(-50%); width: 660px; bottom: 24px; border-radius: 28px; } }
.sheet h2 { display: flex; justify-content: space-between; align-items: center; }
.sheet h2 .linklike { font-size: 17px; letter-spacing: 0; }
.sheet fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.sheet legend { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sheet .chip[aria-pressed="true"] { background: var(--sun); }
.sheet .actions { display: flex; gap: 10px; position: sticky; bottom: -24px; background: var(--paper); padding: 14px 0 0; }

/* ---------- Memory page ---------- */
.memory { padding: 32px 0; }
.memory .back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.memory h1 { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; line-height: 1.12; font-size: 38px; }
@media (min-width: 760px) { .memory h1 { font-size: 50px; } }
.memory .meta { font: 400 14px/1.5 var(--mono); letter-spacing: .02em; color: var(--muted); margin-bottom: 18px; }
.memory .feelings { margin-bottom: 26px; }
.memory .note { background: var(--sun-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 22px; }
.memory .video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.memory .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.memory video { display: block; width: 100%; max-height: 72vh; background: #000; border-radius: var(--radius); margin-bottom: 22px; }
.memory .photos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 22px; padding-bottom: 4px; }
.memory .photos img { flex: 0 0 auto; width: min(86%, 640px); max-height: 70vh; object-fit: contain; background: var(--surface); border-radius: var(--radius); scroll-snap-align: start; cursor: zoom-in; }
.memory .photos img:only-child { width: 100%; }
.memory .text { font-family: var(--serif); font-size: 23px; line-height: 1.55; white-space: pre-line; margin: 0 0 30px; }
.memory .summary { font-family: var(--serif); font-size: 20px; line-height: 1.6; white-space: pre-line; margin-bottom: 26px; }
.memory .facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; align-items: baseline; margin: 0 0 26px; font-size: 16px; }
.memory .facts dt { font: 400 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.memory .facts dd { margin: 0; }
.memory .credit { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.memory .actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; font-size: 16px; }
.related { margin-top: 48px; }
.related .grid { margin-top: 14px; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(20,18,15,.94); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* Voice player */
.voice { display: flex; align-items: center; gap: 16px; background: var(--lavender-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 22px; }
.voice .play { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); font-size: 18px; cursor: pointer; flex: none; display: flex; align-items: center; justify-content: center; }
.voice .bar { flex: 1; height: 6px; background: rgba(139, 111, 208, .25); border-radius: 3px; overflow: hidden; }
.voice .bar span { display: block; height: 100%; width: 0; background: var(--lavender); }
.voice .time { font: 400 14px var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); min-width: 48px; text-align: right; }

/* ---------- Add flow ---------- */
.flow-header .wrap { display: flex; align-items: center; gap: 10px; min-height: 68px; }
.flow-header .place { flex: 1; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 19px; line-height: 1.2; }
.flow-header .exit { font: inherit; font-size: 16px; background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; cursor: pointer; padding: 0 4px; }
.steps { display: flex; gap: 8px; justify-content: center; padding: 4px 0 0; }
.steps span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.steps span.on { background: var(--lavender); }
.flow { padding-top: 32px; padding-bottom: 150px; }
.flow h1 { font-size: 36px; margin-bottom: 14px; }
@media (min-width: 760px) { .flow h1 { font-size: 46px; } }
.flow .lead { color: var(--muted); font-size: 19px; }
.flow .notice { background: var(--sun-soft); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; font-size: 17px; }
.flow .stack { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.field label, .field .label { font-weight: 500; }
.field .hint, .hint { color: var(--muted); font-size: 16px; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 16px;
  padding: 13px 16px; min-height: 58px; -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease);
}
.input, .textarea { font-family: var(--serif); font-size: 20px; }   /* people write their memory in the serif */
.textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 24px) 50%, calc(100% - 18px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.select:disabled { opacity: .45; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--ink); outline: none; }
.input::placeholder, .textarea::placeholder { color: #A79F93; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.error { color: var(--danger); font-weight: 500; margin: 8px 0 0; }
.error:empty { display: none; }
.flow-bar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 -1px 0 var(--line); }
.flow-bar .inner { max-width: 700px; margin: 0 auto; display: flex; gap: 10px; }
.flow-bar .button { flex: 1; }
.flow-bar .button.quiet { flex: 0 0 auto; }

/* Recorder */
.recorder { border-radius: var(--radius); padding: 18px; background: var(--lavender-soft); }
.rec-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; font: inherit; font-size: 18px; font-weight: 500; border-radius: 999px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; }
.rec-button .rdot { width: 18px; height: 18px; border-radius: 50%; background: var(--glow); }
.rec-button.recording { background: var(--glow); color: var(--ink); }
.rec-button.recording .rdot { background: var(--ink); border-radius: 4px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.rec-status { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rec-level { flex: 1; height: 8px; background: rgba(139, 111, 208, .25); border-radius: 4px; overflow: hidden; }
.rec-level span { display: block; height: 100%; width: 0; background: var(--lavender); transition: width .08s linear; }
.rec-time { font: 400 15px var(--mono); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; color: var(--muted); }
.rec-done { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.rec-done audio { width: 100%; }

/* Media tiles */
.tiles { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 132px; border: 2px dashed #D9CDB6; border-radius: var(--radius); background: var(--surface); text-align: center; padding: 18px; cursor: pointer; font-weight: 500; }
.tile .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 6px; }
.tile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tile .hint { font-weight: 400; font-size: 15px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.thumb { position: relative; width: 100px; height: 100px; border-radius: 16px; overflow: hidden; background: var(--line); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.thumb .len { position: absolute; left: 5px; bottom: 5px; background: var(--surface); color: var(--ink); font: 500 12px var(--mono); padding: 1px 7px; border-radius: 999px; }

/* Feelings */
.feelings-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feeling { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 16px; font: inherit; font-size: 18px; text-align: left; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.feeling .dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.feeling[aria-pressed="true"] { border-color: var(--ink); background: var(--sun-soft); font-weight: 500; }
.feeling[aria-disabled="true"] { opacity: .45; }

/* Preview */
.preview-frame { border-radius: 24px; background: var(--surface); padding: 6px 20px 10px; margin: 18px 0 26px; box-shadow: 0 0 0 1px var(--line); }
.preview-frame .memory { padding: 18px 0 6px; }
.preview-frame .memory h1 { font-size: 32px; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--sun-soft); cursor: pointer; }
.consent input { width: 28px; height: 28px; flex: none; margin: 2px 0 0; accent-color: var(--ink); }

/* Progress + thanks */
.progress-list { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.progress-list li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.thanks { text-align: center; padding: 40px 0 24px; }
.thanks .orb-big { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 28px; background: radial-gradient(circle at 35% 32%, #FFE3B0, var(--glow) 60%, #C4510E); box-shadow: 0 0 0 0 rgba(240, 115, 31, .35); animation: glow 2.4s ease-in-out 4; }
@keyframes glow { 50% { box-shadow: 0 0 70px 28px rgba(240, 115, 31, .35); } }
.thanks .number { display: inline-block; font: 500 22px var(--mono); letter-spacing: .04em; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 20px; margin: 8px 0 14px; }

/* Text pages */
.prose { padding-top: 44px; padding-bottom: 44px; }
@media (min-width: 760px) { .prose { padding-top: 64px; padding-bottom: 64px; } }
.prose h2 { margin-top: 44px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .lead { font-size: 24px; line-height: 1.45; letter-spacing: -0.01em; }

/* ---------- Archive partners ---------- */
.partner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0 8px; box-shadow: 0 0 0 1px var(--line); }
.partner p { margin: 0; font-size: 15px; color: var(--muted); }
.partner-logo { display: inline-block; line-height: 0; }
.partner-logo img { height: 40px; width: auto; display: block; }
.partners-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.partners-row .partner-logo img { height: 30px; }

/* Wider intro texts on desktop, so short leads fit on one line */
@media (min-width: 760px) {
  .home-intro { max-width: 900px; }
  .home-intro p, .page-head p { max-width: 880px; }
}

/* Archief page: partners as a signature below the list */
.partners-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.partners-foot .partners-row { margin-top: 0; }

/* ---------- Story pages: Over and Ons verhaal (layout from Muskan's prototype) ---------- */
.scene { padding: 72px 0; }
@media (min-width: 900px) { .scene { padding: 120px 0; } }
.scene-copy { max-width: 680px; }
.scene p { color: var(--muted); max-width: 560px; }
.scene h1 { font-size: clamp(46px, 12.5vw, 104px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 28px; }
.scene h2 { font-size: clamp(38px, 9vw, 72px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 22px; }
.scene h3 { font-size: clamp(28px, 6vw, 40px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.scene-intro { min-height: calc(100svh - 76px); display: flex; align-items: center; padding-top: 48px; }
.scene-intro h1 { max-width: 980px; }
.scene-intro .lead { font-size: 23px; line-height: 1.45; color: var(--ink); max-width: 640px; }
.scene-intro p { max-width: 640px; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.35; color: var(--ink) !important; margin-top: 28px; }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 8vw; } }
.center { text-align: center; }
.center p, .center .scene-copy { margin-left: auto; margin-right: auto; }

/* The object */
.ball-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ball-figure img { width: min(78vw, 480px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; }
.ball-figure figcaption, .mono-note { font: 400 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ball-figure figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--glow); flex: none; }

/* Index list (places on Over) */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { display: grid; grid-template-columns: 8px 4.2em 1fr; align-items: center; gap: 14px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.index i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); }
.index b { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.index span { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.index .empty-row { display: block; color: var(--muted); }
.index li.detailed { align-items: start; }
.index li.detailed i { margin-top: 13px; }
.index li.detailed b { padding-top: 6px; }
.index .place-info { display: flex; flex-direction: column; gap: 4px; }
.index .place-info small { font-size: 15px; line-height: 1.45; color: var(--muted); }
.index .route { align-self: flex-start; font-size: 15px; color: var(--ink); text-underline-offset: 4px; margin-top: 2px; }
.index li.link-row { display: block; padding: 0; }
.index li.link-row > a { display: grid; grid-template-columns: 8px 4.2em 1fr; align-items: center; gap: 14px; padding: 20px 4px; color: inherit; text-decoration: none; }
.index li.link-row > a:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
/* Desktop: wider date column for every row (kept after the link-row rule so it applies to links too) */
@media (min-width: 760px) { .index li, .index li.link-row > a { grid-template-columns: 8px 8.5em 1fr; } }

/* Place card (Pakhuis de Zwijger on Over) */
.place-card { display: inline-flex; flex-direction: column; gap: 6px; margin-top: 30px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
.place-card .mono-note { color: var(--glow-ink); }
.place-card b { font-weight: 400; font-size: 19px; color: var(--ink); }
.place-card small { font-size: 15px; color: var(--muted); }

/* Collaborations */
.collab-label { font: 400 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.collab-lead { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--ink) !important; margin: 0 auto 36px !important; }
.collab-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .collab-grid { grid-template-columns: repeat(3, 1fr); } }
.collaborator { background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 22px; min-height: 250px; padding: 28px 24px; text-align: center; }
.collaborator small { font: 400 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.collaborator .logo-panel { display: grid; place-items: center; width: 100%; min-height: 96px; line-height: 0; }
.collaborator .logo-panel img { display: block; height: auto; max-width: 100%; }
.collaborator .logo-panel .wide { width: min(100%, 260px); }
.collaborator .logo-panel .compact { width: 104px; }
.collaborator p { margin: 0 auto; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 300px; }
.collaborator .mono-note { justify-content: center; }

/* Colour bands: each story section gets its own background, like the changing backgrounds in Muskan's prototype */
.band-sun { background: var(--sun-soft); }
.band-lavender { background: var(--lavender-soft); }
.band-white { background: var(--surface); }
.band-marigold { background: var(--sun); }
.band-sun .eyebrow, .band-sun .place-card .mono-note { color: #A04A0D; }
.band-marigold .eyebrow, .band-marigold p { color: var(--ink); }
.band-white .collaborator { background: var(--paper); }
body[data-page="story"] .site-footer { margin-top: 0; }

/* Example photos (Ons verhaal): a collage that keeps each photo's own shape */
.collage { columns: 2; column-gap: 14px; margin-top: 48px; }
.collage figure { break-inside: avoid; margin: 0 0 30px; }
.collage .wide { column-span: all; }
.collage img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--line); }
.collage figcaption { display: flex; gap: 12px; margin-top: 12px; }
.collage figcaption > span { font: 500 12px/1.9 var(--mono); letter-spacing: .08em; color: var(--glow-ink); }
.collage figcaption b { display: block; font: italic 400 19px/1.3 var(--serif); }
.collage figcaption small { display: block; font: 400 12px/1.5 var(--mono); letter-spacing: .03em; color: var(--muted); margin-top: 2px; }
.collage > :nth-child(3n+2) { transition-delay: .08s; }
.collage > :nth-child(3n) { transition-delay: .16s; }
@media (min-width: 900px) {
  .collage { columns: auto; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 28px; row-gap: 80px; align-items: start; margin-top: 72px; }
  .collage figure { margin: 0; }
  .collage figcaption b { font-size: 21px; }
  .collage .p1 { grid-column: 1 / span 4; grid-row: 1; }
  .collage .p2 { grid-column: 6 / span 4; grid-row: 1; margin-top: 120px; }
  .collage .p3 { grid-column: 10 / span 3; grid-row: 1; margin-top: 40px; }
  .collage .p4 { grid-column: 2 / span 7; grid-row: 2; }
  .collage .p5 { grid-column: 9 / span 4; grid-row: 2; margin-top: 140px; }
  .collage .p6 { grid-column: 3 / span 4; grid-row: 3; }
  .collage .p7 { grid-column: 8 / span 4; grid-row: 3; margin-top: 100px; }
}

/* Research: big numbers on the marigold band */
.source-note { display: block; margin-top: 18px; font: 400 12px/1.5 var(--mono); letter-spacing: .08em; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 0; margin-top: 64px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); margin-top: 96px; } }
.stats article { border-left: 1px solid rgba(31, 27, 22, .18); padding: 0 18px 4px; display: flex; flex-direction: column; gap: 14px; }
.stats strong { font: 200 clamp(84px, 22vw, 160px)/.9 var(--sans); letter-spacing: -0.05em; color: #A04A0D; }
.stats span { font-size: 16px; line-height: 1.45; color: var(--muted); max-width: 230px; }

/* Quote: alone on the lavender band */
.quote-scene { text-align: center; }
.quote { margin: 0 auto; max-width: 1000px; }
.quote p { font: italic 400 clamp(32px, 7.5vw, 68px)/1.15 var(--serif); letter-spacing: -0.01em; color: var(--lavender-deep) !important; max-width: none !important; margin: 0 0 28px; }
.quote span { font: 400 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Method + principle: on desktop the heading stays in view while the text scrolls past */
.sticky-split { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .sticky-split { grid-template-columns: 1fr 1fr; gap: 8vw; align-items: start; }
  .sticky-split > :first-child { position: sticky; top: 48px; }
}
.sticky-split .lead-text { font-size: 21px; line-height: 1.55; color: var(--ink); max-width: 520px; }
.statement { border-top: 1px solid rgba(31, 27, 22, .18); margin-top: 48px; padding-top: 36px; }
.statement small { display: block; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glow-ink); margin-bottom: 14px; }
.statement h3 { font-size: clamp(34px, 7vw, 60px) !important; line-height: 1.05; margin: 0 0 16px; }
.statement p { margin: 0; }

/* Follow-up: memory examples as large serif lines */
.follow-up h2 { max-width: 900px; }
.seeds { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.seeds li { display: grid; grid-template-columns: 9px 1fr; gap: 18px; align-items: baseline; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.seeds i { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); transform: translateY(-4px); }
.seeds span { font: 400 clamp(22px, 4.6vw, 32px)/1.3 var(--serif); color: var(--ink); }
.follow-up .statement { border-top: 0; margin-top: 72px; padding-top: 0; max-width: 680px; }
.data-note { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; }
.data-note b { display: block; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--glow-ink); margin-bottom: 8px; }
.data-note p { font-size: 15px; max-width: 720px; margin: 0; }

/* Ending */
.scene-end h2 { font-size: clamp(42px, 10vw, 96px); }
.scene-end .button { margin-top: 18px; }

/* Over: buttons under "Doe mee", and the closing contact line */
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-line { font-size: 24px; line-height: 1.45; color: var(--ink) !important; max-width: 640px !important; }
