/* AQUILA: Legion Tactics. The game's own look: quiet marble, ink and paper, one typeface, the scene's colour. */
@font-face { font-family: Cinzel; font-weight: 400; font-display: swap; src: url(fonts/cinzel-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Cinzel; font-weight: 600; font-display: swap; src: url(fonts/cinzel-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Cinzel; font-weight: 700; font-display: swap; src: url(fonts/cinzel-latin-700-normal.woff2) format('woff2'); }

:root {
  --ink: #2e2724;
  --paper: #f7f1e6;
  --scene: #f3ebd8;
  --sand: #ead9b9;
  --red: #cf5b45;
  --gold: #e0b04f;
  --gold-ink: #b7852a;
  --slate: #37444b;
  --font: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif;
  --wrap: 1120px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--scene); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; letter-spacing: .02em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 4px; }
p { margin: 0 0 1em; }
b { font-weight: 700; }
section { padding: 88px 22px; }

/* ---------- ornaments, as in the game ---------- */
.sprig { display: inline-block; flex: none; width: 44px; aspect-ratio: 2 / 1; background: currentColor; opacity: .8; -webkit-mask: url(img/sprig.svg) center / contain no-repeat; mask: url(img/sprig.svg) center / contain no-repeat; }
.sprig.r { transform: scaleX(-1); }
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .5em; text-indent: .5em; }
.rule span { opacity: .7; white-space: nowrap; }
.head { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 10px; }
.head h2 { margin: 0; font-size: clamp(19px, 5.4vw, 30px); font-weight: 400; letter-spacing: .3em; text-indent: .3em; line-height: 1.2; text-align: center; }
.head .sprig { width: clamp(30px, 9vw, 52px); }
.wreath { position: relative; width: 64px; height: 64px; display: grid; place-items: center; font-size: 15px; font-weight: 600; letter-spacing: .08em; margin: 0 auto 6px; }
.wreath i { position: absolute; inset: 0; background: currentColor; opacity: .8; -webkit-mask: url(img/wreath.svg) center / contain no-repeat; mask: url(img/wreath.svg) center / contain no-repeat; }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .5em; text-indent: .5em; opacity: .66; text-align: center; margin: 0 0 18px; }
.kicker.rare { opacity: 1; color: var(--gold-ink); }
.label { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .42em; text-indent: .42em; text-align: center; opacity: .72; }
.sub { max-width: 620px; margin: 0 auto 44px; text-align: center; font-size: 15.5px; opacity: .86; }
.brand { margin: 0; font-weight: 400; font-size: clamp(46px, 15vw, 112px); letter-spacing: .34em; text-indent: .34em; line-height: 1; text-align: center; }

/* ---------- the bar ---------- */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--st)) 16px 10px; transition: background .3s, box-shadow .3s, transform .35s; }
.bar.on { background: rgba(243, 235, 216, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(46, 39, 36, .08); }
.bar .mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .34em; opacity: 0; transition: opacity .3s; }
.bar.on .mark { opacity: 1; }
.bar .mark img { width: 28px; height: 28px; border-radius: 22.4%; }
.bar-links { display: flex; align-items: center; gap: 4px; }
.bar-links a { text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .26em; padding: 8px 10px; opacity: .78; display: none; }
.bar-links a.pill { display: block; opacity: 1; background: var(--ink); color: var(--scene); border-radius: 999px; padding: 8px 16px 8px 19px; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(68px + var(--st)) 18px calc(14px + var(--sb)); text-align: center; position: relative; overflow-x: hidden; overflow-x: clip; }
.hero .kicker { margin-bottom: 12px; font-size: clamp(9px, 2.6vw, 11px); letter-spacing: clamp(.22em, 1.1vw, .5em); text-indent: 0; white-space: nowrap; }
.hero .rule { margin-top: 14px; }
/* the opening fits one screen: the turning scene takes what the words leave */
.stage { position: relative; width: min(94vw, 720px, max(170px, calc((100svh - var(--rest, 476px) - var(--later, 46px)) * 1.171))); aspect-ratio: 1500 / 1281; margin: 10px auto 6px; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.stage.held { cursor: grabbing; }
.stage .sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(10px) scale(.985); -webkit-user-drag: none; }
.stage .sc.on { opacity: 1; transform: none; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.stage .spin { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(transparent, #000 4%, #000 96%, transparent); -webkit-mask-composite: source-in; mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent), linear-gradient(transparent, #000 4%, #000 96%, transparent); mask-composite: intersect; }
.stage.turning .spin { opacity: 1; }
.stage.turning .sc { opacity: 0; transition: none; }
/* the dust drifts by moving two tiled layers, whole tiles at a time, so nothing is repainted as it goes */
.dust { position: absolute; inset: -10% 0; pointer-events: none; overflow: hidden; opacity: .55; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.dust::before, .dust::after { content: ''; position: absolute; top: 0; right: 0; will-change: transform; animation: drift 26s linear infinite; }
.dust::before { left: -140px; bottom: -320px; background: radial-gradient(circle, rgba(207, 91, 69, .5) 0 1px, transparent 1.6px) 0 0 / 140px 160px; --dx: 140px; --dy: -320px; }
.dust::after { left: -90px; bottom: -220px; background: radial-gradient(circle, rgba(46, 39, 36, .25) 0 1px, transparent 1.5px) 40px 60px / 90px 110px; --dx: 90px; --dy: -220px; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--dx), var(--dy), 0); } }
.lead { max-width: 470px; margin: 6px auto 16px; font-size: 15.5px; line-height: 1.55; }
.store { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store .soon { font-size: 10.5px; font-weight: 600; letter-spacing: .42em; text-indent: .42em; color: var(--gold-ink); }
.store .badge { display: block; border-radius: 9px; transition: transform .15s; }
.store .badge img { width: 150px; height: auto; }
.store .badge:active { transform: scale(.96); }
.store .price { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: .32em; text-indent: .32em; opacity: .7; }
/* Android and Steam as plain text: Google Play has no coming-soon badge, and Steam's logo may not carry other words */
.later { display: flex; gap: 8px; margin-top: 6px; }
.later .plat { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border: 1px solid rgba(46, 39, 36, .55); border-radius: 9px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-indent: .18em; line-height: 1.1; }
.later .plat small { font-size: 7.5px; letter-spacing: .24em; text-indent: .24em; color: var(--gold-ink); margin-bottom: 2px; }
.store.big .later .plat { height: 46px; padding: 0 18px; font-size: 15px; }
.store.big .later .plat small { font-size: 8.5px; }

/* ---------- the hook ---------- */
.hook { background: var(--ink); color: var(--paper); text-align: center; padding-top: 96px; padding-bottom: 96px; }
.hook .ask { max-width: 760px; margin: 0 auto 10px; font-size: clamp(24px, 7vw, 50px); line-height: 1.22; letter-spacing: .04em; }
.hook .answer { margin: 0 auto 56px; font-size: clamp(15px, 4vw, 20px); letter-spacing: .34em; text-indent: .34em; color: var(--gold); font-weight: 600; }
.numerals { max-width: 640px; margin: 0 auto; }
.numerals > p { font-size: 15.5px; opacity: .88; margin: 26px auto 22px; max-width: 520px; }
.numerals b { color: var(--gold); }
.pair-cards { display: flex; justify-content: center; gap: 12px; }
.pair-cards .cd { width: min(28vw, 150px); border-radius: 9%; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transition: transform .3s; }
.pair-cards .cd:nth-child(1) { transform: rotate(-6deg) translateY(8px); }
.pair-cards .cd:nth-child(3) { transform: rotate(6deg) translateY(8px); }
.toggle { display: inline-flex; gap: 10px; align-items: center; min-height: 46px; padding: 0 26px 0 30px; border-radius: 999px; border: 1.2px solid rgba(247, 241, 230, .5); font-size: 12px; font-weight: 600; letter-spacing: .34em; transition: background .2s, color .2s; }
.toggle b { color: var(--gold); min-width: 5.4em; text-align: left; }
.toggle:hover { background: rgba(247, 241, 230, .08); }
.cd.flip { animation: cardflip .5s ease; }
@keyframes cardflip { 50% { transform: rotateY(90deg); } }

/* ---------- phones ---------- */
.phone { position: relative; margin: 0; width: 100%; max-width: 300px; border-radius: 42px; padding: 9px; background: #1d1917; box-shadow: 0 30px 60px -24px rgba(46, 39, 36, .5), inset 0 0 0 1.5px #3a332f; }
.phone > img, .phone > video { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 34px; background: var(--scene); }
.play-grid .phone > video { aspect-ratio: 1 / 2; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -34px; font-size: 10.5px; font-weight: 600; letter-spacing: .36em; text-indent: .36em; text-align: center; opacity: .62; }
.phone.sm { max-width: 220px; border-radius: 34px; padding: 7px; }
.phone.sm > img { border-radius: 28px; }

/* ---------- the pieces, turning as they pass: each a sheet of frames the game rendered, shown one cell at a time ---------- */
.tp { position: relative; display: block; overflow: hidden; }
.tp img { position: absolute; left: 0; top: 0; max-width: none; height: auto; -webkit-user-drag: none; will-change: transform; }
.tp[data-cols="6"] img { width: 600%; }
.tp[data-cols="5"] img { width: 500%; }
/* the row runs the screen's width; each frame leaves room for a sword or a shadow, so neighbours overlap a little */
.legion { --t: min(100vw, 760px); position: relative; left: 50%; width: var(--t); margin: -26px 0 40px calc(var(--t) / -2); display: flex; justify-content: center; }
.legion .tp { flex: none; width: calc(var(--t) * .25); margin: 0 calc(var(--t) * -.0318); aspect-ratio: 210 / 163; }
.legion .tp:first-child { margin-left: 0; }
.legion .tp:last-child { margin-right: 0; }
.moving .legion .tp { opacity: 0; transform: translateY(26px) scale(.9); transition: opacity .55s ease, transform .75s cubic-bezier(.3, 1.45, .5, 1); transition-delay: calc(var(--k, 0) * 110ms); }
.moving .legion.in .tp { opacity: 1; transform: none; }

/* ---------- how it plays ---------- */
.play-grid .phone { max-width: min(300px, calc((100svh - 104px) * .462)); }
.play-grid { display: grid; gap: 64px; justify-items: center; max-width: var(--wrap); margin: 0 auto; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; max-width: 560px; }
.rules li { display: grid; grid-template-columns: 50px 1fr; gap: 16px; align-items: start; }
.rules .wr { position: relative; width: 50px; height: 50px; display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 13px; letter-spacing: .06em; }
.rules .wr::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: .75; -webkit-mask: url(img/wreath.svg) center / contain no-repeat; mask: url(img/wreath.svg) center / contain no-repeat; }
.rules h3 { margin: 4px 0 4px; font-size: 13.5px; font-weight: 600; letter-spacing: .3em; }
.rules p { margin: 0; font-size: 15px; opacity: .88; }
/* on a phone, one screen at a time, centred; the next sits fully off the screen, shadow and all, until swiped in */
.shots { --pw: min(64vw, 250px, calc((100svh - 104px) * .462)); --edge: calc((100vw - var(--pw)) / 2); position: relative; display: flex; gap: calc(var(--edge) + 40px); margin: 100px -22px 0; padding: 10px var(--edge) 70px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.shots::-webkit-scrollbar { display: none; }
.shots .phone { flex: 0 0 var(--pw); max-width: var(--pw); scroll-snap-align: center; scroll-snap-stop: always; }
.shots + .dots { margin: 0; }
.words { max-width: 860px; margin: 64px auto 0; }
.kw { list-style: none; margin: 0; padding: 26px 22px; display: grid; gap: 10px 26px; background: var(--ink); color: var(--paper); border-radius: 18px; font-size: 13.5px; line-height: 1.5; letter-spacing: .04em; }
.kw li { opacity: .9; }
.kw.tight { padding: 22px; font-size: 13px; }

/* the game's keyword colours */
.k { font-weight: 700; letter-spacing: .12em; font-size: .93em; margin-right: .35em; }
.k + span { opacity: .84; }
.k.y { color: #f0c463; } .k.g { color: #a5d6ae; } .k.b { color: #a4cfe8; } .k.s { color: #d3dbe0; } .k.m { color: #d8cdbd; } .k.o { color: #f0a868; }

/* ---------- the road ---------- */
.play { padding-bottom: 32px; }
.road { padding-top: 40px; background: linear-gradient(180deg, var(--scene), #efe2c8 40%, var(--scene)); }
.rail-wrap { position: relative; max-width: var(--wrap); margin: 0 auto; }
.rail { --sw: min(calc(100vw - 40px), 420px); --edge: calc((100vw - var(--sw)) / 2); position: relative; display: flex; gap: calc(var(--edge) + 40px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--edge) 22px; margin: 0 -22px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
/* each stop is one screen: the battle beside its number, name and the two cards, the story underneath; the phone shrinks with the screen's height */
.stop { --pw: clamp(104px, calc((100svh - 222px) * .462), 47%); flex: 0 0 var(--sw); scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-columns: var(--pw) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr auto; grid-template-areas: "ph ." "ph wr" "ph ti" "ph vs" "ph ." "tale tale"; column-gap: 14px; align-items: center; text-align: center; }
.stop .phone { grid-area: ph; max-width: none; border-radius: clamp(20px, calc(var(--pw) * .14), 36px); padding: clamp(5px, calc(var(--pw) * .03), 8px); }
.stop .phone > img { border-radius: clamp(16px, calc(var(--pw) * .115), 30px); }
.stop .cap { display: contents; }
.stop .wreath { grid-area: wr; width: 52px; height: 52px; font-size: 14px; margin: 0 auto 2px; }
.stop h3 { grid-area: ti; margin: 0 0 12px; font-size: clamp(14px, 4.3vw, 19px); font-weight: 400; letter-spacing: .2em; text-indent: .2em; line-height: 1.3; }
.stop .tale { grid-area: tale; align-self: start; font-size: 14px; line-height: 1.55; opacity: .86; min-height: 4.65em; max-width: 380px; margin: 14px auto 0; }
.vs { display: flex; justify-content: center; gap: 8px; }
.vs .cd { width: 96px; border-radius: 9%; box-shadow: 0 8px 18px rgba(46, 39, 36, .18); cursor: pointer; }
.stop .vs { grid-area: vs; }
.stop .vs .cd { width: min(92px, calc(50% - 4px)); }
.nudge { display: none; position: absolute; top: calc(50% - 35px); z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--scene); place-items: center; transition: opacity .2s, transform .12s; }
.nudge svg { width: 22px; }
.nudge:active { transform: scale(.92); }
.nudge[disabled] { opacity: .18; cursor: default; }
.nudge.prev { left: 0; } .nudge.next { right: 0; }
.dots { display: flex; justify-content: center; gap: 9px; margin: 4px 0 70px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .2; transition: opacity .25s, transform .25s; }
.dots i.on { opacity: .85; transform: scale(1.25); }
.places { list-style: none; margin: 0 auto; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.places li { background: var(--paper); border-radius: 18px; padding: 16px 14px 18px; text-align: center; box-shadow: 0 1px 0 rgba(46, 39, 36, .06); }
.places .tp { width: 76px; margin: 0 auto 4px; aspect-ratio: 200 / 240; }
.places h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; }
.places p { margin: 0; font-size: 13.5px; line-height: 1.5; opacity: .82; }
@media (max-width: 359px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } .places li { padding: 16px 8px 18px; } .places h4 { font-size: 11.5px; letter-spacing: .12em; text-indent: .12em; } }

/* ---------- wide picture ---------- */
.wide { margin: 0; overflow: hidden; }
.wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- the cards ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 2px; margin: 0 auto 26px; max-width: 760px; }
.tabs button { min-height: 40px; padding: 0 13px; font-size: 11px; font-weight: 600; letter-spacing: .28em; text-indent: .28em; opacity: .55; border-radius: 999px; transition: opacity .2s, background .2s, color .2s; }
.tabs button small { font-size: .9em; opacity: .7; letter-spacing: .1em; }
.tabs button[aria-selected=true] { opacity: 1; background: var(--ink); color: var(--scene); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; max-width: 980px; margin: 0 auto; }
/* a chosen card is ringed in gold where it sits; nothing moves, so a row stays a row */
.grid .cd, .leg-grid .cd { width: 100%; aspect-ratio: 5 / 7; border-radius: 9% / 6.43%; cursor: pointer; transition: box-shadow .2s, opacity .3s; box-shadow: 0 6px 16px rgba(46, 39, 36, .1); }
.grid .cd.sel { box-shadow: 0 0 0 2.5px var(--gold-ink), 0 0 0 5px rgba(224, 176, 79, .35), 0 10px 22px rgba(46, 39, 36, .18); }
@media (hover: hover) { .grid .cd:not(.sel):hover { box-shadow: 0 12px 26px rgba(46, 39, 36, .2); } }
.grid .cd.enter { animation: dealt .42s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--k, 0) * 22ms); }
@keyframes dealt { from { opacity: 0; transform: translateY(14px) rotate(3deg); } }

/* the ink bubble: every description in the game */
.bubble { background: var(--ink); color: var(--paper); border-radius: 14px; padding: 14px 18px 13px; text-align: center; font-size: 14px; line-height: 1.6; letter-spacing: .04em; }
.bubble h3 { margin: 0 0 3px; font-size: 13.5px; font-weight: 600; letter-spacing: .3em; text-indent: .3em; }
.bubble h3 em { font-style: normal; color: var(--gold); }
.bubble p { margin: 0; }
.bubble .lore { opacity: .6; font-size: .92em; }
.bubble .stats { margin-top: 6px; font-size: .86em; letter-spacing: .2em; opacity: .7; }
.read { position: sticky; bottom: calc(14px + var(--sb)); z-index: 5; max-width: 520px; margin: 28px auto 0; min-height: 84px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 16px 40px -10px rgba(46, 39, 36, .45); }
.read.idle { visibility: hidden; }
.tip { position: fixed; z-index: 40; pointer-events: none; max-width: 270px; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s; }
.tip.on { opacity: 1; transform: none; }

/* ---------- legends ---------- */
.legends { background: radial-gradient(120% 80% at 50% 0%, #3b322d, var(--ink) 60%); color: var(--paper); }
.legends .kicker.rare { color: var(--gold); }
.leg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 760px; margin: 0 auto; }
.leg-grid .cd { box-shadow: none; }
.leg-grid .shine { position: relative; border-radius: 9% / 6.43%; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: box-shadow .2s; }
.leg-grid .shine.sel { box-shadow: 0 0 0 2.5px var(--gold), 0 0 18px 2px rgba(224, 176, 79, .45), 0 10px 30px rgba(0, 0, 0, .35); }
@media (hover: hover) { .leg-grid .shine:not(.sel):hover { box-shadow: 0 0 0 1.5px rgba(224, 176, 79, .5), 0 10px 30px rgba(0, 0, 0, .35); } }
.leg-grid .shine::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 260%; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 250, 230, .3) 50%, transparent 60%); transform: translate3d(-100%, 0, 0); will-change: transform; animation: sheen 5s ease-in-out infinite; animation-delay: calc(var(--k, 0) * .4s); }
@keyframes sheen { 0%, 55% { transform: translate3d(-100%, 0, 0); } 100% { transform: translate3d(20%, 0, 0); } }
/* one size for every legend: the name keeps its place and the health and attack sit on the bottom line */
.legends .bubble.read { background: var(--paper); color: var(--ink); max-width: 520px; justify-content: flex-start; }
.legends .bubble.read .stats { margin-top: auto; padding-top: 6px; }
.legends .bubble.read .k.y { color: #a8741a; } .legends .bubble.read .k.g { color: #3f8a55; } .legends .bubble.read .k.b { color: #3f7fa8; } .legends .bubble.read .k.s { color: #5b6d78; }
.epi { display: grid; gap: 40px; justify-items: center; max-width: 860px; margin: 70px auto 0; }
.epi .phone { background: #0f0d0c; max-width: min(220px, calc((100svh - 104px) * .462)); }
.epi .kw { background: rgba(247, 241, 230, .06); }

/* ---------- after Rome ---------- */
.two { display: grid; gap: 36px; max-width: 860px; margin: 26px auto 0; text-align: center; }
.two p { max-width: 380px; margin: 0 auto; font-size: 15.5px; opacity: .88; }

/* ---------- get it ---------- */
.get { text-align: center; background: linear-gradient(180deg, var(--scene), var(--sand)); padding-bottom: 110px; }
.get .icon { width: 132px; height: 132px; border-radius: 22.4%; margin: 0 auto 30px; box-shadow: 0 22px 44px -16px rgba(46, 39, 36, .5); }
.brand.sm { font-size: clamp(38px, 11vw, 70px); }
.get .rule { margin: 14px 0 34px; }
.store.big .badge img { width: 180px; }
.facts { list-style: none; margin: 44px auto 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; max-width: 760px; font-size: 10.5px; font-weight: 600; letter-spacing: .3em; }
.facts b { display: block; font-size: 20px; font-weight: 400; letter-spacing: .2em; margin-bottom: 4px; }
.facts li { opacity: .82; }

.foot { padding: 56px 20px calc(48px + var(--sb)); text-align: center; font-size: 12px; letter-spacing: .14em; background: var(--ink); color: var(--paper); }
.foot .rule { margin-bottom: 20px; }
.foot p { margin: 0 0 8px; opacity: .7; }
.foot a { text-decoration: none; letter-spacing: .32em; font-weight: 600; font-size: 11px; }

/* ---------- arriving on screen ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.rules li.reveal { transition-delay: calc(var(--k, 0) * 70ms); }
.moving .ease { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1s cubic-bezier(.2, .7, .2, 1); }
.moving .ease.in { opacity: 1; transform: none; }
.grid.deal:not(.in) .cd.enter { animation-play-state: paused; }
@media (max-width: 999px) and (max-height: 600px) {
  .hero { --rest: 392px; }
  .hero .store .soon { display: none; }
  .hero .lead { font-size: 14.5px; margin-bottom: 12px; }
  .store { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .moving .ease, .moving .legion .tp { opacity: 1; transform: none; transition: none; }
  .dust::before, .dust::after, .leg-grid .shine::after { animation: none; }
  .stage .sc, .stage .sc.on { transition: none; transform: none; }
}

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  section { padding: 120px 40px; }
  .bar { padding: calc(14px + var(--st)) 28px 14px; }
  .bar-links a { display: block; }
  .bar-links a.pill { margin-left: 8px; }
  .shots { gap: 18px; justify-content: center; max-width: var(--wrap); margin: 100px auto 0; padding: 10px 0 50px; overflow: visible; }
  .shots .phone { flex: 0 1 220px; min-width: 0; }
  .shots + .dots { display: none; }
  .hero { --rest: 500px; }
  .rail { gap: 28px; padding: 6px max(22px, calc(50% - 250px)) 26px; }
  .stop { --pw: clamp(150px, calc((100svh - 200px) * .462), 220px); flex: 0 0 min(86vw, 500px); scroll-snap-stop: normal; grid-template-rows: 1fr auto auto auto auto 1fr; grid-template-areas: "ph ." "ph wr" "ph ti" "ph tale" "ph vs" "ph ."; column-gap: 26px; }
  .stop .tale { min-height: 0; margin: 0 auto 16px; font-size: 14.5px; }
  .play { padding-bottom: 48px; }
  .road { padding-top: 64px; }
  .places { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .places li { padding: 22px 20px 24px; }
  .leg-grid { grid-template-columns: repeat(8, 1fr); max-width: 1040px; gap: 12px; }
  .two { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(4, 1fr); max-width: 980px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 16px; }
  .nudge { display: grid; }
  .kw { grid-template-columns: 1fr 1fr; padding: 30px 34px; }
  .epi { grid-template-columns: auto 1fr; align-items: center; justify-items: stretch; }
  .epi .kw { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .hero { flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: center; column-gap: 0; text-align: left; }
  .hero > .kicker, .hero > .brand, .hero > .rule { flex-basis: 100%; }
  .hero { --rest: 330px; }
  .hero .stage { width: min(50vw, 657px, max(380px, calc((100svh - var(--rest)) * 1.171))); margin: 18px 0 0; }
  .hero .later { justify-content: flex-start; }
  .hero .side { width: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 20px; }
  .hero .lead { margin: 0 0 26px; font-size: 18px; }
  .hero .store { align-items: flex-start; }
  .hero .store .soon, .hero .store .price { text-indent: 0; }
  .hero .kicker, .hero .brand, .hero .rule { text-align: center; }
  .play-grid { grid-template-columns: 320px 1fr; align-items: center; gap: 90px; justify-items: stretch; }
  .play-grid .phone { justify-self: end; max-width: min(320px, calc((100svh - 104px) * .462)); }
  .rail { padding-left: 60px; padding-right: 60px; margin: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); mask: linear-gradient(90deg, transparent, #000 60px, #000 calc(100% - 60px), transparent); }
  .rail { gap: 40px; }
  .stop { flex-basis: 460px; }
  .wide img { aspect-ratio: 21 / 9; }
}
