/* =============================================================
   GloomBerry — "Hordia Bright"
   A chunky, sunlit, low-poly design system built from the
   colours and shapes of the games themselves.
   ============================================================= */

/* ── tokens ─────────────────────────────────────────────────── */
:root {
  /* paper & ink */
  --paper:      #FFF8EA;
  --paper-2:    #FBEBCB;
  --cream:      #FFFCF5;
  --ink:        #2E1A42;
  --ink-2:      #61497C;
  --edge:       #241033;

  /* world */
  --grass:      #6FBE2A;
  --grass-d:    #4C8C1A;
  --grass-x:    #2E5F11;
  --sky-1:      #CBE9F7;
  --sky-2:      #EBF7DC;

  /* accents */
  --gold:       #F7B93E;
  --gold-d:     #DD8A16;
  --ember:      #F0762F;
  --berry:      #7C3FA8;
  --berry-d:    #4B1F73;

  /* in-game HUD */
  --hud:        #2C1A4C;
  --hud-2:      #180C2A;
  --hud-line:   #F0C24B;

  /* system */
  --shell:      min(1240px, 100% - 3rem);
  --r-lg:       28px;
  --r-md:       18px;
  --r-sm:       12px;
  --drop:       0 18px 40px -22px rgba(36, 16, 51, .55);
  --drop-lg:    0 34px 70px -34px rgba(36, 16, 51, .6);
  --ease:       cubic-bezier(.22, .68, .32, 1);
  --header-h:   76px;

  --f-display:  "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --f-text:     "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ── reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  min-height: 100svh;
  font: 400 clamp(1rem, .96rem + .2vw, 1.075rem)/1.65 var(--f-text);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed; inset-inline-start: 1rem; top: -6rem; z-index: 999;
  padding: .8rem 1.3rem; background: var(--ink); color: #fff;
  border-radius: 999px; font-weight: 800; transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ── layout ─────────────────────────────────────────────────── */
.shell { width: var(--shell); margin-inline: auto; }

.block {
  position: relative;
  padding-block: clamp(4.5rem, 3rem + 7vw, 8rem);
}

/* ── type ───────────────────────────────────────────────────── */
h1, h2, h3, .brand-name, .btn, .card-no {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.6rem); }
h2 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.15; }

h1 em, h2 em {
  font-style: normal;
  color: var(--ember);
  -webkit-text-stroke: 0;
  text-shadow: 0 3px 0 rgba(36, 16, 51, .13);
}

.lead {
  font-size: clamp(1.06rem, 1rem + .4vw, 1.24rem);
  color: var(--ink-2);
  max-width: 54ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.15rem;
  font-weight: 800; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--grass-x);
}
.eyebrow i {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(247, 185, 62, .28);
  transform: rotate(45deg);
}

.head {
  display: grid; gap: 1.25rem 3.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  margin-bottom: clamp(2.5rem, 1.6rem + 3vw, 4rem);
}
.head-note { color: var(--ink-2); font-size: 1.06rem; padding-bottom: .35rem; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; align-items: start; } }

/* dark variants */
.head-dark { color: var(--cream); }
.head-dark .eyebrow { color: var(--gold); }
.head-dark .head-note { color: rgba(255, 252, 245, .74); }
.head-dark h2 em { color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--gold);
  --btn-sh: var(--gold-d);
  --btn-fg: var(--edge);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem;
  font-size: 1.02rem; letter-spacing: .01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 3px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--btn-sh), 0 5px 0 3px var(--edge), var(--drop);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .18s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 3px 12px auto; height: 34%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 7px 0 var(--btn-sh), 0 7px 0 3px var(--edge), var(--drop-lg); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--btn-sh), 0 1px 0 3px var(--edge); }
.btn .ico { width: 20px; height: 20px; }

.btn-berry { --btn-bg: #9A54CE; --btn-sh: var(--berry-d); --btn-fg: #fff; }
.btn-grass { --btn-bg: var(--grass); --btn-sh: var(--grass-x); --btn-fg: #10290A; }
.btn-ghost {
  --btn-fg: var(--ink);
  background: var(--cream); --btn-sh: #D9C6A8;
}
.btn-sm { padding: .6rem 1.1rem; font-size: .92rem; border-width: 2.5px; }
.btn-lg { padding: 1.15rem 2rem; font-size: 1.14rem; }
.btn-lg .ico { width: 24px; height: 24px; }
.btn-block { width: 100%; }

/* on dark sections a ghost button flips to a translucent light chip */
.panel-dark .btn-ghost, .keys .btn-ghost, .footer .btn-ghost {
  --btn-fg: var(--cream);
  background: rgba(255, 255, 255, .1);
  --btn-sh: rgba(0, 0, 0, .45);
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(4px);
}
.panel-dark .btn-ghost::after, .keys .btn-ghost::after, .footer .btn-ghost::after { opacity: .35; }

/* ── header ─────────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .28s var(--ease), box-shadow .28s var(--ease), backdrop-filter .28s var(--ease);
}
.header-inner {
  width: var(--shell); margin-inline: auto;
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1.25rem;
}
/* `is-solid` is for pages that open on a dark section, where a transparent
   header would put ink-coloured text on deep purple. */
.header.scrolled, .header.is-solid {
  background: rgba(255, 248, 234, .9);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(36, 16, 51, .12), 0 12px 30px -24px rgba(36, 16, 51, .8);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 5px;
  background: linear-gradient(180deg, #5B3489, var(--berry-d));
  border: 2.5px solid var(--edge); border-radius: 14px;
  box-shadow: 0 3px 0 var(--edge);
  transition: transform .25s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.05); }
.brand-name { font-size: 1.32rem; letter-spacing: -.02em; }
.brand-name b { color: var(--berry); font-weight: 800; }
.brand-lg .brand-mark { width: 60px; height: 60px; border-radius: 18px; }
.brand-lg .brand-name { font-size: 1.7rem; }

.nav-shell { display: flex; align-items: center; gap: 1.5rem; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  position: relative;
  padding: .5rem .8rem; border-radius: 999px;
  font-weight: 700; font-size: .97rem; color: var(--ink);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: .18rem;
  width: 0; height: 3px; border-radius: 3px; background: var(--gold);
  transform: translateX(-50%); transition: width .22s var(--ease);
}
.nav a:hover { background: rgba(124, 63, 168, .09); }
.nav a.active { color: var(--berry); }
.nav a.active::after { width: 22px; }

.burger {
  display: none;
  width: 48px; height: 44px; padding: 11px 12px;
  background: var(--cream);
  border: 2.5px solid var(--edge); border-radius: 14px;
  box-shadow: 0 3px 0 var(--edge);
}
.burger span {
  display: block; height: 3px; border-radius: 3px; background: var(--ink);
  transition: transform .26s var(--ease), opacity .18s var(--ease);
}
.burger span + span { margin-top: 4px; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav-shell {
    position: fixed; inset: var(--header-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: .5rem;
    padding: 1.1rem 1.5rem 1.6rem;
    background: rgba(255, 248, 234, .97);
    backdrop-filter: blur(16px);
    border-bottom: 3px solid var(--edge);
    box-shadow: var(--drop-lg);
    transform: translateY(-115%);
    opacity: 0; visibility: hidden;
    transition: transform .34s var(--ease), opacity .24s var(--ease), visibility .34s;
  }
  .menu-open .nav-shell { transform: none; opacity: 1; visibility: visible; }
  .nav { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a { padding: .85rem 1rem; font-size: 1.1rem; border-radius: 14px; }
  .nav a.active { background: rgba(124, 63, 168, .1); }
  .nav a::after { display: none; }
  .nav-shell .btn { margin-top: .5rem; }
}

body.nav-locked { overflow: hidden; }

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(2.5rem, 1rem + 6vw, 5rem)) clamp(7rem, 5rem + 8vw, 11rem);
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(255, 255, 255, .8), transparent 55%),
    linear-gradient(180deg, var(--sky-1) 0%, #E4F3EC 42%, var(--sky-2) 78%, var(--paper) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud {
  position: absolute; border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  filter: blur(.4px);
  box-shadow: 40px 12px 0 -6px rgba(255, 255, 255, .8), -46px 14px 0 -8px rgba(255, 255, 255, .72);
  animation: drift 34s linear infinite;
}
.c1 { width: 130px; height: 44px; top: 14%; left: -8%; }
.c2 { width: 96px;  height: 34px; top: 32%; left: 20%; animation-duration: 47s; animation-delay: -12s; opacity: .75; }
.c3 { width: 160px; height: 52px; top: 8%;  left: 58%; animation-duration: 58s; animation-delay: -30s; opacity: .6; }
@keyframes drift { to { transform: translateX(125vw); } }

.deco { position: absolute; opacity: .55; animation: sway 7s var(--ease) infinite alternate; }
.tree { width: 88px; height: 123px; }
.t1 { left: 1%;   bottom: 5%; width: 138px; height: 194px; opacity: .92; }
.t2 { left: 11%;  bottom: 1%; opacity: .7;  animation-delay: -2.5s; }
.t3 { right: 2%;  bottom: 3%; width: 162px; height: 227px; opacity: .85; animation-delay: -4s; }
.r1 { right: 14%; bottom: 1%; width: 140px; height: 96px;  opacity: .8; animation: none; }
@media (max-width: 980px) { .deco { opacity: .45 !important; } .t2, .r1 { display: none; } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }

.hero-grid {
  position: relative;
  display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy h1 { margin-bottom: 1.25rem; text-wrap: balance; }
.hero-copy .lead { margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
@media (max-width: 560px) { .hero-cta { flex-direction: column; align-items: stretch; } }

.status {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .6rem 1.15rem .6rem .8rem;
  background: rgba(255, 255, 255, .78);
  border: 2.5px solid var(--edge); border-radius: 999px;
  box-shadow: 0 4px 0 rgba(36, 16, 51, .18);
  font-size: .95rem;
}
.status b { font-weight: 800; }
.pulse {
  position: relative; width: 12px; height: 12px; flex: none;
  border-radius: 50%; background: var(--grass);
  box-shadow: 0 0 0 2px var(--edge);
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--grass);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

/* hero art */
.hero-art { position: relative; }

.showcase {
  position: relative;
  border: 4px solid var(--edge);
  border-radius: var(--r-lg);
  background: var(--hud);
  box-shadow: 0 10px 0 var(--gold-d), 0 10px 0 4px var(--edge), var(--drop-lg);
  overflow: hidden;
  transform: rotate(-1.6deg) perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .3s var(--ease);
}
.showcase img { width: 100%; aspect-ratio: 1100 / 630; object-fit: cover; }
.showcase::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24, 12, 42, .18) 0%, transparent 26%, transparent 72%, rgba(24, 12, 42, .3) 100%);
}
.showcase-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .85rem;
  font: 800 .78rem/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase;
  color: var(--hud-2); background: var(--gold);
  border: 2.5px solid var(--edge); border-radius: 999px;
  box-shadow: 0 3px 0 var(--edge);
}
.showcase-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--hud-2); animation: blink 1.9s var(--ease) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.berry {
  position: absolute; z-index: 3;
  display: block;
  left: -7%; top: -13%; width: clamp(96px, 19%, 168px);
  filter: drop-shadow(0 14px 18px rgba(36, 16, 51, .34));
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(-8deg);
  transition: transform .5s var(--ease);
  animation: bob 5.5s var(--ease) infinite alternate;
}
.berry img { width: 100%; height: auto; }
@keyframes bob { to { translate: 0 -12px; } }

.orbit {
  position: absolute; z-index: 3;
  padding: .4rem .95rem;
  font: 800 .82rem/1 var(--f-text);
  color: var(--ink); background: var(--cream);
  border: 2.5px solid var(--edge); border-radius: 999px;
  box-shadow: 0 4px 0 var(--edge);
  animation: bob 4.5s var(--ease) infinite alternate;
}
.o1 { top: 22%;    right: -5%; rotate: 6deg;  animation-delay: -1s; }
.o2 { bottom: -7%; right: 18%; rotate: -5deg; background: var(--gold); animation-delay: -2.4s; }
.o3 { bottom: 22%; left: -6%;  rotate: -3deg; animation-delay: -3.4s; }
@media (max-width: 700px) { .orbit { display: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(6rem, 8vw, 8.5rem); z-index: 4;
  translate: -50% 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: .5rem;
  font: 800 .72rem/1 var(--f-text); letter-spacing: .22em; text-transform: uppercase;
  color: var(--grass-x); opacity: .85;
}
.scroll-cue i {
  width: 22px; height: 34px; border: 2.5px solid currentColor; border-radius: 999px; position: relative;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 50%; top: 6px; translate: -50% 0;
  width: 4px; height: 7px; border-radius: 3px; background: currentColor;
  animation: cue 1.7s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(11px); opacity: 0; } }
@media (max-width: 980px) { .scroll-cue { display: none; } }

.hill {
  position: absolute; inset: auto 0 -1px; height: clamp(70px, 8vw, 120px);
  background: var(--grass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C220,4 400,104 700,66 C1000,28 1210,108 1440,44 L1440,120 L0,120 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center/100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C220,4 400,104 700,66 C1000,28 1210,108 1440,44 L1440,120 L0,120 Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

/* ── ribbon ─────────────────────────────────────────────────── */
/* The band is tilted and wider than the page on purpose; the wrapper clips it
   so the tilt never becomes a horizontal scrollbar. */
.ribbon {
  position: relative; z-index: 2;
  overflow: hidden;
  padding-block: 14px;
  margin-block: calc(-1.5rem - 14px) clamp(1rem, 3vw, 2.5rem);
}
.ribbon-band {
  width: 108%; margin-inline: -4%;
  rotate: -1deg;
  padding: .85rem 0;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-d) 100%);
  border-block: 4px solid var(--edge);
  box-shadow: 0 12px 30px -20px rgba(36, 16, 51, .9);
  overflow: hidden;
}
.ribbon-track {
  display: flex; align-items: center; gap: 1.6rem;
  width: max-content;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.15rem, 1rem + .9vw, 1.7rem);
  color: var(--edge); text-transform: uppercase; letter-spacing: .04em;
  animation: marquee 26s linear infinite;
}
.ribbon-track i { color: rgba(36, 16, 51, .45); font-style: normal; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ── games ──────────────────────────────────────────────────── */
.games { background: var(--paper); }
.games::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(46, 26, 66, .07) 1.4px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.games .shell { position: relative; z-index: 1; }

.game-grid {
  display: grid; gap: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 780px) { .game-grid { grid-template-columns: 1fr; } }

.card {
  --accent: var(--grass);
  --accent-2: var(--gold);
  position: relative;
  display: flex; flex-direction: column;
  background: var(--cream);
  border: 4px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 0 rgba(36, 16, 51, .22), var(--drop);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { box-shadow: 0 14px 0 rgba(36, 16, 51, .22), var(--drop-lg); transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateY(-5px); }
.card-wide { grid-column: 1 / -1; }
@media (min-width: 1040px) {
  .card-wide { flex-direction: row; }
  .card-wide .card-art { flex: 1 1 56%; }
  .card-wide .card-body { flex: 1 1 44%; justify-content: center; padding: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
  .card-wide h3 { font-size: clamp(2.1rem, 1.5rem + 1.8vw, 3rem); }
}
/* stacked, the ultra-wide key art would collapse to a sliver — crop it instead */
@media (max-width: 1039px) { .card-wide .card-art { aspect-ratio: 16 / 9; } }

.card-art { position: relative; overflow: hidden; background: var(--hud); }
/* Scoped away from `.card-logo` on purpose — a bare `.card-art img` would also
   catch the overlaid wordmark and stretch it across the whole tile. */
.card-art > picture:not(.card-logo) { display: block; height: 100%; }
.card-art > picture:not(.card-logo) img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card-art > picture:not(.card-logo) img { transform: scale(1.045); }
.card-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(24, 12, 42, .5));
  pointer-events: none;
}
.card-logo {
  position: absolute; left: 5%; bottom: 6%; z-index: 2;
  display: block; width: min(45%, 260px);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .5));
}
.card-logo img { width: 100%; height: auto; }

.chip {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .8rem;
  font: 800 .74rem/1 var(--f-text); letter-spacing: .09em; text-transform: uppercase;
  color: var(--edge); background: var(--cream);
  border: 2.5px solid var(--edge); border-radius: 999px;
  box-shadow: 0 3px 0 var(--edge);
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--grass); }
.chip-live { background: var(--gold); }
.chip-live i { background: var(--ember); animation: blink 1.9s var(--ease) infinite; }

.card-no {
  position: absolute; top: .75rem; right: 1.1rem; z-index: 2;
  font-size: 1.5rem; color: #fff;
  text-shadow: 0 2px 3px rgba(24, 12, 42, .9), 0 6px 16px rgba(24, 12, 42, .7);
}

.card-body {
  display: flex; flex-direction: column; gap: .85rem;
  padding: 1.5rem 1.5rem 1.65rem;
  border-top: 4px solid var(--edge);
}
@media (min-width: 1040px) { .card-wide .card-body { border-top: 0; border-left: 4px solid var(--edge); } }
.card-body p { color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags span {
  padding: .28rem .7rem;
  font: 800 .74rem/1.5 var(--f-text); letter-spacing: .05em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 78%, var(--edge));
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 999px;
}

.card-go {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: auto; padding-top: .4rem;
  font-weight: 800; color: var(--berry);
}
.card-go .ico { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.card:hover .card-go .ico { transform: translateX(5px); }

.card-date {
  display: inline-flex; align-items: center; gap: .5rem;
  align-self: start;
  padding: .4rem .9rem;
  font-size: .9rem; font-weight: 800;
  color: color-mix(in srgb, var(--accent) 72%, var(--edge));
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 2px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
}
.card-date .ico { width: 17px; height: 17px; flex: none; }

.card-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem;
  margin-top: auto; padding-top: .5rem;
}
.card-actions .card-go { margin-top: 0; padding-top: 0; }

/* ── hordia ─────────────────────────────────────────────────── */
.hordia {
  color: var(--cream);
  background: var(--hud-2);
  overflow: hidden;
}
/* The key art is the bottom layer; the tinted gradients sit on top of it, so
   the section keeps its saturated purple and the art only reads as depth. */
.hordia-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(78% 50% at 12% -6%, rgba(111, 190, 42, .32), transparent 60%),
    radial-gradient(62% 55% at 95% 92%, rgba(154, 84, 206, .45), transparent 65%),
    linear-gradient(180deg, rgba(30, 17, 54, .9) 0%, rgba(25, 14, 45, .96) 42%, var(--hud-2) 78%),
    url("assets/hordia/backdrop.jpg") center -6% / 118% auto no-repeat,
    var(--hud-2);
}
.hordia-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240, 194, 75, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 194, 75, .07) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  mask: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}
.hordia .shell { position: relative; z-index: 1; }

.feats {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
  margin-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.feat {
  padding: 1.5rem 1.4rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 252, 245, .1), rgba(255, 252, 245, .03));
  border: 2.5px solid rgba(240, 194, 75, .32);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(3px);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.feat:hover { border-color: var(--gold); transform: translateY(-4px); background: linear-gradient(180deg, rgba(255, 252, 245, .16), rgba(255, 252, 245, .05)); }
.feat-ico {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1.05rem;
  color: var(--hud-2); background: var(--gold);
  border: 2.5px solid var(--edge); border-radius: 16px;
  box-shadow: 0 4px 0 var(--edge);
}
.ico-lg { width: 28px; height: 28px; }
.feat h3 { margin-bottom: .5rem; color: var(--cream); }
.feat p { color: rgba(255, 252, 245, .72); font-size: .98rem; }

/* gallery */
.gallery-title {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem; color: var(--gold);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  letter-spacing: .06em; text-transform: uppercase;
}
.gallery-title::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: rgba(240, 194, 75, .25); }

.gallery-grid {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: 1fr; } }

.shot {
  position: relative; display: block; padding: 0; align-self: start;
  border: 3px solid rgba(240, 194, 75, .35);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--hud);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.shot::after {
  content: "⤢"; position: absolute; right: .6rem; bottom: .5rem;
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 1.1rem; color: var(--hud-2); background: var(--gold);
  border: 2.5px solid var(--edge); border-radius: 11px;
  opacity: 0; translate: 0 8px;
  transition: opacity .22s var(--ease), translate .22s var(--ease);
}
.shot:hover, .shot:focus-visible { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--drop-lg); }
.shot:hover img { transform: scale(1.06); }
.shot:hover::after, .shot:focus-visible::after { opacity: 1; translate: 0 0; }

.gallery-note { margin-top: 1.1rem; font-size: .9rem; color: rgba(255, 252, 245, .5); }

/* ── launch banner ──────────────────────────────────────────── */
.launch {
  display: grid; gap: 1.6rem 2.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  background: linear-gradient(135deg, rgba(247, 185, 62, .26), rgba(111, 190, 42, .16) 55%, rgba(154, 84, 206, .18));
  border: 3px solid var(--gold);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), var(--drop-lg);
}
@media (max-width: 820px) { .launch { grid-template-columns: 1fr; } }

.launch-date {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: .7rem;
  font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
}
.launch-date .ico { width: 18px; height: 18px; flex: none; }
.launch-date b { color: var(--cream); }
.launch h3 { margin-bottom: .5rem; color: var(--cream); }
.launch-copy p { color: rgba(255, 252, 245, .78); max-width: 56ch; }

/* ── keys ───────────────────────────────────────────────────── */
.keys { color: var(--cream); overflow: hidden; }
.keys-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(75% 60% at 12% 12%, rgba(154, 84, 206, .5), transparent 60%),
    radial-gradient(60% 55% at 90% 90%, rgba(247, 185, 62, .22), transparent 62%),
    linear-gradient(155deg, #4B1F73, #2C1A4C 55%, #1B0F2E);
}
.keys .shell { position: relative; z-index: 1; }
.keys-grid {
  display: grid; gap: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
}
@media (max-width: 940px) { .keys-grid { grid-template-columns: 1fr; } }
.keys .eyebrow { color: var(--gold); }
.keys h2 { margin-bottom: 1.1rem; }
.keys h2 em { color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.keys .lead { color: rgba(255, 252, 245, .78); margin-bottom: 1.8rem; }
.keys h1 { margin-bottom: 1.1rem; }
.keys h1 em { color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.keys-copy .note + .note { margin-top: 1rem; }

/* a standalone page opens straight into a section, under the fixed header */
.page-top { padding-top: calc(var(--header-h) + clamp(1.6rem, 1rem + 3vw, 3.2rem)); }

.backlink {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  padding: .5rem 1rem .5rem .8rem;
  font-weight: 800; font-size: .92rem;
  color: var(--cream);
  background: rgba(255, 255, 255, .09);
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.backlink:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold); transform: translateX(-3px); }
.backlink span { font-size: 1.05em; }

.note, .tip {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
}
.note {
  background: rgba(255, 255, 255, .08);
  border: 2.5px solid rgba(240, 194, 75, .38);
  color: rgba(255, 252, 245, .9);
}
.note b { color: var(--gold); }
.note-ico, .tip-ico {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  font: 800 1.1rem/1 var(--f-display);
  color: var(--edge); background: var(--gold);
  border: 2.5px solid var(--edge); border-radius: 12px;
  box-shadow: 0 3px 0 var(--edge);
}

/* ── forms & panels ─────────────────────────────────────────── */
.panel {
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  background: var(--cream);
  border: 4px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: 0 9px 0 rgba(36, 16, 51, .22), var(--drop-lg);
}
.panel-dark {
  color: var(--cream);
  background: linear-gradient(180deg, #331F55, var(--hud));
  border-color: var(--edge);
  box-shadow: 0 9px 0 var(--gold-d), 0 9px 0 4px var(--edge), var(--drop-lg);
}

.form { display: grid; gap: 1rem; }
.form-head {
  display: grid; gap: .2rem;
  padding-bottom: 1.1rem; margin-bottom: .3rem;
  border-bottom: 3px dashed rgba(36, 16, 51, .18);
}
.panel-dark .form-head { border-bottom-color: rgba(240, 194, 75, .3); }
.form-head span {
  font: 800 .74rem/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase;
  color: var(--berry);
}
.panel-dark .form-head span { color: var(--gold); }
.form-head strong { font: 800 clamp(1.35rem, 1.1rem + 1vw, 1.75rem)/1.1 var(--f-display); }

.row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }

.field { display: grid; gap: .4rem; }
.field label { font-weight: 800; font-size: .88rem; }
.field label small {
  font-weight: 700; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-left: .35rem;
}
.panel-dark .field label small { color: rgba(255, 252, 245, .55); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2.5px solid rgba(36, 16, 51, .32);
  border-radius: var(--r-sm);
  box-shadow: inset 0 2px 0 rgba(36, 16, 51, .07);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
/* background-color, not the shorthand: the shorthand would wipe the select
   arrow's repeat/position/size and tile it across the field. */
.panel-dark .field input, .panel-dark .field select, .panel-dark .field textarea {
  background-color: rgba(12, 6, 22, .4);
  color: var(--cream);
  border-color: rgba(240, 194, 75, .3);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, .25);
}
.field textarea { resize: vertical; min-height: 108px; }
.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E1A42' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 17px;
}
.panel-dark .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7B93E' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.field select option { color: var(--ink); background: var(--paper); }

.field :is(input, select, textarea):focus-visible {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(247, 185, 62, .3);
  background-color: #fff;
}
.panel-dark .field :is(input, select, textarea):focus-visible { background-color: rgba(12, 6, 22, .6); }
.field ::placeholder { color: rgba(46, 26, 66, .42); }
.panel-dark .field ::placeholder { color: rgba(255, 252, 245, .38); }

.field.invalid :is(input, select, textarea) {
  border-color: #E4483F;
  box-shadow: 0 0 0 4px rgba(228, 72, 63, .2);
}
.err { font-size: .82rem; font-weight: 700; color: #C0342B; }
.panel-dark .err { color: #FF9E96; }

.check {
  display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start;
  font-size: .92rem; cursor: pointer;
}
.check input {
  appearance: none;
  width: 24px; height: 24px; margin-top: 1px; flex: none;
  background: var(--paper);
  border: 2.5px solid var(--edge); border-radius: 8px;
  transition: background .16s var(--ease);
}
.panel-dark .check input { background: rgba(12, 6, 22, .45); border-color: rgba(240, 194, 75, .5); }
.check input:checked {
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241033' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center/16px;
  border-color: var(--edge);
}
.check.invalid input { border-color: #E4483F; box-shadow: 0 0 0 4px rgba(228, 72, 63, .2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .86rem; color: var(--ink-2); text-align: center; }
.panel-dark .form-note { color: rgba(255, 252, 245, .6); }
.form-note b { color: var(--berry); }
.panel-dark .form-note b { color: var(--gold); }
.form-note.is-error { color: #C0342B; font-weight: 700; }
.panel-dark .form-note.is-error { color: #FF9E96; }
.form-note.is-ok { color: var(--grass-x); font-weight: 700; }
.panel-dark .form-note.is-ok { color: #B6E86A; }

/* sending state */
.btn.is-busy { pointer-events: none; filter: saturate(.6); }
.btn.is-busy .ico { display: none; }
.btn.is-busy::before {
  content: ""; width: 18px; height: 18px; flex: none;
  border: 3px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .8s linear infinite;
}

/* ── support ────────────────────────────────────────────────── */
.support { background: var(--paper); }
.support-grid {
  display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
}
@media (max-width: 940px) { .support-grid { grid-template-columns: 1fr; } }

.support-side { display: grid; gap: 1.25rem; }
.tip {
  background: color-mix(in srgb, var(--gold) 20%, var(--cream));
  border: 2.5px solid var(--edge);
  box-shadow: 0 5px 0 rgba(36, 16, 51, .18);
}
.tip p { font-size: .95rem; }

.faq {
  padding: 1.4rem 1.5rem 1.5rem;
  background: var(--cream);
  border: 3px solid var(--edge); border-radius: var(--r-lg);
  box-shadow: 0 6px 0 rgba(36, 16, 51, .18);
}
.faq h3 { margin-bottom: .9rem; }
.faq details { border-top: 2px dashed rgba(36, 16, 51, .18); }
.faq details:first-of-type { border-top: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 0;
  font-weight: 800; font-size: .98rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  position: relative; flex: none; width: 22px; height: 22px;
  background: var(--gold); border: 2.5px solid var(--edge); border-radius: 7px;
  transition: rotate .25s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; inset: 50% 3px auto; height: 2.5px; margin-top: -1.25px;
  background: var(--edge); border-radius: 2px;
}
.faq summary i::after { rotate: 90deg; transition: opacity .25s var(--ease); }
.faq details[open] summary i { rotate: 180deg; }
.faq details[open] summary i::after { opacity: 0; }
.faq details p { padding-bottom: 1rem; color: var(--ink-2); font-size: .94rem; }
.faq details p a { color: var(--berry); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ── footer ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  padding: clamp(5rem, 3rem + 6vw, 7rem) 0 2.5rem;
  color: rgba(255, 252, 245, .78);
  background: linear-gradient(180deg, #2C1A4C, #170C29);
  overflow: hidden;
}
.footer-grass {
  position: absolute; inset: 0 0 auto; height: 46px;
  background: var(--grass);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v14c-10 0-12 12-20 12s-10-10-18-10-11 14-20 14-11-12-20-12-12 10-20 10-11-14-20-14-12 12-20 12-11-10-20-10-12 14-20 14-11-12-20-12-12 10-22 10z' fill='%23000'/%3E%3C/svg%3E") repeat-x top/240px 40px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v14c-10 0-12 12-20 12s-10-10-18-10-11 14-20 14-11-12-20-12-12 10-20 10-11-14-20-14-12 12-20 12-11-10-20-10-12 14-20 14-11-12-20-12-12 10-22 10z' fill='%23000'/%3E%3C/svg%3E") repeat-x top/240px 40px;
}
.footer .brand-name { color: var(--cream); }
.footer .brand-name b { color: var(--gold); }

.footer-top {
  display: grid; gap: 1.6rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding-bottom: 2.2rem;
  border-bottom: 2px dashed rgba(255, 252, 245, .18);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; justify-items: start; } }
.footer-line { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; line-height: 1.45; color: rgba(255, 252, 245, .66); }
@media (min-width: 801px) { .footer-line { text-align: center; } }

.footer-bottom {
  display: grid; gap: 1rem 2rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding-top: 1.7rem;
  font-size: .88rem;
}
@media (max-width: 800px) { .footer-bottom { grid-template-columns: 1fr; } }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; justify-content: center; }
.footer-bottom nav a { font-weight: 700; transition: color .18s var(--ease); }
.footer-bottom nav a:hover { color: var(--gold); }
.footer-note { color: rgba(255, 252, 245, .45); }
@media (min-width: 801px) { .footer-note { text-align: right; } }

/* ── lightbox ───────────────────────────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox-back { position: absolute; inset: 0; background: rgba(15, 7, 26, .9); backdrop-filter: blur(6px); }
.lightbox-inner {
  position: relative; z-index: 1;
  width: min(1180px, 94vw);
  animation: pop .28s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.lightbox figure {
  border: 4px solid var(--edge); border-radius: var(--r-lg); overflow: hidden;
  background: var(--hud-2); box-shadow: 0 0 0 3px rgba(240, 194, 75, .5), var(--drop-lg);
}
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; background: var(--hud-2); }
.lightbox figcaption {
  padding: .85rem 1.2rem;
  font-size: .92rem; color: rgba(255, 252, 245, .78);
  background: var(--hud); border-top: 3px solid rgba(240, 194, 75, .35);
}
.lb-btn {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  font: 800 1.6rem/1 var(--f-display); color: var(--edge);
  background: var(--gold);
  border: 3px solid var(--edge); border-radius: 16px;
  box-shadow: 0 4px 0 var(--edge);
  transition: transform .16s var(--ease), filter .16s var(--ease);
}
.lb-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.lb-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.lb-prev, .lb-next { top: 50%; margin-top: -26px; }
.lb-prev { left: -18px; }
.lb-next { right: -18px; }
.lb-prev::before, .lb-next::before {
  content: ""; width: 13px; height: 13px;
  border: 3.5px solid var(--edge); border-width: 3.5px 3.5px 0 0; border-radius: 2px;
}
.lb-prev::before { rotate: -135deg; margin-left: 4px; }
.lb-next::before { rotate: 45deg; margin-right: 4px; }
.lb-close { top: -20px; right: -18px; width: 44px; height: 44px; background: var(--cream); }
.lb-count {
  margin-top: .9rem; text-align: center;
  font: 800 .82rem/1 var(--f-text); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 252, 245, .6);
}
@media (max-width: 760px) {
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-close { top: -54px; right: 0; }
  .lb-btn { width: 44px; height: 44px; }
}

/* ── toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed; z-index: 300;
  right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  width: min(390px, calc(100vw - 2rem));
  display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: start;
  padding: 1rem 1.1rem;
  background: var(--cream);
  border: 3px solid var(--edge); border-radius: var(--r-md);
  box-shadow: 0 6px 0 var(--gold-d), 0 6px 0 3px var(--edge), var(--drop-lg);
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.toast[hidden] { display: none; }
.toast.show { opacity: 1; transform: none; }
.toast strong { display: block; font-family: var(--f-display); font-size: 1.08rem; }
.toast p { font-size: .9rem; color: var(--ink-2); }
.toast-ico {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  font-size: 1.1rem; color: var(--edge); background: var(--gold);
  border: 2.5px solid var(--edge); border-radius: 12px;
}
.toast.is-error { box-shadow: 0 6px 0 #A82B22, 0 6px 0 3px var(--edge), var(--drop-lg); }
.toast.is-error .toast-ico { background: #F2635A; }
.toast button[data-toast-close] {
  width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 1.4rem; line-height: 1; color: var(--ink-2);
  border-radius: 9px; transition: background .16s var(--ease);
}
.toast button[data-toast-close]:hover { background: rgba(36, 16, 51, .09); }

/* ── reveal ─────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .feat.reveal:nth-child(2).in { transition-delay: .08s; }
.js .feat.reveal:nth-child(3).in { transition-delay: .16s; }
.js .feat.reveal:nth-child(4).in { transition-delay: .24s; }

/* ── reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
}

/* ── print ──────────────────────────────────────────────────── */
@media print {
  .header, .scroll-cue, .ribbon, .toast, .lightbox, .hero-sky, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
