/* Ostraka — ostraka.pages.dev. One stylesheet for every page.
   Direction: "The page is the object" (tasteskill, seed 1817441504): the page is a set of potsherds and printed
   pieces on black glaze. Colours are the app's own tokens (ios/Ostraka/Design/Theme.swift). */

@font-face {
  font-family: "EB Garamond";
  src: url(/fonts/garamond-latin.woff2) format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2193, U+2212, U+2215;
}
@font-face {
  font-family: "Ostraka Greek"; /* a subset of Gentium Book Plus (SIL OFL), renamed as the licence requires */
  src: url(/fonts/ostraka-greek.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0300-036F, U+0370-03FF, U+1F00-1FFF;
}

:root {
  --paper: #F4EEE3;
  --surface: #FBF8F2;
  --raised: #ECE3D3;
  --ink: #1E1914;
  --ink-soft: #65594B;
  --faint: #D9CEBB;
  --terracotta: #B04E27;
  --on-accent: #FFF8EE;
  --terracotta-ink: #9C4220;
  --gold: #B38A35;
  --gold-ink: #7A5A17;
  --aegean: #2B5876;
  --olive: #4C6626;
  --plum: #7A3A5B;
  --glaze: #1F1915;
  --glaze-2: #2A231D;
  --on-glaze: #F3E7D3;
  --on-glaze-soft: #C7B79D;
  --figure: #D4743F;
  /* the hero's sherd: unglazed clay, the same in both appearances */
  --clay: #EBC3A2;
  --clay-ink: #1E1914;
  --clay-soft: #5A3A26;
  --clay-mark: #8A2E12;

  --ground: var(--paper);
  --muted: var(--ink-soft);
  --accent: var(--terracotta);
  --font-text: "EB Garamond", "Ostraka Greek", "Iowan Old Style", Georgia, serif;
  --font-display: var(--font-text);
  --font-greek: "Ostraka Greek", "EB Garamond", "Iowan Old Style", Georgia, serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.125rem, 1.07rem + 0.25vw, 1.25rem);
  --step-lead: clamp(1.4rem, 1.15rem + 0.9vw, 2rem);
  --step-head: clamp(2.125rem, 1.3rem + 3vw, 4rem);
  --step-verse: clamp(1.625rem, 0.9rem + 1.75vw, 2.625rem);
  --step-display: clamp(2.75rem, 1.2rem + 4.4vw, 5.25rem);
  --step-giant: clamp(6.5rem, 2rem + 15vw, 17rem);

  --margin: clamp(1rem, 3vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 3rem + 9vw, 12.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12100E;
    --surface: #1D1A16;
    --raised: #29241E;
    --ink: #F0E7D8;
    --ink-soft: #B7AB96;
    --faint: #3A332B;
    --terracotta: #D9794A;
    --on-accent: #140F0C;
    --terracotta-ink: #E58E62;
    --gold: #D6B061;
    --gold-ink: #DDB96C;
    --aegean: #86B8D6;
    --olive: #A9BB70;
    --plum: #D096B6;
    --glaze: #241E19;
    --glaze-2: #2E2721;
  }
}
:root[data-theme="dark"] {
    --paper: #12100E;
    --surface: #1D1A16;
    --raised: #29241E;
    --ink: #F0E7D8;
    --ink-soft: #B7AB96;
    --faint: #3A332B;
    --terracotta: #D9794A;
    --on-accent: #140F0C;
    --terracotta-ink: #E58E62;
    --gold: #D6B061;
    --gold-ink: #DDB96C;
    --aegean: #86B8D6;
    --olive: #A9BB70;
    --plum: #D096B6;
    --glaze: #241E19;
    --glaze-2: #2E2721;
  }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--glaze); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; font-variant-ligatures: common-ligatures; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
cite { font-style: normal; }
[lang="grc"] { font-family: var(--font-greek); }
:target { scroll-margin-top: 1.5rem; }
::selection { background: var(--terracotta); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--terracotta-ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; }
.skip:focus { top: 0.75rem; }
.nums { font-variant-numeric: tabular-nums lining-nums; }
p { text-wrap: pretty; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; }
.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.025em; }
.lead { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- frame ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; position: relative; z-index: 6; }
.bar--over { position: absolute; top: 0; left: 0; right: 0; color: var(--on-glaze); }
.page .bar { background: var(--glaze); color: var(--on-glaze); }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none; }
.wordmark__mark { width: 1.6rem; height: 1.6rem; fill: var(--figure); transform: rotate(-10deg); transition: transform 400ms var(--ease-out); }
.wordmark:hover .wordmark__mark { transform: rotate(8deg) scale(1.08); }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: var(--step-body); }
.nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 2px; transition: text-decoration-color var(--t-hover); padding-block: 0.6rem; }
.nav a:hover { text-decoration-color: currentColor; }
.bar :focus-visible, .hero :focus-visible, .xp :focus-visible, .games :focus-visible, .reply :focus-visible, .foot :focus-visible { outline-color: var(--figure); }
@media (max-width: 47.99em) { .nav__wide { display: none; } }

.text-link { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; transition: text-decoration-color var(--t-hover), color var(--t-hover); }
.text-link:hover { text-decoration-color: var(--terracotta); }

/* the App Store action: a statement before release, Apple's badge after */
.soon { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.4rem; background: var(--glaze); color: var(--on-glaze); font-size: var(--step-body); font-weight: 500; letter-spacing: 0.005em; }
.soon--bar { display: flex; width: 100%; min-height: 3.5rem; }
.soon--small { min-height: 2.75rem; font-size: var(--step-small); margin-top: 1.5rem; }
.badge { display: inline-block; transition: transform var(--t-press) var(--ease-out); }
.badge img { height: 50px; width: auto; }
.badge:active { transform: scale(0.97); }
.badge--bar { display: flex; justify-content: center; }
.badge--small { margin-top: 1.5rem; }
.badge--small img { height: 44px; }

/* ---------- the hero: Iliad 1.1-2 on a sherd ---------- */
.hero { background: var(--glaze); color: var(--on-glaze); position: relative; }
.hero__stage { min-height: 100svh; display: flex; align-items: center; padding-block: 6rem 3rem; overflow: clip; }
.hero__photo { position: absolute; inset: 0; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; filter: brightness(0.62) saturate(0.9); background: var(--glaze); }
.hero__owl { position: absolute; width: 5.5rem; height: 7rem; right: 4%; top: 13%; fill: var(--figure); opacity: 0.9; }
.hero__grid { position: relative; width: 100%; align-items: center; row-gap: 1rem; }
.shard { background: var(--clay); color: var(--clay-ink); }
.hero__shard {
  grid-column: 1 / span 8;
  padding: clamp(1.75rem, 3vw, 3rem) clamp(1.5rem, 3.6vw, 3.5rem) clamp(2rem, 3.4vw, 3.25rem);
  clip-path: polygon(0 2.5%, 9% 0, 37% 1.6%, 63% 0, 88% 1.2%, 100% 3.6%, 98.6% 38%, 100% 71%, 98% 100%, 70% 98.4%, 41% 100%, 13% 98.6%, 1.2% 100%, 0 64%, 1.4% 31%);
}
.hero__shard h1 { max-width: 12ch; font-size: var(--step-display); }
.verse { margin-top: clamp(1.25rem, 2.4vw, 2rem); font-size: var(--step-verse); line-height: 1; }
.verse__line { display: flex; flex-wrap: wrap; column-gap: 0.32em; row-gap: 0.55rem; }
.verse__line + .verse__line { margin-top: 0.7rem; }
.word { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 0.15rem 0.05rem 0.25rem; border-radius: 4px; transition: color var(--t-hover); }
.word__g { font-family: var(--font-greek); line-height: 1.1; transition: color var(--t-hover); }
.word__e { font-family: var(--font-text); font-size: var(--step-small); line-height: 1.2; color: var(--clay-soft); margin-top: 0.35rem; white-space: nowrap; }
.word--punct { margin-left: -0.3em; }
.word:hover .word__g, .word[aria-pressed="true"] .word__g { color: var(--clay-mark); }
.word[aria-pressed="true"]::after, .word__mark { content: ""; position: absolute; left: 0.05rem; right: 0.05rem; top: calc(1.1em + 0.12rem); height: 3px; background: var(--clay-mark); }
.word__mark { display: none; }
.word:focus-visible { outline-color: var(--clay-mark); }
.verse__ref { margin-top: 1rem; font-size: var(--step-small); color: var(--clay-soft); }
.hero__lead { margin-top: clamp(1.25rem, 2.2vw, 1.75rem); max-width: 44ch; font-size: var(--step-body); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(1.5rem, 2.6vw, 2.25rem); }
.hero .text-link { font-size: var(--step-body); }
.hero .text-link:hover { text-decoration-color: var(--clay-mark); }

/* the word card, an app fragment */
.card { background: var(--surface); color: var(--ink); padding: clamp(1.25rem, 2vw, 1.75rem); font-size: var(--step-small); line-height: 1.45; }
.hero__card { grid-column: 9 / span 4; align-self: center; }
.card__form { font-family: var(--font-greek); font-size: var(--step-verse); line-height: 1.05; }
.card__lemma { margin-top: 0.35rem; font-size: var(--step-body); }
.card__pos { color: var(--ink-soft); font-size: var(--step-small); margin-left: 0.35rem; }
.card__def { margin-top: 0.5rem; }
.card__def strong { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chip { font-size: var(--step-small); padding: 0.15rem 0.55rem; border-radius: 6px; background: var(--raised); font-weight: 500; }
.chip--case { color: var(--aegean); }
.chip--tense { color: var(--terracotta-ink); }
.chip--mood { color: var(--gold-ink); }
.chip--voice { color: var(--olive); }
.chip--pn { color: var(--ink-soft); }
.chip--gender { color: var(--plum); }
.card__table { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: var(--step-small); }
.card__table caption { text-align: left; font-size: var(--step-small); color: var(--ink-soft); padding-bottom: 0.35rem; }
.card__table th { font-weight: 500; color: var(--ink-soft); font-size: var(--step-small); text-align: left; padding: 0.3rem 0.4rem 0.3rem 0; }
.card__table thead th { padding-bottom: 0.2rem; }
.card__table td { font-family: var(--font-greek); font-size: var(--step-body); padding: 0.3rem 0.45rem; border-top: 1px solid var(--faint); }
.card__table td.on { outline: 2px solid var(--terracotta); outline-offset: -2px; border-radius: 4px; }
.card__pp { margin-top: 0.85rem; font-size: var(--step-small); }
.card__pp span:first-child { display: block; font-size: var(--step-small); color: var(--ink-soft); }
.card__note { margin-top: 0.7rem; font-size: var(--step-small); color: var(--ink-soft); }

.hero.is-picked .hero__card { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.hero.is-picked .word__e { opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* ---------- a phone, drawn in CSS ---------- */
.device { width: min(18.75rem, 66vw); aspect-ratio: 1206 / 2622; padding: 0.6rem; background: #0B0908; border-radius: 2.75rem; position: relative; flex: none; }
.device::before { content: ""; position: absolute; z-index: 2; top: 1.35rem; left: 50%; width: 28%; height: 1.45rem; transform: translateX(-50%); background: #0B0908; border-radius: 1rem; }
.device__screen { height: 100%; border-radius: 2.2rem; overflow: hidden; background: #F4EEE3; }
.device--dark .device__screen { background: #12100E; }
.device__media { width: 100%; height: 100%; object-fit: cover; }
.sheet--glaze .device, .xp .device, .games .device { background: #4A4038; }
.sheet--glaze .device::before, .xp .device::before, .games .device::before { background: #0B0908; }

/* placeholder screens, set in the app's own colours until the real screenshots arrive */
.ui { height: 100%; padding: 3.4rem 1rem 1rem; font-size: 0.9375rem; line-height: 1.35; overflow: hidden; }
.ui--light { background: #F4EEE3; color: #1E1914; --u-soft: #65594B; --u-raised: #ECE3D3; --u-surface: #FBF8F2; --u-accent: #9C4220; --u-line: #D9CEBB; }
.ui--dark { background: #12100E; color: #F0E7D8; --u-soft: #B7AB96; --u-raised: #29241E; --u-surface: #1D1A16; --u-accent: #E58E62; --u-line: #3A332B; }
.ui__bar { display: flex; flex-direction: column; gap: 0.1rem; padding-bottom: 0.7rem; margin-bottom: 0.8rem; border-bottom: 1px solid var(--u-line); } /* taste-skill-ignore: the app's own navigation bar, inside a data-ui fragment */
.ui__title { font-size: 0.9375rem; font-weight: 600; }
.ui__greek { color: var(--u-accent); font-size: 0.9375rem; }
.ui__inter { display: flex; flex-wrap: wrap; gap: 0.45rem 0.5rem; }
.iw { display: inline-flex; flex-direction: column; }
.iw__g { font-family: var(--font-greek); }
.ui .iw__g { font-size: 0.9375rem; line-height: 1.15; }
.ui .iw__e { font-size: 0.8125rem; color: var(--u-soft); }
.ui__trans { margin-top: 0.9rem; padding: 0.6rem 0.7rem; background: var(--u-raised); border-radius: 8px; font-size: 0.8125rem; }
.ui__form { font-family: var(--font-greek); font-size: var(--step-lead); line-height: 1.1; margin-top: 0.4rem; }
.ui__lemma { font-size: 0.9375rem; }
.ui__gloss { color: var(--u-soft); }
.ui__chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.6rem; }
.ui .chip { font-size: 0.8125rem; background: var(--u-raised); }
.ui--dark .chip--case { color: #86B8D6; } .ui--light .chip--case { color: #2B5876; }
.ui--dark .chip--gender { color: #D096B6; } .ui--light .chip--gender { color: #7A3A5B; }
.ui .chip--pn { color: var(--u-soft); }
.ui__table { width: 100%; margin-top: 0.8rem; border-collapse: collapse; font-size: 0.9375rem; }
.ui__table caption { text-align: left; color: var(--u-soft); font-size: 0.8125rem; padding-bottom: 0.25rem; }
.ui__table th { text-align: left; font-weight: 500; color: var(--u-soft); padding: 0.28rem 0.3rem 0.28rem 0; font-size: 0.8125rem; }
.ui__table td { font-family: var(--font-greek); padding: 0.28rem 0.35rem; border-top: 1px solid var(--u-line); }
.ui__table td.on { outline: 2px solid var(--u-accent); outline-offset: -2px; border-radius: 4px; }
.ui__table--big { font-size: 0.9375rem; }
.ui__sub { margin-top: 0.8rem; color: var(--u-soft); font-size: 0.8125rem; }
.ui__pp { font-size: 0.9375rem; margin-top: 0.2rem; }
.ui__unit, .ui__shelf { padding: 0.55rem 0.7rem; margin-bottom: 0.45rem; background: var(--u-surface); border-radius: 10px; display: flex; flex-direction: column; }
.ui__unit-t { font-weight: 600; font-size: 0.9375rem; }
.ui__unit-g { color: var(--u-accent); font-size: 0.9375rem; }
.ui__count { color: var(--u-soft); font-size: 0.8125rem; }
.ui__shards { display: flex; gap: 3px; margin-top: 0.35rem; }
.ui__shards i { width: 0.85rem; height: 0.6rem; background: #D4743F; clip-path: polygon(10% 0, 90% 12%, 100% 70%, 60% 100%, 0 80%); }
.ui__shards i:nth-child(n+4) { background: var(--u-raised); }
.ui__sherds { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.8rem; }
.ui__sherd { display: grid; place-items: center; aspect-ratio: 1.2; background: #D4743F; color: #1E1914; font-size: 0.9375rem; clip-path: polygon(8% 6%, 70% 0, 100% 30%, 92% 92%, 30% 100%, 0 62%); }
.ui__sherd--out { background: #1E1914; color: #F3E7D3; }
.ui__coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem 0.4rem; }
.ui__coin { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; font-size: 0.8125rem; line-height: 1.2; }
.ui__coin i { width: 3rem; height: 3rem; border-radius: 50%; background: #A86B3C; }
.ui__coin--silver i { background: #B9B4AA; }
.ui__coin--gold i { background: #D6B061; }

/* ---------- Tap any word: square plate, spare text ---------- */
.plate { padding-block: var(--section) calc(var(--section) * 0.75); row-gap: 2.5rem; }
.plate__square { grid-column: 1 / span 6; aspect-ratio: 1; background: var(--raised); display: grid; place-items: center; position: relative; overflow: hidden; }
.plate__square .sherd { position: absolute; width: 84%; left: -18%; top: -10%; }
.plate__square > [data-parallax] { position: relative; width: min(18rem, 41%); margin-top: 8%; }
.plate__square .device { width: 100%; }
.plate__text { grid-column: 8 / span 5; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.tabs { display: flex; gap: 1.75rem; font-size: var(--step-body); }
.tabs [role="tab"] { color: var(--ink-soft); padding-block: 0.5rem; position: relative; transition: color var(--t-hover); }
.tabs [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease-out); }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tabs [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tabs [role="tab"]:hover { color: var(--ink); }
.plate__intro { margin-top: 2rem; max-width: 36ch; }
.tabs__panels { margin-top: 1.25rem; max-width: 36ch; min-height: 6.5em; }
.tabs__panel em { font-style: normal; color: var(--terracotta-ink); }
html:not(.js) .tabs { display: none; }
html:not(.js) .tabs__panel + .tabs__panel { margin-top: 0.8rem; }
.js .tabs__panel[data-hidden] { display: none; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.cell { background: var(--raised); padding: 1.1rem 1.25rem 1.2rem; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.15rem; }
.cell dt { font-size: var(--step-small); color: var(--ink-soft); }
.cell dd { font-size: var(--step-lead); line-height: 1.1; font-variant-numeric: lining-nums; }
.cell--ink { background: var(--glaze); color: var(--on-glaze); }
.cell--ink dt { color: var(--on-glaze-soft); }

/* sherds drawn in SVG */
.sherd polygon { fill: var(--figure); }
.sherd text { font-family: var(--font-greek); fill: var(--glaze); }
.sherd--glaze polygon { fill: #1F1915; }
.sherd--glaze text { fill: #D4743F; }
.sherd--raised polygon { fill: var(--faint); }
.sherd--raised text { fill: var(--surface); font-size: 22px; }

/* ---------- Made for reading: stacking sheets ---------- */
.sheets { padding-bottom: var(--section); }
.sheets__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; padding-bottom: 3rem; }
.sheets__head h2 { grid-column: 1 / span 6; }
.sheets__note { grid-column: 8 / span 5; max-width: 38ch; }
/* each sheet is one band shorter than the one under it, so all their bottoms meet and the stack leaves as one */
.sheet { position: sticky; top: calc(1rem + var(--k) * 4.5rem); height: calc(min(80svh, 48rem) - var(--k) * 4.5rem); overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sheet + .sheet { margin-top: 2rem; }
.sheet--surface { background: var(--raised); color: var(--ink); }
.sheet--terracotta { background: var(--terracotta); color: var(--on-accent); }
.sheet--glaze { background: var(--glaze); color: var(--on-glaze); }
.sheet__text { grid-column: 1 / span 5; padding: 1.2rem clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 2.25rem; }
.sheet__title { font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.02em; min-height: 2.1rem; }
.sheet__text p { max-width: 38ch; }
.sheet__pic { grid-column: 6 / span 7; margin-top: 4.5rem; display: flex; justify-content: center; align-items: flex-start; gap: clamp(0.75rem, 2vw, 2rem); padding-inline: 1rem; }
.sheet__pic .device { width: min(21rem, 70%); }
.sheet__pic--pair .device { width: min(18rem, 46%); }
.sheet__pic--pair .device + .device { margin-top: 3rem; }

/* ---------- the course: a row of sherds ---------- */
.course { padding-block: 0 var(--section); }
.course__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.course__head h2 { max-width: 16ch; }
.course__note { margin-top: 1.5rem; max-width: 48ch; }
.course__buttons { display: flex; gap: 0.5rem; }
html:not(.js) [data-js-only] { display: none; }
.square-btn { width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--glaze); color: var(--on-glaze); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover); }
.square-btn svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.2; }
.square-btn:hover { background: var(--terracotta); color: var(--on-accent); }
.square-btn:active { transform: scale(0.94); }
.track { height: 6px; background: var(--raised); margin-top: 2rem; overflow: hidden; }
.track__fill { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0.12)); }
.units { display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2.5rem var(--margin) 0.5rem; scroll-padding-inline: var(--margin); scrollbar-width: none; }
.units::-webkit-scrollbar { display: none; }
.units:focus-visible { outline-offset: -3px; }
.unit { flex: 0 0 17.5rem; scroll-snap-align: start; display: flex; flex-direction: column; }
.unit__title { font-size: var(--step-body); font-weight: 600; line-height: 1.2; }
.unit__greek { font-size: var(--step-body); color: var(--terracotta-ink); margin-top: 0.15rem; }
.unit__sum { margin-top: 0.6rem; font-size: var(--step-small); color: var(--ink-soft); line-height: 1.45; min-height: 4.4em; }
.unit__n { color: var(--ink); }
.free { color: var(--olive); font-weight: 600; }
.unit__pic { margin-top: var(--gap); aspect-ratio: 4 / 5; background: var(--raised); display: grid; place-items: center; transition: background-color 300ms; }
.unit__pic .sherd { width: 86%; transition: transform 500ms var(--ease-out); }
.unit:hover .unit__pic .sherd { transform: rotate(-4deg) scale(1.04); }
.unit--device .device { margin-top: 1.5rem; width: 15rem; }

/* ---------- texts: a giant word and filled bars ---------- */
.texts { padding-block: var(--section) 0; row-gap: 3rem; align-items: start; }
.texts__left { grid-column: 1 / span 5; position: sticky; top: 1.5rem; }
.giant { font-family: var(--font-greek); font-weight: 400; font-size: var(--step-giant); line-height: 0.8; letter-spacing: -0.02em; color: var(--terracotta-ink); margin-left: -0.04em; }
.texts__sub { margin-top: 1.5rem; }
.texts__note { margin-top: 1.25rem; max-width: 40ch; }
.texts__papyrus { margin-top: 2.5rem; }
.texts__papyrus-img { overflow: hidden; background: var(--raised); }
.texts__papyrus img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; mix-blend-mode: multiply; }
.texts__papyrus figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--ink-soft); max-width: 46ch; }
.texts__right { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 6px; }
.bar-row { background: var(--raised); }
.bar-row summary { display: grid; grid-template-columns: auto 1fr auto 1.5rem; align-items: baseline; gap: 0.9rem; min-height: 3.75rem; padding: 1rem 1.25rem 0.9rem; cursor: pointer; list-style: none; transition: background-color var(--t-hover); }
.bar-row summary::-webkit-details-marker { display: none; }
.bar-row:not([open]) .bar-row__panel { display: none; }
.bar-row summary::after { content: "+"; font-size: var(--step-lead); line-height: 0.6; justify-self: end; transition: transform 300ms var(--ease-out); }
.bar-row[open] summary::after { transform: rotate(45deg); }
.bar-row summary:hover { background: var(--faint); }
.bar-row__t { font-weight: 600; font-size: var(--step-body); }
.bar-row__g { color: var(--terracotta-ink); font-size: var(--step-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row__n { color: var(--ink-soft); font-size: var(--step-small); }
.bar-row__panel { padding: 0.25rem 1.25rem 1.5rem; }
.bar-row__panel > p { max-width: 52ch; font-size: var(--step-body); }
.bar-row__list { margin-top: 1rem; columns: 2; column-gap: 2rem; font-size: var(--step-small); }
.bar-row__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; break-inside: avoid; }
.bar-row__list li .nums { color: var(--ink-soft); white-space: nowrap; }
.texts__device { display: flex; justify-content: center; padding: 3rem 0 0; background: var(--raised); margin-top: 1.5rem; overflow: hidden; height: 30rem; }
.texts__device .device { width: 17rem; }

/* ---------- games: slips along the edge ---------- */
.games { position: relative; background: var(--glaze); color: var(--on-glaze); overflow: hidden; margin-top: var(--section); padding-top: var(--section); }
.games__photo { position: absolute; inset: -12% 0 -12%; }
.games__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(0.42) saturate(0.85); }
.games__text { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; }
.games__copy { grid-column: 3 / span 6; background: rgba(20, 15, 12, 0.78); padding: clamp(1.5rem, 3vw, 2.5rem); }
.games__p { margin-top: 1.1rem; font-size: var(--step-lead); line-height: 1.3; max-width: 40ch; }
.games__p2 { margin-top: 1rem; max-width: 40ch; }
.games__device { grid-column: 10 / span 3; display: flex; justify-content: center; }
.games__device .device { width: 15rem; }
.slips { position: relative; display: flex; gap: 0.75rem; align-items: flex-end; padding: 4.5rem var(--margin) 0; margin-bottom: -3rem; }
.slip { flex: 1 1 0; min-width: 0; height: max(calc(var(--h) + 3rem), 19rem); background: var(--paper); color: var(--ink); padding: 1.25rem 1.1rem; font-size: var(--step-small); line-height: 1.4; transform: rotate(var(--r)); transform-origin: 50% 100%; transition: transform 400ms var(--ease-out); overflow: hidden; }
.slip:hover { transform: rotate(0deg) translateY(-0.75rem); }
.slip__t { font-size: var(--step-body); font-weight: 600; }
.slip__g { display: block; font-weight: 400; color: var(--terracotta-ink); margin-bottom: 0.5rem; }
.slip__rule { color: var(--ink-soft); letter-spacing: 0.08em; overflow: hidden; white-space: nowrap; margin: 0.3rem 0 0.6rem; }
.slip__big { font-family: var(--font-greek); font-size: var(--step-verse); line-height: 1.1; }
.slip__opts { margin: 0.4rem 0 0.6rem; }
.slip__opts li { padding: 0.1rem 0; color: var(--ink-soft); }
.slip__opts li.ok { color: var(--olive); font-weight: 600; }
.slip__table { border-collapse: collapse; margin-bottom: 0.6rem; }
.slip__table th { text-align: left; font-weight: 500; color: var(--ink-soft); padding: 0.15rem 0.8rem 0.15rem 0; }
.slip__table td { font-family: var(--font-greek); font-size: var(--step-body); }
.slip__table td.gap { color: var(--terracotta-ink); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 0.25em; }
.slip__forms { font-size: var(--step-body); margin: 0.3rem 0 0.6rem; }
.slip__forms s { color: var(--terracotta-ink); }
.slip__pairs { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; margin: 0.3rem 0 0.6rem; }
.slip__pairs dt { font-size: var(--step-body); }
.slip__pairs dd { color: var(--ink-soft); }
.slip p + p { margin-top: 0.4rem; }

/* ---------- progress: a total and its receipt ---------- */
.xp { position: relative; background: var(--glaze); color: var(--on-glaze); padding-block: calc(var(--section) * 0.9) var(--section); }
.meander { position: absolute; left: 0; right: 0; top: 0; height: 1.5rem; background: var(--figure);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 22H24M0 2H24M2 22V6H18V18H8V10H14V14' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") 0 0 / 1.5rem 1.5rem repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 22H24M0 2H24M2 22V6H18V18H8V10H14V14' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E") 0 0 / 1.5rem 1.5rem repeat-x; }
.xp__grid { position: relative; }
.xp__left { grid-column: 1 / span 6; display: flex; flex-direction: column; }
.xp__note { margin-top: 1.25rem; max-width: 40ch; color: var(--on-glaze); }
.xp__total { margin-top: auto; padding-top: 3rem; font-size: var(--step-giant); line-height: 0.8; letter-spacing: -0.04em; color: var(--figure); }
.xp__caption { margin-top: 1rem; color: var(--on-glaze-soft); font-size: var(--step-body); }
.receipt { grid-column: 8 / span 5; max-width: 28rem; justify-self: end; width: 100%; background: var(--paper); color: var(--ink); padding: 1.75rem 1.6rem 3rem; font-size: var(--step-small);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); }
.receipt__head { font-size: var(--step-lead); line-height: 1.1; }
.receipt__groups { margin-top: 1rem; }
.receipt__group + .receipt__group { margin-top: 0.9rem; }
.receipt__group ul { padding: 0; list-style: none; }
.receipt__name { font-weight: 600; }
.receipt__group li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.2rem 0; }
.receipt__group li span:first-child { max-width: 72%; }
.receipt__group li i { flex: 1; border-bottom: 4px dotted var(--faint); transform: translateY(-0.25rem); min-width: 1rem; }
.receipt__total { display: flex; justify-content: space-between; margin-top: 1.25rem; background: var(--glaze); color: var(--on-glaze); padding: 0.7rem 0.9rem; font-weight: 600; font-size: var(--step-body); }
.ladder { position: relative; margin-top: var(--section); align-items: center; row-gap: 3rem; }
.ladder__device { grid-column: 1 / span 4; display: flex; justify-content: center; }
.ladder__text { grid-column: 6 / span 7; }
.ladder__title { font-size: var(--step-lead); line-height: 1.15; }
.ladder__text > p { margin-top: 1rem; max-width: 52ch; }
.ladder__list { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; }
.ladder__list .iw__g { font-size: var(--step-body); line-height: 1.2; color: var(--on-glaze); transition: color var(--t-hover); }
.ladder__list .iw__e { font-size: var(--step-small); color: var(--on-glaze-soft); }
.ladder__list .iw:hover .iw__g { color: var(--figure); }

/* ---------- pricing: the ticket ---------- */
.pricing { background: var(--terracotta); color: var(--on-accent); padding-block: var(--section); }
.pricing__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.pricing__head h2 { grid-column: 1 / span 6; }
.pricing__note { grid-column: 8 / span 5; max-width: 38ch; font-size: var(--step-lead); line-height: 1.3; }
.ticket { --notch: 1.75rem; position: relative; display: grid; grid-template-columns: 7fr 3fr; width: min(72rem, calc(100% - 2 * var(--margin))); margin: 3.5rem auto 0; background: var(--paper); color: var(--ink); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 70%; width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--terracotta); transform: translateX(-50%); }
.ticket::before { top: calc(var(--notch) / -2); }
.ticket::after { bottom: calc(var(--notch) / -2); }
.ticket__main { padding: clamp(1.75rem, 3.5vw, 2.75rem); }
.ticket__title { font-size: var(--step-head); line-height: 1; letter-spacing: -0.025em; }
.ticket__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.25rem; }
.ticket__label { font-weight: 600; font-size: var(--step-body); }
.ticket__cols ul { margin-top: 0.6rem; padding-left: 1.1rem; font-size: var(--step-body); }
.ticket__cols li + li { margin-top: 0.45rem; }
.ticket__cols li::marker { color: var(--terracotta-ink); }
.ticket__stub { border-left: 6px dotted var(--terracotta); padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.4vw, 2rem); display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.ticket__plan { font-weight: 600; font-size: var(--step-body); }
.ticket__price { font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.03em; margin-top: 0.3rem; }
.ticket__per { color: var(--ink-soft); }
.plans { margin: 1.5rem 0; text-align: left; font-size: var(--step-small); }
.plans li { display: grid; grid-template-columns: 1fr auto; column-gap: 0.75rem; padding: 0.35rem 0; }
.plans .plan__per { grid-column: 1 / -1; color: var(--ink-soft); font-size: var(--step-small); }
.ticket__stub .soon, .ticket__stub .badge { margin-top: auto; }
.pricing__legal { margin: 2.5rem auto 0; width: min(72rem, calc(100% - 2 * var(--margin))); padding: 0; font-size: var(--step-small); line-height: 1.5; }
.pricing__legal span { display: block; max-width: 75ch; }
.pricing__legal a { text-underline-offset: 0.2em; }

/* ---------- questions as reading text ---------- */
.faq { padding-block: var(--section); row-gap: 2rem; }
.faq__title { grid-column: 1 / span 3; }
.faq__text { grid-column: 5 / span 8; columns: 2; column-gap: 3.5rem; font-size: var(--step-body); line-height: 1.55; }
.qa { break-inside: avoid; margin-bottom: 1.25rem; }
.qa strong { font-weight: 600; }

/* ---------- the reply card ---------- */
.reply { position: relative; background: var(--glaze); color: var(--on-glaze); overflow: hidden; padding-top: var(--section); min-height: 80svh; display: flex; align-items: flex-end; }
.reply__grid { position: relative; width: 100%; align-items: end; }
.reply__p { grid-column: 1 / span 4; font-size: var(--step-lead); line-height: 1.3; margin-bottom: 4rem; }
.reply__card { grid-column: 6 / span 7; justify-self: center; width: min(44vw, 40rem); aspect-ratio: 7 / 5; background: var(--paper); color: var(--ink); padding: clamp(2rem, 4vw, 3rem); margin-bottom: -3.75rem; transform: rotate(2deg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1rem; }
.reply__title { font-size: var(--step-head); line-height: 1; letter-spacing: -0.025em; }
.reply__card p { max-width: 34ch; }
.reply__card .soon, .reply__card .badge { margin-top: 0.75rem; }
.figure { position: absolute; fill: var(--figure); }
.reply__amphora { width: 6rem; height: 10rem; left: 6%; top: 10%; }
.reply__kylix { width: 11rem; height: 4.5rem; left: 22%; top: 24%; fill: var(--glaze-2); }

/* ---------- the footer: the back of the card ---------- */
.foot { background: var(--glaze); padding: 4.75rem var(--margin) 3rem; }
.foot__card { position: relative; max-width: 75rem; margin: 0 auto; background: var(--paper); color: var(--ink); padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem) 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
.foot__card::before { content: ""; position: absolute; left: 0; right: 0; top: -2.4rem; height: 2.5rem; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='40'%3E%3Cpath d='M0 40 A50 40 0 0 1 100 40 Z'/%3E%3C/svg%3E") 0 100% / 6.25rem 2.5rem repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='40'%3E%3Cpath d='M0 40 A50 40 0 0 1 100 40 Z'/%3E%3C/svg%3E") 0 100% / 6.25rem 2.5rem repeat-x; }
.foot__sign { font-size: var(--step-head); line-height: 1; }
.foot__msg p:not(.foot__sign):not(.soon) { margin-top: 1rem; max-width: 36ch; }
.foot__addr { display: flex; justify-content: space-between; gap: 1.5rem; }
.foot__links { display: flex; flex-direction: column; gap: 0.75rem; font-size: var(--step-body); }
.foot__links a { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
.foot__links a:hover { color: var(--terracotta-ink); }
.stamp { order: 2; flex: none; width: 5.5rem; padding: 6px; background: var(--surface); transform: rotate(3deg); align-self: flex-start; }
.stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.foot__imprint { grid-column: 1 / -1; font-size: var(--step-small); line-height: 1.5; color: var(--ink-soft); text-align: center; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1.5rem; }
.foot__imprint p { max-width: 90ch; margin-inline: auto; }
.foot__imprint a { text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- text pages ---------- */
.doc__head { padding-block: clamp(3rem, 7vw, 6rem) 3rem; row-gap: 1.5rem; align-items: end; }
.doc__title { grid-column: 1 / span 7; }
.doc__lead { grid-column: 8 / span 5; max-width: 34ch; }
.band { display: flex; gap: 0; height: clamp(10rem, 26vw, 22rem); overflow: hidden; }
.band__cell { flex: var(--grow) 1 0; min-width: 0; overflow: hidden; background: var(--glaze); }
.band__cell img { width: 100%; height: 100%; object-fit: cover; }
.doc { padding-block: 2rem var(--section); }
.doc__sec { padding-block: 2.25rem; row-gap: 0.75rem; }
.doc__h { grid-column: 1 / span 4; font-size: var(--step-lead); line-height: 1.15; }
.doc__body { grid-column: 5 / span 7; max-width: 62ch; }
.doc__body p + p, .doc__body ul + p, .doc__body p + ul { margin-top: 0.9rem; }
.doc__body ul { padding-left: 1.2rem; }
.doc__body li + li { margin-top: 0.35rem; }
.doc__body a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; color: var(--terracotta-ink); }
.doc__mail { font-size: var(--step-lead); }
.lost { min-height: 60svh; display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; padding-block: var(--section); }
.lost a { text-decoration: underline; }

/* ---------- tablet and phone ---------- */
@media (max-width: 63.99em) {
  .hero__shard { grid-column: 1 / span 12; }
  .hero__card { grid-column: 1 / span 12; max-width: 30rem; margin-top: 1rem; }
  .hero__stage { display: block; padding-top: 5.5rem; }
  .plate__square { grid-column: 1 / span 12; }
  .plate__text { grid-column: 1 / span 12; }
  .sheet__text { grid-column: 1 / span 12; }
  .sheet__pic { grid-column: 1 / span 12; margin-top: 0; padding-top: 1rem; }
  .texts__left, .texts__right { grid-column: 1 / span 12; position: static; }
  .games__copy { grid-column: 1 / span 8; }
  .slips { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0; margin-bottom: -2rem; scrollbar-width: none; align-items: flex-end; }
  .slips::-webkit-scrollbar { display: none; }
  .slip { flex: 0 0 38vw; scroll-snap-align: center; height: auto; min-height: 18rem; padding-bottom: 3.5rem; }
  .games__device { grid-column: 9 / span 4; }
  .xp__left { grid-column: 1 / span 6; }
  .receipt { grid-column: 7 / span 6; }
  .ladder__device { grid-column: 1 / span 5; }
  .ladder__text { grid-column: 6 / span 7; }
  .pricing__head h2, .pricing__note { grid-column: 1 / span 12; }
  .pricing__note { margin-top: 1rem; }
  .faq__title, .faq__text { grid-column: 1 / span 12; }
  .reply__p { grid-column: 1 / span 12; margin-bottom: 2rem; max-width: 30ch; }
  .reply__card { grid-column: 1 / span 12; width: min(90%, 36rem); }
  .doc__title, .doc__lead, .doc__h, .doc__body { grid-column: 1 / span 12; }
}
@media (max-width: 47.99em) {
  main p, main h2, main h3, .hero__shard h1 { max-width: none; }
  .sheets__head h2, .sheets__note { grid-column: 1 / span 12; }
  .sheets__note { margin-top: 1.25rem; }
  .xp__left { grid-column: 1 / span 12; }
  .receipt { grid-column: 1 / span 12; justify-self: start; margin-top: 3rem; }
  .hero__shard { clip-path: polygon(0 1.2%, 12% 0, 46% 0.8%, 80% 0, 100% 1.4%, 99% 40%, 100% 76%, 98.6% 100%, 64% 99.2%, 30% 100%, 0 99%, 1% 52%); }
  .verse__line { column-gap: 0.28em; row-gap: 0.45rem; }
  .hero__owl { display: none; }
  .tabs { gap: 1.25rem; font-size: var(--step-body); }
  .cells { grid-template-columns: 1fr; }
  .plate__square > [data-parallax] { width: 52%; margin-top: 22%; }
  .sheet { top: calc(0.75rem + var(--k) * 3.25rem); height: calc(86svh - var(--k) * 3.25rem); }
  .sheet__title { font-size: var(--step-body); min-height: 1.75rem; }
  .sheet__text { padding-top: 0.85rem; gap: 1rem; }
  .sheet__pic .device { width: min(15rem, 66%); margin-bottom: -22%; }
  .sheet__pic--pair .device { width: 44%; }
  .course__head { flex-direction: column; align-items: flex-start; }
  .course__buttons { display: none; }
  .units { gap: 1rem; }
  .unit { flex-basis: 72vw; }
  .unit__pic { margin-top: calc(var(--gap) * 0.45); }
  .bar-row summary { grid-template-columns: 1fr auto 1.25rem; padding-inline: 1rem; }
  .bar-row__g { display: none; }
  .bar-row__list { columns: 1; }
  .texts__device { height: 24rem; }
  .games__copy, .games__device { grid-column: 1 / span 12; }
  .games__device { margin-top: 2.5rem; }
  .slip { flex-basis: 64vw; }
  .receipt { padding-inline: 1.1rem; }
  .ladder__device, .ladder__text { grid-column: 1 / span 12; }
  .ladder__list .iw__g { font-size: var(--step-body); }
  .ticket { grid-template-columns: 1fr; }
  .ticket::before, .ticket::after { display: none; }
  .ticket__stub { position: relative; }
  .ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; top: calc(var(--notch) / -2 - 3px); width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--terracotta); }
  .ticket__stub::before { left: calc(var(--notch) / -2); }
  .ticket__stub::after { right: calc(var(--notch) / -2); }
  .ticket__cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .ticket__stub { border-left: 0; border-top: 6px dotted var(--terracotta); }
  .ticket__price { font-size: var(--step-display); }
  .faq__text { columns: 1; }
  .reply__card { aspect-ratio: auto; transform: rotate(1deg); padding-bottom: 4.5rem; }
  .reply__kylix { display: none; }
  .reply__amphora { width: 3.5rem; height: 6rem; left: auto; right: 6%; top: 6%; }
  .foot__card { grid-template-columns: 1fr; }
  .foot__card::before { -webkit-mask-size: 3.6rem 1.6rem; mask-size: 3.6rem 1.6rem; top: -1.55rem; height: 1.6rem; }
  .stamp { width: 4rem; }
  .band__cell:nth-child(n+3) { display: none; }
}

/* ---------- motion: entrances, never hiding content without script ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .slip[data-reveal] { transform: translateY(60px) rotate(var(--r)); }
  .js .slip[data-reveal].is-in { transform: rotate(var(--r)); }
  .js .slip[data-reveal].is-in:hover { transform: rotate(0deg) translateY(-0.75rem); }
  .js .reply__card[data-reveal] { transform: translateY(80px) rotate(6deg); transition-duration: 900ms, 1300ms; }
  .js .reply__card[data-reveal].is-in { transform: rotate(2deg); }
  .js .hero__shard { animation: rise-in 900ms var(--ease-out) both; }
  .js .hero__shard h1 { animation: rise-in 900ms 120ms var(--ease-out) both; }
  .js .hero__photo img { animation: settle 2400ms var(--ease-out) both; }
  /* until the stage decides, the glosses wait; resting (phone, tablet, a failed CDN) they arrive word by word */
  .js .hero .word__e { opacity: 0; }
  .js .hero.is-live .word__e { opacity: 1; }
  .js .hero.is-rest .word__e { animation: gloss-in 600ms var(--ease-out) both; animation-delay: calc(var(--n) * 90ms + 300ms); }
  .js .hero.is-rest .hero__card { animation: rise-in 900ms 1300ms var(--ease-out) both; }
  .js [data-reveal].unit__pic, .js .bar-row { transition: background-color var(--t-hover); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes gloss-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* the live hero scene (desktop, motion allowed): the stage holds while the glosses arrive and the card opens */
.hero.is-live .hero__stage { padding-block: 5rem 2rem; }
.hero.is-live .word__mark { display: block; transform-origin: left; }
.hero.is-live .word--key[aria-pressed="true"]::after { display: none; }

/* ---------- the scroll stage (from tasteskill's scenes/stage.css) ----------
   Without .is-live (no script, a failed CDN, reduced motion, phones and tablets) a scene is an ordinary section
   showing its finished composition. With it, the section is (hold + 1) screens tall and the stage sticks. */
.scene { position: relative; }
.scene > .scene-stage { position: relative; }
html.js .scene.is-live { height: calc((var(--hold, 2) + 1) * 100svh); }
html.js .scene.is-live > .scene-stage { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: clip; contain: layout paint; }
.scene.is-live [data-move] { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  html.js .scene.is-live { height: auto; }
  html.js .scene.is-live > .scene-stage { position: relative; height: auto; }
}
