/* Terra Salgada — landing page.
   Same faces, palette and team colours as the game's own screens
   (one-of-us/public/board.html, play.html), so the page reads as the product. */

@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Grenze Gotisch";
  src: url("../fonts/grenze-gotisch-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-ui: "Literata", Georgia, "Times New Roman", serif;
  /* Display face is for Title Case only: in caps its accents collide. */
  --font-display: "Grenze Gotisch", "Literata", Georgia, serif;

  --bg: #0b0b10;
  --bg-2: #11111a;
  --bg-3: #181824;
  --line: rgba(255, 255, 255, .1);
  --ink: #ece6d8;
  --muted: #a8a294;
  --gold: #f2c14e;
  --gold-hi: #ffe08a;
  --coven: #ff8da1;
  --village: #7ee2a8;
  --neutral: #ffd27a;
  --violet: #b98cff;

  --radius: 16px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-ui); font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #1a1408;
        padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* ---- type ---------------------------------------------------------------- */
.title {
  font-family: var(--font-display); font-weight: 700; line-height: .92; letter-spacing: 0;
  font-size: clamp(4rem, 17vw, 9.5rem);
  background: linear-gradient(180deg, #fff6dc 0%, var(--gold-hi) 38%, var(--gold) 70%, #b07a1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .75)) drop-shadow(0 0 40px rgba(242, 193, 78, .18));
  padding-bottom: .06em;
}
.title-md { font-size: clamp(3rem, 11vw, 6rem); }
.kicker {
  font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--gold);
  margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.h2 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.02;
  font-size: clamp(2.25rem, 7.5vw, 3.75rem); color: #f6efdf; max-width: 18ch;
}
.h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.05; }
.lede { color: var(--muted); max-width: 60ch; margin-top: 16px; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .95rem; }
.btn-gold {
  color: #1d1505; background: linear-gradient(180deg, #ffe39a, var(--gold) 55%, #d99e2b);
  box-shadow: 0 0 0 1px rgba(255, 230, 160, .5) inset, 0 8px 28px rgba(242, 193, 78, .28), 0 2px 0 #8a5d12;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 230, 160, .7) inset, 0 12px 36px rgba(242, 193, 78, .42), 0 2px 0 #8a5d12; }
.btn-ghost {
  color: var(--ink); border: 1px solid rgba(255, 255, 255, .45); background: rgba(10, 12, 20, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

/* ---- header -------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  transition: background-color .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.top.solid {
  background: rgba(11, 11, 16, .82); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; text-decoration: none;
  color: var(--gold); text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .3s;
}
.top.solid .brand { opacity: 1; }
.top-nav { display: none; gap: 28px; }
.top-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.top-nav a:hover { color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 10px; }
.top-cta { opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity .3s, transform .3s var(--ease); }
.top.solid .top-cta { opacity: 1; pointer-events: auto; transform: none; }
.js .top:not(.solid) .top-cta { display: none; }
.top-right { margin-left: auto; }
html:not(.js) .top-cta { opacity: 1; pointer-events: auto; transform: none; }

.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 3px;
        background: rgba(10, 12, 20, .4); }
.lang button {
  min-width: 44px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .06em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: rgba(242, 193, 78, .18); color: var(--gold); }

/* ---- hero ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; max-height: 1100px;
  display: flex; align-items: flex-end; padding: 96px 0 72px;
}
.hero-art { position: absolute; inset: 0 0 auto 0; height: 68%; z-index: -2; }
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
  transform: scale(1.06); will-change: transform; animation: hero-in 2.4s var(--ease) both;
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1.06); } }
.hero-fog {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 16, .55) 0%, rgba(11, 11, 16, 0) 18%),
    linear-gradient(0deg, var(--bg) 0%, var(--bg) 32%, rgba(11, 11, 16, .78) 46%, rgba(11, 11, 16, 0) 64%);
}
.hero-body { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); text-align: center;
             display: flex; flex-direction: column; align-items: center; }
.eyebrow { font-style: italic; color: #e6d7ff; font-size: clamp(1.05rem, 3.6vw, 1.35rem);
           text-shadow: 0 0 18px rgba(185, 140, 255, .55), 0 2px 8px #000; margin-bottom: 6px; }
.pitch { max-width: 34ch; margin: 14px auto 0; font-size: clamp(1.08rem, 3.8vw, 1.32rem); line-height: 1.5;
         color: #efe7d6; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }
.ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; width: 100%; max-width: 340px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 26px;
         color: var(--muted); font-size: .92rem; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts li + li::before { content: "✦"; color: var(--gold); opacity: .6; font-size: .7em; margin-right: 12px; }
.facts b { color: var(--ink); font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 44px; height: 44px;
              display: grid; place-items: center; opacity: .7; }
.scroll-cue span { width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
                   transform: rotate(45deg); animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }

/* ---- sections ------------------------------------------------------------- */
.section { position: relative; padding: clamp(72px, 11vw, 120px) 0; }
.cast { padding-bottom: clamp(48px, 7vw, 80px); }

/* how */
.how { background:
  radial-gradient(45% 30% at 85% 35%, rgba(185, 140, 255, .09), transparent 100%),
  var(--bg); }
.steps { display: grid; gap: 16px; margin-top: 40px; counter-reset: s; }
.step {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); overflow: hidden;
}
.step-n {
  position: absolute; right: 14px; top: -14px; font-family: var(--font-display); font-weight: 700;
  font-size: 7rem; line-height: 1; color: rgba(242, 193, 78, .09); pointer-events: none;
}
.step-ico { width: 44px; height: 44px; color: var(--gold); margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; line-height: 1.05; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* cast */
.side-coven { --team: var(--coven); }
.side-village { --team: var(--village); }
.side-neutral { --team: var(--neutral); }
.cast { background:
  radial-gradient(60% 18% at 50% 22%, rgba(255, 141, 161, .07), transparent 100%),
  linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.side { margin-top: 56px; }
.side-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.side-badge { width: 60px; height: 60px; border-radius: 50%; flex: none; object-fit: cover;
              box-shadow: 0 0 0 2px var(--team), 0 0 24px color-mix(in srgb, var(--team) 45%, transparent); }
.side-name { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--team); }
.side-goal { color: var(--muted); font-size: .97rem; margin-top: 6px; max-width: 62ch; }

.cards {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px var(--gutter) 22px; scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.cards > li { flex: 0 0 min(74vw, 280px); scroll-snap-align: start; }

.card {
  --team-soft: color-mix(in srgb, var(--team) 35%, transparent);
  position: relative; display: grid; width: 100%; height: 100%; padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer; perspective: 1200px; -webkit-tap-highlight-color: transparent;
}
.face {
  grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s var(--ease), box-shadow .3s, border-color .3s;
  border: 1px solid color-mix(in srgb, var(--team) 40%, transparent);
  background: linear-gradient(180deg, #1b1b27, #12121a);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.front img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-txt { position: relative; padding: 14px 16px 18px; margin-top: -46px; display: flex; flex-direction: column; gap: 6px;
            background: linear-gradient(180deg, transparent, #15151f 46px); flex: 1; }
.card-name { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--team);
             text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.card-line { color: #d8d1c2; font-size: .95rem; line-height: 1.45; }
.back {
  transform: rotateY(180deg); padding: 22px 18px; gap: 12px; justify-content: flex-start;
  background:
    radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--team) 18%, transparent), transparent 70%),
    linear-gradient(180deg, #1a1a26, #101018);
  border-color: var(--team-soft);
}
.card-desc { position: relative; color: #e2dbcb; font-size: .95rem; line-height: 1.55; }
.back .card-name { position: relative; padding-right: 36px; }
.back-art { position: absolute; inset: auto 0 0 0; width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .22; z-index: 0;
            -webkit-mask-image: linear-gradient(0deg, #000 30%, transparent 85%); mask-image: linear-gradient(0deg, #000 30%, transparent 85%); }
.card-side { position: relative; margin-top: auto; align-self: flex-start; padding: 4px 12px; border-radius: 999px;
             border: 1px solid var(--team); color: var(--team); background: rgba(10, 10, 16, .7);
             font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.card[aria-pressed="true"] .back { transform: rotateY(0); }
.card::after {
  content: "↻"; position: absolute; right: 12px; top: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem; color: var(--ink);
  background: rgba(10, 10, 16, .6); border: 1px solid rgba(255, 255, 255, .25); pointer-events: none;
  transition: opacity .3s;
}
@media (hover: hover) {
  .card:hover .face { box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px var(--team), 0 0 34px var(--team-soft); }
  .card:hover .front { transform: translateY(-4px); }
  .card[aria-pressed="true"]:hover .front { transform: rotateY(-180deg); }
}

/* rhythm */
.rhythm { background: var(--bg); padding-top: clamp(56px, 8vw, 96px); }
.phases { display: flex; gap: 14px; margin: 40px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 10px;
          overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; counter-reset: ph; }
.phases::-webkit-scrollbar { display: none; }
.phase {
  flex: 0 0 min(78vw, 300px); scroll-snap-align: start; position: relative; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); counter-increment: ph;
  background: linear-gradient(180deg, #171722, #101018); display: flex; flex-direction: column;
}
.phase:nth-child(1) { --accent: var(--violet); }
.phase:nth-child(2) { --accent: var(--gold); }
.phase:nth-child(3) { --accent: var(--village); }
.phase:nth-child(4) { --accent: var(--coven); }
.phase-pic { position: relative; overflow: hidden; aspect-ratio: 1; }
.phase-pic::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #171722 0%, rgba(23, 23, 34, 0) 35%); }
.phase img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.phase:hover img { transform: scale(1.04); }
.phase { border-top: 2px solid var(--accent); }
.phase-txt { padding: 4px 20px 22px; margin-top: -18px; position: relative; }
.phase-n { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; text-transform: uppercase;
           letter-spacing: .16em; color: var(--accent); }
.phase-n::before { content: counter(ph); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
                   border: 1px solid var(--accent); background: #12121a; font-size: .74rem; letter-spacing: 0; }
.phase h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.02; margin: 8px 0 6px; }
.phase p { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* extras */
.extras { background:
  radial-gradient(45% 25% at 15% 65%, rgba(126, 226, 168, .06), transparent 100%),
  linear-gradient(180deg, var(--bg), var(--bg-2)); }
.feats { display: grid; gap: 14px; margin-top: 40px; }
.feat { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.feat svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 10px; }
.feat h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.feat p { color: var(--muted); font-size: .97rem; }

.looks {
  margin-top: 56px; padding: 28px 20px; border-radius: 22px; border: 1px solid rgba(242, 193, 78, .22);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(176, 102, 255, .14), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(242, 193, 78, .1), transparent 70%),
    #13131c;
  display: grid; gap: 28px;
}
.looks-copy p { color: var(--muted); margin-top: 12px; max-width: 52ch; }
.looks-copy .soon { color: var(--ink); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: rgba(242, 193, 78, .16); color: var(--gold);
       font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; }
.frames li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.lk-name { font-size: .78rem; line-height: 1.25; margin-top: 8px; color: var(--ink); }
.lk-frame { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* The frames are the game's own (one-of-us/public/looks.js): a gradient band and a glow. */
.lookpic { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 4%; border-radius: 14%;
           transition: transform .3s var(--ease); }
.lookpic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10%; background: #15151e; }
.frames li:hover .lookpic { transform: translateY(-3px) rotate(-2deg); }
.f-gold     { background: linear-gradient(135deg, #fff1b8, #d9a93a 35%, #ffe08a 60%, #a8741c); box-shadow: 0 0 18px rgba(242,193,78,.55); }
.f-salt     { background: linear-gradient(135deg, #ffffff, #d9d3c7 40%, #f4efe6 70%, #c9c2b4); box-shadow: 0 0 14px rgba(255,255,255,.35); }
.f-sapphire { background: linear-gradient(135deg, #9cc8ff, #1446b8 30%, #4f8cff 50%, #0b2a75 72%, #7fb0ff); box-shadow: 0 0 16px rgba(70,130,255,.5); }
.f-emerald  { background: linear-gradient(135deg, #7dffc0, #0f8a52 30%, #39d38a 50%, #0a5c37 72%, #5cefa8); box-shadow: 0 0 14px rgba(40,210,130,.45); }
.f-ruby     { background: linear-gradient(135deg, #ff9aa8, #b3122e 30%, #ff4d6a 50%, #6e0a1c 72%, #ff7a8e); box-shadow: 0 0 16px rgba(255,60,90,.5); }
.f-topaz    { background: linear-gradient(135deg, #ffd9a0, #c4620a 30%, #ff9a3c 50%, #7a3a05 72%, #ffbe6e); box-shadow: 0 0 16px rgba(255,150,60,.5); }
.f-amethyst { background: linear-gradient(135deg, #e6b8ff, #6a1fb0 30%, #b066ff 50%, #3d0f6e 72%, #d49bff); box-shadow: 0 0 22px rgba(176,102,255,.65); }
.f-moon     { background: linear-gradient(135deg, #e8f0ff, #8fb2ff 40%, #dfe8ff 65%, #5f7fd6); box-shadow: 0 0 22px rgba(150,185,255,.7); }

/* faq */
.faq { background: var(--bg-2); }
.qa { margin-top: 32px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; font-weight: 600; font-size: 1.08rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.qa details p { color: var(--muted); padding: 0 0 20px; max-width: 64ch; }

/* finale */
.finale { position: relative; isolation: isolate; overflow: hidden; text-align: center;
          padding: clamp(110px, 20vw, 200px) 0 clamp(90px, 14vw, 150px); }
.finale-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.finale::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(11, 11, 16, .55) 30%, rgba(11, 11, 16, .6) 65%, var(--bg) 100%),
              radial-gradient(60% 60% at 50% 55%, rgba(11, 11, 16, .55), transparent); }
.finale-body { display: flex; flex-direction: column; align-items: center; }
.finale .ctas { margin-left: auto; margin-right: auto; }

/* footer */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: .95rem; }
.foot-grid { display: grid; gap: 28px; justify-items: start; }
.foot .brand { opacity: 1; }
.brand-lg { font-size: 2.2rem; display: block; }
.maker { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--muted); text-decoration: none;
         font-size: .85rem; min-height: 44px; }
.maker img { height: 22px; width: auto; opacity: .75; transition: opacity .2s; }
.maker:hover img { opacity: 1; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--ink); }
.lang-foot button { min-width: 0; padding: 0 14px; letter-spacing: .02em; font-size: .85rem; min-height: 38px; }
.foot-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: #7f7a70; font-size: .82rem; }

/* ---- reveal on scroll (only when JS is there to undo it) --------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1s; }
.js .hero .reveal:nth-child(2) { transition-delay: .1s; }
.js .hero .reveal:nth-child(3) { transition-delay: .2s; }
.js .hero .reveal:nth-child(4) { transition-delay: .3s; }
.js .hero .reveal:nth-child(5) { transition-delay: .4s; }

/* ---- wider screens ----------------------------------------------------------- */
@media (min-width: 560px) {
  .ctas { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .frames { grid-template-columns: repeat(4, 1fr); gap: 20px 16px; }
  .lk-name { font-size: .85rem; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .looks { padding: 40px; }
  .foot-grid { grid-template-columns: 1fr auto auto; align-items: center; }
}
@media (min-width: 900px) {
  .top { height: 72px; }
  .top-nav { display: flex; }
  .hero { padding-bottom: 64px; }
  .hero-art { inset: 0; height: auto; }
  .hero-art img { object-position: 50% 22%; }
  .hero-fog { background:
    linear-gradient(180deg, rgba(11, 11, 16, .6) 0%, rgba(11, 11, 16, 0) 18%),
    radial-gradient(55% 34% at 50% 78%, rgba(11, 11, 16, .7), rgba(11, 11, 16, 0) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 16, .82) 22%, rgba(11, 11, 16, .25) 50%, rgba(11, 11, 16, 0) 62%); }
  .title { font-size: clamp(6rem, 10vw, 9rem); }

  /* The roster becomes a grid: each side on its own row, centred. */
  .cards { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 6px var(--gutter) 10px; gap: 18px; }
  .cards > li { flex: 0 0 210px; }
  .side-head { justify-content: center; text-align: left; max-width: 760px; }
  .cast .wrap > .kicker, .cast .wrap > .h2, .cast .wrap > .lede { text-align: center; margin-left: auto; margin-right: auto; }
  .cast .kicker { justify-content: center; }
  .cast .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
  .card-name { font-size: 1.7rem; }
  .card-line, .card-desc { font-size: .9rem; }

  .phases { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 48px 0 0; padding: 0; gap: 16px; }

  .feats { grid-template-columns: repeat(4, 1fr); }
  .looks { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 48px; padding: 48px; }
}
@media (min-width: 1200px) {
  .cards > li { flex-basis: 214px; }
}

/* ---- motion preferences -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-art img { transform: none; }
  /* No spinning: the back simply replaces the front. */
  .face { transform: none !important; }
  .back { opacity: 0; visibility: hidden; }
  .card[aria-pressed="true"] .front { opacity: 0; visibility: hidden; }
  .card[aria-pressed="true"] .back { opacity: 1; visibility: visible; }
}
