:root {
  color-scheme: dark;
  --obsidian: #080a08;
  --stone: #11130f;
  --stone-light: #1a1c16;
  --bone: #f1e7cf;
  --muted: #a99f89;
  --gold: #d6a84f;
  --gold-light: #f3d282;
  --jade: #3fc9aa;
  --cyan: #56e6df;
  --line: rgba(220, 181, 100, 0.22);
  --line-soft: rgba(241, 231, 207, 0.11);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--bone);
  background: var(--obsidian);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 75% 12%, rgba(40, 124, 101, .11), transparent 28rem),
    radial-gradient(circle at 15% 52%, rgba(151, 100, 34, .09), transparent 34rem),
    linear-gradient(#080a08, #0b0d0a 50%, #070907);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; background: var(--bone); color: #111; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(1320px, calc(100% - 48px));
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transform: translateX(-50%);
  transition: height .3s ease, background .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  top: 12px;
  height: 68px;
  padding: 0 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(8, 10, 8, .78);
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
  backdrop-filter: blur(18px);
}
.brand { justify-self: start; display: flex; align-items: center; gap: 11px; }
.brand img, .footer-brand img { border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.brand span { display: grid; gap: 2px; }
.brand strong { font-family: var(--serif); font-size: .92rem; font-weight: 500; letter-spacing: .02em; }
.brand small { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 34px; }
nav a, .nav-cta { color: #c7beaa; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .2s ease; }
nav a:hover, nav a:focus-visible { color: var(--bone); }
.nav-cta { justify-self: end; padding: 12px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-light); }
.nav-cta:hover { border-color: rgba(220, 181, 100, .55); background: rgba(220, 181, 100, .08); }

.hero-splash {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
}
.hero-splash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
}
.hero-splash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(8,10,8,.55) 100%),
    linear-gradient(180deg, rgba(8,10,8,.3), transparent 25%, transparent 55%, rgba(8,10,8,.8));
}
.hero-splash-cue { display: none; }

.hero {
  position: relative;
  width: min(1320px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  gap: 52px;
  padding: 132px 0 78px;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 25px; color: var(--gold-light); font-size: .69rem; font-weight: 800; letter-spacing: .21em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 1px; background: currentColor; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: .92; }
h1 { font-size: clamp(4.2rem, 7.6vw, 7.6rem); }
h1 em, h2 em { color: var(--jade); font-weight: 400; }
.hero-lede { max-width: 555px; margin: 30px 0 0; color: #bbb19d; font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 38px 0 48px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 54px; padding: 0 24px; border-radius: 999px; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold); color: #171107; box-shadow: 0 12px 40px rgba(214, 168, 79, .14); }
.button-primary:hover { background: var(--gold-light); }
.button-quiet { border: 1px solid var(--line-soft); color: var(--bone); }
.button-quiet:hover { border-color: var(--line); background: rgba(255,255,255,.03); }
.hero-meta { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.hero-meta li { min-width: 140px; padding-right: 30px; margin-right: 30px; border-right: 1px solid var(--line-soft); }
.hero-meta li:last-child { border: 0; margin: 0; padding: 0; }
.hero-meta span, .hero-meta strong { display: block; }
.hero-meta span { margin-bottom: 8px; color: #6f6c62; font-size: .61rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-meta strong { color: #d7cdb8; font-family: var(--serif); font-size: .95rem; font-weight: 400; }

.hero-stage { position: relative; min-height: 700px; display: grid; place-items: center; }
.sun-disc { position: absolute; width: 560px; aspect-ratio: 1; border: 1px solid rgba(65, 200, 170, .12); border-radius: 50%; background: radial-gradient(circle, rgba(51, 164, 137, .16), rgba(17, 39, 31, .04) 46%, transparent 68%); box-shadow: inset 0 0 100px rgba(49, 189, 156, .06); }
.sun-disc::before, .sun-disc::after { content: ""; position: absolute; inset: 8%; border: 1px dashed rgba(214, 168, 79, .13); border-radius: 50%; }
.sun-disc::after { inset: 27%; border-style: solid; border-color: rgba(214, 168, 79, .09); }
.sun-disc span { position: absolute; inset: 48%; border-radius: 50%; background: var(--jade); box-shadow: 0 0 90px 35px rgba(63,201,170,.18); }
.phone { position: relative; border: 1px solid rgba(235, 215, 174, .34); background: #020302; box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 5px #131510; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; z-index: 2; width: 31%; height: 23px; transform: translateX(-50%); border-radius: 999px; background: #000; }
.phone-screen { height: 100%; overflow: hidden; border-radius: inherit; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-hero { z-index: 2; width: min(360px, 54vw); aspect-ratio: 739 / 1600; border-radius: 49px; transform: rotate(4deg); }
.phone-hero .phone-screen { border-radius: 47px; }
.floating-card { position: absolute; z-index: 4; border: 1px solid rgba(232, 208, 157, .2); background: rgba(12, 14, 11, .83); box-shadow: 0 24px 60px rgba(0,0,0,.4); backdrop-filter: blur(16px); }
.offering-card { top: 24%; right: 0; width: 160px; padding: 16px 20px; border-radius: 16px; }
.offering-card span { display: block; color: #a99f89; font-size: .62rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.offering-card strong { display: block; margin-top: 2px; color: #f1b920; font-family: var(--serif); font-size: 2.6rem; font-weight: 400; text-align: right; }
.ethereal-card { left: 0; bottom: 22%; display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-radius: 16px; }
.ethereal-card i { width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.ethereal-card span { display: grid; color: #6eaaa3; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; }
.ethereal-card strong { color: #defcf6; font-family: var(--serif); font-size: 1rem; font-weight: 400; letter-spacing: .02em; text-transform: none; }
.glyph { position: absolute; color: var(--gold); opacity: .55; }
.glyph-a { top: 12%; left: 7%; font-size: 1.2rem; }
.glyph-b { right: 7%; bottom: 13%; font-size: 1.7rem; }
.hero-orbit { position: absolute; border: 1px solid rgba(214,168,79,.07); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 390px; height: 390px; top: 20%; left: -320px; }
.orbit-two { width: 160px; height: 160px; top: 17%; left: -205px; }
.scroll-cue { position: absolute; right: 0; bottom: 22px; display: flex; align-items: center; gap: 12px; color: #5f6058; font-size: .57rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transform: rotate(90deg) translateX(100%); transform-origin: bottom right; }
.scroll-cue span { width: 45px; height: 1px; background: #5f6058; }

.section { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 150px 0; }
.section-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 60px; color: #787468; font-size: .65rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-kicker span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-family: var(--serif); letter-spacing: 0; }
.manifesto-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 100px; align-items: end; }
.manifesto h2, .gameplay-copy h2, .relic-heading h2, .gallery-heading h2, .codex-copy h2, .final-cta h2 { font-size: clamp(3.3rem, 6vw, 6.5rem); }
.manifesto-copy { padding-bottom: 6px; color: #aaa18e; font-family: var(--serif); font-size: 1.18rem; line-height: 1.7; }
.manifesto-copy p { margin: 0 0 18px; }
.ritual-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 90px; }
.ritual-card { position: relative; min-height: 360px; padding: 30px; border: 1px solid var(--line-soft); border-radius: 4px; background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.005)); overflow: hidden; }
.ritual-card::after { content: ""; position: absolute; inset: auto -20% -65% -20%; height: 80%; background: radial-gradient(circle, rgba(214,168,79,.08), transparent 65%); }
.ritual-card.featured { border-color: rgba(63,201,170,.31); background: linear-gradient(145deg, rgba(63,201,170,.085), rgba(255,255,255,.008)); transform: translateY(-22px); }
.card-number { position: absolute; top: 24px; right: 27px; color: #625f57; font-family: var(--serif); font-size: .9rem; }
.card-symbol { display: block; width: 246px; max-width: 100%; height: auto; margin: 30px 0 48px; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.ritual-card h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.ritual-card p { max-width: 300px; margin: 0 0 26px; color: #999282; font-size: .91rem; line-height: 1.65; }
.ritual-card small { position: absolute; bottom: 28px; left: 30px; color: #69665e; font-size: .58rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.gameplay-section { width: 100%; max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 150px); align-items: center; padding-left: max(24px, calc((100vw - 1200px) / 2)); padding-right: max(24px, calc((100vw - 1200px) / 2)); background: linear-gradient(90deg, rgba(255,255,255,.018), transparent 45%); border-block: 1px solid var(--line-soft); }
.gameplay-visual { position: relative; min-height: 720px; display: grid; place-items: center; }
.stone-ring { position: absolute; width: min(600px, 48vw); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; box-shadow: inset 0 0 0 25px rgba(255,255,255,.009), inset 0 0 80px rgba(214,168,79,.04); }
.stone-ring::before, .stone-ring::after { content: ""; position: absolute; inset: 8%; border: 1px dashed rgba(214,168,79,.13); border-radius: 50%; }
.stone-ring::after { inset: 29%; border-style: solid; border-color: rgba(63,201,170,.12); }
.phone-gameplay { z-index: 1; width: 330px; max-width: 70%; aspect-ratio: 739 / 1600; border-radius: 45px; transform: rotate(-4deg); }
.phone-gameplay .phone-screen { border-radius: 43px; }
.score-stamp { position: absolute; z-index: 2; right: 3%; bottom: 17%; display: grid; place-items: center; width: 130px; height: 130px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); background: rgba(12,13,10,.86); transform: rotate(8deg); }
.score-stamp::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(214,168,79,.5); border-radius: 50%; }
.score-stamp strong { font-family: var(--serif); font-size: 2.2rem; font-weight: 400; line-height: 1; }
.score-stamp span { margin-top: -20px; font-size: .55rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gameplay-copy { max-width: 560px; }
.gameplay-copy > p:not(.eyebrow) { margin: 28px 0 40px; color: #a59d8b; font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.multiplier-list { margin: 0; }
.multiplier-list > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px; border-top: 1px solid var(--line-soft); }
.multiplier-list > div:last-child { border-bottom: 1px solid var(--line-soft); }
.multiplier-list dt { display: flex; align-items: center; gap: 16px; color: #c7beab; font-family: var(--serif); font-size: 1.05rem; }
.multiplier-list img { width: 48px; height: 48px; object-fit: contain; }
.multiplier-list dd { margin: 0; color: var(--gold-light); font-family: var(--serif); font-size: 1.55rem; }

.relic-section { padding-top: 50px; padding-bottom: 130px; }
.relic-heading, .gallery-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; margin-bottom: 70px; }
.relic-heading p, .gallery-heading p { max-width: 460px; margin: 0 0 8px; color: #a39b89; font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.relic-table { border-top: 1px solid var(--line); }
.relic-table article { display: grid; grid-template-columns: 60px 110px 1fr auto; align-items: center; gap: 35px; padding: 25px 20px 25px 0; border-bottom: 1px solid var(--line-soft); transition: background .25s ease, padding .25s ease; }
.relic-table article:hover { padding-left: 18px; background: linear-gradient(90deg, rgba(63,201,170,.06), transparent); }
.relic-index { color: #666158; font-family: var(--serif); font-size: .8rem; }
.relic-table img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); transition: transform .25s ease; }
.relic-table article:hover img { transform: scale(1.08) rotate(-3deg); }
.relic-table h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.relic-table p { margin: 0; color: #7f7a6e; font-size: .86rem; }
.relic-table article > strong { color: var(--gold); font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }

.gallery-section { width: 100%; max-width: none; overflow: hidden; padding-left: max(24px, calc((100vw - 1200px) / 2)); padding-right: 0; background: #0b0e0b; border-block: 1px solid var(--line-soft); }
.gallery-section .section-kicker, .gallery-heading { width: min(1200px, calc(100vw - 48px)); padding-right: max(24px, calc((100vw - 1200px) / 2)); }
.gallery-track { display: flex; align-items: flex-start; gap: clamp(24px, 2.4vw, 38px); overflow-x: auto; padding: 15px max(24px, calc((100vw - 1200px) / 2)) 50px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--gold) #141712; }
.gallery-phone { flex: 0 0 clamp(224px, 19vw, 270px); margin: 0; scroll-snap-align: start; }
.gallery-phone img { width: 100%; height: auto; border: 1px solid rgba(235, 215, 174, .2); border-radius: 29px; box-shadow: 0 28px 55px rgba(0,0,0,.38); }
.gallery-phone figcaption { display: flex; gap: 14px; align-items: center; padding: 18px 5px 0; color: #c7beaa; font-family: var(--serif); }
.gallery-phone figcaption span { color: var(--gold); font-family: var(--sans); font-size: .58rem; font-weight: 800; letter-spacing: .1em; }
.featured-shot { margin-top: -14px; }

.trailer-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 50px; }
.trailer-section .eyebrow { justify-content: center; }
.trailer-section h2 { margin-bottom: 64px; font-size: clamp(3rem, 5.5vw, 6rem); }
.trailer-stage { position: relative; width: min(1080px, 100%); }
.trailer-clip {
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 608;
  object-fit: cover;
  border: 1px solid rgba(235, 215, 174, .22);
  border-radius: 22px;
  box-shadow: 0 48px 110px rgba(0,0,0,.5);
  background: #050605;
}
.sound-toggle {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(235, 215, 174, .3);
  border-radius: 50%;
  color: var(--bone);
  background: rgba(8, 10, 8, .72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.sound-toggle:hover { background: rgba(8, 10, 8, .88); border-color: rgba(235, 215, 174, .55); transform: scale(1.08); }
.sound-toggle:active { transform: scale(.94); }
.sound-toggle .icon-sound-off { display: none; }
.sound-toggle[data-sound-on="false"] .icon-sound-on { display: none; }
.sound-toggle[data-sound-on="false"] .icon-sound-off { display: block; }

.codex-section { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: clamp(70px, 9vw, 120px); min-height: 760px; }
.codex-seal { position: relative; width: min(360px, 100%); justify-self: center; }
.codex-seal::before { content: ""; position: absolute; inset: -15%; z-index: -1; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, rgba(214,168,79,.13), transparent 65%); }
.codex-seal::after { content: ""; position: absolute; inset: -5%; z-index: -1; border: 1px dashed rgba(63,201,170,.2); border-radius: 50%; }
.codex-seal img { width: 100%; height: auto; border-radius: 24%; box-shadow: 0 32px 80px rgba(0,0,0,.44); }
.codex-copy p:not(.eyebrow) { max-width: 580px; margin: 30px 0 42px; color: #a59d8b; font-family: var(--serif); font-size: 1.16rem; line-height: 1.75; }
.codex-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-soft); }
.codex-facts span { display: grid; gap: 7px; padding: 20px 12px 20px 0; color: #a29b8b; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.codex-facts strong { color: var(--jade); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }

.availability-section { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 50px; }
.availability-section .eyebrow { justify-content: center; }
.availability-section h2 { margin-bottom: 28px; font-size: clamp(3rem, 5.5vw, 6rem); }
.availability-lede { max-width: 620px; margin: 0 0 70px; color: #a59d8b; font-family: var(--serif); font-size: 1.18rem; line-height: 1.7; }
.devices-mockup { width: min(920px, 100%); margin-bottom: 64px; }
.devices-mockup img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 48px 110px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.devices-mockup:hover img { transform: scale(1.015); }
.app-store-link { display: inline-block; transition: transform .2s ease, filter .2s ease; filter: drop-shadow(0 8px 24px rgba(0,0,0,.3)); }
.app-store-link:hover { transform: translateY(-3px); filter: drop-shadow(0 14px 32px rgba(0,0,0,.4)); }
.app-store-link img { width: auto; height: 56px; }

.final-cta { position: relative; width: min(1100px, calc(100% - 48px)); min-height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-top: 1px solid var(--line); }
.final-cta::before { content: ""; position: absolute; inset: 10% 5% 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(47,146,121,.16), transparent 63%); }
.final-mark { width: auto; height: clamp(60px, 10vw, 96px); margin-bottom: 34px; filter: drop-shadow(0 8px 30px rgba(0,0,0,.4)); }
.final-cta .eyebrow { justify-content: center; }
.final-cta .eyebrow span { display: block; }
.final-cta > p:not(.eyebrow) { margin: 30px 0; color: #a79f8d; font-family: var(--serif); font-size: 1.2rem; }

footer { width: min(1320px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 35px 0 45px; border-top: 1px solid var(--line-soft); color: #747066; }
.footer-brand { display: flex; align-items: center; gap: 13px; color: #c9c0ad; font-family: var(--serif); font-size: .95rem; }
.footer-links { display: flex; gap: 24px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold-light); }
footer > p { justify-self: end; margin: 0; font-size: .63rem; line-height: 1.6; text-align: right; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.ritual-steps .reveal:nth-child(2), .gallery-track .reveal:nth-child(2) { transition-delay: .1s; }
.ritual-steps .reveal:nth-child(3), .gallery-track .reveal:nth-child(3) { transition-delay: .2s; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { min-height: 660px; }
  .manifesto-grid, .relic-heading, .gallery-heading { grid-template-columns: 1fr; gap: 35px; }
  .ritual-steps { grid-template-columns: 1fr; }
  .ritual-card, .ritual-card.featured { min-height: 300px; transform: none; }
  .gameplay-section { grid-template-columns: 1fr; }
  .gameplay-copy { max-width: 720px; }
  .codex-section { grid-template-columns: 1fr; gap: 85px; }
  .codex-seal { width: min(340px, 72vw); margin: 0 auto; }
  .devices-mockup { width: 100%; }
  footer { grid-template-columns: 1fr 1fr; }
  footer > p { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 640px) {
  .site-header, .hero, .section, footer { width: min(100% - 28px, 1320px); }
  .site-header { height: 74px; }
  .site-header.scrolled { width: calc(100% - 20px); }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: .78rem; }
  .brand small { font-size: .55rem; }
  .nav-cta { padding: 10px 12px; font-size: .58rem; }
  .hero { min-height: auto; padding-top: 130px; }
  h1 { font-size: clamp(3.7rem, 17vw, 5.4rem); }
  .hero-lede { font-size: 1.04rem; }
  .hero-actions { align-items: stretch; }
  .button { flex: 1 1 100%; }
  .hero-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hero-meta li { min-width: 0; padding: 0; margin: 0; border: 0; }
  .hero-stage { min-height: 580px; }
  .sun-disc { width: min(470px, 100vw); }
  .phone-hero { width: 270px; border-radius: 38px; }
  .phone-hero .phone-screen { border-radius: 36px; }
  .offering-card { right: -10px; width: 126px; }
  .ethereal-card { left: -8px; }
  .scroll-cue { display: none; }
  .section { padding: 105px 0; }
  .section-kicker { margin-bottom: 40px; }
  .manifesto h2, .gameplay-copy h2, .relic-heading h2, .gallery-heading h2, .codex-copy h2, .final-cta h2 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .ritual-steps { margin-top: 65px; }
  .gameplay-section { width: 100%; padding: 100px 18px; }
  .gameplay-visual { min-height: 600px; }
  .phone-gameplay { width: 275px; max-width: 77%; }
  .stone-ring { width: min(470px, 100vw); }
  .score-stamp { width: 104px; height: 104px; }
  .relic-table article { grid-template-columns: 32px 70px 1fr auto; gap: 12px; padding-right: 0; }
  .relic-table img { width: 65px; height: 65px; }
  .relic-table h3 { font-size: 1.08rem; }
  .relic-table p { display: none; }
  .gallery-section { width: 100%; padding-left: 18px; }
  .gallery-section .section-kicker, .gallery-heading { width: calc(100vw - 36px); padding-right: 18px; }
  .gallery-track { padding-right: 18px; }
  .gallery-phone { flex-basis: min(242px, 64vw); }
  .hero-splash { display: block; min-height: auto; padding: 0; }
  .hero-splash img { position: static; width: 100%; height: auto; aspect-ratio: 2752 / 1536; object-fit: contain; }
  .hero-splash::after { display: none; }
  .trailer-stage { width: 100%; }
  .trailer-section h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); margin-bottom: 44px; }
  .app-store-link img { height: 46px; }
  .availability-section h2 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .availability-lede { font-size: 1.04rem; margin-bottom: 50px; }
  .codex-facts { grid-template-columns: 1fr; }
  .codex-facts span { border-bottom: 1px solid var(--line-soft); }
  .codex-facts span:last-child { border: 0; }
  .final-cta { width: calc(100% - 28px); }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-self: start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
