/* Fringe Theory Games — "Neon Premiere, blue sunset" theme.
   Brand pink/teal are sampled from assets/fringe-theory-mark.png; keep them at full saturation and use sparingly. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-italic-700.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

:root {
  --pink: #ff5cd5;
  --pink-deep: #d1218a;
  --pink-glow: rgb(255 92 213 / 0.55);
  --teal: #69fdfd;
  --teal-glow: rgb(105 253 253 / 0.5);
  --gold: #e9b765;
  --ink: #fdf1f9;
  --ink-soft: #e8cfe0;
  --bg: #14040f;
  --bg-raised: #230a1d;
  --panel: rgb(52 10 42 / 0.62);
  --panel-edge: rgb(255 92 213 / 0.55);

  --font-body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-display: "Playfair Display", "Didot", "Bodoni 72", Georgia, serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 1360px;
  --header-h: 5rem;
  --hero-h: clamp(34rem, 56.3vw, 62rem); /* the supplied layers are 1672×941 */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; background: var(--teal); color: #06191a; border-radius: 0.5rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon { stroke: currentColor; }

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgb(20 4 15 / 0.96), rgb(20 4 15 / 0.82));
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgb(255 92 213 / 0.7), 0 6px 30px -6px var(--pink-glow);
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand__mark { height: 3.7rem; width: auto; filter: drop-shadow(0 0 10px rgb(105 253 253 / 0.35)); }
.brand__lockup { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.brand__wordmark-wrap { position: relative; display: block; margin-bottom: -0.4rem; }
.brand__wordmark { display: block; height: 3.3rem; width: auto; transition: opacity 0.5s; }
.brand__games {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--teal); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.55em; text-transform: uppercase; padding-left: 0.55em;
}
.brand__games::before, .brand__games::after { content: ""; width: 2rem; height: 1px; background: var(--teal); box-shadow: 0 0 6px var(--teal-glow); }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); font-size: 1.15rem; }
.site-nav a:not(.pill-link) { color: var(--ink); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s, text-shadow 0.2s; }
.site-nav a:not(.pill-link):hover { text-shadow: 0 0 12px var(--pink-glow); border-color: var(--pink); }
.site-nav a[aria-current="page"] { border-color: var(--pink); }
.site-nav__divider { width: 1px; height: 1.6rem; background: rgb(255 92 213 / 0.6); }
.pill-link { --neon: var(--pink); color: var(--ink); text-decoration: none; padding: 0.4rem 1.4rem; border-radius: 999px; background: rgb(255 92 213 / 0.06); font-size: 1rem; }
.pill-link:hover { color: #fff; background: rgb(255 92 213 / 0.22); }

.nav-toggle { display: none; }

/* Home: the stage artwork's purple valance is the header. It sits over the hero and scrolls away with the page. */
.is-home .site-header, .is-studio .site-header { position: absolute; inset: 0 0 auto; background: none; backdrop-filter: none; box-shadow: none; }
.is-home .site-header__inner { height: calc(var(--hero-h) * 0.13); }
.is-studio .site-header__inner { height: max(var(--header-h), 7.3vw); }

/* ───────── Header ident (js/ident.js) ─────────
   The mark flickers on, the script is written out by a spark on a canvas laid over the wordmark, then the exact
   wordmark image fades in over it. Plays on the first page of a session and on every hover. Everything is inert (logo
   simply visible) without JS or with reduced motion. */
.ident-canvas { position: absolute; pointer-events: none; width: calc(100% * 1518 / 1421); left: calc(-100% * 47 / 1421); top: calc(-100% * 35 / 342); height: auto; }
.ident-pending .brand__wordmark, .is-writing .brand__wordmark { opacity: 0; }
.ident-pending .brand__games, .is-writing .brand__games { opacity: 0; }
.brand__games { transition: opacity 0.6s; }
.ident-pending .brand__mark, .is-igniting .brand__mark { animation: mark-ignite 0.9s steps(1, end) both; }
@keyframes mark-ignite {
  0%   { opacity: 0.08; }
  12%  { opacity: 0.9; }
  18%  { opacity: 0.1; }
  34%  { opacity: 0.85; }
  40%  { opacity: 0.3; }
  52%  { opacity: 1; }
  60%  { opacity: 0.55; }
  100% { opacity: 1; }
}

/* ───────── Neon type & buttons ───────── */
.eyebrow { margin: 0; display: flex; justify-content: center; }
.eyebrow span {
  display: inline-flex; align-items: center; gap: 1.1rem;
  color: var(--teal); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; text-shadow: 0 0 10px var(--teal-glow);
}
.eyebrow span::before, .eyebrow span::after { content: ""; width: clamp(1.5rem, 6vw, 4rem); height: 1px; background: var(--teal); box-shadow: 0 0 6px var(--teal-glow); }

/* Small text rendering of the title for cards; the hero uses the supplied title artwork. */
.title-script--sm { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; text-shadow: 0 0 14px rgb(255 92 213 / 0.6); }

/* Neon tube (buttons and portal cards): near-white core edge, tight inner glow, wide coloured halo. Override --neon per element. */
.btn, .portal, .pill-link {
  --neon: var(--pink);
  border: 2px solid color-mix(in srgb, var(--neon) 55%, #fff);
  box-shadow:
    0 0 2px rgb(255 255 255 / 0.9),
    0 0 7px var(--neon),
    0 0 16px var(--neon),
    0 0 34px color-mix(in srgb, var(--neon) 65%, transparent),
    0 0 64px color-mix(in srgb, var(--neon) 35%, transparent),
    inset 0 0 6px color-mix(in srgb, var(--neon) 90%, transparent),
    inset 0 0 20px color-mix(in srgb, var(--neon) 45%, transparent);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn:hover, .portal:hover, .pill-link:hover {
  animation: neon-flicker 0.32s linear;
  border-color: #fff;
  box-shadow:
    0 0 3px #fff,
    0 0 10px var(--neon),
    0 0 24px var(--neon),
    0 0 48px var(--neon),
    0 0 90px color-mix(in srgb, var(--neon) 55%, transparent),
    inset 0 0 8px var(--neon),
    inset 0 0 26px color-mix(in srgb, var(--neon) 60%, transparent);
}
/* The tube stutters once on hover, then settles into the full hover glow (the keyframes end at the hover box-shadow). */
@keyframes neon-flicker {
  0%, 18%, 46% { box-shadow: 0 0 1px rgb(255 255 255 / 0.4), 0 0 4px color-mix(in srgb, var(--neon) 50%, transparent), inset 0 0 4px color-mix(in srgb, var(--neon) 40%, transparent); }
  30%          { box-shadow: 0 0 3px #fff, 0 0 10px var(--neon), 0 0 24px var(--neon), 0 0 48px var(--neon), inset 0 0 8px var(--neon); }
  60%          { box-shadow: 0 0 3px #fff, 0 0 14px var(--neon), 0 0 34px var(--neon), 0 0 70px var(--neon), 0 0 110px color-mix(in srgb, var(--neon) 55%, transparent), inset 0 0 10px var(--neon), inset 0 0 30px color-mix(in srgb, var(--neon) 65%, transparent); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-width: 14.5rem; padding: 0.6rem 1.6rem; border-radius: 999px; text-decoration: none;
  font-size: 1.2rem; font-weight: 600; color: #fff;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn--pink { --neon: var(--pink); background: linear-gradient(180deg, #e8309d 0%, #9b0c63 100%); }
.btn--teal { --neon: var(--teal); background: rgb(8 20 30 / 0.85); }

.badge {
  display: inline-block; margin: 0; padding: 0.2rem 0.9rem; border: 1px solid var(--teal); border-radius: 999px;
  color: var(--teal); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ───────── Home hero ─────────
   Three supplied layers: cityscape (back), stage & curtains (front, transparent opening), title artwork (content). */
.hero { position: relative; isolation: isolate; height: var(--hero-h); overflow: hidden; }
.hero__scene { position: absolute; inset: 0; z-index: -1; background: #0a0b18; clip-path: inset(0); /* clips the fixed cityscape to the hero */ }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* The cityscape is pinned to the viewport while the stage and curtains scroll over it. At scroll 0 it lines up exactly with the hero. */
.hero .layer--city { position: fixed; inset: 0 0 auto; height: var(--hero-h); }
/* Push the skyline up and the Hollywood sign clear of the right-hand curtain. */
.layer--city { transform: translateX(-5%) scale(1.1); transform-origin: 50% 100%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
.hero__content { position: relative; z-index: 1; padding: calc(var(--hero-h) * 0.165) var(--gutter) 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { margin: 0.4rem 0 0; width: clamp(19rem, 42vw, 44rem); filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.5)); }
.hero__title img { width: 100%; height: auto; }
.hero__lede { max-width: 38rem; margin: -0.6rem 0 1.4rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); text-shadow: 0 1px 10px #000, 0 0 24px rgb(20 4 15 / 0.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }

/* ───────── Portals ───────── */
.portals {
  position: relative; z-index: 1; max-width: var(--max); margin: calc(var(--hero-h) * -0.23) auto 0; padding: 0 var(--gutter) 3.5rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.portal {
  --neon: var(--pink);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.9rem 1.4rem 0.9rem 0.6rem; border-radius: 1.1rem;
  background: linear-gradient(180deg, rgb(70 12 56 / 0.72), rgb(34 6 28 / 0.82)); backdrop-filter: blur(6px);
  color: var(--ink); text-decoration: none;
}
.portal:hover { transform: translateY(-3px); color: var(--ink); }
.portal__icon { width: 6rem; height: auto; margin: -0.4rem 0; }
.portal__text { display: flex; flex-direction: column; gap: 0.15rem; }
.portal__title { font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.portal__desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.35; }
.portal__go { color: var(--pink); width: 1.4rem; height: 1.4rem; filter: drop-shadow(0 0 5px var(--pink)); transition: transform 0.2s; }
.portal:hover .portal__go { transform: translateX(4px); }

/* ───────── Inner pages ───────── */
.page-hero {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  background: radial-gradient(60% 100% at 50% 0%, rgb(255 92 213 / 0.18), transparent 70%);
}
.page-hero .hero__title { margin: 0; }
.page-title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(2.8rem, 7vw, 5rem); line-height: 1.05; text-shadow: 0 0 22px var(--pink-glow); }
.page-lede { margin: 0; max-width: 38rem; font-size: 1.25rem; color: var(--ink-soft); }
.page-body { max-width: var(--max); margin: 0 auto; padding: 1rem var(--gutter) 5rem; }
.prose { max-width: 44rem; font-size: 1.15rem; }
.note { color: var(--ink-soft); font-style: italic; }
.feature-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; border-radius: 1.2rem; border: 1.5px solid var(--panel-edge); background: var(--panel);
  box-shadow: 0 0 28px rgb(255 92 213 / 0.25);
}
.feature-card__art { min-height: 18rem; position: relative; }
.feature-card__art { overflow: hidden; }
.feature-card__text { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; justify-content: center; }
.feature-card__text p { margin: 0; }


.ownership { color: var(--ink-soft); font-style: italic; }

/* ───────── Studio page ───────── */

.section-head { max-width: 46rem; margin: 0 auto 2.5rem; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.section-title { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; text-shadow: 0 0 22px var(--pink-glow); }
.section-lede { margin: 0; color: var(--ink-soft); font-size: 1.2rem; }

.crew { max-width: var(--max); margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.crew-group { display: flex; align-items: center; gap: 1.2rem; margin: 3rem 0 1.4rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.45em; text-transform: uppercase; color: var(--teal); text-shadow: 0 0 10px var(--teal-glow); }
.crew-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); box-shadow: 0 0 6px var(--teal-glow); }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1.5rem; }
.crew-grid--direction, .crew-grid--single { grid-template-columns: 1fr; }
@media (min-width: 961px) { .crew-grid--direction { grid-template-columns: 1.6fr 1fr; } }

.crew-card {
  --neon: var(--pink);
  display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.2rem; align-items: start; padding: 1.4rem 1.5rem 1.4rem 0.8rem; border-radius: 1.1rem;
  border: 1.5px solid color-mix(in srgb, var(--neon) 60%, #fff 0%);
  background: linear-gradient(180deg, rgb(70 12 56 / 0.55), rgb(30 6 26 / 0.75));
  box-shadow: 0 0 14px color-mix(in srgb, var(--neon) 35%, transparent), inset 0 0 18px color-mix(in srgb, var(--neon) 12%, transparent);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.crew-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--neon) 70%, #fff); box-shadow: 0 0 6px var(--neon), 0 0 26px color-mix(in srgb, var(--neon) 55%, transparent), inset 0 0 22px color-mix(in srgb, var(--neon) 22%, transparent); }
.crew-card__icon { width: 100%; height: auto; margin-top: -0.3rem; }
.crew-card h4 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.crew-card p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; }
.crew-card .crew-card__tagline { margin-top: 0.15rem; color: var(--neon); font-weight: 600; font-style: italic; text-shadow: 0 0 10px color-mix(in srgb, var(--neon) 50%, transparent); }
.crew-card--featured { grid-template-columns: 8.5rem 1fr; }
.crew-card--featured .crew-card__icon { margin-top: 0.4rem; }
.crew-grid--direction .crew-card:last-child, .crew-card:nth-child(even) { --neon: var(--teal); }
.crew-grid--direction .crew-card:first-child { --neon: var(--pink); }
.crew-card:nth-child(odd) { --neon: var(--pink); }

.process { max-width: 62rem; margin: 0 auto; padding: 3rem var(--gutter) 2rem; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 1.7rem; width: 2px; background: linear-gradient(180deg, var(--pink), var(--teal)); box-shadow: 0 0 8px var(--pink-glow), 0 0 18px var(--teal-glow); }
.step { position: relative; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.4rem; padding-bottom: 1.8rem; }
.step__num {
  --neon: var(--pink); z-index: 1; width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); color: #fff; font: 700 1.5rem var(--font-display); font-style: italic;
  border: 2px solid color-mix(in srgb, var(--neon) 55%, #fff);
  box-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 20px var(--neon), inset 0 0 10px color-mix(in srgb, var(--neon) 55%, transparent);
}
.step:nth-child(even) .step__num { --neon: var(--teal); }
.step__body { padding-top: 0.2rem; }
.step__body h3 { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.step__body p { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 1.1rem; max-width: 44rem; }
@media (min-width: 961px) {
  .steps::before { left: 50%; transform: translateX(-1px); }
  .step { grid-template-columns: 1fr 3.4rem 1fr; gap: 2rem; }
  .step__num { grid-column: 2; grid-row: 1; }
  .step__body { grid-column: 3; grid-row: 1; }
  .step:nth-child(even) .step__body { grid-column: 1; text-align: right; }
  .step:nth-child(even) .step__body p { margin-left: auto; }
}

.studio-outro { max-width: 62rem; margin: 0 auto; padding: 2rem var(--gutter) 5rem; text-align: center; font-size: 1.1rem; }

/* Scroll reveal (JS adds .js; without it everything is simply visible). */
.js .reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

@media (max-width: 960px) {
}
@media (max-width: 560px) {
  .crew-card, .crew-card--featured { grid-template-columns: 4.5rem 1fr; gap: 0.8rem; padding: 1.1rem 1rem 1.1rem 0.5rem; }
  .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .step__num { width: 3rem; height: 3rem; font-size: 1.3rem; }
  .steps::before { left: 1.45rem; }
}

/* Studio hero: the same stage artwork as the home page, shorter, with the title framed by the curtains. */
.hero--studio { --hero-h: clamp(32rem, 46vw, 46rem); }
.hero--studio .layer--stage { object-position: 50% 0; }
.hero--studio .layer--city { transform: none; object-position: 50% 62%; }
.hero--studio .hero__content { padding-top: max(calc(var(--header-h) + 3rem), 14vw); }
.hero--studio .hero__shade { background: radial-gradient(45% 55% at 50% 52%, rgb(20 4 15 / 0.55), transparent 75%), linear-gradient(180deg, transparent 75%, var(--bg) 100%); }
.studio-title { margin: 0.8rem 0 1.2rem; font: 700 clamp(2.6rem, 6.5vw, 5.6rem)/1.05 var(--font-display); font-style: italic; text-align: center; background: linear-gradient(180deg, #fff 8%, #ffe3d6 45%, #ff9ad8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgb(255 92 213 / 0.55)) drop-shadow(0 4px 6px rgb(0 0 0 / 0.6)); }

/* Three pillars overlap the foot of the hero, like the home page cards. */
.pillars { position: relative; z-index: 1; max-width: var(--max); margin: calc(var(--hero-h) * -0.2) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
body.is-studio .pillars { --hero-h: clamp(32rem, 46vw, 46rem); }
.pillar { --neon: var(--pink); display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem 1.2rem 0.6rem; border-radius: 1.1rem; background: linear-gradient(180deg, rgb(70 12 56 / 0.72), rgb(34 6 28 / 0.85)); backdrop-filter: blur(6px); border: 2px solid color-mix(in srgb, var(--neon) 55%, #fff); box-shadow: 0 0 2px rgb(255 255 255 / 0.9), 0 0 7px var(--neon), 0 0 16px var(--neon), 0 0 34px color-mix(in srgb, var(--neon) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--neon) 30%, transparent); }
.pillar:nth-child(2) { --neon: var(--teal); }
.pillar img { width: 100%; height: auto; }
.pillar p { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.pillar strong { color: var(--neon); font-family: var(--font-display); font-style: italic; font-size: 1.15em; text-shadow: 0 0 10px color-mix(in srgb, var(--neon) 60%, transparent); }

/* "Our look": a small neon pipeline, with the AI assist as a dashed side note. */
.our-look { max-width: 56rem; margin: 3rem auto 1rem; padding: 0 var(--gutter); text-align: center; }
.our-look__label { margin: 0 0 1.2rem; color: var(--teal); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.45em; text-transform: uppercase; text-shadow: 0 0 10px var(--teal-glow); }
.look-flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.look-node { --neon: var(--pink); padding: 0.7rem 1.6rem; border-radius: 999px; font: 700 1.3rem var(--font-display); font-style: italic; color: #fff; background: rgb(20 4 15 / 0.7); border: 2px solid color-mix(in srgb, var(--neon) 55%, #fff); box-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 20px var(--neon), 0 0 42px color-mix(in srgb, var(--neon) 40%, transparent), inset 0 0 12px color-mix(in srgb, var(--neon) 40%, transparent); }
.look-node--teal { --neon: var(--teal); }
.look-node--final { background: linear-gradient(180deg, #e8309d, #9b0c63); }
.look-link { width: clamp(2rem, 7vw, 5rem); height: 2px; background: linear-gradient(90deg, var(--pink), var(--teal)); box-shadow: 0 0 8px var(--pink-glow), 0 0 14px var(--teal-glow); position: relative; }
.look-link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--teal); border-right: 0; filter: drop-shadow(0 0 4px var(--teal)); }
.look-assist { display: inline-flex; align-items: center; gap: 0.6rem; margin: 1.1rem 0 0; padding: 0.3rem 1rem 0.3rem 0.4rem; border: 1.5px dashed rgb(105 253 253 / 0.7); border-radius: 999px; color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }
.look-assist span { padding: 0.1rem 0.6rem; border-radius: 999px; background: rgb(105 253 253 / 0.15); color: var(--teal); font-weight: 700; font-style: normal; letter-spacing: 0.1em; text-shadow: 0 0 8px var(--teal-glow); }
.our-look__text { margin: 1.4rem auto 0; max-width: 44rem; color: var(--ink-soft); font-size: 1.05rem; }

@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; margin-top: -3rem; }
}

/* ───────── Philosophy page ───────── */
.philosophy-hero__icon { width: 9rem; height: auto; margin-bottom: -0.8rem; }
.philosophy-hero .page-lede { max-width: 46rem; font-size: 1.3rem; }
.philosophy-hero .page-lede strong { color: var(--pink); font-family: var(--font-display); font-style: italic; text-shadow: 0 0 12px var(--pink-glow); }

.manifesto { max-width: 60rem; margin: 1rem auto 3rem; padding: 0 var(--gutter); }
.manifesto__quote {
  --neon: var(--pink); position: relative; margin: 0; padding: 2.4rem clamp(1.5rem, 5vw, 3.5rem); border-radius: 1.6rem; text-align: center;
  background: linear-gradient(180deg, rgb(70 12 56 / 0.6), rgb(30 6 26 / 0.8));
  border: 2px solid color-mix(in srgb, var(--neon) 55%, #fff);
  box-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 22px var(--neon), 0 0 60px color-mix(in srgb, var(--neon) 40%, transparent), inset 0 0 24px color-mix(in srgb, var(--neon) 35%, transparent);
}
.manifesto__quote::before, .manifesto__quote::after { position: absolute; font: 700 6rem/1 var(--font-display); color: var(--teal); text-shadow: 0 0 14px var(--teal-glow); opacity: 0.85; }
.manifesto__quote::before { content: "\201C"; top: 0.4rem; left: 1.2rem; }
.manifesto__quote::after { content: "\201D"; right: 1.2rem; bottom: -2.2rem; }
.manifesto__quote p { margin: 0; font: 700 clamp(1.4rem, 3vw, 2.1rem)/1.4 var(--font-display); font-style: italic; text-shadow: 0 0 18px rgb(255 92 213 / 0.5); }
.manifesto__quote strong { font-weight: inherit; }

.principles { max-width: 62rem; margin: 0 auto; padding: 1rem var(--gutter) 2rem; }
.principle { display: grid; grid-template-columns: 11rem 1fr; gap: 2.2rem; align-items: center; padding: 2rem 0; }
.principle + .principle { border-top: 1px solid rgb(255 92 213 / 0.18); }
.medallion {
  --neon: var(--pink); width: 11rem; height: 11rem; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgb(70 12 56 / 0.7), rgb(20 4 15 / 0.9));
  border: 2px solid color-mix(in srgb, var(--neon) 55%, #fff);
  box-shadow: 0 0 2px #fff, 0 0 8px var(--neon), 0 0 22px var(--neon), 0 0 48px color-mix(in srgb, var(--neon) 35%, transparent), inset 0 0 18px color-mix(in srgb, var(--neon) 30%, transparent);
}
.medallion img { width: 72%; height: auto; }
.principle:nth-child(even) .medallion { --neon: var(--teal); }
.principle__tag { margin: 0 0 0.5rem; color: var(--teal); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.45em; text-transform: uppercase; text-shadow: 0 0 10px var(--teal-glow); }
.principle__body h2 { margin: 0 0 0.6rem; font: 700 clamp(1.5rem, 3vw, 2rem)/1.25 var(--font-display); font-style: italic; text-shadow: 0 0 16px rgb(255 92 213 / 0.45); }
.principle__body h2 strong { font-weight: inherit; }
.principle__body p { margin: 0 0 0.9rem; font-size: 1.18rem; color: var(--ink); }
.principle__body p:last-child { margin-bottom: 0; }
.principle__body strong { color: var(--pink); text-shadow: 0 0 10px var(--pink-glow); }
.principle__body em { color: var(--ink-soft); }
@media (min-width: 761px) {
  .principle:nth-child(even) { grid-template-columns: 1fr 11rem; }
  .principle:nth-child(even) .medallion { grid-column: 2; grid-row: 1; }
  .principle:nth-child(even) .principle__body { grid-column: 1; grid-row: 1; text-align: right; }
  .principle:nth-child(even) .shame-words { justify-content: flex-end; }
}

/* The loaded words, struck through in neon. */
.shame-words { list-style: none; margin: 1.1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shame-words li { padding: 0.15rem 0.8rem; border-radius: 999px; border: 1px solid rgb(105 253 253 / 0.5); color: var(--ink-soft); font-size: 0.95rem; text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; box-shadow: 0 0 10px rgb(105 253 253 / 0.2); }

.affirmations { max-width: 62rem; margin: 0 auto; padding: 3rem var(--gutter) 1rem; text-align: center; }
.affirmations__icon { width: 8rem; height: auto; margin: 0 auto 1rem; }
.affirmations__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.affirmation {
  --neon: var(--pink); padding: 1.8rem 1.4rem; border-radius: 1.1rem; font: 700 clamp(1.3rem, 2.6vw, 1.75rem)/1.3 var(--font-display); font-style: italic;
  background: linear-gradient(180deg, rgb(70 12 56 / 0.55), rgb(30 6 26 / 0.75));
  border: 1.5px solid color-mix(in srgb, var(--neon) 65%, #fff);
  box-shadow: 0 0 8px var(--neon), 0 0 24px color-mix(in srgb, var(--neon) 40%, transparent), inset 0 0 16px color-mix(in srgb, var(--neon) 20%, transparent);
}
.affirmation:nth-child(2), .affirmation:nth-child(3) { --neon: var(--teal); }
.affirmations__more { margin: 1.6rem auto 0; max-width: 40rem; font-size: 1.25rem; color: var(--ink-soft); }

.closing { max-width: 56rem; margin: 0 auto; padding: 4rem var(--gutter) 5rem; text-align: center; }
.closing__statement { margin: 0 0 2.5rem; font: 700 clamp(1.8rem, 4.4vw, 3rem)/1.25 var(--font-display); font-style: italic; text-shadow: 0 0 6px #fff4, 0 0 24px var(--pink), 0 0 60px rgb(255 92 213 / 0.5); }

@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; gap: 1.2rem; justify-items: center; text-align: center; }
  .medallion { width: 9rem; height: 9rem; }
  .shame-words { justify-content: center; }
  .affirmations__grid { grid-template-columns: 1fr; }
}

/* ───────── Footer ───────── */
.site-footer { margin-top: auto; padding: 2.5rem var(--gutter) 2rem; background: linear-gradient(180deg, transparent, #0b0208 60%); border-top: 1px solid rgb(255 92 213 / 0.3); }
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: center; }
.site-footer__brand { display: flex; align-items: center; gap: 1rem; max-width: 34rem; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer__brand img { width: 3rem; height: auto; }
.site-footer__brand p { margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.site-footer__links a { color: var(--ink); text-decoration: none; }
.site-footer__links a:hover { color: var(--teal); text-decoration: underline; }
.site-footer__legal { max-width: var(--max); margin: 1.5rem auto 0; color: #bfa0b4; font-size: 0.85rem; }

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .portals { grid-template-columns: 1fr; margin-top: -4rem; }
  .feature-card { grid-template-columns: 1fr; }
  .js .nav-toggle {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--pink); background: transparent; cursor: pointer; color: var(--ink);
    box-shadow: 0 0 12px rgb(255 92 213 / 0.4);
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 1.3rem; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.2s, background 0.2s; }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0.25rem; padding: 1rem var(--gutter) 1.5rem;
    background: rgb(20 4 15 / 0.98); box-shadow: 0 12px 30px -8px var(--pink-glow); border-bottom: 1px solid rgb(255 92 213 / 0.6);
    visibility: hidden; opacity: 0; transform: translateY(-0.5rem); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .js .site-nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; }
  .site-nav a:not(.pill-link) { padding: 0.7rem 0; border-bottom: 1px solid rgb(255 92 213 / 0.2); }
  .site-nav__divider { display: none; }
  .pill-link { text-align: center; margin-top: 0.8rem; }
}
@media (max-width: 560px) {
  :root { --header-h: 4.25rem; }
  .brand__mark { height: 2.6rem; }
  .brand__wordmark { height: 1.9rem; }
  .brand__games { font-size: 0.6rem; gap: 0.4rem; }
  .brand__games::before, .brand__games::after { width: 1rem; }
  .eyebrow span { font-size: 0.7rem; letter-spacing: 0.3em; gap: 0.6rem; }
  .btn { min-width: 0; width: 100%; font-size: 1.1rem; }
  .hero__actions { width: 100%; gap: 1rem; }
  .portal { padding: 0.8rem 1.1rem 0.8rem 0.5rem; }
  .portal__icon { width: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .layer--city { position: absolute; height: 100%; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover, .portal:hover, .pill-link:hover { transform: none; animation: none; }
}

/* Narrow screens crop the scene to its centre; keep a hint of the curtains at the edges. */
@media (max-width: 960px) {
  .hero { height: auto; min-height: 36rem; padding-bottom: 6rem; }
  .is-home .site-header, .is-studio .site-header { background: linear-gradient(180deg, rgb(20 4 15 / 0.9), transparent); }
  .is-home .site-header__inner, .is-studio .site-header__inner { height: var(--header-h); }
  .hero__content { padding-top: calc(var(--header-h) + 1.5rem); }
  .layer--stage { display: none; } /* the curtain frame only works at desktop proportions */
  .hero .layer--city { height: 100svh; transform: none; object-position: 38% 100%; }
  .hero__shade { background: linear-gradient(90deg, rgb(194 35 127 / 0.55), transparent 14%, transparent 86%, rgb(194 35 127 / 0.55)), linear-gradient(180deg, rgb(20 4 15 / 0.45) 0%, rgb(20 4 15 / 0.2) 60%, var(--bg) 100%); }
}
