/* =====================================================================
   japiye.fun · one-page portfolio
   Layout & interaction modelled on juditpolgar.com: full-screen
   "stack-cover" sections, sepia film hero with huge caps name, serif
   quotes, pill buttons, grey title bands. Header and footer are
   transparent so the hero sky canvas shows through behind them.
   ===================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2");
}

:root {
  --charcoal: #434342;
  --charcoal-2: #2f2f2e;
  --ink: #192a3d;
  --slate: #3a4f66;
  --mist: #f2f5f7;
  --band: #ececec;
  --line: #e1e8ed;
  --mauve: #666178;
  --mauve-2: #4f4a63;
  --sepia: #c9a77a;
  --cream: #f3e6cc;
  --gold: #e0b04f;
  --space: #07090f;
  --header-h: 64px;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate);
  background: #120d09;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--ink); }
p { margin: 0 0 1em; }
kbd, code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .85em;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .05em .35em;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 100px; font-weight: 600;
}
.skip-link:focus { top: calc(var(--header-h) + .75rem); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(.75rem, 2vw, 1.5rem);
  background-color: transparent;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
  transition: background-color .4s var(--ease), color .4s var(--ease), text-shadow .4s var(--ease);
}
.brand { grid-column: 2; justify-self: center; color: inherit; display: block; padding: 4px; }
.brand img {
  width: 40px; height: 40px;
  filter: invert(1) drop-shadow(0 1px 6px rgba(0,0,0,.55));
  transition: filter .4s var(--ease);
}
.header-cta {
  grid-column: 3; justify-self: end;
  font: 600 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: inherit;
  border: 2px solid rgba(255,255,255,.85); border-radius: 100px; padding: .55rem 1rem;
  text-shadow: none;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.header-cta:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
@media (max-width: 520px) {
  .header-cta { padding: .5rem .75rem; font-size: .65rem; }
}

/* Header bar takes the colour of the section (or title band) currently under it. */
.site-header.is-over-paper { background-color: #fff; }
.site-header.is-over-band { background-color: var(--band); }
.site-header.is-over-games { background-color: #0a1222; }

/* Dark typography when the fixed header sits over a light section */
.site-header.is-on-light {
  color: var(--charcoal);
  text-shadow: 0 1px 8px rgba(255,255,255,.85);
}
.site-header.is-on-light .brand img { filter: drop-shadow(0 1px 6px rgba(255,255,255,.8)); }
.site-header.is-on-light .header-cta {
  border-color: var(--charcoal);
}
.site-header.is-on-light .header-cta:hover {
  background: var(--charcoal); color: #fff; border-color: var(--charcoal);
}

/* ------------------------------------------------------------------ side dots */
.dots {
  position: fixed; right: 1.1rem; top: 50%; transform: translateY(-50%); z-index: 40;
  display: grid; gap: .9rem;
}
.dots a {
  position: relative; display: block; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.85); box-shadow: 0 0 0 2px rgba(25,42,61,.55);
  transition: transform .25s var(--ease), background .25s;
}
.dots a.is-active { background: var(--gold); transform: scale(1.35); }
.dots a span {
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--charcoal); color: #fff; padding: .3rem .6rem; border-radius: 100px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dots a:hover span, .dots a:focus-visible span { opacity: 1; }
@media (max-width: 700px) {
  .dots { right: .35rem; gap: .7rem; }
  .dots a { width: 8px; height: 8px; }
  .dots a span { display: none; }
  /* Keep cards and copy clear of the side dots (they replace the old menu). */
  .profile,
  .site-grid,
  .ext-grid { padding-right: 1.8rem; }
}

/* ------------------------------------------------------------------ stack-cover sections */
main { position: relative; }
.anchor { position: relative; height: 0; }
.stack {
  position: sticky;
  top: var(--stick, 0px);           /* set by JS when a section is taller than the viewport */
  min-height: 100vh; min-height: 100svh;
  box-shadow: 0 -16px 32px -14px rgba(0,0,0,.35);
}
.stack:nth-of-type(1) { z-index: 1; }
.stack:nth-of-type(2) { z-index: 2; }
.stack:nth-of-type(3) { z-index: 3; }
.stack:nth-of-type(4) { z-index: 4; }

/* ------------------------------------------------------------------ sky (fixed hero canvas, behind header + footer) */
.sky {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 35%, #5a4630 0%, #2b2017 55%, #120d09 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ------------------------------------------------------------------ 1a hero */
.hero {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; min-height: 520px;
  display: grid; place-items: end center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #5a4630 0%, #2b2017 55%, #120d09 100%);
  color: #fff; text-align: center;
  cursor: crosshair;
}
/* Homepage: the fixed .sky paints the film; keep this transparent so the
   canvas also shows through the header that overlays the hero. */
body:has(.sky) .hero { background: transparent; }
.hero-grain {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.hero-inner { position: relative; padding: 0 1.25rem clamp(5rem, 14vh, 9rem); pointer-events: none; }
.hero-name {
  color: #fff;
  font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.6rem, 9vw, 7.2rem); line-height: .95;
  text-shadow: 0 0 2px #1c140d, 0 0 2px #1c140d, 0 4px 30px rgba(0,0,0,.55);
}
.hero-sub {
  margin: 1rem auto 0; max-width: 40ch;
  font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(.72rem, 1.4vw, .9rem);
  color: var(--cream); text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero-hint { margin: .75rem 0 0; font-family: var(--serif); font-style: italic; color: rgba(243,230,204,.7); font-size: .95rem; }
.scroll-cue {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  width: 28px; height: 46px; border: 2px solid rgba(255,255,255,.8); border-radius: 100px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 4px; animation: cue 1.8s infinite var(--ease);
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ------------------------------------------------------------------ 1b profile */
.profile {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2.5rem) clamp(1.25rem, 6vw, 6rem) 3rem;
  background: #fff;
  box-shadow: 0 -16px 32px -14px rgba(0,0,0,.35);
}
.profile-inner {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.profile-photo {
  margin: 0;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--space);
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px var(--gold),
    0 18px 40px -16px rgba(25, 42, 61, .45);
}
.profile-photo picture,
.profile-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}
.profile-text { max-width: 620px; text-align: left; }
.profile-mark { width: 56px; height: 56px; margin: 0 0 1.1rem; opacity: .8; }
.profile-name { font-weight: 300; font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.profile-role { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink); margin: .4rem 0 1.4rem; }
.bio-box { background: var(--mist); padding: 1.5rem 1.8rem; font-size: 1.05rem; text-wrap: pretty; border-left: 3px solid var(--gold); }
.bio-box p { margin: 0; }
.bio-box p + p { margin-top: .85em; }
.facts { list-style: none; padding: 0; margin: 1.4rem 0; display: flex; justify-content: flex-start; flex-wrap: wrap; gap: .5rem 1.8rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.facts strong { font-size: 1.6rem; font-weight: 700; color: var(--mauve); margin-right: .25rem; vertical-align: -.1em; }
.profile-text .btn-row { justify-content: flex-start; }

/* ------------------------------------------------------------------ buttons (pills) */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; margin-top: 1.4rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .65rem 1.6rem;
  border-radius: 100px; border: 2px solid transparent;
  font: 600 .82rem/1.1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn small { font-weight: 500; letter-spacing: .02em; text-transform: none; opacity: .8; }
.btn-solid { background: var(--mauve); color: #fff; }
.btn-solid:hover { background: var(--mauve-2); }
.btn-outline { border-color: var(--mauve); color: var(--mauve); background: #fff; }
.btn-outline:hover { background: var(--mauve); color: #fff; }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--space); }
.btn-gold { background: var(--gold); color: #1d1606; }
.btn-gold:hover { background: #f0c565; }
.btn-text { padding-inline: .4rem; color: var(--slate); text-transform: none; letter-spacing: .02em; font-weight: 600; }
.btn-text:hover { color: var(--mauve); transform: none; text-decoration: underline; }

/* ------------------------------------------------------------------ grey title band */
.band-title {
  background: var(--band);
  text-align: center; font-weight: 200; text-transform: uppercase; letter-spacing: .08em;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: #000;
  padding: calc(var(--header-h) + 1.4rem) 1rem 1.4rem;
}

/* ------------------------------------------------------------------ 2 websites */
/* Desktop: one viewport for the whole section — image | copy side by side,
   both screenshots share the same max-height (capped at the shorter native
   527px). Image files are never re-encoded; CSS may only scale them down. */
.websites { background: #fff; display: flex; flex-direction: column; }
.websites .band-title {
  padding: calc(var(--header-h) + .7rem) 1rem .65rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}
.site-grid {
  flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2.25rem);
  padding: clamp(.55rem, 1.6vh, 1.1rem) clamp(1rem, 3.5vw, 3rem) clamp(.7rem, 1.8vh, 1.25rem);
  align-items: center; max-width: 1400px; width: 100%; margin: 0 auto;
  min-height: 0;
}
.site-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  align-items: center;
  text-align: left;
}
.mock {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: 0;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  box-shadow:
    0 18px 36px -18px rgba(25,42,61,.5),
    0 6px 14px -8px rgba(25,42,61,.25);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.site-card:hover .mock {
  transform: translateY(-4px);
  box-shadow:
    0 26px 48px -20px rgba(25,42,61,.55),
    0 8px 18px -10px rgba(25,42,61,.28);
}

/* Original PNGs: scale down via max-height only, never upscale past 527. */
.site-shot {
  display: block;
  margin: 0;
}
.site-shot-img {
  display: block;
  width: auto;
  height: auto;
  max-height: min(527px, calc(100svh - 17rem));
  max-width: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.site-copy { padding-top: 0; max-width: none; margin: 0; }
.site-copy h3 {
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  color: var(--ink);
  margin: .3rem 0 .45rem;
}
.site-copy p:not(.tagline) {
  text-align: left;
  hyphens: auto;
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: .7em;
}
.site-copy .btn-row {
  justify-content: flex-start;
  margin-top: .7rem;
}

@media (max-width: 960px) {
  .mock { border-radius: 18px; }
  .site-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .mock { margin-inline: auto; }
  .site-shot-img {
    max-height: min(527px, 52vh);
  }
  .site-copy { text-align: center; max-width: 36rem; }
  .site-copy p:not(.tagline) { text-align: left; }
  .site-copy .btn-row { justify-content: center; }
}
@media (max-width: 560px) {
  .websites .band-title {
    padding: calc(var(--header-h) + 1rem) 1rem 1rem;
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }
  .site-grid {
    padding: 1.25rem 1rem 2rem;
    gap: 2rem;
  }
  .mock {
    border-radius: 20px;
    display: block;
    max-width: 100%;
    margin-inline: auto;
  }
  .site-shot { display: block; max-width: 100%; }
  .site-shot-img {
    max-height: none;
    width: auto;
    height: auto;
    max-width: 100%;
  }
  .site-copy { padding-top: 1.1rem; }
  .site-copy h3 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .tagline { font-size: 1.15rem; }
  .site-copy p:not(.tagline) { font-size: 1rem; line-height: 1.6; }
}

/* ------------------------------------------------------------------ 3 games */
.games {
  position: sticky; overflow: hidden;
  background: radial-gradient(90% 80% at 30% 50%, #10213b 0%, #0a1222 45%, var(--space) 100%);
  color: #e7ecf3;
  display: grid; align-items: center;
}
.games-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.games-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end;
  gap: 2rem; padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 6vw, 6rem) 4rem;
  min-height: 100vh; min-height: 100svh;
}
.kicker {
  position: absolute; top: calc(var(--header-h) + 1.5rem); left: 0; right: 0; text-align: center;
  font-weight: 200; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0;
}
.feature { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; text-align: center; max-width: 520px; }
.feature-title { color: #fff; font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 5.4rem); letter-spacing: .04em; line-height: 1; text-shadow: 0 6px 40px rgba(0,0,0,.6); }
.feature-sub { text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: clamp(.8rem, 1.3vw, 1rem); color: var(--gold); margin: .6rem 0 1.2rem; }
.feature-text { color: #c9d3e0; text-align: justify; hyphens: auto; background: rgba(7,9,15,.45); padding: 1rem 1.2rem; border-radius: 6px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.chips li { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.3); padding: .3rem .75rem; border-radius: 100px; color: #fff; }
.coming-soon {
  grid-column: 1; grid-row: 1; align-self: end; justify-self: start;
  display: flex; gap: .9rem; align-items: flex-start; max-width: 300px;
  font-size: .85rem; color: #aab6c6; border-left: 2px solid rgba(255,255,255,.2); padding-left: 1rem;
}
.coming-soon p { margin: 0; }
.coming-soon strong { color: #fff; font-weight: 600; }
.cs-dot { flex: none; width: 10px; height: 10px; margin-top: .4rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(224,176,79,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(224,176,79,0); } 100% { box-shadow: 0 0 0 0 rgba(224,176,79,0); } }
.figure8-caption { position: absolute; right: 1.2rem; bottom: .8rem; margin: 0; font-family: var(--serif); font-style: italic; font-size: .8rem; color: rgba(255,255,255,.35); }

/* ------------------------------------------------------------------ 4 extensions */
.extensions { background: #fff; display: flex; flex-direction: column; }
.ext-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1.25rem, 6vw, 6rem) 4rem;
  max-width: 1300px; width: 100%; margin: auto;
}
.ext-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 50px -36px rgba(25,42,61,.6); }
.ext-media { display: grid; place-items: center; padding: 1.5rem; }
.ext-media img { width: 96px; height: 96px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); transition: transform .5s var(--ease); }
.ext-card:hover .ext-media img { transform: rotate(-6deg) scale(1.06); }
.ext-media-chess { background: repeating-conic-gradient(#2f2f2e 0 25%, #3d3d3c 0 50%) 0 0 / 40px 40px; }
.ext-media-maps { background: linear-gradient(135deg, #e8f0fe, #fce8e6); }
.ext-body { padding: 1.5rem 1.6rem 1.4rem; }
.ext-body h3 { font-weight: 600; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.ext-for { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mauve); margin: .2rem 0 .8rem; font-weight: 600; }
.ext-features { padding-left: 1.1rem; margin: 0; font-size: .93rem; }
.ext-features li { margin-bottom: .3rem; }
.ext-body .btn-row { justify-content: flex-start; margin-top: 1.1rem; }
.install { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .92rem; }
.install summary { cursor: pointer; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; color: var(--ink); list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 32px; }
.install summary::-webkit-details-marker { display: none; }
.install summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--mauve); color: var(--mauve); font-size: .95rem; line-height: 1; transition: transform .3s var(--ease); }
.install[open] summary::before { transform: rotate(45deg); }
.install ol { margin: .6rem 0 0; padding-left: 1.3rem; }
.install li { margin-bottom: .3rem; }
.install-note { font-size: .82rem; margin: .5rem 0 0; color: #6b7c8f; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  position: relative; z-index: 10;
  background: transparent; color: #fff; text-align: center;
  padding: 3rem 1.25rem 2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.7);
}
.footer-logo { margin: 0 auto 1.4rem; filter: invert(1) drop-shadow(0 1px 8px rgba(0,0,0,.6)); }
.footer-nav { list-style: none; margin: 0 0 1.2rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 2rem; }
.footer-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 500; }
.footer-nav a:hover { color: var(--gold); }
.footer-contact { font-size: .85rem; opacity: .85; }
.copyright { font-size: .75rem; opacity: .6; margin: 0; }

/* ------------------------------------------------------------------ gravity dialog */
.gravity-dialog {
  width: min(1400px, 96vw); height: min(900px, 92vh); max-width: none; max-height: none;
  padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.gravity-dialog[open] { display: flex; flex-direction: column; }
.gravity-dialog::backdrop { background: rgba(7,9,15,.8); backdrop-filter: blur(4px); }
.gd-bar { display: flex; align-items: center; gap: 1rem; padding: .5rem .6rem .5rem 1.1rem; background: var(--charcoal); color: #fff; }
.gd-bar h2 { color: #fff; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-right: auto; }
.gd-link { font-size: .8rem; letter-spacing: .06em; text-decoration: none; opacity: .9; }
.gd-link:hover { color: var(--gold); }
.gd-close { width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; border-radius: 50%; }
.gd-close:hover { background: rgba(255,255,255,.12); }
.gravity-dialog iframe { flex: 1; width: 100%; border: 0; background: #000; }

/* ------------------------------------------------------------------ reveal */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .profile { padding-top: calc(var(--header-h) + 2rem); }
  .profile-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.75rem;
    text-align: center;
  }
  .profile-photo {
    justify-self: center;
    width: min(72vw, 280px);
  }
  .profile-text { text-align: center; max-width: 640px; }
  .profile-mark { margin-left: auto; margin-right: auto; }
  .bio-box { border-left: 0; border-top: 3px solid var(--gold); text-align: left; }
  .facts { justify-content: center; }
  .profile-text .btn-row { justify-content: center; }
  .site-grid, .ext-grid { grid-template-columns: 1fr; }
  .games-inner { grid-template-columns: 1fr; align-items: center; padding-top: calc(var(--header-h) + 5rem); }
  .feature { grid-column: 1; justify-self: center; }
  .coming-soon { grid-row: 2; justify-self: center; }
}
@media (max-width: 560px) {
  .ext-card { grid-template-columns: 1fr; }
  .ext-media { padding: 1.2rem; }
  .site-copy p:not(.tagline), .feature-text { text-align: left; }
  .figure8-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 700px) {
  .gravity-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (max-width: 700px) {
  .profile,
  .site-grid,
  .ext-grid { padding-right: 1.8rem; }
}
