/* Elsantro v2 — studio site. Tokens first; components after. */
:root {
  --abyss: #0B2F38;      /* deep harbour teal: text on light, dark sections */
  --abyss-2: #123F4A;
  --lagoon: #5CD0C2;     /* bright teal: accents on dark */
  --teal-ink: #0A6662;   /* teal text on light (AA) */
  --gold: #F5B833;       /* lumen gold: primary action, sun */
  --gold-soft: #FBE3A6;
  --coral: #E46A3E;      /* roof coral: tiny highlights only */
  --mist: #EEF5F2;       /* page ground */
  --paper: #FFFFFF;
  --ink: #0B2F38;
  --ink-2: #3B5960;      /* muted text on mist, 6.9:1 */
  --line: rgba(11, 47, 56, .14);
  --hex-blue: #1E80DA;   /* Hexonia brand blue (legacy Elsantro blue) */
  --hex-deep: #0D5498;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + .4vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);
  --step-5: clamp(2.7rem, 1.4rem + 5.6vw, 6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --max-wide: 1320px;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 180ms;
  --dur-med: 360ms;
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--teal-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 1.08; letter-spacing: -.015em; font-variation-settings: "SOFT" 100; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
figcaption { font-size: .875rem; line-height: 1.45; color: var(--ink-2); margin-top: .7rem; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .hero :focus-visible, .tour :focus-visible, .hex :focus-visible, .site-foot :focus-visible { outline-color: var(--gold); }
.mist :focus-visible { outline-color: var(--abyss); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--abyss); padding: .6rem 1rem; border-radius: var(--r-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(var(--max-wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.display { font-size: var(--step-5); letter-spacing: -.025em; }
.display-sm { font-size: var(--step-4); letter-spacing: -.02em; }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 38em; }
.small { font-size: .9375rem; color: var(--ink-2); }
.narrow { max-width: 34em; }

/* Buttons */
.btn {
  --bg: var(--gold); --fg: var(--abyss);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; letter-spacing: .005em;
  cursor: pointer; will-change: transform;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-fast) ease;
}
.btn-gold:hover { box-shadow: 0 0 0 6px rgba(245, 184, 51, .28), 0 10px 30px -8px rgba(245, 184, 51, .7); }
.btn-ghost { --bg: rgba(11, 47, 56, .28); --fg: #fff; border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); }
.btn-ghost:hover { --bg: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-ink { --bg: var(--abyss); --fg: #fff; }
.btn-ink:hover { box-shadow: 0 0 0 6px rgba(11, 47, 56, .16); }
.btn-small { min-height: 44px; padding: .55rem 1.1rem; font-size: .9375rem; }

/* Status pills — the only label device; encodes live vs in development */
.status { display: inline-flex; align-items: center; gap: .45em; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.status::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; opacity: .55; }
.status-live { color: #0B6B45; }
.status-live::before { background: #1DB971; opacity: 1; box-shadow: 0 0 0 3px rgba(29, 185, 113, .22); }
.status-on-blue { color: #fff; }

/* Header */
.site-head { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head-h); color: #fff; transition: background-color var(--dur-med) ease, box-shadow var(--dur-med) ease, color var(--dur-med) ease; }
.site-head.is-solid { background: rgba(11, 47, 56, .92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.head-inner { height: 100%; display: flex; align-items: center; gap: 1rem; max-width: calc(var(--max-wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; min-height: 44px; }
.brand-mark { width: 34px; height: 34px; --mark-bg: #0B2F38; --mark-stroke: rgba(245, 184, 51, .55); overflow: visible; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -.01em; font-variation-settings: "SOFT" 100; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; color: inherit; text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: 999px; transition: background-color var(--dur-fast) ease; }
.site-nav a:hover { background: rgba(255, 255, 255, .12); }
.head-cta { margin-left: .5rem; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; min-height: 44px; min-width: 44px; padding: 0 .75rem; background: rgba(11, 47, 56, .35); color: #fff; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; font: 600 .9375rem var(--f-body); cursor: pointer; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform var(--dur-fast) ease; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; } .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .site-nav { position: absolute; top: var(--head-h); left: 0; right: 0; margin: 0; background: var(--abyss); padding: .5rem var(--gutter) 1.25rem; display: none; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
  .js .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .no-js .site-nav, html:not(.js) .site-nav { display: block; position: static; background: none; box-shadow: none; padding: 0; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; font-size: 1.125rem; padding: 0 .5rem; }
  .head-cta { display: none; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--abyss); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0 0; z-index: -3; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 60% 50%; }
.motion .hero-slide.is-active img { animation: kenburns 14s linear both; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.5%, -1%, 0); } }
.hero-motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, rgba(11, 47, 56, .55) 0%, rgba(11, 47, 56, 0) 22%),
  linear-gradient(0deg, rgba(8, 36, 43, .94) 0%, rgba(8, 36, 43, .7) 30%, rgba(8, 36, 43, 0) 62%),
  linear-gradient(90deg, rgba(8, 36, 43, .55) 0%, rgba(8, 36, 43, 0) 60%); }
.hero-copy { padding-top: calc(var(--head-h) + 3rem); padding-bottom: 2rem; }
.hero-title { font-size: var(--step-5); font-weight: 720; letter-spacing: -.018em; line-height: .98; max-width: 13em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.motion .hero-title .line > span { animation: rise 1s var(--ease-out) both; }
.motion .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.motion .hero-lede, .motion .hero-actions { animation: fadeup .9s var(--ease-out) .35s both; }
.motion .hero-actions { animation-delay: .48s; }
@keyframes rise { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.hero-lede { margin-top: 1.25rem; font-size: var(--step-1); max-width: 34em; color: rgba(255, 255, 255, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-caption { font-size: .8125rem; color: rgba(255, 255, 255, .75); padding-bottom: 1.25rem; margin-block: 0; transition: opacity .6s ease; }
.hero-caption.is-fading { opacity: 0; }

/* Games ledger */
.ledger { background: var(--abyss); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.ledger-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); }
.ledger-item { display: grid; gap: .2rem; padding: 1.4rem 1.25rem 1.6rem; color: inherit; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .1); height: 100%; transition: background-color var(--dur-fast) ease; }
.ledger-list li:first-child .ledger-item { border-left: 0; padding-left: 0; }
.ledger-item:hover { background: rgba(255, 255, 255, .04); }
.ledger-item .status { color: rgba(255, 255, 255, .7); }
.ledger-item .status-live { color: #6FE3A8; }
.ledger-name { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; font-variation-settings: "SOFT" 100; letter-spacing: -.01em; }
.ledger-desc { font-size: .9375rem; color: rgba(255, 255, 255, .78); line-height: 1.4; }
@media (max-width: 860px) {
  .ledger-list { grid-template-columns: 1fr 1fr; }
  .ledger-item, .ledger-list li:first-child .ledger-item { border-left: 0; padding: 1.1rem 0 1.2rem; }
  .ledger-list li:nth-child(2n) .ledger-item { padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .1); }
  .ledger-list li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* LumenHaven */
.lh { padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3rem, 6vw, 5rem); background:
  radial-gradient(120% 60% at 85% 0%, rgba(245, 184, 51, .16), rgba(245, 184, 51, 0) 60%), var(--mist); }
.lh-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.lh-head .display { color: var(--abyss); }
.wt { font-weight: 600; color: var(--teal-ink); margin: .6rem 0 1.4rem; }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--abyss); }
.facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; font-size: .9375rem; }
.facts dd { margin: 0; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 860px) { .lh-intro { grid-template-columns: 1fr; } }

.lineup { margin-top: clamp(3rem, 7vw, 6rem); }
.frame { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--abyss-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.motion .frame[data-parallax] img { transform: scale(1.12); will-change: transform; }
.frame-wide { aspect-ratio: 2000 / 1116; }
.lineup figcaption { padding-inline: .25rem; }

.classes { margin-top: clamp(3.5rem, 8vw, 7rem); }
.classes-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 1.75rem; }
.classes-head p { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (max-width: 760px) { .classes-head { grid-template-columns: 1fr; gap: .75rem; } }
.class-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.class-tabs [role="tab"] {
  position: relative; min-height: 44px; padding: .5rem 1.15rem; border-radius: 999px;
  border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  font: 700 1rem var(--f-body); cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.class-tabs [role="tab"]::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--c); margin-right: .5em; vertical-align: .05em; box-shadow: 0 0 0 2px rgba(11, 47, 56, .18); }
.class-tabs [role="tab"]:hover { border-color: var(--abyss); }
.class-tabs [role="tab"][aria-selected="true"] { background: var(--abyss); color: #fff; border-color: var(--abyss); }
.class-panels { position: relative; }
.class-panel {
  display: grid; grid-template-columns: minmax(180px, .8fr) 1fr 1.35fr; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-l);
  background: radial-gradient(80% 90% at 15% 60%, #1B5664 0%, var(--abyss) 70%); color: #fff;
}
.class-panel[hidden] { display: none; }
.class-panel.is-entering .class-char { animation: charIn .55s var(--ease-out) both; }
.class-panel.is-entering .class-info, .class-panel.is-entering .class-shot { animation: fadeup .5s var(--ease-out) .06s both; }
@keyframes charIn { from { opacity: 0; transform: translate3d(-18px, 10px, 0) scale(.96); } to { opacity: 1; transform: none; } }
.class-char img { width: 100%; max-height: 420px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.element { font-family: var(--f-display); font-size: var(--step-3); font-weight: 700; line-height: 1; color: var(--c); margin-bottom: .9rem; font-variation-settings: "SOFT" 100; }
.class-info p { color: rgba(255, 255, 255, .9); }
.class-info .kit { font-size: .9375rem; color: rgba(255, 255, 255, .72); margin: 0; }
.class-shot img { border-radius: var(--r-m); width: 100%; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); }
.class-shot figcaption { color: rgba(255, 255, 255, .72); }
@media (max-width: 960px) {
  .class-panel { grid-template-columns: 150px 1fr; }
  .class-shot { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .class-panel { grid-template-columns: 110px 1fr; align-items: start; }
  .element { font-size: 1.9rem; }
}

/* Titan's Reach tour */
.tour { position: relative; background: var(--abyss); color: #fff; padding-block: clamp(4rem, 8vw, 6rem); overflow: hidden; }
.tour::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 20% 10%, rgba(92, 208, 194, .14), transparent 70%), radial-gradient(50% 50% at 90% 90%, rgba(245, 184, 51, .1), transparent 70%); }
.tour-viewport { position: relative; }
.tour-track { padding-inline: var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; }
.tour-intro .display { font-size: var(--step-4); }
.tour-intro p { font-size: var(--step-1); color: rgba(255, 255, 255, .88); max-width: 30em; margin-top: 1rem; }
.tour-intro .tour-note { font-size: .875rem; color: rgba(255, 255, 255, .65); }
.tour-zones { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
.zone-frame { overflow: hidden; border-radius: var(--r-m); background: var(--abyss-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.zone-frame img { width: 100%; height: 100%; object-fit: cover; }
.zone figcaption, .tour-next figcaption { color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.zone-name { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; color: #fff; font-variation-settings: "SOFT" 100; margin-bottom: .1rem; }
.tour-next { margin-top: 2rem; max-width: 640px; }
.tour-next .zone-name { color: var(--lagoon); }
.tour-progress { display: none; }
.tour:not(.is-horizontal) .zone-frame { aspect-ratio: 16 / 9; }
.tour:not(.is-horizontal) .tour-next { max-width: none; }
@media (max-width: 640px) { .tour-zones { grid-template-columns: 1fr; } }

/* Horizontal pinned mode (desktop + motion only, set by JS) */
.tour.is-horizontal { padding-block: 0; }
.tour.is-horizontal .tour-viewport { height: 100vh; display: flex; align-items: center; }
.tour.is-horizontal .tour-track { display: flex; align-items: center; gap: clamp(2rem, 4vw, 4rem); max-width: none; margin: 0; padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2)); will-change: transform; }
.tour.is-horizontal .tour-intro { flex: 0 0 min(420px, 34vw); }
.tour.is-horizontal .tour-zones { display: flex; gap: clamp(1.5rem, 3vw, 3rem); margin: 0; align-items: center; }
.tour.is-horizontal .zone { flex: 0 0 auto; }
.tour.is-horizontal .zone-frame { height: min(56vh, 520px); aspect-ratio: 16 / 9; }
.tour.is-horizontal .zone:nth-child(even) { transform: translateY(5vh); }
.tour.is-horizontal .zone figcaption { max-width: 26em; }
.tour.is-horizontal .tour-next { flex: 0 0 auto; margin: 0; max-width: none; }
.tour.is-horizontal .tour-next .zone-frame { height: min(56vh, 520px); aspect-ratio: 16 / 9; }
.tour.is-horizontal .tour-progress { display: block; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
.tour.is-horizontal .tour-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--lagoon), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); border-radius: 2px; }

/* Raid loop (a real sequence, so it is numbered) */
.loop { padding-block: clamp(4rem, 9vw, 7rem); background: var(--paper); }
.loop-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.loop-steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.loop-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%; background: var(--abyss); color: var(--gold); font: 700 1.125rem var(--f-display); }
.loop-steps li::after { content: ""; position: absolute; top: 1.2rem; left: 3rem; right: -1.2rem; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.loop-steps li:last-child::after { display: none; }
.loop-steps h4 { font-size: 1.375rem; margin-bottom: .5rem; }
.loop-steps p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (max-width: 1000px) {
  .loop-steps { grid-template-columns: 1fr; gap: 1.75rem; max-width: 40em; }
  .loop-steps li { padding: 0 0 0 3.6rem; }
  .loop-steps li::after { top: 2.8rem; bottom: -1.4rem; left: 1.2rem; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px); }
}

/* Town */
.town { padding-block: clamp(4rem, 9vw, 7rem); }
.town-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.town-copy { grid-column: 1; grid-row: 1; align-self: center; padding-right: 1rem; }
.town-copy p { color: var(--ink-2); margin-top: 1rem; }
.town-a { grid-column: 2 / 4; grid-row: 1 / 2; aspect-ratio: 16 / 9; }
.town-b { grid-column: 1 / 2; grid-row: 2; aspect-ratio: 16 / 10; }
.town-c { grid-column: 2 / 4; grid-row: 2; aspect-ratio: 21 / 9; }
@media (max-width: 860px) {
  .town-grid { grid-template-columns: 1fr 1fr; }
  .town-copy { grid-column: 1 / -1; grid-row: auto; padding: 0; }
  .town-a { grid-column: 1 / -1; grid-row: auto; }
  .town-b, .town-c { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* Hexonia: the section borrows the game's own blue */
.hex { color: #fff; padding-block: clamp(4rem, 9vw, 7rem); background:
  radial-gradient(70% 60% at 85% 20%, rgba(255, 255, 255, .14), transparent 70%),
  linear-gradient(170deg, #1A6FC0 0%, var(--hex-deep) 70%); }
.hex a:not(.btn) { color: #fff; }
.hex-top { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hex-title { margin: .75rem 0 1.25rem; }
.hex-title img { width: min(360px, 80%); height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); }
.hex .lede { color: rgba(255, 255, 255, .94); margin-bottom: 1.75rem; }
.hex-board { border-radius: var(--r-l); overflow: hidden; box-shadow: 0 40px 70px -35px rgba(0, 20, 60, .8); }
.hex-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.hex-detail .h3 { margin-bottom: 1rem; }
.hex-media { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: start; }
.hex-media figure img, .hex-media video { border-radius: var(--r-m); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0b3d70; }
.hex-media figcaption { color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) {
  .hex-top, .hex-detail { grid-template-columns: 1fr; }
  .hex-media { grid-template-columns: 1fr 1fr; }
  .hex-video { grid-column: 1 / -1; }
}
.ticks { list-style: none; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .5em; width: .7rem; height: .7rem; border-radius: 3px; background: var(--gold); transform: rotate(45deg) scale(.8); }
.steps-small { padding-left: 1.3rem; display: grid; gap: .55rem; }
.steps-small li::marker { font-weight: 700; color: var(--gold-soft); }

/* Tilt + glow cards */
.tilt { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); transform-style: preserve-3d; position: relative; }
.tilt.is-tilting { transition: transform .08s linear; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 236, 180, .28), transparent 45%); }
.tilt.is-tilting::after { opacity: 1; }

/* Next */
.next { padding-block: clamp(4rem, 9vw, 7rem); }
.next .lede { color: var(--ink-2); margin-top: 1rem; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.game-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1.25rem, 3vw, 2rem); }
.game-card:hover { box-shadow: 0 30px 60px -30px rgba(11, 47, 56, .35); }
.game-card .card-art { width: 100%; height: auto; margin-bottom: 1.25rem; background: var(--abyss); border-radius: var(--r-m); padding: 1rem; }
.game-card .h3 { margin: .35rem 0 .75rem; }
.game-card p { color: var(--ink-2); }
.motion .lane-push { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.4s var(--ease-out); }
.motion .game-card.is-in .lane-push { stroke-dashoffset: 0; }
@media (max-width: 760px) { .next-grid { grid-template-columns: 1fr; } }

/* Pipeline */
.pipe { padding-block: clamp(4.5rem, 10vw, 8rem); background: var(--paper); border-top: 1px solid var(--line); }
.pipe-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.pipe-head .lede { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .pipe-head { grid-template-columns: 1fr; } }
.flow { list-style: none; display: grid; grid-template-columns: 1fr 1fr 2fr 1fr; gap: 2.25rem; margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; }
.flow-node { position: relative; background: var(--mist); border-radius: var(--r-m); padding: 1.25rem 1.25rem 1.4rem; border-top: 4px solid var(--abyss); }
.flow-node:nth-child(2) { border-top-color: var(--teal-ink); }
.flow-node:nth-child(3) { border-top-color: var(--gold); }
.flow-node:nth-child(4) { border-top-color: var(--coral); }
.flow-node h3 { font-size: 1.375rem; margin-bottom: .5rem; }
.flow-node p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.flow-node + .flow-node::before { content: ""; position: absolute; left: -2.25rem; top: 2rem; width: 2.25rem; height: 2px; background: var(--abyss); transform-origin: 0 50%; }
.flow-node + .flow-node::after { content: ""; position: absolute; left: -.55rem; top: calc(2rem - 4px); border: 5px solid transparent; border-left: 7px solid var(--abyss); }
.motion .flow-node + .flow-node::before { transform: scaleX(0); transition: transform .6s var(--ease-out); }
.motion .flow.is-in .flow-node + .flow-node::before { transform: scaleX(1); }
.motion .flow.is-in .flow-node:nth-child(3)::before { transition-delay: .25s; }
.motion .flow.is-in .flow-node:nth-child(4)::before { transition-delay: .5s; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: .25rem 0 .9rem; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem; font-size: .875rem; font-weight: 600; }
.flow .tools { font-size: .9375rem; }
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; gap: 1.75rem; max-width: 40em; }
  .flow-node + .flow-node::before { left: 2rem; top: -1.75rem; width: 2px; height: 1.75rem; transform-origin: 50% 0; }
  .motion .flow-node + .flow-node::before { transform: scaleY(0); }
  .motion .flow.is-in .flow-node + .flow-node::before { transform: scaleY(1); }
  .flow-node + .flow-node::after { left: calc(2rem - 4px); top: -.6rem; border: 5px solid transparent; border-top: 7px solid var(--abyss); }
}
.shipped-title { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.shipped { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 1.5rem 0 0; border-top: 2px solid var(--abyss); }
.shipped > div { padding: 1.25rem 1.25rem 1.25rem 0; border-right: 1px solid var(--line); }
.shipped > div + div { padding-left: 1.25rem; }
.shipped > div:last-child { border-right: 0; }
.shipped dt { font-family: var(--f-display); font-weight: 700; font-size: var(--step-3); line-height: 1; color: var(--abyss); font-variation-settings: "SOFT" 100; font-variant-numeric: lining-nums tabular-nums; }
.shipped dd { margin: .6rem 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
@media (max-width: 1000px) {
  .shipped { grid-template-columns: 1fr 1fr; }
  .shipped > div, .shipped > div + div { padding: 1.1rem 1rem 1.1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .shipped > div:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--line); }
}
.evidence { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.evidence-sheet { aspect-ratio: 1340 / 1142; background: #14171c; }
.evidence-sheet img { object-fit: contain; }
.evidence figure.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 2rem 1rem .9rem; color: #fff; background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); }
.evidence-copy p { color: var(--ink-2); }
.evidence-copy .h3 { margin-bottom: 1rem; }
@media (max-width: 860px) { .evidence { grid-template-columns: 1fr; } }

/* Studio */
.studio { padding-block: clamp(4rem, 9vw, 7rem); }
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.studio .lede { color: var(--ink-2); margin: 1.25rem 0 1.75rem; }
.principles { margin: 0; display: grid; gap: 1.5rem; }
.principles > div { padding-left: 1.1rem; border-left: 3px solid var(--gold); }
.principles dt { font-family: var(--f-display); font-weight: 700; font-size: 1.375rem; font-variation-settings: "SOFT" 100; }
.principles dd { margin: .25rem 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--abyss); color: #fff; padding-block: clamp(4rem, 9vw, 7rem); }
.contact-list { list-style: none; margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact-link { display: grid; grid-template-columns: 9rem 1fr; align-items: baseline; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; transition: padding-left var(--dur-med) var(--ease-out), color var(--dur-fast) ease; }
.contact-link:hover { padding-left: .75rem; color: var(--gold); }
.contact-kind { font-weight: 600; color: rgba(255, 255, 255, .7); }
.contact-value { font-family: var(--f-display); font-weight: 700; font-size: var(--step-2); font-variation-settings: "SOFT" 100; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-link { grid-template-columns: 1fr; gap: .1rem; } }

/* Footer */
.site-foot { background: #072229; color: rgba(255, 255, 255, .78); padding-block: 1.75rem; font-size: .9375rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-foot .brand { color: #fff; }
.site-foot p { margin: 0; }

/* Magnetic buttons get transform via JS; keep text crisp */
.magnetic { transform: translate3d(var(--tx, 0), var(--ty, 0), 0); }

/* Reduced motion: everything final, nothing moves on its own */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-slide { transition: none; }
  .tilt { transform: none !important; }
}
@media (hover: none) { .tilt { transform: none; } }
