/* Two Skies landing — Star atlas tokens (design/README.md, brief/atlas-system.md).
   Gold is reserved for what you can tap and for the transiting body. */

@font-face {
  font-family: 'Forum';
  src: url('/assets/fonts/Forum-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText-Variable.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Atlas Glyphs';
  src: url('/assets/fonts/NotoSansSymbols.woff2') format('woff2');
  unicode-range: U+2600-26FF;
}
@font-face {
  font-family: 'Atlas Glyphs 2';
  src: url('/assets/fonts/NotoSansSymbols2.woff2') format('woff2');
  unicode-range: U+25A1, U+25B3, U+2609;
}

:root {
  color-scheme: dark;
  --ink: #0b1020;
  --plate: #11182b;
  --plate-a: rgba(17, 24, 43, 0.72);
  --text: #e8ecf4;
  --text-2: #a3aec4;
  --gold: #e2c27c;
  --support: #8cc8e0;
  --tense: #d77f52;
  --hairline: rgba(198, 214, 242, 0.16);
  --control: rgba(198, 214, 242, 0.42);
  --glyphs: 'Atlas Glyphs 2', 'Atlas Glyphs';
  --f-title: 'Forum', var(--glyphs), 'Times New Roman', serif;
  --f-body: 'Golos Text', var(--glyphs), -apple-system, system-ui, sans-serif;
  --f-mono: 'Geist Mono', var(--glyphs), ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading {
  overflow: hidden;
}
a {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--f-title);
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
.mono {
  font-family: var(--f-mono);
  font-size: 0.82em;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.dim {
  color: var(--text-2);
}
.gold-t {
  color: var(--gold);
}
.center {
  text-align: center;
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 4px;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 1.5px solid var(--gold);
  outline-offset: 3px;
}

/* ── Loader ─────────────────────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--ink);
  transition:
    opacity 0.9s var(--ease),
    visibility 0.9s;
}
body:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
}
.loader-mark circle {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.2;
  stroke-dasharray: 95;
  stroke-dashoffset: 95;
  animation: draw 1.6s var(--ease) forwards;
}
.loader-mark .gold {
  stroke: var(--gold);
  animation-delay: 0.25s;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
.loader-word {
  font-family: var(--f-title);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-2);
}
.loader-bar {
  width: min(320px, 70vw);
  height: 1px;
  background: var(--hairline);
}
.loader-bar span {
  display: block;
  height: 1px;
  width: 0;
  background: var(--text);
  transition: width 0.3s linear;
}
.loader-meta {
  width: min(320px, 70vw);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: 0.08em;
}

/* ── World layers ───────────────────────────────────────────────────────── */
#world {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  display: block;
}
.no-webgl #world {
  display: none;
}
.no-webgl body,
body.no-webgl {
  background: radial-gradient(1200px 600px at 70% 20%, #141c33 0%, transparent 60%), var(--ink);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.labels {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.lbl {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding-left: 10px;
  transform: translate3d(-9999px, 0, 0);
  will-change: transform, opacity;
}
.lbl::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--control);
}
.lbl.is-gold {
  color: var(--gold);
}
.lbl.is-name {
  font-family: var(--f-title);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.lbl.is-sup {
  color: var(--support);
}
.lbl.is-ten {
  color: var(--tense);
}

/* ── Mascot ─────────────────────────────────────────────────────────────── */
.mascot-hit {
  position: fixed;
  z-index: 6;
  left: 0;
  top: 0;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate3d(-9999px, 0, 0);
}
.bubble {
  position: fixed;
  z-index: 7;
  left: 0;
  top: 0;
  max-width: 260px;
  padding: 10px 14px 12px;
  background: var(--plate);
  border: 1px solid var(--control);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-9999px, 0, 0);
  transition: opacity 0.25s var(--ease);
}
.bubble.is-on {
  opacity: 1;
}
.bubble b {
  display: block;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  transition:
    background 0.3s,
    border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.top.is-solid {
  background: rgba(11, 16, 32, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand svg circle,
.loader-mark circle {
  fill: none;
}
.brand svg circle {
  stroke: var(--text);
  stroke-width: 1.3;
}
.brand svg .gold {
  stroke: var(--gold);
}
.brand b {
  display: block;
  font-family: var(--f-title);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.nav {
  display: flex;
  gap: 26px;
}
.nav a,
.langs a {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 12px 0;
  transition: color 0.18s;
}
.nav a:hover,
.nav a.is-active,
.langs a:hover {
  color: var(--text);
}
.langs {
  display: flex;
  gap: 4px;
  border-left: 1px solid var(--hairline);
  padding-left: 18px;
}
.langs a {
  padding: 12px 6px;
  font-family: var(--f-mono);
  letter-spacing: 0.08em;
}
.langs a[aria-current='true'] {
  color: var(--gold);
}

/* ── Right rail ─────────────────────────────────────────────────────────── */
.rail {
  position: fixed;
  z-index: 15;
  right: calc(var(--gutter) * 0.5);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
}
.rail span {
  display: block;
  width: 12px;
  height: 1px;
  background: var(--control);
  margin-left: auto;
  transition:
    width 0.2s,
    background 0.2s;
}
.rail span.is-on {
  width: 24px;
  background: var(--text);
}

/* ── Chapters ───────────────────────────────────────────────────────────── */
main {
  position: relative;
  z-index: 3;
}
.ch {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 96px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow i {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.eyebrow.center {
  justify-content: center;
}
.ch-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.ch-head .rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
h1 {
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
}
h2.huge {
  font-size: clamp(44px, 7vw, 120px);
  text-align: center;
  max-width: 14ch;
  margin: 24px auto 28px;
}
h3 {
  font-size: 26px;
  line-height: 1.15;
}
.lede {
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--text-2);
  max-width: 46ch;
}
.prose {
  display: grid;
  gap: 18px;
  max-width: 58ch;
  font-size: 16px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 96px);
  align-items: start;
}

/* Hero */
.ch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 132px;
}
.hero-copy {
  min-width: 0;
  display: grid;
  gap: 24px;
  align-content: start;
  max-width: 760px;
}
.hero-copy h1 {
  max-width: 11ch;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 8px;
}
.ctas.center {
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.18s var(--ease),
    background 0.18s;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover {
  transform: translateY(-1px);
  background: #ecd096;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.soon svg {
  fill: var(--text-2);
}
.hero-side {
  position: absolute;
  right: calc(var(--gutter) + 28px);
  top: 140px;
  writing-mode: vertical-rl;
  font-family: var(--f-title);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-2);
}
.hero-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.scroll-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}
.scroll-hint i {
  width: 64px;
  height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateX(-100%);
  animation: sweep 2.4s var(--ease) infinite;
}
@keyframes sweep {
  to {
    transform: translateX(100%);
  }
}
.hero-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(20px, 3.5vw, 56px);
}
.hero-index a {
  display: grid;
  gap: 2px;
  text-decoration: none;
}
.hero-index b {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1;
  color: var(--text);
  transition: color 0.18s;
}
.hero-index span {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-index a:hover b {
  color: var(--gold);
}

/* Plates: square, corner registration marks, never rounded */
.plate {
  position: relative;
  margin: 0;
  background: var(--plate-a);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 20px 22px;
}
.plate::before,
.plate::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--control);
}
.plate::before {
  left: -5px;
  top: -5px;
  border-width: 0 1px 1px 0;
}
.plate::after {
  right: -5px;
  bottom: -5px;
  border-width: 1px 0 0 1px;
}
.plate figcaption {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.readout {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.readout-head {
  font-family: var(--f-title);
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.stats {
  margin: 96px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
.stats div {
  padding: 22px 18px 0;
  border-left: 1px solid var(--hairline);
}
.stats div:first-child {
  border-left: 0;
  padding-left: 0;
}
.stats dt {
  font-family: var(--f-title);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1;
}
.stats dd {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Two of you */
.two-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 96px);
  align-items: center;
}
.two-copy {
  display: grid;
  gap: 20px;
  max-width: 600px;
}
.aspects ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.aspects li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.aspects li b {
  display: block;
  font-weight: 500;
  font-size: 15px;
}
.aspects li em {
  font-style: normal;
  color: var(--text-2);
}
.aspects small {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.aspects .mark {
  width: 22px;
  height: 10px;
}
.aspects .sup .mark {
  background: var(--support);
}
.aspects .sup small {
  color: var(--support);
}
.aspects .ten .mark {
  background: repeating-linear-gradient(45deg, var(--tense) 0 1.5px, transparent 1.5px 4px);
  outline: 1px solid var(--tense);
  outline-offset: -1px;
}
.aspects .ten small {
  color: var(--tense);
}

/* Phones */
.phone {
  position: relative;
  margin: 0;
  display: grid;
  gap: 14px;
}
.phone img {
  width: 100%;
  aspect-ratio: 645 / 1300;
  object-fit: cover;
  object-position: top;
  border-radius: 34px;
  border: 1px solid rgba(198, 214, 242, 0.22);
  background: var(--plate);
  box-shadow: 0 0 0 7px #05080f;
}
.phone figcaption {
  display: grid;
  gap: 2px;
  padding-top: 6px;
}
.phone figcaption b {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.phone figcaption span {
  font-size: 13px;
  color: var(--text-2);
}
.phone figcaption i {
  font-style: normal;
  color: var(--text-2);
  justify-self: start;
}
.phone-tilt {
  max-width: 360px;
  justify-self: center;
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg);
  transition: transform 0.6s var(--ease);
}
.phone-tilt:hover {
  transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}

.gallery {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}
.gallery .phone:nth-child(even) {
  margin-top: 72px;
}

/* Ritual */
.chapters {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  background: rgba(11, 16, 32, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chapters li {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 22px 22px 18px;
  min-height: 210px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.2s;
}
.chapters li:nth-child(3n) {
  border-right: 0;
}
.chapters li:nth-last-child(-n + 3) {
  border-bottom: 0;
}
.chapters li:hover {
  background: rgba(17, 24, 43, 0.7);
}
.chapters i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-2);
}
.chapters p {
  color: var(--text-2);
  font-size: 15px;
  max-width: 34ch;
}
.chapters small {
  color: var(--text-2);
}
.duo {
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 64px);
  max-width: 720px;
}
.duo .phone:last-child {
  margin-top: 96px;
}

/* Privacy */
.ch-privacy h2 {
  max-width: 16ch;
}
.vows {
  list-style: none;
  margin: 72px auto 48px;
  padding: 0;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.vows li {
  padding: 26px 22px;
  border-left: 1px solid var(--hairline);
  display: grid;
  gap: 10px;
  align-content: start;
  background: rgba(11, 16, 32, 0.5);
}
.vows li:first-child {
  border-left: 0;
}
.vows .mono {
  color: var(--gold);
}
.vows h3 {
  font-size: 22px;
}
.vows p {
  font-size: 15px;
  color: var(--text-2);
}
.link {
  color: var(--gold);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Pricing */
.ch-pricing h2 {
  max-width: 18ch;
}
.plans {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}
.plan {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px 26px 24px;
}
.plan header {
  display: grid;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}
.plan header p {
  display: grid;
  gap: 4px;
}
.plan header b {
  font-family: var(--f-title);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
}
.plan header span {
  font-size: 13px;
  color: var(--text-2);
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--support);
  border-bottom: 1.5px solid var(--support);
  transform: rotate(-45deg);
}
.plan-plus {
  border-color: rgba(226, 194, 124, 0.5);
}
.plan-plus h3 {
  color: var(--gold);
}
.plan .plain li {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  gap: 2px;
}
.plan .plain li::before {
  display: none;
}
.plan .plain b {
  font-weight: 500;
}
.plan .plain span {
  color: var(--text-2);
}
.note {
  margin-top: 28px;
  color: var(--text-2);
  font-size: 14px;
  max-width: 70ch;
}

/* Begin */
.ch-begin {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}
.ch-begin .lede {
  margin-bottom: 18px;
}
.disclaimer {
  margin-top: 56px;
  font-size: 13px;
  color: var(--text-2);
  max-width: 52ch;
}

/* Footer */
.foot {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--hairline);
  background: rgba(11, 16, 32, 0.86);
  font-size: 14px;
}
.foot-brand {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.foot-brand b {
  font-family: var(--f-title);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
}
.foot nav a {
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 0;
}
.foot nav a:hover {
  color: var(--gold);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.phone-tilt.reveal.is-in {
  transform: perspective(1400px) rotateY(-14deg) rotateX(4deg);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery .phone:nth-child(even) {
    margin-top: 48px;
  }
  .plans {
    grid-template-columns: 1fr 1fr;
  }
  .plan-reports {
    grid-column: 1 / -1;
  }
  .vows {
    grid-template-columns: 1fr 1fr;
  }
  .vows li:nth-child(3) {
    border-left: 0;
  }
  .vows li:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .top {
    padding: 12px 16px;
  }
  .brand small {
    display: none;
  }
  .langs {
    padding-left: 10px;
  }
  .rail,
  .hero-side {
    display: none;
  }
  .ch {
    padding: 96px 16px 72px;
  }
  .ch-hero {
    padding-top: 108px;
  }
  .hero-index {
    display: none;
  }
  .split,
  .two-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 56px;
  }
  .stats div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
    margin-top: 18px;
  }
  .phone-tilt {
    max-width: 280px;
    transform: none;
  }
  .phone-tilt.reveal.is-in {
    transform: none;
  }
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -16px;
    padding: 0 16px 8px;
    gap: 16px;
  }
  .gallery .phone {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
  .gallery .phone:nth-child(even) {
    margin-top: 0;
  }
  .chapters {
    grid-template-columns: 1fr;
  }
  .chapters li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--hairline) !important;
  }
  .chapters li:last-child {
    border-bottom: 0 !important;
  }
  .duo .phone:last-child {
    margin-top: 48px;
  }
  .vows,
  .plans {
    grid-template-columns: 1fr;
  }
  .vows li {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }
  .vows li:first-child {
    border-top: 0;
  }
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .phone img {
    border-radius: 26px;
    box-shadow: 0 0 0 5px #05080f;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-hint i::after,
  .loader-mark circle {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* Over a canvas that repaints every frame, backdrop blur is recomposited every
   frame too: plates go solid instead while the world runs. */
html:not(.no-webgl) .plate,
html:not(.no-webgl) .chapters {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(17, 24, 43, 0.86);
}
