/* Babel Destiny — landing. The page is a HIDE the Tower was written on: warm vellum under
   carved stone, the game's own candle-gold for anything that speaks.

   Two generated tiles do the material work (see assets/parchment.png, assets/script.png):
   the hide's mottle and the Tower's invented script, both seamless - the panel runs taller
   than any tile and a seam across 3000 px is the one flaw nobody can unsee.
   Cinzel is self-hosted (SIL OFL); body text falls back to system serifs. */

@font-face {
  font-family: "Cinzel";
  src: url("assets/fonts/Cinzel.ttf") format("truetype");
  font-display: swap;
}

:root {
  --void: #0d0a07;        /* behind the hide: warm near-black, never blue */
  --hide: #5a462c;        /* the vellum's own brown - the tile carries the mottle */
  --hide-dark: #3d2f1e;
  --cream: #f4e6c8;       /* headings */
  --body: #ecdcba;        /* running text on the hide */
  --dim: #c4ad86;         /* captions, notes - still legible on brown */
  --gold: #e9c88b;
  --ember: #ff8a3c;
  --stone: #241d15;       /* what a carved frame holds */
  --stone-lit: #9c8258;   /* the frame's lit edge (top-left) */
  --stone-shade: #4a3a24; /* and its shaded one */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--void);
  color: var(--body);
  font: 17px/1.7 Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .cta, .chrome { font-family: "Cinzel", Georgia, serif; }
a { color: var(--gold); }
img, video { max-width: 100%; }

/* ---- the chrome bar: the game's own UI rail, not a fake nav ---- */
.chrome {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 9px 18px;
  background: linear-gradient(#100c08, #0b0805);
  border-bottom: 1px solid #2c2216;
  box-shadow: 0 2px 14px rgba(0,0,0,.6);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}
.chrome-c { flex: 1; text-align: center; color: #cbb391; }
.chrome-glyphs { color: var(--gold); opacity: .5; letter-spacing: .5em; font-size: 14px; white-space: nowrap; }
.chrome-glyphs:last-child { text-align: right; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: 86vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; filter: brightness(.66) saturate(1.05);
}
/* the hide's shadow falls ONTO the footage, so the panel below reads as laid over it */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 30%, transparent 30%, rgba(13,10,7,.55) 100%),
    linear-gradient(to bottom, rgba(13,10,7,.75) 0%, transparent 26%, transparent 62%, rgba(13,10,7,.9) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 40px 20px 90px; }
.rune-row { color: var(--gold); letter-spacing: 1.2em; opacity: .6; font-size: 15px; margin-bottom: 18px; }
h1 {
  font-size: clamp(42px, 8.4vw, 88px);
  letter-spacing: .16em;
  color: var(--cream);
  font-weight: 600;
  text-shadow: 0 2px 3px rgba(0,0,0,.9), 0 0 46px rgba(233,200,139,.28);
}
.tagline {
  font-size: clamp(17px, 2.4vw, 23px);
  margin: 16px 0 32px; color: var(--body); font-style: italic;
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
}
.sub { margin-top: 20px; color: var(--dim); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }

.cta {
  display: inline-block;
  padding: 15px 36px;
  color: #241a0c;
  text-decoration: none;
  letter-spacing: .14em;
  font-size: 15px;
  font-weight: 700;
  border-radius: 3px;
  background: linear-gradient(#f0d49a, #c99f56 55%, #a87f3e);
  box-shadow:
    inset 0 1px 0 rgba(255,246,224,.85),
    inset 0 -2px 0 rgba(90,62,24,.55),
    0 0 0 1px #6a4f24,
    0 6px 20px rgba(0,0,0,.55);
  transition: filter .18s, transform .18s;
}
.cta:hover { filter: brightness(1.09); transform: translateY(-1px); }
.cta.soon {
  background: linear-gradient(#3a2f20, #2a2116);
  color: var(--dim);
  box-shadow: inset 0 1px 0 rgba(255,235,190,.10), 0 0 0 1px #4a3a24;
  pointer-events: none;
}

/* ---- THE HIDE: everything below the hero is written on it ---- */
main {
  position: relative;
  margin: -70px auto 0;
  max-width: 1180px;
  padding: 84px 58px 76px;
  color: var(--body);
  background-color: var(--hide);
  background-image:
    /* THE LIGHT FALLS FROM THE CROWN (Jorel: "ese juego de luces"). A torch over the arch:
       strong for the first 700 px, then the slab settles into its own warm mid-tone. A
       single top-to-bottom ramp cannot do this - over a 4600 px page it ends in pitch. */
    radial-gradient(150% 700px at 50% -60px, rgba(255,226,168,.34), transparent 72%),
    linear-gradient(rgba(255,238,206,.10) 0, transparent 460px),
    radial-gradient(108% 92% at 50% 34%, transparent 42%, rgba(18,11,4,.58) 100%),
    url("assets/script.png"),
    url("assets/stone.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, auto, 900px 132px, 1180px 1180px;
  border-radius: 50% 50% 0 0 / 88px 88px 0 0;
  box-shadow:
    inset 0 2px 0 rgba(255,240,206,.34),   /* the crown catches the light */
    inset 0 0 130px rgba(30,19,7,.30),     /* a breath of edge shade, never smoke */
    inset 0 -70px 70px -40px rgba(13,10,7,.85), /* the hide dissolves into the dark it hangs in */
    0 -14px 44px rgba(0,0,0,.75);
}
/* the script is written IN the hide, not on it: knock it back to a watermark */
main { background-blend-mode: soft-light, normal, multiply, soft-light, normal; }

/* the lintel: a carved lozenge seated on the hide's crown, the way a scroll is pinned */
main::before {
  content: "";
  position: absolute; top: -13px; left: 50%; width: 26px; height: 26px;
  transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #a98a5c, #4d3b24);
  box-shadow: inset 0 1px 0 rgba(255,240,205,.5), 0 3px 10px rgba(0,0,0,.6);
  border-radius: 3px;
}
section {
  padding: 46px 0 10px; position: relative;
  /* the light does not die after the first screen: every block is lit from its own top edge */
  background: linear-gradient(rgba(255,236,200,.055) 0, transparent 230px);
}
/* a chiselled seam: the groove, then the lip above it catching the same light */
section + section {
  border-top: 1px solid rgba(28,18,8,.45);
  box-shadow: 0 1px 0 rgba(255,238,204,.13);
  margin-top: 16px;
}

h2 {
  color: var(--cream);
  font-size: clamp(23px, 2.9vw, 31px);
  font-variant-caps: small-caps;
  letter-spacing: .05em;
  margin-bottom: 18px;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255,240,205,.14), 0 2px 6px rgba(30,18,6,.5);
}
h2 span { color: var(--gold); opacity: .62; margin-right: 12px; font-size: .8em; }

.lead { max-width: 66ch; font-size: 17.5px; margin-bottom: 26px; }
.lead em { color: var(--cream); }
.note { color: var(--dim); font-size: 14px; font-style: italic; margin-top: 12px; }

/* ---- carved stone: the frame every image and card is set into ----
   `isolation: isolate` is load-bearing, not tidiness. Without a stacking context of its own,
   a z-index:-1 pseudo falls behind the nearest ancestor that HAS one - which here is the page
   itself - so the whole frame painted under the hide and the first build showed no stone at
   all. Isolating keeps both pseudos inside the card: behind its text, above the hide. */
.beat, .framed { position: relative; isolation: isolate; background: none; }
.beat::before, .framed::before,
.beat::after,  .framed::after { content: ""; position: absolute; z-index: -1; }
/* the band itself: lit from the top-left, shaded to the bottom-right - carved, not drawn */
.beat::before, .framed::before {
  inset: 0; border-radius: 14px;
  background-image:
    linear-gradient(148deg, rgba(190,161,112,.92) 0%, rgba(74,58,36,.94) 48%, rgba(126,102,68,.92) 100%),
    url("assets/stone.jpg");
  background-size: auto, 420px 420px;
  background-blend-mode: overlay, normal;
  background-color: var(--stone-shade);
  box-shadow:
    inset 0 2px 0 rgba(255,240,208,.45),
    inset 0 -2px 0 rgba(0,0,0,.5),
    0 0 0 1px rgba(30,20,8,.55),
    0 14px 30px rgba(18,11,3,.6);
}
/* and the recess it holds */
.beat::after, .framed::after {
  inset: 9px; border-radius: 6px;
  background: linear-gradient(#2c241a, #191308);
  box-shadow: inset 0 2px 10px rgba(0,0,0,.8);
}

.beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 30px; }
.beat { padding: 20px 22px 24px; border-radius: 14px; }
.beat img { width: 100%; display: block; border-radius: 4px; margin-bottom: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.5); }
.beat h3 {
  color: var(--gold); font-size: 15px; font-variant-caps: small-caps;
  letter-spacing: .07em; margin-bottom: 8px;
}
.beat p { color: #cdb894; font-size: 14.5px; line-height: 1.6; }
.beat-glyph {
  font-size: 30px; color: #6d5c42; text-align: center; letter-spacing: .5em;
  padding: 52px 0; margin-bottom: 14px; border-radius: 4px;
  background: linear-gradient(#191308, #221a10);
  box-shadow: inset 0 2px 10px rgba(0,0,0,.8);
}

/* ---- media on the hide ---- */
.framed { display: block; padding: 12px; border-radius: 14px; margin-bottom: 18px; }
.framed > img, .framed > video { width: 100%; display: block; border-radius: 3px; }
/* RESERVE THE BOX. Every capture is 16:9, and a lazy image with no reserved height collapses
   its frame to a bar until it lands - the page jumped as each one arrived. */
.framed > img, .beat img { aspect-ratio: 16 / 9; object-fit: cover; }
.wide-video { width: 100%; display: block; border-radius: 3px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }
.fight-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 26px; }
.grid figure, .fight-row figure { margin: 0; }
figcaption {
  color: var(--dim); font-size: 13.5px; padding: 12px 2px 0; font-style: italic; text-align: center;
}

.contact { margin-top: 14px; }
.follow p { max-width: 66ch; }

footer {
  background: var(--void);
  border-top: 1px solid #2c2216;
  text-align: center;
  padding: 40px 20px 52px;
  color: #8b7a5f;
  font-size: 14px;
}
footer p + p { margin-top: 8px; }

@media (max-width: 760px) {
  main { padding: 62px 22px 30px; margin-top: -46px; border-radius: 50% 50% 0 0 / 46px 46px 0 0; }
  .grid, .fight-row { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; }
  .chrome { letter-spacing: .16em; font-size: 10.5px; padding: 8px 12px; }
  .chrome-glyphs { display: none; }
}


/* THE PARRY RITE (the playable thesis) */
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta.ghost { background: transparent; border: 1px solid rgba(233,200,139,.55); color: var(--gold); }
.cta.ghost:hover { border-color: var(--gold); }
.rite-stage {
  position: relative; margin: 26px auto 0; max-width: 560px; height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none; -webkit-user-select: none; outline-offset: 4px;
  background: radial-gradient(ellipse at 50% 62%, rgba(60,44,20,.55), rgba(8,6,4,.92) 70%);
}
.rite-rune {
  font-size: 96px; line-height: 1; margin: 0 0 10px; color: #caa96a;
  text-shadow: 0 0 18px rgba(233,200,139,.25); transition: transform .12s ease;
}
.rite-stage.win .rite-rune { color: #fff; text-shadow: 0 0 34px rgba(255,244,214,.9); }
.rite-stage.lose .rite-rune { color: #c0392b; text-shadow: 0 0 26px rgba(192,57,43,.6); }
.rite-word { font-family: "Cinzel", Georgia, serif; letter-spacing: .35em; font-size: 15px; color: var(--gold); opacity: .85; margin: 0; }
.rite-note { text-align: center; font-size: 14px; opacity: .65; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .rite-rune { transition: none; } }


/* Improvement-contract pass (2026-08-19) */
.hero-sub { max-width: 620px; margin: 14px auto 22px; font-size: 16.5px; line-height: 1.55; color: #d8cdb8; opacity: .92; }
.loop-list { list-style: none; padding: 0; max-width: 720px; margin: 26px auto 0; }
.loop-list li { padding: 10px 0 10px 6px; border-bottom: 1px solid rgba(233,200,139,.14); font-size: 16px; }
.loop-list li:last-child { border-bottom: 0; }
.loop-list strong { font-family: "Cinzel", Georgia, serif; letter-spacing: .12em; color: var(--gold); margin-right: 10px; }
.loop-list .red { color: #d8543f; font-weight: 700; }
.lineage { text-align: center; margin: 26px auto 0; font-family: "Cinzel", Georgia, serif; letter-spacing: .1em; font-size: 15px; color: var(--gold); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.lineage span:not(.arrow) { border: 1px solid rgba(233,200,139,.35); padding: 8px 14px; border-radius: 2px; background: rgba(20,14,6,.5); }
.lineage .arrow { opacity: .55; }
.facts { padding: 8px 20px 0; }
.facts-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; padding: 0; margin: 0 auto; max-width: 860px; font-variant-caps: small-caps; letter-spacing: .08em; color: #cbbfa6; font-size: 14.5px; }
.facts-list li::before { content: "᛫ "; color: var(--gold); opacity: .6; }
.finale { text-align: center; padding: 64px 20px 26px; }
.finale h2 { font-size: clamp(26px, 4.6vw, 40px); letter-spacing: .18em; }
.cta:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 760px) {
  .hero-sub { font-size: 15px; }
  .cta-row { flex-direction: column; align-items: center; }
}
