/* A Name for the Storm: waitlist page
   Tokens > base > nav > hero > sections > footer > motion */

:root {
  --bg: #140808;
  --bg-raised: #1a0c0b;
  --ember: #ff6a1f;
  --ember-hot: #ff8442;
  --ember-rgb: 255, 106, 31;
  --deep: #1b2a4a;
  --deep-rgb: 27, 42, 74;
  --bolt: #6fb8ff;
  --bolt-rgb: 111, 184, 255;
  --silver: #b8b8b8;
  --silver-rgb: 184, 184, 184;
  --text: #ede6dd;
  --text-soft: #cfc6bb;
  --ink: #1a0a06;

  --font-display: "Cinzel Decorative", "Cinzel", Georgia, "Times New Roman", serif;
  --font-label: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.1875rem, 1.1rem + .32vw, 1.3125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Sparse geometric texture over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("../assets/patterns/tile-bg.svg") repeat;
  opacity: .045;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 1; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: .01em;
}

p { text-wrap: pretty; }

/* sentences of a display line stay whole (set by js for data-i18n-sentences) */
[data-i18n-sentences] span { display: inline-block; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ember); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 12px; top: 12px;
  z-index: 100;
  padding: .6em 1em;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-label);
  font-size: .85rem;
  letter-spacing: .08em;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .9em;
  margin-bottom: 1.1rem;
  color: var(--ember);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  line-height: 1.3;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 1.05em 1.7em;
  border: 0;
  border-radius: 2px;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .9375rem;
  line-height: 1.15;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, box-shadow .35s, transform .25s var(--ease);
}
.btn:hover {
  background: var(--ember-hot);
  box-shadow: 0 0 0 1px rgba(var(--ember-rgb), .55), 0 10px 38px -8px rgba(var(--ember-rgb), .7);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Waitlist form ---------- */

.wl { width: 100%; }
.wl__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wl__input {
  flex: 1 1 210px;
  min-width: 0;
  min-height: 58px;
  padding: .7em 1em;
  border: 1px solid rgba(var(--silver-rgb), .5);
  border-radius: 2px;
  background: rgba(20, 8, 8, .72);
  color: var(--text);
  font: inherit;
  font-size: 1.125rem;
  transition: border-color .2s, box-shadow .2s;
}
.wl__input::placeholder { color: rgba(var(--silver-rgb), .75); }
.wl__input:hover { border-color: rgba(var(--silver-rgb), .8); }
.wl__input:focus-visible {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 2px rgba(var(--ember-rgb), .45);
}
.wl__input[aria-invalid="true"] { border-color: #ff9a6b; }
.wl .btn { flex: 1 0 auto; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

.wl__note, .hero__steam {
  color: var(--silver);
  font-size: .9375rem;
  line-height: 1.45;
}
.wl__note { margin-top: .8rem; }

.wl__msg:empty { display: none; }
.wl__msg {
  margin-top: .7rem;
  color: #ffb693;
  font-size: 1rem;
  line-height: 1.4;
}
.wl__msg.is-success {
  position: relative;
  margin-top: 0;
  padding: 1.5rem 1.5rem 1.4rem;
  border: 1px solid rgba(var(--silver-rgb), .35);
  background: rgba(20, 8, 8, .72);
  color: var(--text);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.45;
}
.wl__msg.is-success::before {
  content: "";
  display: block;
  width: 12px; height: 12px;
  margin: 0 auto .9rem;
  border: 1.5px solid var(--ember);
  background: rgba(var(--ember-rgb), .25);
  transform: rotate(45deg);
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(20, 8, 8, .78), rgba(20, 8, 8, 0)) no-repeat;
  transition: height .3s var(--ease), background-color .3s, border-color .3s;
}
.nav.is-solid {
  height: 52px;
  background: rgba(20, 8, 8, .96);
  border-bottom-color: rgba(var(--silver-rgb), .18);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ember);
  text-decoration: none;
}
.nav__mark { flex: none; }
.nav__name {
  display: none;
  color: var(--text);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.nav.is-solid .nav__name { opacity: 1; transform: none; }

.nav__links { display: none; gap: clamp(18px, 2.4vw, 36px); margin-right: clamp(8px, 1.6vw, 28px); }
.nav__links a, .lang__btn {
  position: relative;
  padding: .5em 0;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  transition: color .2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--ember); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__end { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }

.lang { display: inline-flex; align-items: center; gap: 10px; }
.lang__btn { color: var(--silver); }
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-current="true"] { color: var(--ember); }
.lang__sep { width: 1px; height: 12px; background: rgba(var(--silver-rgb), .5); }

.nav__join {
  padding: .55em 1.15em;
  border: 1px solid rgba(var(--ember-rgb), .75);
  border-radius: 2px;
  color: var(--ember);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav__join:hover { background: var(--ember); color: var(--ink); }

@media (min-width: 620px) { .nav__name { display: block; } }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- Hero ---------- */

.hero {
  --media-h: clamp(440px, 64svh, 720px);
  --storm-x: 76%;
  --storm-y: 24%;
  position: relative;
  display: flex;
  min-height: min(100svh, 1200px);
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.hero__media, .hero__shade {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--media-h);
}
.hero__media { z-index: -3; will-change: transform; }
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 50%;
}
.hero__shade {
  z-index: -2;
  /* mobile: a logo fica em cima, então o escuro vem de cima para baixo (no desktop vem da direita) */
  background: linear-gradient(180deg,
    rgba(20, 8, 8, .9) 0%,
    rgba(20, 8, 8, .78) 22%,
    rgba(20, 8, 8, .42) 40%,
    rgba(20, 8, 8, 0) 56%,
    rgba(20, 8, 8, .1) 66%,
    rgba(20, 8, 8, .8) 86%,
    var(--bg) 100%);
}

.hero__embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 46% 40% at var(--storm-x) var(--storm-y),
    rgba(214, 236, 255, .9) 0%,
    rgba(var(--bolt-rgb), .42) 34%,
    rgba(var(--bolt-rgb), 0) 72%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}
.hero__flash.is-on { animation: flash .78s linear; }

@keyframes flash {
  0% { opacity: 0; }
  6% { opacity: .75; }
  14% { opacity: .12; }
  22% { opacity: .9; }
  34% { opacity: .22; }
  44% { opacity: .5; }
  100% { opacity: 0; }
}

.hero__band { display: none; }

.hero__inner {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: calc(var(--nav-h) + 6px) var(--gutter) 44px;
}
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(540px, 100%);
  text-align: center;
}

/* On small screens the logo box reserves the open part of the painting,
   so the girl stays visible between the logo and the text. */
.hero__logo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: calc(var(--media-h) * .875 - var(--nav-h) - 6px);
}
.hero__logo img {
  width: min(64vw, 340px, 32svh);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .6));
}
/* a logo em português é mais alta: um pouco mais estreita para ocupar o mesmo espaço */
.hero__logo img[data-logo-lang="pt"] { width: min(58vw, 308px, 29svh); }
.hero__motif { display: none; }

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, .95rem + 1.75vw, 1.85rem);
  line-height: 1.22;
  letter-spacing: .015em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(20, 8, 8, .9);
}
.hero__lead {
  margin-top: .8rem;
  color: var(--text);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(20, 8, 8, .9);
}
.hero .wl { margin-top: 1.5rem; }
.hero__steam { margin-top: .35rem; }

@media (min-width: 960px) {
  .hero { --media-h: 100%; --storm-x: 54%; --storm-y: 26%; }
  .hero__img { object-position: 24% 50%; }
  .hero__shade {
    background:
      linear-gradient(90deg,
        rgba(20, 8, 8, 0) 30%,
        rgba(20, 8, 8, .5) 50%,
        rgba(20, 8, 8, .86) 68%,
        rgba(20, 8, 8, .95) 100%),
      linear-gradient(180deg,
        rgba(20, 8, 8, .5) 0%,
        rgba(20, 8, 8, 0) 20%,
        rgba(20, 8, 8, 0) 74%,
        var(--bg) 100%);
  }
  .hero__embers { width: 58%; }

  .hero__band {
    display: block;
    position: absolute;
    inset: 0 0 0 auto;
    z-index: -1;
    width: clamp(110px, 10.5vw, 180px);
    background: url("../assets/patterns/band-vertical.svg") repeat-y center top / 100% auto;
    opacity: .5;
    -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 26%, #000 74%, transparent 96%), linear-gradient(270deg, #000 25%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 4%, #000 26%, #000 74%, transparent 96%), linear-gradient(270deg, #000 25%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .hero__inner {
    justify-content: flex-end;
    align-items: center;
    padding: calc(var(--nav-h) + 20px) clamp(64px, 9.5vw, 210px) 56px var(--gutter);
  }
  .hero__content { width: min(540px, 44vw); }
  .hero__logo { height: auto; }
  .hero__logo img { width: clamp(250px, 43svh, 500px); max-width: 100%; }
  .hero__logo img[data-logo-lang="pt"] { width: clamp(230px, 39svh, 455px); }
  .hero__motif { display: block; margin: .5rem 0 .9rem; }
  .hero .wl { margin-top: 1.6rem; }
}

/* ---------- Friezes ---------- */

.frieze {
  position: relative;
  z-index: 1;
  height: 36px;
}
/* the pattern sits on a pseudo-element so the draw-in clip does not hide
   the element itself from the IntersectionObserver */
.frieze::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--frieze) repeat-x center;
  opacity: .85;
}
.frieze--zigzag { --frieze: url("../assets/patterns/frieze-zigzag.svg"); }
.frieze--triangles { --frieze: url("../assets/patterns/frieze-triangles.svg"); }
.frieze--diamonds { --frieze: url("../assets/patterns/frieze-diamonds.svg"); }
.frieze--meander { --frieze: url("../assets/patterns/frieze-meander.svg"); }
.frieze--dense { --frieze: url("../assets/patterns/frieze-dense.svg"); height: 64px; }
.frieze--dense::before { opacity: 1; }

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-y);
  scroll-margin-top: 40px;
}
.section__head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }

/* About */
.about { padding-bottom: 0; }
.about__grid { display: grid; gap: clamp(28px, 4vw, 72px); }
.about__body { max-width: 62ch; }
.about__body p + p { margin-top: 1.2em; }
.lede {
  font-size: 1.22em;
  line-height: 1.5;
  font-style: italic;
  color: var(--text);
}
.about__body p:not(.lede) { color: var(--text-soft); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 5fr 7fr; align-items: start; }
  .about__body { padding-top: 2.2rem; }
}

/* Pillars */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.card {
  position: relative;
  padding: 0 clamp(22px, 2.4vw, 32px) clamp(26px, 2.6vw, 36px);
  border: 1px solid rgba(var(--silver-rgb), .22);
  background: linear-gradient(180deg, rgba(var(--ember-rgb), .045), rgba(var(--ember-rgb), 0) 46%), var(--bg-raised);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--ember-rgb), .6);
  box-shadow: 0 22px 46px -26px rgba(var(--ember-rgb), .7), 0 0 0 1px rgba(var(--ember-rgb), .1);
}
.card__strip {
  height: 14px;
  margin: 10px calc(-1 * clamp(22px, 2.4vw, 32px) + 10px) 0;
  background-repeat: repeat-x;
  background-position: left center;
  opacity: .9;
}
.card--1 .card__strip { background-image: url("../assets/patterns/strip-1.svg"); }
.card--2 .card__strip { background-image: url("../assets/patterns/strip-2.svg"); }
.card--3 .card__strip { background-image: url("../assets/patterns/strip-3.svg"); }
.card--4 .card__strip { background-image: url("../assets/patterns/strip-4.svg"); }
.card--5 .card__strip { background-image: url("../assets/patterns/strip-5.svg"); }
.card--6 .card__strip { background-image: url("../assets/patterns/strip-6.svg"); }
.card__icon {
  width: 46px; height: 46px;
  margin: 28px 0 22px;
  color: var(--ember);
}
.card h3 {
  margin-bottom: .65rem;
  font-size: 1.1875rem;
  line-height: 1.25;
}
.card p { color: var(--text-soft); font-size: 1.125rem; line-height: 1.55; }

/* Names */
.names { overflow: hidden; }
.names__spiral {
  position: absolute;
  left: 50%;
  top: clamp(20px, 4vw, 70px);
  width: min(820px, 150vw);
  aspect-ratio: 1;
  margin-left: calc(min(820px, 150vw) / -2);
  opacity: .075;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 72%);
  mask-image: radial-gradient(circle, #000 35%, transparent 72%);
}
.names__spiral img {
  width: 100%;
  height: 100%;
  animation: spin 260s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.names .wrap { position: relative; }
.names__head {
  max-width: 800px;
  margin: 0 auto clamp(56px, 7vw, 96px);
  text-align: center;
}
.names__head .eyebrow { justify-content: center; }
.names__text { margin-top: 1.6rem; color: var(--text-soft); }

.steps {
  display: grid;
  gap: 44px;
  max-width: 440px;
  margin-inline: auto;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  column-gap: 22px;
  align-content: start;
}
.step__node {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
}
.step__node span {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  color: var(--ember);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .08em;
}
.step__node span::before, .step__node span::after {
  content: "";
  position: absolute;
  z-index: -1;
  transform: rotate(45deg);
}
.step__node span::before {
  inset: 0;
  border: 1.5px solid var(--ember);
  background: var(--bg);
  box-shadow: 0 0 26px -6px rgba(var(--ember-rgb), .55);
}
.step__node span::after { inset: 6px; border: 1px solid rgba(var(--ember-rgb), .45); }
.step h3 {
  align-self: end;
  font-size: 1.4rem;
  line-height: 1.2;
  padding-top: 10px;
}
.step p { margin-top: .4rem; color: var(--text-soft); font-size: 1.125rem; line-height: 1.55; }

/* painted line that joins the steps: uneven like a brush stroke */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 78px;
  bottom: -40px;
  width: 2px;
  background: var(--ember);
  opacity: .8;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 22%, #000 40%, rgba(0,0,0,.55) 63%, rgba(0,0,0,.9) 80%, rgba(0,0,0,.3));
  mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 22%, #000 40%, rgba(0,0,0,.55) 63%, rgba(0,0,0,.9) 80%, rgba(0,0,0,.3));
  transform-origin: top;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 5vw, 80px);
    max-width: none;
  }
  .step {
    display: block;
    text-align: center;
  }
  .step__node { margin: 0 auto 22px; }
  .step h3 { padding-top: 0; }
  .step p { max-width: 30ch; margin-inline: auto; }
  .step:not(:last-child)::after {
    left: calc(50% + 46px);
    top: 36px;
    bottom: auto;
    width: calc(100% + clamp(32px, 5vw, 80px) - 92px);
    height: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.35) 22%, #000 40%, rgba(0,0,0,.55) 63%, rgba(0,0,0,.9) 80%, rgba(0,0,0,.3));
    mask-image: linear-gradient(90deg, #000, rgba(0,0,0,.35) 22%, #000 40%, rgba(0,0,0,.55) 63%, rgba(0,0,0,.9) 80%, rgba(0,0,0,.3));
    transform-origin: left;
  }
}

/* Why */
.why { overflow: hidden; }
.why__mark {
  position: absolute;
  right: max(-180px, -12vw);
  top: 50%;
  width: min(640px, 90vw);
  transform: translateY(-50%);
  opacity: .07;
  pointer-events: none;
}
.why__wrap { position: relative; max-width: 43rem; }
.why__wrap h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.why__body p + p { margin-top: 1.25em; }
.why__body p { color: var(--text-soft); }
.why__body .why__first { color: var(--text); font-size: 1.16em; line-height: 1.55; }
.why__first::first-letter {
  float: left;
  margin: .04em .1em 0 0;
  color: var(--ember);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.85em;
  line-height: .74;
}
.why__body .why__sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(var(--silver-rgb), .22);
  color: var(--text);
  font-style: italic;
}
.why__sign img { flex: none; width: 34px; }

/* FAQ */
.faq { overflow: hidden; }
.faq__mark {
  position: absolute;
  left: max(-220px, -16vw);
  bottom: -120px;
  width: min(720px, 110vw);
  opacity: .05;
  pointer-events: none;
}
.faq__grid { position: relative; display: grid; gap: clamp(28px, 4vw, 72px); }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 4fr 8fr; align-items: start; }
  .faq__head { position: sticky; top: 96px; }
}

.faq__item { border-bottom: 1px solid rgba(var(--silver-rgb), .2); }
.faq__item:first-child { border-top: 1px solid rgba(var(--silver-rgb), .2); }
.faq__q { font: inherit; }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 1.15rem 4px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.3125rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.faq__q button:hover, .faq__q button[aria-expanded="true"] { color: var(--ember); }
.faq__glyph {
  flex: none;
  width: 28px; height: 28px;
  color: var(--ember);
  transition: transform .35s var(--ease);
}
.faq__glyph svg { width: 28px; height: 28px; }
.faq__q button:hover .faq__glyph { transform: scale(1.12); }
.faq__q button[aria-expanded="true"] .g-closed,
.faq__q button[aria-expanded="false"] .g-open { display: none; }

.faq__panel { display: grid; grid-template-rows: 1fr; }
.faq__panel-in { overflow: hidden; }
.faq__panel p {
  max-width: 60ch;
  padding: 0 44px 1.4rem 4px;
  color: var(--text-soft);
}
.js .faq__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.js .faq__panel-in {
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility 0s .4s;
}
.js .faq__panel.is-open { grid-template-rows: 1fr; }
.js .faq__panel.is-open .faq__panel-in {
  visibility: visible;
  opacity: 1;
  transition: opacity .4s .08s, visibility 0s;
}

/* Closing call */
.cta { position: relative; padding: 0 0 var(--section-y); scroll-margin-top: 80px; }
.cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) clamp(22px, 6vw, 80px);
  border: 1px solid rgba(var(--silver-rgb), .26);
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(var(--bolt-rgb), .1), transparent 70%),
    radial-gradient(ellipse 90% 110% at 50% 0%, rgba(var(--deep-rgb), .85), rgba(var(--deep-rgb), .12) 62%, transparent 100%),
    var(--bg-raised);
  text-align: center;
}
.cta__panel::before, .cta__panel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 96px;
  background: url("../assets/patterns/band-vertical.svg") repeat-y center top / 100% auto;
  opacity: .34;
  pointer-events: none;
  display: none;
}
.cta__panel::before {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent);
  mask-image: linear-gradient(90deg, #000 30%, transparent);
}
.cta__panel::after {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent);
  mask-image: linear-gradient(270deg, #000 30%, transparent);
}
@media (min-width: 900px) { .cta__panel::before, .cta__panel::after { display: block; } }
.cta__panel > * { position: relative; }
.cta__motif { margin: 0 auto 1.4rem; }
.cta__panel h2 { max-width: 26ch; margin-inline: auto; }
.cta__text { max-width: 46ch; margin: 1.2rem auto 2.2rem; color: var(--text-soft); }
.cta .wl { max-width: 560px; margin-inline: auto; }

/* ---------- Footer ---------- */

.footer { background: #0f0606; }
.footer__grid {
  display: grid;
  gap: 32px;
  align-items: center;
  justify-items: center;
  padding-block: clamp(40px, 5vw, 64px) 28px;
  text-align: center;
}
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  line-height: 1.25;
}
.footer__made {
  margin-top: .5rem;
  color: var(--ember);
  font-family: var(--font-label);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  padding-block: 22px 34px;
  border-top: 1px solid rgba(var(--silver-rgb), .14);
  color: var(--silver);
  font-size: .9375rem;
  line-height: 1.45;
  text-align: center;
}

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social[hidden] { display: none; }
.social a {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  background: url("../assets/patterns/diamond-frame.svg") center / contain no-repeat;
  color: var(--text);
  transition: color .2s, transform .35s var(--ease), filter .35s;
}
.social a:hover {
  color: var(--ember);
  transform: translateY(-3px);
  filter: drop-shadow(0 6px 14px rgba(var(--ember-rgb), .5));
}
.social svg { width: 20px; height: 20px; }

@media (min-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr auto 1fr;
    justify-items: start;
    text-align: left;
  }
  .footer__grid .social { grid-column: 2; }
  .footer__grid .lang { grid-column: 3; justify-self: end; }
  .footer__legal { justify-content: space-between; text-align: left; }
}

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero__content > * { animation: rise 1s var(--ease) both; }
.hero__content > :nth-child(1) { animation-duration: 1.3s; animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .5s; }
.hero__content > :nth-child(3) { animation-delay: .6s; }
.hero__content > :nth-child(4) { animation-delay: .72s; }
.hero__content > :nth-child(5) { animation-delay: .9s; }
.hero__content > :nth-child(6) { animation-delay: 1.05s; }

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(3n + 2) { --stagger: .1s; }
.js .cards .reveal:nth-child(3n) { --stagger: .2s; }
/* cards: staggered fade, and a snappy hover lift once revealed */
.js .card.reveal { transition: transform .45s var(--ease), border-color .35s, box-shadow .45s, opacity .9s var(--ease) var(--stagger, 0s); }
.js .card.reveal.is-in:hover { transform: translateY(-5px); }

/* friezes draw in from the centre */
.js .frieze::before {
  clip-path: inset(0 50%);
  transition: clip-path 1.5s var(--ease);
}
.js .frieze.is-in::before { clip-path: inset(0 0); }

/* the painted line grows from one step to the next */
.js .steps .step::after { transform: scale(0); transition: transform .9s var(--ease) .35s; }
.js .steps .step:nth-child(2)::after { transition-delay: .75s; }
.js .steps.is-in .step::after { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal, .js .steps .step::after { opacity: 1; transform: none; }
  .js .frieze::before { clip-path: none; }
  .hero__embers, .hero__flash { display: none; }
  .hero__media { transform: none !important; }
}

/* ---------- Serif + sans pairing ---------- */
/* Corpo, inputs, botões e textos dos cards: Jost. Serifa só onde dá voz: lede, perguntas do FAQ, assinatura. */
body { font-size: 1.0625rem; font-weight: 400; }
p, li, input, button, textarea { font-family: var(--font-body); }
.lede, .faq__q button, .why__sign, .why__signature { font-family: var(--font-serif); }
.card p { font-size: 1rem; line-height: 1.6; }

/* ---------- Coming soon on Steam ---------- */
.hero__steam {
  display: inline-flex; align-items: center; gap: .75rem;
  margin-top: 1.6rem; padding: .7rem 1.15rem .7rem .9rem;
  border: 1px solid rgba(var(--silver-rgb), .35); border-radius: 2px;
  background: rgba(20, 8, 8, .45);
  color: var(--text); font-size: 1rem; line-height: 1.2;
}
.hero__steam-logo { flex: none; color: var(--text); }
.hero__steam-text {
  font-family: var(--font-label); font-weight: 500; font-size: .8125rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft);
}
.hero__steam-text strong { color: var(--text); font-weight: 500; }


/* ---------- Hero vivo (js/hero-gl.js) ---------- */
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__gl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero__gl.is-ready { opacity: 1; }
.hero__img { transition: opacity 1.2s ease; }
.hero-gl-wait .hero__img { opacity: 0; }
