:root {
  --bg: #050806;
  --ink: #E8EDE6;
  --mut: #9BA89E;
  --dim: #5E6A61;
  --jade: #3DFF8A;
  --jade2: #19C764;
  --gold: #D9C08A;
  --line: rgba(232, 237, 230, .16);
  --cin: 'Cinzel', 'Trajan Pro', serif;
  --deco: 'Cinzel Decorative', 'Cinzel', serif;
  --ser: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--ser); font-size: 19px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07;
  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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* carved stone lettering, like the cover */
.stone { font-family: var(--cin); font-weight: 900; letter-spacing: .06em; text-transform: uppercase; line-height: .95;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .35)), url('assets/stone.jpg') center / 520px;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .9)) drop-shadow(0 0 1px rgba(255, 255, 255, .35)) drop-shadow(0 0 22px rgba(61, 255, 138, .22)) drop-shadow(0 10px 30px rgba(0, 0, 0, .9)); }
.rule { display: flex; justify-content: center; align-items: center; color: rgba(232, 237, 230, .7); }
.rule svg { width: min(560px, 80%); height: 22px; }
.rule.thin { height: 1px; width: min(640px, 86%); margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(232, 237, 230, .55), transparent); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 18px clamp(16px, 4vw, 48px); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 8, 6, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.mark { flex: 1; font-family: var(--cin); font-weight: 700; letter-spacing: .28em; text-transform: uppercase; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.mark .sig { color: var(--jade); text-shadow: 0 0 12px var(--jade); }
.links { display: flex; gap: 30px; font-family: var(--cin); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--mut); }
.links a:hover { color: var(--ink); text-shadow: 0 0 12px rgba(61, 255, 138, .5); }
.nav-r { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ca { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); background: rgba(5, 8, 6, .6); font-size: 13px; }
.ca b { font-family: var(--cin); color: var(--jade); letter-spacing: .14em; font-size: 11.5px; }
.ca code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca button { font-family: var(--cin); font-size: 11px; letter-spacing: .12em; padding: 4px 10px; border: 1px solid var(--line); }
.ca button:hover { border-color: var(--jade); }
.x { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); }
.x svg { width: 14px; height: 14px; fill: currentColor; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; display: grid; place-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: -3%; background: url('assets/hero.jpg') center 40% / cover no-repeat; animation: breathe 30s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.06); } }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 70% at 50% 45%, transparent 35%, rgba(0, 0, 0, .7) 100%), linear-gradient(transparent 70%, var(--bg)); }
.beam { position: absolute; left: 50%; top: 0; width: 6px; height: 72%; transform: translateX(-50%); background: linear-gradient(rgba(180, 255, 210, .9), rgba(61, 255, 138, .6) 60%, rgba(61, 255, 138, 0)); filter: blur(2px); mix-blend-mode: screen; animation: beam 4.5s ease-in-out infinite; }
.beam::after { content: ''; position: absolute; left: 50%; top: 0; width: 140px; height: 100%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(61, 255, 138, .22), transparent); }
@keyframes beam { 50% { opacity: .55; } }
.fog { position: absolute; left: -20%; right: -20%; height: 45%; bottom: 8%; pointer-events: none; opacity: .5; mix-blend-mode: screen;
  background: radial-gradient(40% 50% at 30% 60%, rgba(200, 215, 205, .25), transparent 70%), radial-gradient(35% 45% at 75% 50%, rgba(200, 215, 205, .2), transparent 70%); filter: blur(18px); animation: drift 38s linear infinite alternate; }
.fog.f2 { bottom: 22%; opacity: .32; animation-duration: 55s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translateX(12%); } }
#motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in { position: relative; z-index: 2; text-align: center; display: grid; gap: 18px; justify-items: center; padding: 0 16px; margin-top: 2vh; }
.hero h1 { font-size: clamp(56px, 12vw, 176px); }
.hero h1 { animation: rise 1.8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(1.04); filter: blur(10px); } }
.sub { font-family: var(--cin); font-weight: 600; font-size: clamp(16px, 2.3vw, 30px); letter-spacing: .12em; text-transform: uppercase; color: #DCE3DA; text-shadow: 0 2px 16px rgba(0, 0, 0, .9); animation: rise 1.8s .4s both; }
.hero .rule { animation: rise 1.8s .25s both; }
.enter { margin-top: 18px; display: inline-flex; padding: 14px 30px; font-family: var(--cin); font-weight: 700; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: #EFFFF4;
  border: 1px solid rgba(61, 255, 138, .6); background: linear-gradient(rgba(10, 30, 18, .7), rgba(5, 12, 8, .85)); box-shadow: 0 0 28px rgba(61, 255, 138, .2), inset 0 0 18px rgba(61, 255, 138, .12); transition: box-shadow .3s, transform .3s; animation: rise 1.8s .6s both; }
.enter:hover { box-shadow: 0 0 46px rgba(61, 255, 138, .45), inset 0 0 22px rgba(61, 255, 138, .25); transform: translateY(-2px); }
.scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; font-family: var(--cin); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--mut); }
.scroll::after { content: ''; display: block; width: 1px; height: 38px; margin: 10px auto 0; background: linear-gradient(var(--jade), transparent); animation: beam 2s infinite; }

/* sections */
section { position: relative; }
.prologue { max-width: 760px; margin: 0 auto; padding: clamp(90px, 12vw, 150px) 22px 40px; text-align: center; color: #C9D2CB; font-size: clamp(19px, 1.9vw, 23px); display: grid; gap: 22px; }
.drop::first-letter { font-family: var(--deco); float: left; font-size: 3.4em; line-height: .8; margin: 6px 10px 0 0; color: var(--jade); text-shadow: 0 0 18px rgba(61, 255, 138, .5); }
.drop { text-align: left; }
h2.stone { font-size: clamp(40px, 7vw, 92px); text-align: center; }
h2.stone.sm { font-size: clamp(34px, 5.2vw, 66px); }
.lede { text-align: center; color: var(--mut); font-style: italic; font-size: clamp(18px, 1.7vw, 22px); margin: 14px 0 46px; }

/* gates */
.paths { padding: 70px clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.gates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gate { position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border: 1px solid rgba(232, 237, 230, .14); background: #000; clip-path: polygon(0 7%, 50% 0, 100% 7%, 100% 100%, 0 100%); transition: transform .5s, box-shadow .5s; }
.gate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.9); transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.gate::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(3, 6, 4, .95) 92%); }
.gate .num { position: absolute; top: 14%; left: 0; right: 0; text-align: center; z-index: 2; font-family: var(--deco); font-size: 40px; color: rgba(232, 237, 230, .85); text-shadow: 0 0 20px rgba(61, 255, 138, .5); }
.gate .txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 24px 30px; text-align: center; }
.gate h3 { font-family: var(--cin); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .08em; text-transform: uppercase; }
.gate p { color: #BFC9C1; font-size: 17.5px; margin: 8px 0 16px; }
.gate .go { font-family: var(--cin); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--jade); }
.gate:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 50px rgba(61, 255, 138, .18); }
.gate:hover img { transform: scale(1.12); filter: brightness(.9) saturate(1.05); }

/* chambers (one per path) */
.chambers { padding: 30px clamp(16px, 4vw, 48px) 40px; max-width: 1180px; margin: 0 auto; display: grid; gap: 90px; }
.chamber { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 4vw, 60px); align-items: start; scroll-margin-top: 90px; }
.chamber:nth-child(even) .ch-art { order: 2; }
.ch-art { position: sticky; top: 100px; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(232, 237, 230, .14); }
.ch-art img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.ch-art::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0, 0, 0, .8); }
.ch-art .roman { position: absolute; left: 18px; bottom: 12px; z-index: 2; font-family: var(--deco); font-size: 54px; color: rgba(232, 237, 230, .9); text-shadow: 0 0 24px rgba(61, 255, 138, .55); }
.ch-body h3 { font-family: var(--cin); font-weight: 800; font-size: clamp(30px, 3.6vw, 46px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.05; }
.ch-body .motto { font-style: italic; color: var(--jade); font-size: 21px; margin: 8px 0 18px; text-shadow: 0 0 14px rgba(61, 255, 138, .3); }
.ch-body p { color: #C9D2CB; }
.ch-body h4 { font-family: var(--cin); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 26px 0 10px; }
.ch-body ol { list-style: none; counter-reset: r; display: grid; gap: 10px; }
.ch-body ol li { counter-increment: r; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.ch-body ol li::before { content: counter(r, upper-roman); font-family: var(--cin); font-weight: 700; color: var(--jade); font-size: 15px; }
.trap { margin-top: 22px; padding: 16px 18px; border-left: 2px solid #C94A4A; background: linear-gradient(90deg, rgba(201, 74, 74, .1), transparent); color: #E3C9C9; }
.trap b { font-family: var(--cin); letter-spacing: .12em; color: #F09A9A; font-size: 14px; display: block; margin-bottom: 4px; }
.fits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fits span { font-family: var(--cin); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--line); color: var(--mut); }

/* oracle */
.oracle, .tablet { padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px) 40px; max-width: 900px; margin: 0 auto; }
.quiz { display: grid; gap: 22px; }
.q { padding: 22px; border: 1px solid var(--line); background: linear-gradient(rgba(14, 22, 17, .7), rgba(6, 10, 8, .7)); }
.q h5 { font-family: var(--cin); font-weight: 700; font-size: 18px; letter-spacing: .05em; margin-bottom: 14px; }
.q .opts { display: grid; gap: 8px; }
.q button { text-align: left; padding: 11px 14px; border: 1px solid rgba(232, 237, 230, .12); font-size: 17.5px; color: #C9D2CB; transition: border-color .2s, background .2s; }
.q button:hover { border-color: rgba(61, 255, 138, .5); }
.q button.on { border-color: var(--jade); background: rgba(61, 255, 138, .08); color: var(--ink); box-shadow: inset 2px 0 0 var(--jade); }
.verdict { margin-top: 30px; text-align: center; padding: 30px 20px; border: 1px solid rgba(61, 255, 138, .4); background: radial-gradient(80% 120% at 50% 0%, rgba(61, 255, 138, .12), transparent 70%); animation: rise 1s both; }
.verdict small { font-family: var(--cin); letter-spacing: .3em; text-transform: uppercase; color: var(--mut); font-size: 12px; }
.verdict b { display: block; font-family: var(--cin); font-weight: 900; font-size: clamp(28px, 4vw, 44px); letter-spacing: .06em; text-transform: uppercase; margin: 8px 0; text-shadow: 0 0 24px rgba(61, 255, 138, .4); }
.verdict a { display: inline-block; margin-top: 12px; font-family: var(--cin); font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--jade); border-bottom: 1px solid rgba(61, 255, 138, .5); }

/* tablet */
.slab { padding: clamp(20px, 3vw, 34px); border: 1px solid rgba(232, 237, 230, .18); background: linear-gradient(rgba(10, 14, 12, .85), rgba(5, 8, 6, .9)), url('assets/stone.jpg') center / 600px; box-shadow: inset 0 0 60px rgba(0, 0, 0, .8), 0 30px 80px rgba(0, 0, 0, .6); }
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fields label { position: relative; display: grid; gap: 6px; font-family: var(--cin); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.fields input { width: 100%; padding: 11px 30px 11px 12px; border: 1px solid rgba(232, 237, 230, .16); background: rgba(0, 0, 0, .55); font-family: ui-monospace, Menlo, monospace; font-size: 16px; color: var(--ink); outline: 0; letter-spacing: 0; }
.fields input:focus { border-color: var(--jade); box-shadow: 0 0 18px rgba(61, 255, 138, .2); }
.fields label span { position: absolute; right: 10px; bottom: 12px; color: var(--dim); font-family: ui-monospace, Menlo, monospace; letter-spacing: 0; }
.out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.out div { padding: 14px; border: 1px solid rgba(61, 255, 138, .22); background: rgba(61, 255, 138, .05); text-align: center; }
.out span { display: block; font-family: var(--cin); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.out b { font-family: var(--cin); font-weight: 800; font-size: 24px; color: #F0FFF5; text-shadow: 0 0 14px rgba(61, 255, 138, .35); }
.fine { margin-top: 14px; font-size: 16px; color: var(--mut); font-style: italic; text-align: center; }

/* center */
.center { margin-top: 90px; min-height: 80vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.center-bg { position: absolute; inset: 0; background: url('assets/center.jpg') center / cover no-repeat; filter: brightness(.75); }
.center::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.center-in { position: relative; z-index: 2; max-width: 820px; padding: 0 20px; display: grid; gap: 18px; justify-items: center; }
.center-in p { font-size: clamp(19px, 2vw, 24px); color: #D5DDD7; text-shadow: 0 2px 14px rgba(0, 0, 0, .9); }
.foot { padding: 40px 20px 50px; text-align: center; display: grid; gap: 16px; color: var(--dim); font-size: 15px; }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1.1s, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .links { display: none; }
  .gates { grid-template-columns: 1fr; }
  .gate { aspect-ratio: 4 / 3; }
  .chamber { grid-template-columns: 1fr; }
  .chamber:nth-child(even) .ch-art { order: 0; }
  .ch-art { position: relative; top: 0; }
  .fields, .out { grid-template-columns: 1fr 1fr; }
  .ca code { max-width: 110px; }
}
@media (max-width: 520px) { body { font-size: 18px; } .ca { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { opacity: 1; transform: none; } }
@media (max-width: 600px) { .hero h1 { font-size: 13.2vw; letter-spacing: .02em; } .sub { font-size: 15px; } }
.sub-link { font-family: var(--cin); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--mut); animation: rise 1.8s .8s both; }
.sub-link:hover { color: var(--jade); }

/* CA plate above the title */
.hero-ca { display: inline-flex; align-items: center; gap: 12px; margin-bottom: clamp(6px, 3vh, 26px); padding: 9px 10px 9px 16px; border: 1px solid rgba(232, 237, 230, .28); background: linear-gradient(rgba(10, 18, 13, .78), rgba(4, 7, 5, .88)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 0 26px rgba(61, 255, 138, .14), inset 0 0 14px rgba(61, 255, 138, .06); max-width: 92vw; cursor: pointer; animation: rise 1.8s .1s both; transition: border-color .2s, box-shadow .2s; }
.hero-ca:hover { border-color: rgba(61, 255, 138, .6); box-shadow: 0 0 36px rgba(61, 255, 138, .3), inset 0 0 14px rgba(61, 255, 138, .1); }
.hero-ca .k { font-family: var(--cin); font-weight: 800; font-size: 14px; letter-spacing: .24em; color: var(--jade); text-shadow: 0 0 10px rgba(61, 255, 138, .5); }
.hero-ca code { font-family: ui-monospace, Menlo, monospace; font-size: clamp(12px, 1.2vw, 15px); color: #E8EDE6; word-break: break-all; text-align: left; letter-spacing: .02em; }
.hero-ca .cp { font-family: var(--cin); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(61, 255, 138, .5); color: var(--jade); }
.hero-ca.done .cp { background: var(--jade); color: #041208; }
