/* Bollaspá — the blue cup service.
   Cobalt brushwork on porcelain white. One unit (the flute, 24px) rules every
   gap, stroke and radius. Gilt appears only on the live element. Depth of
   blue encodes time: rim pale and near, bottom deep and distant. */

:root {
  --flute: 24px;
  --half: 12px;
  --quarter: 6px;
  --porcelain: #f7f8f6;
  --glaze: #edf1f7;
  --glaze-deep: #dfe6f1;
  --cobalt: #1f3f9e;
  --cobalt-wash: rgba(31, 63, 158, 0.12);
  --indigo: #14264f;
  --ink-2: #46578a;
  --gilt: #c9a227;
  --ink-now: #5b76c4;
  --ink-weeks: #3f5fba;
  --ink-months: #1f3f9e;
  --ink-distant: #14264f;
  --danger: #8f2f2f;
  --display: 'Bodoni Moda', 'Bodoni 72', 'Didot', Georgia, serif;
  --text: 'Literata', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 var(--half) calc(var(--flute) * 1.5) rgba(20, 38, 79, 0.14);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--indigo);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--cobalt);
  accent-color: var(--cobalt);
}

::selection { background: var(--cobalt); color: var(--porcelain); }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

html { scrollbar-color: var(--cobalt) var(--glaze); scrollbar-width: thin; }
::-webkit-scrollbar { width: var(--quarter); height: var(--quarter); }
::-webkit-scrollbar-thumb { background: var(--cobalt); border-radius: var(--quarter); }
::-webkit-scrollbar-track { background: var(--glaze); }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--indigo); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3.4rem, 9vw, 6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); margin-top: calc(var(--flute) * 2); margin-bottom: var(--half); }
h3 { font-size: 1.35rem; margin-top: var(--flute); margin-bottom: var(--quarter); font-weight: 500; }
p { margin: 0 0 var(--half); max-width: 68ch; }
small, .chrome { font-size: 0.8125rem; letter-spacing: 0.01em; color: var(--ink-2); }
[hidden] { display: none !important; }

.wrap { width: min(100% - calc(var(--flute) * 2) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), 1200px); margin-inline: auto; }
.legal { max-width: 68ch; padding-block: var(--flute); }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: var(--half); }
.legal h2 { font-size: 1.6rem; margin-top: calc(var(--flute) * 1.5); }
.legal p, .legal li { max-width: 68ch; }
.legal .meta { color: var(--ink-2); font-size: 0.9rem; }
.legal strong { font-weight: 500; }
.lexicon-list dl { margin: var(--quarter) 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--half); color: var(--ink-2); font-size: 0.8125rem; }
.lexicon-list dt { color: var(--indigo); font-weight: 500; }
.lexicon-list dd { margin: 0; }

/* ---------- top chrome ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--half);
  padding-block: var(--half);
  padding-top: calc(var(--half) + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--glaze-deep);
}
html:not(.native) .native-only { display: none; }
.native .native-only { display: inline-flex; }
.native .web-only { display: none; }
.native body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.native .reading-text, .native .symbols, .native input, .native textarea { -webkit-user-select: text; user-select: text; }
.wordmark {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  color: var(--indigo);
  text-decoration: none;
}
.wordmark em { font-style: italic; color: var(--cobalt); }
.chrome-row { display: flex; align-items: center; gap: var(--half); flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--quarter);
  padding: 2px var(--half);
  border: 1px solid var(--glaze-deep);
  border-radius: 999px;
  background: var(--porcelain);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.chip.live { border-color: var(--cobalt); color: var(--indigo); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.chip.live .dot { background: var(--gilt); }
.chip.mock { border-color: var(--cobalt); color: var(--indigo); }

/* ---------- buttons: porcelain with a brush border ---------- */
.btn {
  --border: var(--cobalt);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--half);
  min-height: calc(var(--flute) * 2);
  padding: var(--half) var(--flute);
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--porcelain);
  color: var(--indigo);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.btn:hover { background: var(--glaze); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn.primary { background: var(--cobalt); color: var(--porcelain); border-color: var(--cobalt); }
.btn.primary:hover { background: var(--indigo); border-color: var(--indigo); }
.btn.gilt { box-shadow: 0 0 0 3px var(--porcelain), 0 0 0 4px var(--gilt); }
.btn.quiet { --border: var(--glaze-deep); font-weight: 400; }
.btn.small { min-height: calc(var(--flute) * 1.5); padding: var(--quarter) var(--half); font-size: 0.9rem; }
.btn .glyph { width: 22px; height: 22px; }
.btn input[type='file'] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }

/* ---------- inputs: pale glaze fields ---------- */
.field { display: grid; gap: var(--quarter); margin-bottom: var(--half); }
.field label { font-size: 0.9rem; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit;
  color: var(--indigo);
  background: var(--glaze);
  border: 1px solid var(--glaze-deep);
  border-radius: var(--half);
  padding: var(--half);
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); opacity: 0.8; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.field textarea { min-height: calc(var(--flute) * 3); resize: vertical; }
.field .count { justify-self: end; font-size: 0.75rem; color: var(--ink-2); }
.tradition { border: 0; padding: 0; margin: 0 0 var(--half); display: flex; flex-wrap: wrap; gap: var(--quarter); align-items: center; }
.tradition legend { font-size: 0.9rem; color: var(--ink-2); padding: 0; margin-bottom: var(--quarter); width: 100%; }
.chip-radio { position: relative; display: inline-flex; align-items: center; padding: 4px var(--half); border: 1.5px solid var(--glaze-deep); border-radius: 999px; font-size: 0.9rem; cursor: pointer; background: var(--porcelain); }
.chip-radio input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-radio:has(input:checked) { border-color: var(--cobalt); color: var(--cobalt); background: var(--glaze); }
.chip-radio:has(input:focus-visible) { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.tradition .chrome { width: 100%; margin: var(--quarter) 0 0; }
.check { display: flex; align-items: center; gap: var(--half); margin: var(--half) 0 var(--flute); font-size: 0.95rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; }
#stuck-note { margin-bottom: var(--flute); }

/* ---------- fluting ---------- */
.fluted {
  background-image: repeating-linear-gradient(90deg, var(--cobalt-wash) 0 1px, transparent 1px var(--flute));
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: calc(var(--flute) * 2);
  align-items: center;
  min-height: calc(100svh - 80px);
  padding-block: var(--flute);
}
.cup-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: calc(100svh - 120px);
  margin-inline: auto;
  width: 100%;
}
.cup-stage .fluted-bg {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  opacity: 0.4;
  mask-image: radial-gradient(circle, black 55%, transparent 72%);
}
.cup-stage svg { position: relative; width: 100%; height: 100%; display: block; }
.svg-annots { display: none; font-family: var(--text); fill: var(--indigo); paint-order: stroke; stroke: var(--porcelain); stroke-width: 7px; stroke-linejoin: round; }
.svg-annots .sa-title { font-family: var(--display); font-size: 27px; font-weight: 500; }
.svg-annots .sa-sub { font-size: 21px; fill: var(--ink-2); }
.svg-annots .sa-title.sa-a2 { font-size: 23px; }
.svg-annots .sa-sub.sa-a2 { font-size: 18px; }
.leader-mobile { display: none; }
.annot {
  position: absolute;
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 13ch;
  color: var(--indigo);
}
.annot b { display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0; }
.annot span { color: var(--ink-2); font-size: 0.85rem; }
.annot.a1 { left: 0; top: 4%; }
.annot.a2 { right: 0; top: 68%; text-align: right; }
.annot.a3 { left: 6%; bottom: 2%; }

.hero-copy { display: grid; gap: var(--flute); align-content: center; }
.hero-copy h1 { margin-left: -0.04em; }
.hero-copy h1 em { font-style: italic; color: var(--cobalt); }
.lede { font-size: 1.25rem; line-height: 1.45; color: var(--indigo); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--half); align-items: center; }

.ritual { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--half); }
.ritual li { display: grid; grid-template-rows: 32px auto 1fr; align-content: start; gap: var(--quarter); font-size: 0.85rem; line-height: 1.3; color: var(--ink-2); }
.ritual li b { color: var(--indigo); font-weight: 500; }
.ritual .glyph { width: 32px; height: 32px; color: var(--cobalt); }

/* ---------- reading + result ---------- */
.view { padding-block: var(--flute); }
.stage {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: calc(var(--flute) * 2);
  align-items: start;
}
.cup-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--glaze);
  box-shadow: inset 0 0 0 2px var(--cobalt), var(--shadow);
}
.cup-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cup-frame .rim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cup-frame .rim circle { fill: none; stroke: var(--cobalt); stroke-width: 6; stroke-linecap: round; }
.cup-frame .rim .track { stroke: var(--porcelain); opacity: 0.5; }
.cup-frame .rim .stroke { stroke-dasharray: 60 1000; opacity: 0; }
.cup-frame.reading .rim .stroke { opacity: 1; animation: paint-rim 2.6s linear infinite; }
.cup-frame.reading img { filter: saturate(0.8); }
@keyframes paint-rim { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1060; } }
.frame-tools { display: flex; gap: var(--half); flex-wrap: wrap; margin-top: var(--half); align-items: center; }
.saucer-thumb { width: calc(var(--flute) * 2.5); height: calc(var(--flute) * 2.5); border-radius: 50%; object-fit: cover; box-shadow: inset 0 0 0 2px var(--cobalt); }

.status { display: flex; align-items: center; gap: var(--half); min-height: var(--flute); color: var(--ink-2); font-style: italic; }
.status .glyph { color: var(--cobalt); width: 22px; height: 22px; }

.notice {
  border: 2px solid var(--cobalt);
  border-radius: var(--flute);
  padding: var(--flute);
  background: var(--porcelain);
  display: grid;
  gap: var(--half);
}
.notice.error { border-color: var(--danger); }
.notice.error h3 { color: var(--danger); margin-top: 0; }
.notice h3 { margin-top: 0; }
.notice .actions { display: flex; flex-wrap: wrap; gap: var(--half); }

/* result */
.headline { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: var(--half); }
.marked { margin: var(--flute) 0 0; max-width: 560px; }
.marked-frame { position: relative; border-radius: var(--flute); overflow: hidden; box-shadow: inset 0 0 0 2px var(--cobalt), var(--shadow); background: var(--glaze); line-height: 0; }
.marked-frame img { width: 100%; height: auto; display: block; }
.marks { position: absolute; inset: 0; }
.mark {
  position: absolute;
  transform: translate(-50%, -50%);
  aspect-ratio: 1 / 1;
  min-width: 28px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 3px rgba(247, 248, 246, 0.75);
  cursor: pointer;
  padding: 0;
}
.mark span {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--porcelain);
  color: var(--indigo);
  border: 1.5px solid currentColor;
  font: 500 0.75rem var(--text);
  line-height: 17px;
  text-align: center;
}
.mark.active { box-shadow: 0 0 0 3px var(--porcelain), 0 0 0 5px var(--gilt); }
.marked figcaption { margin-top: var(--half); line-height: 1.4; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cobalt); color: var(--cobalt); font-size: 0.75rem; font-weight: 500; margin-right: var(--quarter); vertical-align: 3px; }
.symbols li.active .num { border-color: var(--gilt); color: var(--indigo); }
.provenance { margin-top: var(--quarter); font-size: 0.8125rem; }
.provenance summary { cursor: pointer; color: var(--cobalt); list-style: none; }
.provenance summary::-webkit-details-marker { display: none; }
.provenance summary::before { content: '+ '; }
.provenance[open] summary::before { content: '\2212  '; }
.provenance dl { margin: var(--quarter) 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--half); color: var(--ink-2); }
.provenance dt { color: var(--indigo); font-weight: 500; }
.provenance dd { margin: 0; }
.provenance .version { display: block; margin-top: var(--quarter); font-size: 0.75rem; color: var(--ink-2); }
.ask { margin-top: calc(var(--flute) * 2); padding-top: var(--flute); border-top: 1px solid var(--glaze-deep); max-width: 68ch; }
.ask h3 { margin-top: 0; color: var(--cobalt); }
.ask-thread { display: grid; gap: var(--half); margin-bottom: var(--half); }
.ask-q { justify-self: end; max-width: 85%; background: var(--glaze); border-radius: var(--flute) var(--flute) 4px var(--flute); padding: var(--half) var(--flute); margin: 0; }
.ask-a { display: grid; grid-template-columns: 26px 1fr; gap: var(--half); align-items: start; max-width: 95%; margin: 0; }
.ask-a .glyph { width: 26px; height: 26px; color: var(--cobalt); }
.ask-a p { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.ask-a.pending p { color: var(--ink-2); font-style: italic; }
.ask-form { display: flex; gap: var(--half); align-items: center; }
.ask-form input { flex: 1; font: inherit; color: var(--indigo); background: var(--glaze); border: 1px solid var(--glaze-deep); border-radius: 999px; padding: var(--half) var(--flute); min-width: 0; }
.ask-form input:focus { outline: 2px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
.checkin { margin-top: var(--flute); max-width: 60ch; }
.history .tag { font-size: 0.75rem; padding: 1px var(--quarter); border-radius: 4px; background: var(--glaze); color: var(--ink-2); margin-left: var(--quarter); }
.history .tag.due { border: 1px solid var(--cobalt); color: var(--cobalt); background: var(--porcelain); }
.lexicon-list { list-style: none; padding: 0; margin: var(--flute) 0 0; display: grid; gap: var(--half); }
.lexicon-list li { display: grid; grid-template-columns: 52px 1fr; gap: var(--half); padding: var(--half) 0; border-top: 1px solid var(--glaze-deep); }
.lexicon-list .glyph { width: 44px; height: 44px; color: var(--cobalt); }
.lexicon-list b { font-family: var(--display); font-size: 1.3rem; font-weight: 500; display: block; }
.cup-notes { color: var(--ink-2); font-style: italic; }
.ring-wrap { position: relative; aspect-ratio: 1/1; max-width: 520px; margin-inline: auto; }
.ring-wrap svg { width: 100%; height: 100%; display: block; }
.ring-wrap .band { fill: none; stroke: var(--glaze-deep); stroke-width: 1; }
.ring-wrap .band.rim { stroke: var(--cobalt); stroke-width: 2; }
.ring-wrap .handle { fill: none; stroke: var(--cobalt); stroke-width: 2; }
.ring-wrap .zone-label { font-family: var(--text); font-size: 12.5px; fill: var(--ink-2); letter-spacing: 0.02em; paint-order: stroke; stroke: var(--porcelain); stroke-width: 5px; stroke-linejoin: round; }
.ring-wrap .sym.hint circle { stroke-width: 2.5; }
.ring-wrap .sym { cursor: pointer; }
.ring-wrap .sym circle { fill: var(--porcelain); stroke: currentColor; stroke-width: 1.5; }
.ring-wrap .sym.active circle { stroke: var(--gilt); stroke-width: 2.5; }
.ring-wrap .sym text { font-size: 10px; fill: var(--indigo); font-family: var(--text); }

.symbols { list-style: none; padding: 0; margin: var(--flute) 0 0; display: grid; gap: var(--half); }
.symbols li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--half);
  align-items: start;
  padding: var(--half) 0;
  border-top: 1px solid var(--glaze-deep);
  color: var(--indigo);
  cursor: pointer;
}
.symbols li:hover b { color: var(--cobalt); }
.symbols li:first-child { border-top: 0; }
.symbols .glyph { width: 44px; height: 44px; }
.symbols b { font-family: var(--display); font-size: 1.3rem; font-weight: 500; display: block; }
.symbols .tags { display: flex; gap: var(--quarter); flex-wrap: wrap; margin: 2px 0 var(--quarter); }
.symbols .tag { font-size: 0.75rem; padding: 1px var(--quarter); border-radius: 4px; background: var(--glaze); color: var(--ink-2); }
.symbols li.active { background: linear-gradient(90deg, transparent, var(--glaze) 20%, var(--glaze) 80%, transparent); }
.symbols li.active b { color: var(--cobalt); }
.symbols p { margin: 0; }

.t-now { color: var(--ink-now); }
.t-weeks { color: var(--ink-weeks); }
.t-months { color: var(--ink-months); }
.t-distant { color: var(--ink-distant); }

.reading-text { margin-top: calc(var(--flute) * 2); display: grid; gap: var(--flute); }
.reading-text section { padding-top: var(--flute); border-top: 1px solid var(--glaze-deep); }
.reading-text section:first-child { border-top: 0; padding-top: 0; }
.reading-text h3 { margin-top: 0; color: var(--cobalt); }
.reading-text p { font-size: 1.125rem; line-height: 1.65; max-width: 62ch; }
.reading-text .opening p { font-family: var(--display); font-size: 1.55rem; line-height: 1.3; color: var(--indigo); }
.reading-text .closing p { font-style: italic; }
.result-actions { display: flex; flex-wrap: wrap; gap: var(--half); margin-top: calc(var(--flute) * 1.5); align-items: center; }
.disclaimer { font-size: 0.8125rem; color: var(--ink-2); margin-top: var(--flute); max-width: 60ch; }

/* ---------- how ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--flute) * 2); align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: var(--half); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--half); align-items: start; padding-block: var(--half); border-top: 1px solid var(--glaze-deep); }
.steps li:first-child { border-top: 0; }
.steps .glyph { width: 40px; height: 40px; color: var(--cobalt); }
.steps b { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.zones-legend { list-style: none; padding: 0; margin: var(--half) 0 0; display: grid; gap: var(--quarter); font-size: 0.95rem; }
.zones-legend li { display: grid; grid-template-columns: var(--flute) 1fr; gap: var(--half); align-items: baseline; }
.zones-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; transform: translateY(2px); }

/* ---------- pricing: two saucers ---------- */
.saucers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--flute); align-items: stretch; }
.saucer {
  position: relative;
  padding: calc(var(--flute) * 1.5) var(--flute) var(--flute);
  border: 2px solid var(--cobalt);
  border-radius: var(--flute);
  background: var(--porcelain);
  display: grid;
  gap: var(--half);
  align-content: start;
}
.saucer::before { content: ''; position: absolute; left: var(--flute); right: var(--flute); top: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--cobalt) 0 1.5px, transparent 1.5px 9px); opacity: 0.8; }
.saucer.live { box-shadow: 0 0 0 3px var(--porcelain), 0 0 0 4px var(--cobalt); }
#how h2::before, #pricing h2::before, #history-section h2::before { content: ''; display: block; width: calc(var(--flute) * 5); height: 10px; margin-bottom: var(--half); background: repeating-linear-gradient(90deg, var(--cobalt) 0 1.5px, transparent 1.5px 9px); opacity: 0.8; }
.saucer h3 { margin-top: 0; font-size: 1.6rem; }
.price { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--cobalt); }
.price small { font-family: var(--text); font-size: 1rem; color: var(--ink-2); letter-spacing: 0; }
.no-prices .price { display: none; }
.saucer ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.95rem; }
.saucer .btn { justify-self: start; margin-top: var(--half); }
.price-note { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- history ---------- */
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--quarter); }
.history button { all: unset; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: var(--half); padding: var(--half) 0; border-top: 1px solid var(--glaze-deep); width: 100%; }
.history button:hover b { color: var(--cobalt); }
.history b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.history time { color: var(--ink-2); font-size: 0.85rem; }

/* ---------- footer ---------- */
.foot { margin-top: calc(var(--flute) * 3); padding-block: var(--flute); padding-bottom: calc(var(--flute) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--glaze-deep); display: flex; flex-wrap: wrap; gap: var(--half) var(--flute); justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--ink-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--flute) + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 0);
  background: var(--indigo);
  color: var(--porcelain);
  padding: var(--half) var(--flute);
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 10;
  max-width: min(90vw, 60ch);
}

/* ---------- motion: one authored moment ---------- */
.settle > * { animation: settle 0.9s var(--ease-out) both; }
.settle > *:nth-child(2) { animation-delay: 0.06s; }
.settle > *:nth-child(3) { animation-delay: 0.12s; }
.settle > *:nth-child(4) { animation-delay: 0.18s; }
.settle > *:nth-child(5) { animation-delay: 0.24s; }
.settle > *:nth-child(6) { animation-delay: 0.3s; }
.settle > *:nth-child(7) { animation-delay: 0.36s; }
.settle > *:nth-child(8) { animation-delay: 0.42s; }
@keyframes settle { from { opacity: 0; transform: translateY(var(--half)); filter: blur(2px); } to { opacity: 1; transform: none; filter: blur(0); } }
.ring-wrap .sym-body { animation: land 0.8s var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
@keyframes land { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .settle > *, .ring-wrap .sym-body { animation: none; }
  .cup-frame.reading .rim .stroke { animation: none; opacity: 1; stroke-dasharray: none; }
  .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: var(--flute); }
  .cup-stage { order: 1; aspect-ratio: auto; max-height: none; }
  .cup-stage svg { aspect-ratio: 1 / 1; width: auto; height: auto; max-height: 52svh; max-width: 100%; margin-inline: auto; }
  .cup-stage .fluted-bg { display: none; }
  .annot { display: none; }
  .svg-annots { display: block; }
  .leader-desktop { display: none; }
  .leader-mobile { display: block; }
  .hero-copy { order: 2; }
  .hero-copy h1 { order: 1; }
  .hero-copy .cta-row { order: 2; }
  .hero-copy .lede { order: 3; font-size: 1.1rem; }
  .hero-copy .chrome { order: 4; }
  .ritual { order: 5; }
  .ritual { grid-template-columns: repeat(2, 1fr); }
  .stage, .how, .saucers { grid-template-columns: 1fr; }
  .cup-frame { max-width: 380px; margin-inline: auto; }
  h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
}
@media (max-width: 480px) {
  :root { --flute: 20px; --half: 10px; --quarter: 5px; }
  .ritual { grid-template-columns: repeat(2, 1fr); }
  .top { flex-wrap: wrap; }
}
