/* ------------------------------------------------------------------
   Colour: a blue-black ink carries ~60% of every screen, warm ivory
   carries the type, and light itself is the accent. The white is warm
   at its core and cool at its edge, so it reads as glowing rather than
   flat. Antique gilt appears only in small marks.
------------------------------------------------------------------- */
:root {
  --ink: #07080c;
  --ink-2: #0b0d13;
  --ink-3: #11141c;
  --ivory: #f4f0e6;
  --ivory-2: rgba(244, 240, 230, .68);
  --ivory-3: rgba(244, 240, 230, .5);
  --line: rgba(244, 240, 230, .13);
  --line-2: rgba(244, 240, 230, .28);
  --halo: #b9cbff;
  --gilt: #cbb682;
  --serif: "Cormorant Garamond", "Iowan Old Style", Garamond, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(20px, 4.4vw, 72px);
  --glow: 0 0 1px rgba(255, 255, 255, .6), 0 0 34px rgba(185, 203, 255, .34), 0 0 90px rgba(185, 203, 255, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--ivory);
  font-family: var(--serif); font-size: clamp(18px, 1.25vw, 21px); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
canvas { display: block; }
::selection { background: var(--ivory); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ivory); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mono { font-family: var(--mono); font-weight: 300; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.dash { display: inline-block; width: 2.4em; height: 1px; background: currentColor; opacity: .5; vertical-align: middle; margin: 0 .8em; }

/* Veil + lantern */
.veil { position: fixed; inset: 0; z-index: 100; background: var(--ink); pointer-events: none; opacity: 1; transition: opacity .6s ease; }
.veil.is-open { opacity: 0; }
.lantern {
  position: fixed; left: 0; top: 0; width: 620px; height: 620px; margin: -310px 0 0 -310px; z-index: 3; pointer-events: none;
  background: radial-gradient(closest-side, rgba(185, 203, 255, .075), rgba(185, 203, 255, .03) 45%, transparent 72%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s ease;
}
.lantern.is-on { opacity: 1; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.rise { display: inline-block; opacity: 0; transform: translateY(1.1em); transition: opacity 1.3s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
p.rise, div.rise { display: block; }
div.hero__cta.rise, div.hero__foot.rise, p.crumb.rise { display: flex; }
.is-ready .rise { opacity: 1; transform: none; }

/* Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 1em;
  padding: 1.25em 1.9em; border: 1px solid var(--line-2); color: var(--ivory);
  font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  transition: color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory); transform: translateY(102%); transition: transform .55s var(--ease); }
.btn:hover { color: var(--ink); border-color: var(--ivory); }
.btn:hover::before { transform: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translate(3px, 0); }
.btn--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); box-shadow: 0 0 44px rgba(185, 203, 255, .32); }
.btn--light::before { background: var(--ink); }
.btn--light:hover { color: var(--ivory); box-shadow: 0 0 70px rgba(185, 203, 255, .5); }
.btn--big { padding: 1.5em 2.4em; font-size: .74rem; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad); transition: background .5s ease, padding .5s var(--ease), border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(7, 8, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.nav__mark { display: inline-flex; align-items: center; gap: 12px; font-size: 1.25rem; letter-spacing: .01em; white-space: nowrap; }
.nav__mark svg { width: 26px; height: 26px; fill: none; stroke: var(--ivory); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgba(185, 203, 255, .7)); transition: transform 1.2s var(--ease); }
.nav__mark svg .fill { fill: var(--ivory); stroke: none; }
.nav__mark:hover svg { transform: rotate(180deg) scale(1.08); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 44px); font-family: var(--mono); font-weight: 300; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 6px 0; color: var(--ivory-2); transition: color .4s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ivory); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover { color: var(--ivory); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__meta { color: var(--ivory-3); white-space: nowrap; display: inline-flex; align-items: center; gap: .8em; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 10px 2px rgba(185, 203, 255, .8); animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 164px var(--pad) 110px; overflow: hidden; }
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__gl.no-gl { background: radial-gradient(60% 55% at 50% 46%, rgba(185, 203, 255, .2), transparent 70%), var(--ink); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
/* Geometry overlay (geo.js): the solids, their labels and the point-cloud title */
.geo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.hero__marks { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.mark { position: absolute; left: 0; top: 0; width: 64px; height: 64px; opacity: 0; will-change: transform, opacity; }
.mark i { position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(var(--ivory), var(--ivory)) 0 0 / 8px 1px no-repeat, linear-gradient(var(--ivory), var(--ivory)) 0 0 / 1px 8px no-repeat,
    linear-gradient(var(--ivory), var(--ivory)) 100% 0 / 8px 1px no-repeat, linear-gradient(var(--ivory), var(--ivory)) 100% 0 / 1px 8px no-repeat,
    linear-gradient(var(--ivory), var(--ivory)) 0 100% / 8px 1px no-repeat, linear-gradient(var(--ivory), var(--ivory)) 0 100% / 1px 8px no-repeat,
    linear-gradient(var(--ivory), var(--ivory)) 100% 100% / 8px 1px no-repeat, linear-gradient(var(--ivory), var(--ivory)) 100% 100% / 1px 8px no-repeat; }
.mark span { position: absolute; left: calc(100% + 9px); top: -3px; white-space: nowrap; font-family: var(--mono); font-weight: 300; font-size: 9px; letter-spacing: .2em; color: var(--ivory-2); }
.mark--still { width: auto; height: auto; }
.mark--still span { position: static; }
/* The inscription round the sphere. The svg is a square as tall as the hero, centred on it,
   so its arc stays concentric with the rings the shader draws at any screen size. */
.hero__legend { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 1 / 1; transform: translateX(-50%); z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.8s ease .6s; }
.is-ready .hero__legend { opacity: 1; }
.hero__legend text { font-family: var(--mono); font-weight: 300; font-size: 11px; letter-spacing: .24em; fill: var(--ivory-2); }
@media (max-height: 780px) { .hero__legend text { font-size: 13px; } }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1400px; }
.hero__title { font-weight: 300; font-size: clamp(4.2rem, 16.5vw, 17rem); line-height: .82; letter-spacing: -.035em; text-shadow: var(--glow); }
.hero__title .line { display: block; padding-top: .06em; }
.hero__title em { font-weight: 300; }
/* Titles that geo.js turns into point clouds. The padding, cancelled by the margin, gives the
   pointer mask room so the glow round the letters is not cut off at the edge of the box. */
.hero__title, .ghero__title { padding: 120px 40px; margin: -120px -40px; will-change: opacity; }
.is-plain { animation: titleIn 1.5s var(--ease) .45s both; }
@keyframes titleIn { from { opacity: 0; transform: translateY(.12em); } to { opacity: 1; transform: none; } }
.has-hole {
  -webkit-mask-image: radial-gradient(circle at var(--px, 0px) var(--py, 0px), transparent 0, transparent calc(var(--pr, 0px) * .45), #000 var(--pr, 0px));
  mask-image: radial-gradient(circle at var(--px, 0px) var(--py, 0px), transparent 0, transparent calc(var(--pr, 0px) * .45), #000 var(--pr, 0px));
}
.hero__lede { margin-top: clamp(22px, 4vh, 44px); font-size: clamp(1.2rem, 1.9vw, 1.7rem); line-height: 1.35; color: var(--ivory-2); }
.hero__lede em { color: var(--ivory); }
.hero__cta { margin-top: clamp(26px, 4.5vh, 48px); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__foot { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; color: var(--ivory-3); }
.scrollcue { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; }
.scrollcue i { width: 1px; height: 38px; background: linear-gradient(var(--ivory), transparent); transform-origin: top; animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Section furniture */
.section-no { color: var(--ivory-3); margin-bottom: clamp(18px, 3vw, 34px); }
.display { font-weight: 300; font-size: clamp(3.6rem, 13vw, 13.5rem); line-height: .86; letter-spacing: -.03em; }
.display--sm { font-size: clamp(3rem, 7.2vw, 7.4rem); }
.display em { text-shadow: var(--glow); }

/* Invocation */
.invocation { padding: clamp(90px, 16vw, 230px) var(--pad); max-width: 1500px; margin: 0 auto; }
.invocation__text { font-size: clamp(1.8rem, 4.4vw, 4.4rem); line-height: 1.14; letter-spacing: -.015em; font-weight: 300; max-width: 22em; }
.invocation__text span { color: rgba(244, 240, 230, .14); transition: color .7s ease, text-shadow .9s ease; }
.invocation__text span.on { color: var(--ivory); text-shadow: 0 0 30px rgba(185, 203, 255, .22); }

/* Works */
.works { padding: 0 var(--pad) clamp(90px, 12vw, 170px); }
.works__head { position: relative; text-align: center; padding: clamp(70px, 11vw, 150px) 0 clamp(30px, 4vw, 56px); border-bottom: 1px solid var(--line); overflow: hidden; }
.works__head .display { position: relative; }
.sunburst { position: absolute; inset: 0; width: 100%; height: 100%; }
.sunburst line { stroke: var(--ivory); stroke-width: .7; opacity: 0; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease), opacity 1.6s ease; transition-delay: calc(var(--i) * 22ms); }
.sunburst circle { fill: none; stroke: var(--ivory); stroke-width: .8; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity 2s ease .6s; }
.sunburst.is-in line { stroke-dashoffset: 0; opacity: .17; }
.sunburst.is-in circle { opacity: .5; filter: drop-shadow(0 0 8px rgba(185, 203, 255, .9)); }
.sunburst.is-in circle.dim { opacity: .2; }
.works__bar { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); padding: 20px 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 3vw, 44px); color: var(--ivory-3); flex-wrap: wrap; }
.works__count { margin-left: auto; }
.filters { display: flex; gap: clamp(12px, 2.4vw, 34px); flex-wrap: wrap; }
.filter { font-family: var(--mono); font-weight: 300; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-3); padding: 6px 0; position: relative; transition: color .4s; }
.filter sup { font-size: .8em; margin-left: .5em; opacity: .7; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ivory); box-shadow: 0 0 10px var(--halo); transform: scaleX(0); transition: transform .5s var(--ease); }
.filter:hover, .filter.is-active { color: var(--ivory); }
.filter.is-active::after { transform: scaleX(1); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.card { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); isolation: isolate; }
.card__art { position: absolute; inset: 0; z-index: -1; transition: transform 1.6s var(--ease), filter 1.2s ease; filter: saturate(.75) brightness(.86); }
.card__art canvas { width: 100%; height: 100%; object-fit: cover; }
.card__art canvas.no-gl { background: radial-gradient(40% 30% at 50% 30%, rgba(185, 203, 255, .3), transparent), linear-gradient(var(--ink-3), var(--ink)); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 8, 12, .94) 4%, rgba(7, 8, 12, .35) 46%, rgba(7, 8, 12, .1) 70%, rgba(7, 8, 12, .5)); transition: opacity .8s ease; }
.card:hover .card__art { transform: scale(1.06); filter: saturate(1) brightness(1.05); }
.card__top { position: absolute; left: 20px; right: 20px; top: 20px; display: flex; justify-content: space-between; align-items: center; color: var(--ivory-2); }
.tag { padding: .55em .9em; border: 1px solid var(--line-2); background: rgba(7, 8, 12, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--ivory); font-size: .6rem; }
.tag--roblox { border-color: rgba(244, 240, 230, .6); }
.tag--premium { border-color: var(--gilt); color: var(--gilt); }
.tag--dev { border-style: dashed; color: var(--ivory-2); }
.card__body { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.card__genre { color: var(--ivory-3); margin-bottom: 10px; }
.card__title { font-weight: 300; font-size: clamp(2rem, 3.1vw, 3.3rem); line-height: .95; letter-spacing: -.02em; transition: text-shadow .8s ease; }
.card:hover .card__title { text-shadow: var(--glow); }
.card__line { margin-top: 10px; color: var(--ivory-2); font-style: italic; font-size: 1.02rem; line-height: 1.3; max-width: 22em; }
.card__go { display: inline-flex; gap: .8em; margin-top: 18px; color: var(--ivory); opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.card:hover .card__go, .card:focus-visible .card__go { opacity: 1; transform: none; }
.bracket { position: absolute; width: 14px; height: 14px; border: 0 solid var(--ivory); opacity: 0; transition: opacity .5s ease, transform .6s var(--ease); pointer-events: none; }
.bracket.tl { left: 8px; top: 8px; border-width: 1px 0 0 1px; transform: translate(8px, 8px); }
.bracket.tr { right: 8px; top: 8px; border-width: 1px 1px 0 0; transform: translate(-8px, 8px); }
.bracket.bl { left: 8px; bottom: 8px; border-width: 0 0 1px 1px; transform: translate(8px, -8px); }
.bracket.br { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; transform: translate(-8px, -8px); }
.card:hover .bracket, .card:focus-visible .bracket { opacity: 1; transform: none; }

/* Letter grid */
.glyphs { border-block: 1px solid var(--line); padding: clamp(40px, 6vw, 90px) var(--pad); background: var(--ink-2); overflow: hidden; }
.glyphs__grid { --cols: 24; --cell: 56px; display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); justify-content: center; max-width: 100%; }
.glyphs__grid span { height: var(--cell); display: grid; place-items: center; font-size: calc(var(--cell) * .42); letter-spacing: 0; color: var(--ivory-3); box-shadow: inset 0 0 0 .5px rgba(244, 240, 230, .06); transition: background .35s ease, color .35s ease; }
.glyphs__grid span.flux { color: rgba(244, 240, 230, .32); }
.glyphs__grid span.on { color: var(--ivory); text-shadow: 0 0 16px rgba(185, 203, 255, .55); }
.glyphs__grid span.inv { background: var(--ivory); color: var(--ink); text-shadow: none; box-shadow: 0 0 26px rgba(185, 203, 255, .45); }

/* Creed */
.creed { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 110px); padding: clamp(90px, 13vw, 190px) var(--pad); max-width: 1640px; margin: 0 auto; }
.creed__side { position: sticky; top: 120px; align-self: start; }
.creed__note { margin-top: 28px; color: var(--ivory-2); max-width: 24em; font-size: 1.15rem; }
.creed__list li { display: grid; grid-template-columns: clamp(54px, 7vw, 110px) 1fr; gap: 12px; padding: clamp(26px, 3.4vw, 48px) 0; border-top: 1px solid var(--line); position: relative; }
.creed__list li:last-child { border-bottom: 1px solid var(--line); }
.creed__list li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--ivory); box-shadow: 0 0 12px var(--halo); transition: width 1.2s var(--ease); }
.creed__list li:hover::before { width: 100%; }
.creed__list .num { font-style: italic; font-size: clamp(1.5rem, 2.3vw, 2.3rem); color: var(--gilt); line-height: 1.2; }
.creed__list h3 { font-weight: 400; font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.015em; transition: text-shadow .8s ease; }
.creed__list li:hover h3 { text-shadow: var(--glow); }
.creed__list p { margin-top: 14px; color: var(--ivory-2); max-width: 32em; font-size: 1.15rem; }

/* Chronicle */
.chronicle { padding: 0 var(--pad) clamp(90px, 13vw, 190px); max-width: 1640px; margin: 0 auto; }
.chronicle__head { margin-bottom: clamp(26px, 4vw, 56px); }
.logs li { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 28px); padding: 20px 0; border-top: 1px solid var(--line); transition: padding .6s var(--ease); }
.logs li:last-child { border-bottom: 1px solid var(--line); }
.logs li:hover { padding-left: 14px; }
.logs__date { color: var(--gilt); flex: none; }
.logs__title { font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.2; }
.logs__dots { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-.3em); }
.logs__state { color: var(--ivory-3); flex: none; }

/* Contact */
.contact { position: relative; text-align: center; padding: clamp(110px, 16vw, 240px) var(--pad); border-top: 1px solid var(--line); overflow: hidden; }
.contact__halo { position: absolute; left: 50%; top: 50%; width: min(86vw, 900px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(244, 240, 230, .5); box-shadow: 0 0 60px rgba(185, 203, 255, .3), inset 0 0 60px rgba(185, 203, 255, .16); animation: breathe 9s ease-in-out infinite; pointer-events: none; }
.contact__halo::before { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px dashed rgba(244, 240, 230, .16); animation: spin 120s linear infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.035); box-shadow: 0 0 110px rgba(185, 203, 255, .42), inset 0 0 90px rgba(185, 203, 255, .22); } }
@keyframes spin { to { transform: rotate(360deg); } }
.contact > *:not(.contact__halo) { position: relative; }
.contact .display { font-size: clamp(3.2rem, 10vw, 10rem); }
.contact__lede { margin: clamp(22px, 3vw, 40px) auto 0; max-width: 26em; color: var(--ivory-2); font-size: 1.2rem; }
.contact__mail { display: inline-block; margin-top: clamp(22px, 3vw, 40px); font-size: clamp(1.5rem, 3.4vw, 3rem); font-style: italic; border-bottom: 1px solid var(--line-2); padding-bottom: 6px; transition: text-shadow .6s ease, border-color .6s ease, opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.contact__mail:hover { text-shadow: var(--glow); border-color: var(--ivory); }
.contact__links { margin-top: clamp(30px, 4vw, 54px); display: flex; gap: clamp(18px, 3vw, 44px); justify-content: center; flex-wrap: wrap; color: var(--ivory-2); }
.contact__links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .4s, border-color .4s; }
.contact__links a:hover { color: var(--ivory); border-color: var(--ivory); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: clamp(30px, 5vw, 70px) var(--pad) 26px; overflow: hidden; }
.footer__word { font-weight: 300; font-size: clamp(3.4rem, 16.4vw, 19rem); line-height: .8; letter-spacing: -.04em; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(244, 240, 230, .3); margin-bottom: clamp(24px, 4vw, 56px); }
.footer__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ivory-3); }
.footer__row a:hover { color: var(--ivory); }

/* ------------------------- Game page ------------------------- */
.ghero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px var(--pad) clamp(40px, 6vh, 70px); overflow: hidden; }
.ghero__gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.ghero__gl.no-gl { background: radial-gradient(40% 40% at 70% 35%, rgba(185, 203, 255, .3), transparent 70%), linear-gradient(var(--ink-3), var(--ink)); }
.ghero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink) 0, rgba(7, 8, 12, .55) 34%, transparent 62%), linear-gradient(to right, rgba(7, 8, 12, .6), transparent 58%); pointer-events: none; }
.ghero__inner { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.crumb { color: var(--ivory-2); display: inline-flex; gap: 1em; align-items: center; margin-bottom: clamp(16px, 3vh, 30px); }
.crumb a { border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .4s; }
.crumb a:hover { border-color: var(--ivory); }
.ghero__title { font-weight: 300; font-size: clamp(3.6rem, 12vw, 12.5rem); line-height: .84; letter-spacing: -.035em; text-shadow: var(--glow); }
.ghero__title .line { display: block; padding-top: .06em; }
.ghero__tag { margin-top: clamp(16px, 2.6vh, 28px); font-size: clamp(1.25rem, 2.1vw, 1.9rem); font-style: italic; color: var(--ivory-2); max-width: 24em; }
.ghero__cta { margin-top: clamp(22px, 4vh, 40px); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ghero__note { margin-top: 18px; color: var(--ivory-3); display: flex; gap: 1.2em; flex-wrap: wrap; align-items: center; }
.ghero__note .tag { font-size: .6rem; }
.trailer { width: clamp(220px, 22vw, 340px); aspect-ratio: 16 / 10; position: relative; border: 1px solid var(--line-2); background: rgba(7, 8, 12, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; text-align: center; color: var(--ivory-2); transition: border-color .5s, box-shadow .6s; }
.trailer__ring { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ivory); display: grid; place-items: center; margin: 0 auto 12px; box-shadow: 0 0 24px rgba(185, 203, 255, .4); transition: transform .6s var(--ease); }
.trailer__ring::before { content: ""; border-left: 11px solid var(--ivory); border-block: 7px solid transparent; margin-left: 4px; }
button.trailer:hover { border-color: var(--ivory); box-shadow: 0 0 50px rgba(185, 203, 255, .3); color: var(--ivory); }
button.trailer:hover .trailer__ring { transform: scale(1.1); }
.trailer.is-soon .trailer__ring { opacity: .4; box-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); margin: 0 var(--pad); }
.stats div { padding: 22px 20px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dt { color: var(--ivory-3); }
.stats dd { margin: 8px 0 0; font-size: clamp(1.2rem, 1.8vw, 1.6rem); }
dl { margin: 0; }

.gsec { padding: clamp(80px, 11vw, 160px) var(--pad) 0; max-width: 1640px; margin: 0 auto; }
.gsec__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: clamp(18px, 2.4vw, 30px); margin-bottom: clamp(24px, 3.4vw, 50px); }
.gsec__head .section-no { margin: 0 0 6px; }
.premise { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 5vw, 90px); }
.premise__text { font-weight: 300; font-size: clamp(1.6rem, 3.3vw, 3.3rem); line-height: 1.16; letter-spacing: -.012em; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line); }
.pillar { padding: clamp(22px, 3vw, 44px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); position: relative; transition: background .7s ease; }
.pillar:hover { background: rgba(185, 203, 255, .035); }
.pillar .num { font-style: italic; color: var(--gilt); font-size: 1.5rem; }
.pillar h3 { margin-top: clamp(30px, 6vw, 90px); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.05; }
.pillar p { margin-top: 12px; color: var(--ivory-2); }

.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.figure { position: relative; aspect-ratio: 3 / 4.6; overflow: hidden; isolation: isolate; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; transition: border-color .6s ease, transform .9s var(--ease); }
.figure canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .5; transition: opacity .9s ease, transform 1.6s var(--ease); }
.figure::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7, 8, 12, .95), rgba(7, 8, 12, .2) 60%); }
.figure:hover { border-color: var(--line-2); transform: translateY(-6px); }
.figure:hover canvas { opacity: .9; transform: scale(1.05); }
.sigil { position: absolute; left: 50%; top: 36%; width: 62%; transform: translate(-50%, -50%); fill: none; stroke: var(--ivory); stroke-width: .5; filter: drop-shadow(0 0 5px rgba(185, 203, 255, .8)); transition: transform 2.4s var(--ease); }
.sigil .s-faint { opacity: .35; }
.sigil .s-dot { fill: var(--ivory); stroke: none; }
.figure:hover .sigil { transform: translate(-50%, -50%) rotate(60deg); }
.figure__role { color: var(--gilt); }
.figure h3 { font-weight: 300; font-size: clamp(1.5rem, 2.2vw, 2.2rem); line-height: 1; margin-top: 8px; }
.figure p { margin-top: 8px; color: var(--ivory-2); font-style: italic; font-size: 1rem; line-height: 1.3; }

.realm { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 5vw, 90px); align-items: center; margin-bottom: clamp(40px, 7vw, 110px); }
.realm--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.realm--flip .realm__art { order: 2; }
.realm__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); }
.realm__art canvas { width: 100%; height: 100%; transition: transform 2.4s var(--ease); }
.realm:hover .realm__art canvas { transform: scale(1.04); }
.realm__text .sigil { position: static; transform: none; width: 84px; margin-bottom: 22px; }
.realm:hover .realm__text .sigil { transform: rotate(60deg); }
.realm__text h3 { font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: .95; letter-spacing: -.02em; }
.realm__text p { margin-top: 16px; color: var(--ivory-2); font-size: 1.2rem; max-width: 24em; }

.gcta { position: relative; text-align: center; margin-top: clamp(60px, 9vw, 130px); padding: clamp(100px, 14vw, 200px) var(--pad); border-block: 1px solid var(--line); overflow: hidden; }
.gcta .contact__halo { width: min(70vw, 640px); }
.gcta > *:not(.contact__halo) { position: relative; }
.gcta h2 { font-weight: 300; font-size: clamp(2.8rem, 8vw, 8rem); line-height: .9; letter-spacing: -.03em; }
.gcta .ghero__cta, .gcta .ghero__note { justify-content: center; }

.next { display: block; position: relative; overflow: hidden; isolation: isolate; padding: clamp(60px, 9vw, 130px) var(--pad); }
.next canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .45; transition: opacity 1s ease, transform 2.4s var(--ease); }
.next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--ink) 5%, rgba(7, 8, 12, .3)); }
.next:hover canvas { opacity: .85; transform: scale(1.04); }
.next__label { color: var(--ivory-3); }
.next__title { font-weight: 300; font-size: clamp(3rem, 9vw, 9rem); line-height: .9; letter-spacing: -.03em; margin-top: 10px; display: flex; align-items: baseline; gap: .3em; flex-wrap: wrap; }
.next__title .arr { font-size: .5em; transition: transform .8s var(--ease); }
.next:hover .next__title { text-shadow: var(--glow); }
.next:hover .next__title .arr { transform: translateX(.4em); }

.modal { position: fixed; inset: 0; z-index: 90; background: rgba(7, 8, 12, .9); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 24px; }
.modal__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; border: 1px solid var(--line-2); box-shadow: 0 0 90px rgba(185, 203, 255, .22); background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: 22px; right: var(--pad); }

.missing { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 140px var(--pad); }
.missing h1 { font-weight: 300; font-size: clamp(3rem, 9vw, 8rem); line-height: .9; }
.missing p { margin: 20px 0 30px; color: var(--ivory-2); }

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creed { grid-template-columns: 1fr; }
  .creed__side { position: static; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure { aspect-ratio: 3 / 5.4; padding: 16px; }
  .figure .sigil { top: 28%; width: 56%; }
  .pillars { grid-template-columns: 1fr; }
  .pillar h3 { margin-top: 26px; }
  .premise { grid-template-columns: 1fr; }
  .ghero__inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(4) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .realm, .realm--flip { grid-template-columns: 1fr; }
  .realm--flip .realm__art { order: 0; }
}
@media (max-width: 720px) {
  .nav__meta { display: none; }
  .nav__links { gap: 16px; font-size: .6rem; letter-spacing: .14em; }
  .nav__mark span { display: none; }
  .mark span { display: none; }
  .works__label, .works__count { display: none; }
  .hero__foot span:first-child, .hero__foot span:last-child { display: none; }
  .hero__foot { justify-content: center; }
  .card__go { opacity: 1; transform: none; }
  .logs li { flex-wrap: wrap; }
  .logs__dots, .logs__state { display: none; }
  .logs__date { width: 100%; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stats div:nth-child(-n+2) { border-top: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
  .btn { padding: 1.1em 1.4em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
