:root {
  --bg: #06090a;
  --bg-soft: #080d0e;
  --panel: #0c1413;
  --line: rgba(232, 226, 200, 0.09);
  --parchment: #e8e2c8;
  --secondary: #9aa6a0;
  --bronze: #b08f57;
  --amber: #e0a93a;
  --cyan: #46e6f0;
  --maxw: 1160px;
  --sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --serif: "Space Grotesk", ui-sans-serif, sans-serif;
  --mono: "IBM Plex Mono", "Menlo", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
body { font-family: var(--sans); color: var(--parchment); line-height: 1.68; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 30px; position: relative; }
.wrap.narrow { max-width: 760px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--bronze); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; display: inline-block; width: 20px; height: 1px; background: var(--bronze); opacity: 0.7; flex-shrink: 0; }
.serif { font-family: var(--serif); font-weight: 400; }
.lead { color: var(--secondary); font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }
.body { color: var(--secondary); font-size: clamp(15px, 1.25vw, 18px); max-width: 60ch; margin-top: 26px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--amber); color: #0a0e0d; padding: 10px 16px; }
.skip:focus { left: 0; }

#field { position: fixed; inset: 0; z-index: 0; cursor: default; }
.grain { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 0 30px; min-height: 66px; background: rgba(6,9,10,0); border-bottom: 1px solid transparent;
  will-change: transform; transition: background 0.4s ease, border-color 0.4s ease; }
.site-header.scrolled { background: rgba(6,9,10,0.74); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgba(232,226,200,0.85); text-decoration: none; }
.brand-logo { height: 28px; width: auto; filter: drop-shadow(0 0 8px rgba(224,169,58,0.5)); }
.brand-name { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; line-height: 1; }
.brand-sep { width: 1px; background: var(--line); align-self: stretch; flex-shrink: 0; }
.brand-desc { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze); line-height: 1; }
.site-header .appstore img { height: 34px; width: auto; }
.nav { display: flex; gap: 30px; }
.nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--secondary); transition: color 0.3s; }
.nav a:hover { color: var(--parchment); }
.nav-back { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze); text-decoration: none; transition: color 0.3s; }
.nav-back:hover { color: var(--parchment); }

/* hero */
.hero { position: relative; z-index: 1; min-height: 100svh; display: flex; align-items: center; -webkit-user-select: none; user-select: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 115% at 64% 46%, transparent 32%, rgba(0,0,0,0.62) 100%); }
.season { position: absolute; top: 96px; left: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.hero .wrap { pointer-events: none; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 6.5vw, 104px); line-height: 0.97; letter-spacing: -0.04em; }
.hero h1 .b { display: block; }
.hero h1 .sig { color: var(--amber); text-shadow: 0 0 26px rgba(224,169,58,0.25); }
.hero h1 .rare { color: var(--cyan); text-shadow: 0 0 34px rgba(70,230,240,0.4); }
.hero .sub { margin-top: 32px; max-width: 42ch; color: var(--secondary); font-size: clamp(16px, 1.4vw, 20px); }
.enter-link { pointer-events: auto; display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  font-family: var(--serif); font-size: clamp(17px, 1.5vw, 22px); letter-spacing: 0.04em; color: var(--amber);
  padding-bottom: 7px; border-bottom: 1px solid rgba(224,169,58,0.45); transition: border-color 0.5s, letter-spacing 0.5s; }
.enter-link::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
  box-shadow: 0 0 10px 2px rgba(224,169,58,0.8); animation: beat 2.4s ease-in-out infinite; }
.enter-link:hover { border-color: rgba(224,169,58,0.9); letter-spacing: 0.1em; }
@keyframes beat { 0%,100% { opacity: 0.45; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(var(--bronze), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { opacity: 0.2; transform: scaleY(0.6); } 50% { opacity: 0.8; transform: scaleY(1); } }

/* sections */
.section { position: relative; z-index: 1; background: var(--bg); padding: clamp(96px, 14vh, 168px) 0; border-top: none; }
.section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(176,143,87,0.12) 25%, rgba(176,143,87,0.35) 50%, rgba(176,143,87,0.12) 75%, transparent 100%); }
.section.alt { background: var(--bg-soft); }
.idx { position: absolute; top: -0.52em; right: 0; font-family: var(--serif); font-size: clamp(90px, 15vw, 200px);
  font-weight: 300; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(176,143,87,0.16); pointer-events: none; user-select: none; }
.statement { font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.025em; margin: 6px 0 4px; max-width: 18ch; }
h2.serif { font-weight: 600; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 6px 0; }

/* principles */
.tenets { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 54px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tenets li { background: var(--bg-soft); padding: 38px 36px; }
.section.alt .tenets li { background: var(--bg); }
.tenets h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(20px, 2vw, 26px); margin-bottom: 10px; letter-spacing: -0.01em; }
.tenets p { color: var(--secondary); font-size: 15px; max-width: 34ch; }

/* split layout */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-grid.reverse .split-text { order: 2; }
.split-text .idx { position: static; display: block; margin-bottom: 6px; font-size: clamp(60px, 8vw, 110px); }

/* identity seal */
.seal-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.seal { position: relative; width: min(380px, 78vw); aspect-ratio: 1; }
.seal::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224,169,58,0.16), transparent 62%); }
.seal .ring { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.92; }
.seal .animal { position: absolute; width: 58%; height: 58%; left: 21%; top: 21%; object-fit: contain; transform-origin: 50% 55%; will-change: transform, opacity; backface-visibility: hidden; }
.seal-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.seal-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); }
.seal-name { font-family: var(--serif); font-size: 22px; color: var(--parchment); letter-spacing: 0.04em; min-height: 1.4em; }
.shuffle-btn { cursor: pointer; background: none; border: 1px solid var(--line); color: var(--parchment);
  font-family: var(--serif); font-size: 16px; letter-spacing: 0.03em; padding: 11px 24px; border-radius: 999px; transition: border-color 0.3s, color 0.3s; }
.shuffle-btn:hover { border-color: rgba(224,169,58,0.6); color: var(--amber); }

/* identity section matches asset bg */
#identity.section { background: #000; }

/* key */
.key-stage { display: flex; justify-content: center; }
.key { position: relative; width: min(360px, 76vw); aspect-ratio: 1; }
.key img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.key::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 32%, var(--bg-soft) 62%); pointer-events: none; }

/* dive interstitial */
.dive { position: relative; z-index: 1; min-height: 86svh; display: grid; place-items: center; background: #04080a; border-top: 1px solid var(--line); overflow: hidden; -webkit-user-select: none; user-select: none; }
#diveField { position: absolute; inset: 0; z-index: 0; }
.dive-copy { position: relative; z-index: 1; text-align: center; padding: 0 24px; }
.dive-copy p { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.8vw, 62px); line-height: 1.08; letter-spacing: -0.025em; }
.dive-copy span { display: block; margin-top: 20px; font-family: var(--mono); color: var(--bronze); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

/* glimpses — real app screens in device frames */
.glimpses .lead { margin-bottom: 4px; }
.phones { display: flex; gap: 60px; justify-content: center; align-items: flex-start; margin-top: 66px; flex-wrap: wrap; }
.phone { width: min(320px, 82vw); margin: 0; text-align: center; }
.phone:nth-child(2) { transform: translateY(40px); }
.phone .screen { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: #05090a; border: 1px solid rgba(232, 226, 200, 0.14); transition: transform 0.5s ease, box-shadow 0.5s ease; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone--cyan .screen { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px -22px rgba(70, 230, 240, 0.5); }
.phone--cyan .screen img { object-fit: contain; transform: scale(1.48) translateY(-2px); transform-origin: center center; }
.phone--amber .screen { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px -22px rgba(224, 169, 58, 0.5); }
.phone--amber .screen img { object-position: center 36%; transform: translateY(-2px); }
.phone:hover .screen { transform: translateY(-6px); }
.phone figcaption { margin-top: 24px; color: var(--secondary); font-size: 14px; line-height: 1.55; }
.phone figcaption b { color: var(--parchment); font-weight: 400; }
@media (max-width: 720px) { .phones { gap: 52px; } .phone:nth-child(2) { transform: none; } }

/* access */
.access { text-align: center; }
.access .idx { right: 30px; }
.access .wrap { display: flex; flex-direction: column; align-items: center; }
.access .lead { text-align: center; margin: 0 auto; }
.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.appstore { display: inline-block; transition: transform 0.3s, filter 0.3s; }
.appstore img { display: block; }
.appstore:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ghost-btn { font-family: var(--serif); font-size: 17px; color: var(--parchment); padding: 13px 26px; border: 1px solid var(--line); border-radius: 10px; transition: border-color 0.3s; }
.ghost-btn:hover { border-color: rgba(224,169,58,0.5); }
.promise { font-family: var(--mono); margin-top: 30px; font-size: 12px; letter-spacing: 0.06em; color: var(--bronze); }

/* footer */
.site-footer { position: relative; z-index: 1; background: #040707; border-top: 1px solid var(--line); padding: 76px 0 42px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { display: inline-flex; margin-bottom: 14px; }
.foot-brand p { color: var(--secondary); font-size: 14px; max-width: 30ch; }
.foot-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--secondary); font-size: 14px; padding: 5px 0; transition: color 0.3s; }
.foot-col a:hover { color: var(--parchment); }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-bottom p, .legal-note { font-size: 12px; color: var(--bronze); line-height: 1.7; }
.legal-note { margin-top: 14px; max-width: 92ch; opacity: 0.85; }

/* CSS-only entrance — always ends visible */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
[data-reveal] { animation: fadeUp 0.8s both; }

/* legal pages */
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 120px 30px 100px; }
.legal a.back { color: var(--bronze); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 56px); margin: 24px 0 8px; }
.legal .updated { color: var(--bronze); font-size: 13px; margin-bottom: 40px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--secondary); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .tmpl { margin: 8px 0 36px; padding: 14px 18px; border: 1px solid rgba(224,169,58,0.3); border-radius: 10px; color: var(--bronze); font-size: 13px; }

@media (max-width: 920px) {
  .nav { display: none; }
  .brand-sep { display: none; }
  .brand-desc { display: none; }
  .tenets { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-grid.reverse .split-text { order: 0; }
  .seal-stage, .key-stage { order: -1; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .hero .sub { max-width: 90vw; }
  .idx { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
