/* Castled's website: one stylesheet for index.html, privacy.html and legal.html. No scripts anywhere (the privacy policy says so). */

@font-face { font-family: "Cinzel"; font-weight: 400 900; font-display: swap;
             src: url("fonts/Cinzel.woff2") format("woff2"), url("fonts/Cinzel-Bold.ttf") format("truetype"); }
@font-face { font-family: "Alegreya"; font-weight: 400 900; font-display: swap; src: url("fonts/Alegreya.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400 900; font-display: swap;
             src: url("fonts/Alegreya-Italic.woff2") format("woff2"); }

:root {
  --ink-0: #0b0705; --ink-1: #130d09; --ink-2: #1c140e; --ink-3: #2a1f16;
  --text: #efe5d0; --text-dim: #cdbd9f; --text-faint: #a8977a;
  --gold: #dcb062; --gold-light: #f5dfa2; --gold-deep: #a9792f; --hair: rgba(220, 176, 98, .28);
  --red: #8c2419; --red-light: #b8402c; --blue: #2b5797; --blue-deep: #193562;
  --parch: #ecdfc2; --parch-edge: #cfb88a; --parch-ink: #2a1b0f; --parch-ink-dim: #4f3a24;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Alegreya", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .4 0 0 0 1.1 -.25'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--ink-0); }
html:has(.lightbox :target) { overflow: hidden; }
body { margin: 0; background: var(--ink-1); color: var(--text); font-family: var(--body); font-size: 1.1875rem; line-height: 1.65;
       font-kerning: normal; text-rendering: optimizeLegibility; overflow-x: hidden; }
/* a fine grain over everything, like paint on board */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--grain); opacity: .16;
              mix-blend-mode: overlay; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-decoration-color: rgba(245, 223, 162, .45); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--gold-light); color: var(--ink-1); padding: .6rem 1rem;
        font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; }
.eyebrow { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.1rem; font-family: var(--display); font-weight: 600;
           font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.eyebrow.centre { justify-content: center; }
.eyebrow.centre::after { content: ""; width: 2.6rem; height: 1px; background: linear-gradient(270deg, transparent, var(--gold)); }
.eyebrow b { font-weight: 800; color: var(--gold-light); letter-spacing: .12em; }
.title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.04; letter-spacing: .01em; color: var(--gold-light);
         background: linear-gradient(180deg, #fbecc0 10%, var(--gold) 70%, #b98a3f); -webkit-background-clip: text; background-clip: text;
         -webkit-text-fill-color: transparent; padding-bottom: .08em; margin-bottom: 1.4rem; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.55; color: var(--text); }
.orn { display: block; width: min(15rem, 60%); height: 1.5rem; margin: 0 auto; color: var(--gold); }

/* ---------- header ---------- */
.site-head { position: absolute; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
             gap: 1rem; padding: 1.1rem var(--gutter); }
.site-head.solid { position: relative; background: linear-gradient(var(--ink-0), var(--ink-1)); border-bottom: 1px solid var(--hair); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--gold-light); font-family: var(--display);
         font-weight: 700; font-size: 1.15rem; letter-spacing: .2em; min-height: 44px; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 22%; box-shadow: 0 0 0 1px rgba(245, 223, 162, .55), 0 4px 14px rgba(0, 0, 0, .5); }
.site-nav { display: flex; gap: clamp(.9rem, 2.4vw, 2.2rem); }
.site-nav a { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase;
              color: var(--text); text-decoration: none; padding: .8rem 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--gold-light); border-bottom-color: var(--gold); }
.site-head:not(.solid) .brand, .site-head:not(.solid) .site-nav a { text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 18px rgba(0, 0, 0, .6); }
@media (max-width: 52rem) { .site-nav .wide { display: none; } }
@media (max-width: 30rem) { .site-nav { display: none; } .brand { font-size: 1rem; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; min-height: clamp(38rem, min(100svh, 62vw), 64rem); overflow: hidden;
        background: var(--ink-0); }
@media (max-aspect-ratio: 4/5) { .hero { min-height: clamp(38rem, 100svh, 56rem); } }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 8, 5, .82) 0%, rgba(30, 15, 10, .52) 18%, rgba(40, 20, 12, .14) 36%, rgba(0, 0, 0, 0) 48%,
                    rgba(0, 0, 0, 0) 70%, rgba(19, 13, 9, .78) 90%, var(--ink-1) 100%),
    radial-gradient(130% 95% at 50% 46%, transparent 52%, rgba(8, 4, 2, .72) 100%); }
.hero-inner { align-self: start; text-align: center; padding: clamp(6.5rem, 15svh, 10rem) var(--gutter) 0; }
.logo { font-size: clamp(3.6rem, 13.5vw, 10.5rem); line-height: .9; letter-spacing: .07em; margin: 0 0 0 .07em;
        background: linear-gradient(180deg, #fff3cc 8%, #f2d48c 38%, #d5a24e 66%, #9c6c27 96%); -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
        filter: drop-shadow(0 2px 0 #2b1a0c) drop-shadow(0 -1px 0 rgba(255, 240, 200, .25)) drop-shadow(0 12px 22px rgba(0, 0, 0, .65)); }
.tagline { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: clamp(.6rem, 1.6vw, 1.1rem) 0 0;
           font-family: var(--display); font-weight: 700; letter-spacing: .34em; font-size: clamp(.82rem, 1.7vw, 1.2rem); color: #fff6df;
           text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }
.tagline::before, .tagline::after { content: ""; flex: 0 0 clamp(1.6rem, 6vw, 5rem); height: 1px;
                                    background: linear-gradient(90deg, transparent, var(--gold-light)); }
.tagline::after { transform: scaleX(-1); }
@media (max-width: 30rem) { .tagline { letter-spacing: .2em; gap: .7rem; } .tagline::before, .tagline::after { flex-basis: 1.2rem; } }
.hero-foot { align-self: end; display: grid; justify-items: center; gap: 1.4rem; padding: 0 var(--gutter) clamp(2.2rem, 6svh, 4rem);
             text-align: center; }
.hero-lede { margin: 0; max-width: 36rem; font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; color: #fff6e2;
             text-shadow: 0 2px 12px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem; }

/* The Google Play badge's slot: the official badge (about 3.4:1) replaces .store-slot when the game is live. */
.store-slot { position: relative; display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: .85rem; min-width: 13.5rem;
              padding: .7rem 1.4rem .7rem 1.05rem; border-radius: 10px; color: var(--gold-light); text-align: left;
              background: linear-gradient(180deg, rgba(36, 24, 14, .92), rgba(14, 9, 6, .94));
              box-shadow: inset 0 0 0 1px rgba(245, 223, 162, .7), inset 0 0 0 4px rgba(20, 12, 7, .9), inset 0 0 0 5px rgba(220, 176, 98, .35),
                          0 10px 30px rgba(0, 0, 0, .55); }
.store-slot svg { width: 1.9rem; height: 1.9rem; color: var(--gold); }
.store-slot small { display: block; font-family: var(--display); font-weight: 600; font-size: .66rem; letter-spacing: .28em;
                    text-transform: uppercase; color: var(--text-dim); line-height: 1.3; }
.store-slot strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: .08em; line-height: 1.2; }
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: .75rem 1.5rem; font-family: var(--display);
       font-weight: 700; font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: #2a1708;
       border-radius: 3px; background: linear-gradient(180deg, #f8e3a6, #dcae5c 55%, #b98a3c);
       box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 56, 18, .45), 0 0 0 1px #6b4a1c, 0 10px 26px rgba(0, 0, 0, .5);
       transition: filter .2s ease, transform .2s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn svg { width: 1rem; height: 1rem; }

/* ---------- the charter: one price ---------- */
.charter { position: relative; padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 6.5rem);
           background: radial-gradient(60% 70% at 50% 40%, rgba(120, 72, 30, .22), transparent 70%), var(--ink-1); }
.parchment { position: relative; color: var(--parch-ink); padding: clamp(2.6rem, 6vw, 4.6rem) clamp(1.4rem, 5vw, 4.4rem) clamp(2.4rem, 5vw, 3.8rem);
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(120, 82, 34, .32) 100%),
    radial-gradient(40% 30% at 18% 22%, rgba(255, 250, 235, .45), transparent 70%),
    radial-gradient(35% 40% at 85% 80%, rgba(160, 120, 60, .18), transparent 70%),
    var(--parch);
  box-shadow: inset 0 0 0 1px rgba(104, 72, 32, .55), inset 0 0 0 7px rgba(236, 223, 194, .0), inset 0 0 0 8px rgba(104, 72, 32, .35),
              inset 0 0 40px rgba(110, 72, 28, .35), 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .6); }
.parchment::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .5; mix-blend-mode: multiply; pointer-events: none; }
.parchment > * { position: relative; }
.corner { position: absolute; width: 3.2rem; height: 3.2rem; color: #7a5424; opacity: .75; }
.corner.tl { top: .9rem; left: .9rem; } .corner.tr { top: .9rem; right: .9rem; transform: scaleX(-1); }
.corner.bl { bottom: .9rem; left: .9rem; transform: scaleY(-1); } .corner.br { bottom: .9rem; right: .9rem; transform: scale(-1); }
.parchment .eyebrow { color: #7a2a1a; }
.parchment .eyebrow::before { background: linear-gradient(90deg, transparent, #7a2a1a); }
.parchment .eyebrow::after { background: linear-gradient(270deg, transparent, #7a2a1a); }
.parchment h2 { text-align: center; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.12; color: #5a1a10; letter-spacing: .01em; }
.parchment .orn { color: #8a5f2a; margin-block: 1.2rem 2.4rem; }
.clauses { display: grid; gap: 2.2rem; }
@media (min-width: 58rem) { .clauses { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .clause + .clause { border-left: 1px solid rgba(104, 72, 32, .35); } .clause { padding: 0 2.2rem; } }
.clause { text-align: center; }
.seal { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin: 0 auto 1rem; border-radius: 50%;
        font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #f6dfb0; letter-spacing: .04em;
        background: radial-gradient(circle at 34% 30%, #c4503b 0, #962c1e 38%, #6a170e 75%, #4c0f09 100%);
        box-shadow: inset 0 0 0 3px rgba(60, 10, 6, .55), inset 0 0 0 5px rgba(214, 120, 96, .35), 0 3px 6px rgba(70, 30, 10, .45);
        text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.clause h3 { font-size: 1.22rem; letter-spacing: .06em; color: var(--parch-ink); margin-bottom: .7rem; }
.clause p { margin: 0; color: var(--parch-ink-dim); font-size: 1.08rem; line-height: 1.6; }

/* ---------- chapter I: a full-bleed band with the words over it ---------- */
.band { position: relative; isolation: isolate; display: grid; min-height: clamp(34rem, 56.25vw, 60rem); }
.band-art { position: absolute; inset: 0; z-index: -2; }
.band-art img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.band-copy { align-self: center; max-width: 34rem; padding: 4rem 0; }
.band-copy p { color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.build::before { background:
    linear-gradient(90deg, rgba(14, 9, 6, .94) 0%, rgba(14, 9, 6, .8) 26%, rgba(14, 9, 6, .16) 48%, rgba(14, 9, 6, 0) 60%),
    linear-gradient(180deg, var(--ink-1) 0%, rgba(19, 13, 9, 0) 14%, rgba(19, 13, 9, 0) 84%, var(--ink-1) 100%); }
.build .band-art img { object-position: 70% 50%; }
.tiers { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; list-style: none; margin: 1.8rem 0 0; padding: 0;
         font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.tiers li { display: flex; align-items: center; gap: .7rem; }
.tiers li::before { content: ""; width: .45rem; height: .45rem; rotate: 45deg; border: 1px solid var(--gold); background: rgba(220, 176, 98, .3); }
.tiers li:not(:last-child)::after { content: ""; width: 1.8rem; height: 1px; margin-left: .2rem; background: linear-gradient(90deg, var(--gold), transparent); }
@media (max-width: 47.99rem) {
  .band { min-height: 0; display: block; }
  .band > .band-art { position: relative; aspect-ratio: 4 / 3.2; }
  .band::before { inset: 0 0 auto; height: calc((100vw) * 3.2 / 4); }
  .build::before { background: linear-gradient(180deg, var(--ink-1) 0%, rgba(19, 13, 9, 0) 16%, rgba(19, 13, 9, 0) 62%, var(--ink-1) 100%); }
  .band-copy { padding: 0 0 3.5rem; margin-top: -3.5rem; max-width: none; }
}

/* ---------- chapter II: the night ---------- */
.night { position: relative; padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem); overflow: hidden;
         background:
           radial-gradient(46% 24% at 50% 70%, rgba(214, 112, 40, .16), transparent 72%),
           radial-gradient(70% 50% at 50% 0%, rgba(56, 70, 110, .28), transparent 70%),
           linear-gradient(180deg, var(--ink-1), #0f0d12 30%, #110d0c 100%); }
.night-head { text-align: center; max-width: 52rem; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); }
.night-head .title { margin-bottom: 0; }
.tri { position: relative; margin: 0; }
.tri-frame { position: relative; }
.tri-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tri-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #0f0d12 0%, transparent 12%, transparent 76%, rgba(10, 8, 8, .85) 100%); }
.tri-label { position: absolute; z-index: 1; bottom: 5%; translate: -50% 0; font-family: var(--display); font-weight: 700;
             font-size: clamp(.7rem, 1.4vw, 1rem); letter-spacing: .38em; text-transform: uppercase; color: #fff4dc;
             text-shadow: 0 2px 10px #000, 0 0 2px #000; padding-left: .38em; }
.tri-label:nth-of-type(1) { left: 16%; } .tri-label:nth-of-type(2) { left: 49%; } .tri-label:nth-of-type(3) { left: 82%; }
.tri figcaption.cap { text-align: center; }
.cap { margin: 1rem auto 0; font-style: italic; font-size: 1rem; color: var(--text-faint); }
.night-copy { display: grid; gap: 1.2rem 3.5rem; max-width: 64rem; margin: clamp(2.6rem, 5vw, 3.8rem) auto 0; }
@media (min-width: 52rem) { .night-copy { grid-template-columns: 1fr 1fr; } }
.night-copy p { margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.3rem); line-height: 1.6; }
.night-copy p:first-child::first-letter { float: left; font-family: var(--display); font-weight: 700; font-size: 3.6em; line-height: .82;
  margin: .08em .12em 0 0; color: var(--gold-light); }
.ember { color: #f0b072; }

/* ---------- chapter III: the siege, on the phone ---------- */
.siege { position: relative; padding: clamp(5rem, 10vw, 8rem) 0 clamp(4.5rem, 9vw, 7rem);
         background:
           radial-gradient(70% 55% at 70% 40%, rgba(150, 100, 50, .16), transparent 70%),
           linear-gradient(180deg, #110d0c, #1d1610 40%, #19130e 100%); }
.siege-grid { display: grid; gap: 2.5rem 4rem; align-items: end; }
@media (min-width: 60rem) { .siege-grid { grid-template-columns: 5fr 6fr; } }
.roster { display: grid; gap: 1.2rem; margin: 0; }
.roster div { padding-left: 1.1rem; border-left: 2px solid var(--gold-deep); }
.roster dt { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.roster dd { margin: .25rem 0 0; }
.device { position: relative; margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 68rem; padding: clamp(6px, 1.1vw, 14px);
          border-radius: clamp(16px, 3.2vw, 44px);
          background: linear-gradient(150deg, #3b342e 0%, #15110e 30%, #0a0807 70%, #2a241f 100%);
          box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px #000, 0 40px 90px rgba(0, 0, 0, .7), 0 0 120px rgba(220, 150, 70, .08); }
.device img { width: 100%; border-radius: clamp(10px, 2.4vw, 32px); background: #000; }
.device::after { content: ""; position: absolute; left: clamp(14px, 2.4vw, 32px); top: 50%; width: clamp(5px, .8vw, 11px); aspect-ratio: 1;
                 translate: 0 -50%; border-radius: 50%; background: #050404; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.device-fig { margin: 0; }
.device-cap { text-align: center; }
.missions { display: grid; gap: 1rem; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 0; list-style: none; counter-reset: m; }
@media (min-width: 48rem) { .missions { grid-template-columns: repeat(3, 1fr); } }
.missions li { position: relative; padding: 1.4rem 1.4rem 1.3rem 4.8rem; min-height: 5.4rem; display: flex; align-items: center;
               background: linear-gradient(180deg, rgba(60, 44, 30, .55), rgba(30, 22, 15, .65));
               box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 rgba(255, 230, 180, .06); border-radius: 4px;
               font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: var(--gold-light); }
.missions li::before { counter-increment: m; content: counter(m, upper-roman); position: absolute; left: 1.2rem; top: 50%; translate: 0 -50%;
                       width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; color: #f6dfb0;
                       background: radial-gradient(circle at 34% 30%, #3f6fb5, #24467e 55%, #142a50); box-shadow: inset 0 0 0 2px rgba(10, 20, 40, .5), 0 0 0 1px rgba(245, 223, 162, .45); }
.missions small { display: block; font-size: .64rem; letter-spacing: .3em; color: var(--text-faint); font-weight: 600; margin-bottom: .15rem; }
.learn { max-width: 62rem; margin: clamp(3rem, 6vw, 4.5rem) auto 0; text-align: center; }
.learn .missions { margin-top: 1.6rem; text-align: left; }

/* ---------- chapter IV: rivals ---------- */
.rivals::before { background:
    linear-gradient(270deg, rgba(14, 9, 6, .94) 0%, rgba(14, 9, 6, .8) 30%, rgba(14, 9, 6, .15) 58%, rgba(14, 9, 6, 0) 72%),
    linear-gradient(180deg, #19130e 0%, rgba(19, 13, 9, 0) 14%, rgba(19, 13, 9, 0) 80%, var(--ink-1) 100%); }
.rivals .band-copy { justify-self: end; }
.rivals .band-art img { object-position: 30% 50%; }
@media (max-width: 47.99rem) { .rivals::before { background: linear-gradient(180deg, #19130e 0%, rgba(19, 13, 9, 0) 16%, rgba(19, 13, 9, 0) 62%, var(--ink-1) 100%); } }
.banners { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.35rem, 1.2vw, 1rem); list-style: none; margin: 1.6rem 0 1.8rem; padding: 0; }
.banners li { position: relative; display: grid; justify-items: center; padding: .9rem .2rem 1.9rem; text-align: center;
              font-family: var(--display); font-weight: 700; font-size: clamp(.58rem, 1.15vw, .74rem); letter-spacing: .1em; text-transform: uppercase;
              color: #fbeccb; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
              background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .18)), var(--red);
              box-shadow: inset 0 3px 0 var(--gold), inset 0 0 0 1px rgba(0, 0, 0, .35); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.banners li:nth-child(even) { background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .2)), var(--blue); }
.banners li::before { content: ""; width: .5rem; height: .5rem; rotate: 45deg; margin-bottom: .55rem; background: var(--gold-light); opacity: .85; }
@media (max-width: 34rem) {
  .banners { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
  .banners li { flex: 0 0 calc((100% - 1rem) / 3); font-size: .7rem; }
}
.maps { display: grid; gap: .5rem; margin: 0; }
.maps div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; align-items: baseline; }
.maps dt { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.maps dd { margin: 0; }

/* ---------- chapter V: friends ---------- */
.friends { position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
           background: radial-gradient(60% 60% at 80% 50%, rgba(43, 87, 151, .2), transparent 70%), var(--ink-1); }
.friends::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='none' stroke='%23f5dfa2' stroke-width='1'%3E%3Cpath d='M0 22 22 0l22 22-22 22z'/%3E%3C/g%3E%3Cpath d='M22 18l4 4-4 4-4-4z' fill='%23f5dfa2'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(70% 80% at 72% 50%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 72% 50%, #000, transparent 75%); }
.friends > * { position: relative; }
.friends-grid { display: grid; gap: 3rem 4.5rem; align-items: center; }
@media (min-width: 62rem) { .friends-grid { grid-template-columns: 5fr 7fr; } .friends .device { margin: 0; } }
.friends .device { margin-top: 0; }

/* ---------- gallery ---------- */
.gallery { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); background: linear-gradient(180deg, var(--ink-1), var(--ink-0)); }
.gallery-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gallery-head .title { margin-bottom: 0; }
.mosaic { display: grid; gap: clamp(4px, .6vw, 8px); padding: 0 clamp(4px, .6vw, 8px); grid-template-columns: repeat(2, 1fr);
          list-style: none; margin: 0; }
.mosaic li { position: relative; }
.mosaic a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--ink-2); }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
              filter: saturate(.92) brightness(.9); }
.mosaic a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(245, 223, 162, 0); transition: box-shadow .3s ease; }
.mosaic a:hover img, .mosaic a:focus-visible img { transform: scale(1.045); filter: saturate(1.05) brightness(1.04); }
.mosaic a:hover::after, .mosaic a:focus-visible::after { box-shadow: inset 0 0 0 2px var(--gold-light); }
.mosaic a:focus-visible { outline-offset: -4px; }
.mosaic li:first-child, .mosaic li:last-child { grid-column: 1 / -1; }
@media (min-width: 48rem) {
  .mosaic { grid-template-columns: repeat(6, 1fr); }
  .mosaic li { grid-column: span 2; }
  .mosaic li:first-child { grid-column: span 4; grid-row: span 2; }
  .mosaic li:first-child img { aspect-ratio: auto; }
  .mosaic li:nth-child(7), .mosaic li:nth-child(8) { grid-column: span 3; }
}
.zoom { position: absolute; right: .7rem; bottom: .7rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%;
        background: rgba(12, 8, 5, .7); color: var(--gold-light); opacity: 0; transition: opacity .3s ease; box-shadow: inset 0 0 0 1px var(--hair); }
.zoom svg { width: 1rem; height: 1rem; }
.mosaic a:hover .zoom, .mosaic a:focus-visible .zoom { opacity: 1; }
@media (hover: none) { .zoom { opacity: .85; } }

/* the lightbox: links to #shot-N open it (CSS :target), a strip you can swipe, no script */
.lightbox { display: none; }
.lightbox:has(:target) { display: block; position: fixed; inset: 0; z-index: 100; background: #070504; }
.lb-track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior: contain; scroll-snap-type: x mandatory; scroll-behavior: auto;
            scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; display: grid;
            grid-template-rows: auto auto; align-content: center; justify-items: center; padding: 4.2rem clamp(.5rem, 6vw, 6rem) 1.2rem; }
.lb-slide img { max-width: 100%; max-height: calc(100svh - 10rem); width: auto; height: auto; object-fit: contain;
                box-shadow: 0 20px 60px rgba(0, 0, 0, .8), 0 0 0 1px rgba(245, 223, 162, .25); }
.lb-slide figcaption { display: flex; gap: 1rem; align-items: baseline; justify-content: center; max-width: 52rem; padding: 1rem 1rem 0;
                       text-align: center; font-style: italic; color: var(--text-dim); font-size: 1.02rem; line-height: 1.45; }
.lb-slide figcaption span { font-style: normal; font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .2em;
                            color: var(--gold); white-space: nowrap; }
.lb-nav { position: absolute; top: 50%; translate: 0 -50%; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%;
          color: var(--gold-light); background: rgba(20, 13, 8, .75); box-shadow: inset 0 0 0 1px var(--hair); text-decoration: none; }
.lb-nav svg { width: 1.3rem; height: 1.3rem; }
.lb-nav:hover { background: rgba(60, 40, 20, .9); }
.lb-prev { left: clamp(.4rem, 1.6vw, 1.5rem); } .lb-next { right: clamp(.4rem, 1.6vw, 1.5rem); }
.lb-close { position: absolute; z-index: 2; top: .8rem; right: .8rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%;
            color: var(--gold-light); background: rgba(20, 13, 8, .8); box-shadow: inset 0 0 0 1px var(--hair); }
.lb-close svg { width: 1.2rem; height: 1.2rem; }
.lb-title { position: absolute; z-index: 1; top: 1.35rem; left: 1.2rem; margin: 0; font-family: var(--display); font-weight: 700; font-size: .78rem;
            letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 40rem) { .lb-nav { top: auto; bottom: 1rem; translate: none; } .lb-slide { padding-bottom: 5rem; } }

/* ---------- the last call ---------- */
.finale { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(30rem, 48vw, 46rem); text-align: center;
          padding: 5rem var(--gutter); overflow: hidden; }
.finale .band-art img { object-position: 50% 55%; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ink-0) 0%, rgba(11, 7, 5, .55) 22%, rgba(11, 7, 5, .55) 78%, var(--ink-0) 100%),
              radial-gradient(60% 70% at 50% 50%, rgba(11, 7, 5, .55), rgba(11, 7, 5, .2)); }
.finale-logo { font-size: clamp(2.6rem, 8vw, 5.6rem); letter-spacing: .08em; margin-left: .08em; line-height: 1;
               background: linear-gradient(180deg, #fff3cc 8%, #f2d48c 40%, #c8933f 90%); -webkit-background-clip: text; background-clip: text;
               -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 #2b1a0c) drop-shadow(0 10px 20px rgba(0, 0, 0, .7)); }
.finale .tagline { margin-bottom: 1.2rem; }
.finale p.promise { font-style: italic; font-size: clamp(1.15rem, 2vw, 1.4rem); color: #fff4dc; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); margin: 0 0 2rem; }

/* ---------- footer ---------- */
.site-foot { position: relative; background: var(--ink-0); padding: 3.2rem 0 2.6rem; color: var(--text-dim); font-size: 1.02rem; }
.site-foot::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px;
                     background: linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold-light) 50%, var(--gold-deep) 80%, transparent); }
.foot-grid { display: grid; gap: 1.6rem 3rem; align-items: center; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: auto 1fr auto; } }
.foot-links { display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; }
@media (min-width: 52rem) { .foot-links { justify-content: center; } }
.foot-links a { display: inline-block; padding: .55rem 0; color: var(--text); text-decoration-color: var(--hair); }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--gold-light); }
.foot-soon { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* ---------- long-form pages: privacy, terms ---------- */
.page-banner { position: relative; isolation: isolate; padding: clamp(3.6rem, 9vw, 6.5rem) var(--gutter) clamp(2.8rem, 6vw, 4.2rem); text-align: center;
               overflow: hidden; border-bottom: 1px solid var(--hair); }
.page-banner .band-art img { object-position: 50% 42%; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 7, 5, .5), rgba(19, 13, 9, .6) 45%, rgba(19, 13, 9, .9) 85%, var(--ink-1)),
              radial-gradient(70% 90% at 50% 45%, transparent 30%, rgba(8, 5, 3, .65)); }
.page-banner h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: .02em;
                  background: linear-gradient(180deg, #fff1c6 10%, var(--gold) 75%, #b5843c); -webkit-background-clip: text; background-clip: text;
                  -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7)) drop-shadow(0 8px 18px rgba(0, 0, 0, .6)); }
.page-banner .orn { margin-top: 1rem; }
.updated { margin: 1rem auto 0; max-width: 40rem; color: var(--text-dim); font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.prose { width: min(100% - 2 * var(--gutter), 43rem); margin: 0 auto; padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem);
         font-size: 1.1875rem; line-height: 1.72; }
.prose h2 { position: relative; font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.25; letter-spacing: .04em; color: var(--gold-light);
            margin: 3.2rem 0 1rem; padding-top: 1.6rem; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 3.4rem; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.prose h2::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; rotate: 45deg; background: var(--gold); }
.prose h3 { font-size: 1.06rem; letter-spacing: .05em; color: var(--gold); margin: 2.2rem 0 .5rem; }
.prose ul { padding: 0; margin: 0 0 1.2em; list-style: none; }
.prose li { position: relative; padding-left: 1.5rem; margin: .55rem 0; }
.prose li::before { content: ""; position: absolute; left: .2rem; top: .68em; width: .42rem; height: .42rem; rotate: 45deg; border: 1px solid var(--gold);
                    background: rgba(220, 176, 98, .3); }
.prose strong { color: #fff6e2; font-weight: 700; }
.prose a { overflow-wrap: anywhere; }
.prose .short { position: relative; margin: 2.2rem 0 2.6rem; padding: 1.8rem clamp(1.2rem, 4vw, 2.4rem) 1.4rem; color: var(--parch-ink);
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(120, 82, 34, .3) 100%),
              radial-gradient(40% 40% at 20% 15%, rgba(255, 250, 235, .45), transparent 70%), var(--parch);
  box-shadow: inset 0 0 0 1px rgba(104, 72, 32, .5), inset 0 0 0 6px var(--parch), inset 0 0 0 7px rgba(104, 72, 32, .3),
              inset 0 0 30px rgba(110, 72, 28, .28), 0 20px 50px rgba(0, 0, 0, .5); }
.prose .short::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .45; mix-blend-mode: multiply; pointer-events: none; }
.prose .short > * { position: relative; }
.prose .short h2 { margin: 0 0 .6rem; padding: 0; color: #5a1a10; font-size: 1.3rem; }
.prose .short h2::before, .prose .short h2::after { content: none; }
.prose .short ul { margin: 0; }
.prose .short li::before { border-color: #7a2a1a; background: rgba(122, 42, 26, .35); }
.prose .short strong { color: var(--parch-ink); }
.prose .short a { color: #6a2414; }

@media (max-width: 30rem) {
  body { font-size: 1.125rem; }
  .tiers { font-size: .64rem; letter-spacing: .1em; gap: .5rem .6rem; }
  .tiers li { gap: .5rem; }
  .tiers li:not(:last-child)::after { width: 1rem; }
  .prose { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
