/* GXK Co. — cyberpunk-flavored studio site.
   Dark base, iridescent "holo" accent taken from the logo, cut-corner panels, HUD labels.
   Each founder has a signature color (gunmetal / black) applied through .member-* classes. */

:root {
  --bg: #07080b;
  --bg-2: #0b0d11;
  --surface: #0f1217;
  --surface-2: #151a21;
  --line: #20262e;
  --line-2: #2e3742;
  --text: #e8ecf1;
  --muted: #95a0ad;
  --dim: #66717e;
  --grid: rgba(150, 170, 200, .055);

  --pink: #ff9ad5;
  --gold: #ffe39a;
  --mint: #a6ffd8;
  --sky: #9ad8ff;
  --lilac: #c9a6ff;
  --holo: linear-gradient(115deg, #ff9ad5 0%, #ffe39a 18%, #a6ffd8 36%, #9ad8ff 54%, #c9a6ff 72%, #ff9ad5 90%);

  /* member signature colors */
  --gun: #5c6670;
  --gun-hi: #aeb9c4;
  --gun-bg: linear-gradient(150deg, #2b3138 0%, #1a1f24 60%, #14181c 100%);
  --blk: #000;
  --blk-bg: linear-gradient(150deg, #0b0b0e 0%, #000 70%);

  --f-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gut: clamp(16px, 4vw, 32px);
  --c: 18px; /* corner cut */
  --cut: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

.member-gunmetal { --mc: var(--gun); --mc-hi: var(--gun-hi); --mc-bg: var(--gun-bg); --mc-edge: linear-gradient(135deg, #8d99a5, #3b434c 50%, #6b7680); }
.member-black    { --mc: #000;       --mc-hi: #f2f2f5;      --mc-bg: var(--blk-bg); --mc-edge: var(--holo); }

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--f-body); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* faint HUD grid fading out from the top */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
/* CRT scanlines over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lilac); color: #0a0a0d; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.3rem; }

.wrap { width: min(1200px, 100% - 2 * var(--gut)); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 2 * var(--gut)); }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: .6rem 1rem; font-weight: 600; }
.skip:focus { top: 12px; }

.hud { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.hud::before { content: "// "; color: var(--lilac); }

.holo-text {
  background: var(--holo); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo 10s linear infinite;
}
@keyframes holo { to { background-position: 300% 0; } }

/* ── Glitch (hover) ───────────────────────────────── */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .glitch:hover::before, a:hover .glitch::before, .glitch-on::before { opacity: .9; color: var(--pink); transform: translateX(-2px); animation: glitch-a .6s steps(2, end) infinite; }
  .glitch:hover::after,  a:hover .glitch::after,  .glitch-on::after  { opacity: .9; color: var(--sky);  transform: translateX(2px);  animation: glitch-b .5s steps(2, end) infinite; }
}
@keyframes glitch-a { 0% { clip-path: inset(8% 0 62% 0); } 25% { clip-path: inset(58% 0 12% 0); } 50% { clip-path: inset(28% 0 44% 0); } 75% { clip-path: inset(78% 0 4% 0); } 100% { clip-path: inset(4% 0 84% 0); } }
@keyframes glitch-b { 0% { clip-path: inset(66% 0 6% 0); } 25% { clip-path: inset(10% 0 70% 0); } 50% { clip-path: inset(44% 0 30% 0); } 75% { clip-path: inset(2% 0 88% 0); } 100% { clip-path: inset(52% 0 22% 0); } }

/* ── Logo (holo-filled mask of the official logo) ─── */
.logo-mark { display: block; width: 78px; height: 42px; background: url("../img/gxk-co-logo-white-web.png") center / contain no-repeat; }
.logo-mark-lg { width: 120px; height: 65px; margin-bottom: 1rem; }
@supports ((-webkit-mask-image: url("x.png")) or (mask-image: url("x.png"))) {
  .logo-mark {
    background: var(--holo) 0 0 / 300% 100%;
    -webkit-mask: url("../img/gxk-co-logo-white-web.png") center / contain no-repeat;
            mask: url("../img/gxk-co-logo-white-web.png") center / contain no-repeat;
    animation: holo 8s linear infinite;
  }
  .brand:hover .logo-mark { animation-duration: 2.4s; }
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  --c: 12px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 700 .82rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 1.5rem; clip-path: var(--cut); border: 0; cursor: pointer;
  transition: transform .2s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-holo { background: var(--holo); background-size: 300% 100%; color: #0a0b0e; animation: holo 10s linear infinite; }
.btn-holo:hover { filter: brightness(1.08) saturate(1.1); }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: #1b2129; }
.btn-sm { padding: .75rem 1.05rem; font-size: .74rem; --c: 9px; }
.link-arrow { font: 600 .8rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: .5rem; padding: .5rem 0; }
.link-arrow:hover { color: var(--text); }
.link-back { display: inline-block; font-size: .8rem; color: var(--muted); margin-bottom: 1.6rem; }
.link-back:hover { color: var(--text); }

/* ── Panels (cut corners + hairline edge) ─────────── */
.panel {
  position: relative; clip-path: var(--cut);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--line-2), var(--line) 60%) border-box;
  border: 1px solid transparent;
}
/* draw the diagonal edges the clip-path cuts away */
.panel::before, .panel::after {
  content: ""; position: absolute; width: var(--c); height: var(--c); pointer-events: none;
  background: linear-gradient(45deg, transparent calc(50% - .75px), var(--line-2) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px));
}
.panel::before { top: -1px; right: -1px; }
.panel::after { bottom: -1px; left: -1px; }
.panel-holo { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--holo) border-box; }
.panel-holo::before, .panel-holo::after { background: linear-gradient(45deg, transparent calc(50% - .75px), var(--lilac) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }

/* ── Header ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(7, 8, 11, .74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; padding: .3rem 0; }
.nav-menu { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .78rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: .7rem .75rem; transition: color .15s;
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .2rem; height: 2px; background: var(--holo); background-size: 300% 100%; animation: holo 8s linear infinite; }
.nav-member:first-of-type { margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--line-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; position: relative; transition: transform .2s; }
.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"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* member dot (credits, nav, footer) */
.credit-dot { display: inline-block; width: 9px; height: 9px; flex: none; background: var(--mc, var(--dim)); box-shadow: 0 0 0 1px var(--mc-hi, var(--line-2)); transform: rotate(45deg); }
.member-black .credit-dot { box-shadow: 0 0 0 1px rgba(242, 242, 245, .75), 0 0 8px rgba(201, 166, 255, .45); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gut) 1.5rem; background: rgba(7, 8, 11, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: .95rem 0; font-size: .9rem; }
  .nav-links a[aria-current]::after { left: 0; right: auto; width: 40px; }
  .nav-member:first-of-type { margin: .4rem 0 0; padding: .4rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ── Sections ─────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(1.5rem, 4vw, 3rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-head h2 { margin: 0; }
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 18% 20%, rgba(201, 166, 255, .16), transparent 70%),
              radial-gradient(520px 280px at 85% 10%, rgba(166, 255, 216, .10), transparent 70%),
              radial-gradient(500px 300px at 60% 85%, rgba(255, 154, 213, .08), transparent 70%); }
.hero-title { font-size: clamp(2.8rem, 9vw, 6.4rem); margin-bottom: 1.4rem; }
.hero-lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* player select */
.select { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; margin-top: clamp(3rem, 7vw, 5rem); }
.select-x { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 0 clamp(.6rem, 2vw, 1.6rem); }
.select-x .hud { margin: 0; font-size: .62rem; }
.select-x .hud::before { content: none; }
.select-x .x { font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--f-display); }
.player {
  --c: 26px; position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 2.4vw, 1.8rem); align-items: center;
  padding: clamp(2.2rem, 3.4vw, 2.6rem) clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2rem); clip-path: var(--cut);
  background: var(--mc-bg) padding-box, var(--mc-edge) border-box; border: 1px solid transparent;
  transition: transform .3s var(--ease), filter .3s;
}
.player:hover { transform: translateY(-5px); filter: brightness(1.08); }
.player-tag { position: absolute; top: .9rem; right: 2.2rem; font-size: .66rem; letter-spacing: .18em; color: var(--mc-hi); opacity: .8; }
.player-avatar { width: clamp(110px, 14vw, 160px); }
.player-info { display: flex; flex-direction: column; min-width: 0; }
.player-name { font: 700 clamp(1.9rem, 3.6vw, 2.6rem)/1 var(--f-display); color: var(--mc-hi); margin-bottom: .35rem; }
.member-black .player-name { color: #fff; }
.player-role { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.player-go { margin-top: 1rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mc-hi); }
.player:hover .player-go { text-decoration: underline; text-underline-offset: 4px; }

.stats { display: grid; gap: .35rem; }
.stat { display: flex; align-items: baseline; gap: .5rem; font-size: .84rem; }
.stat-k { color: var(--dim); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.stat-k::after { content: ""; }
.stat-v { margin-left: auto; text-align: right; color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.stat { border-bottom: 1px dashed rgba(255, 255, 255, .08); padding-bottom: .3rem; }
.swatch { width: 12px; height: 12px; background: var(--mc); box-shadow: 0 0 0 1px var(--mc-hi); }

@media (max-width: 820px) {
  .select { grid-template-columns: 1fr; }
  .select-x { flex-direction: row; padding: 1rem 0; gap: 1rem; }
}
@media (max-width: 460px) {
  .player { grid-template-columns: 1fr; }
  .player-avatar { width: 110px; }
}

/* ── Work cards ───────────────────────────────────── */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; }
.work-card { display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.work-card:hover { transform: translateY(-4px); }
.shot { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.work-card:hover .shot img { transform: scale(1.035); }
.shot-bar { display: flex; align-items: center; gap: .35rem; padding: .5rem .8rem; font-size: .68rem; color: var(--dim); background: var(--bg-2); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.shot-bar i:last-of-type { margin-right: .5rem; }
.work-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.3rem 1.3rem; flex: 1; }
.work-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .7rem; }
.work-title { font: 700 1.55rem/1.1 var(--f-display); }
.work-desc { color: var(--muted); font-size: .94rem; }
.work-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .6rem; font-size: .75rem; }
.credits { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.credit { display: inline-flex; align-items: center; gap: .45rem; font: 500 .72rem/1 var(--f-mono); letter-spacing: .06em; padding: .38rem .55rem; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
a.credit:hover { border-color: var(--line-2); }

.badge { display: inline-flex; align-items: center; gap: .45rem; font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: .35rem .55rem; border: 1px solid currentColor; color: var(--muted); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live { color: var(--mint); }
.badge-live .badge-dot { animation: pulse 1.8s ease-in-out infinite; box-shadow: 0 0 8px var(--mint); }
.badge-delivered { color: var(--sky); }
.badge-in-development { color: var(--gold); }
@keyframes pulse { 50% { opacity: .35; } }

/* ── Services ─────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.service-card { padding: 1.8rem 1.6rem; transition: transform .3s var(--ease); }
.service-card:hover { transform: translateY(-4px); }
.service-card p { color: var(--muted); margin: 0; }
.service-no { display: block; font-size: .78rem; color: var(--lilac); margin-bottom: 1.6rem; letter-spacing: .12em; }
.service-list { display: grid; gap: 1.25rem; }
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; padding: clamp(1.5rem, 4vw, 2.6rem); scroll-margin-top: 90px; }
.service-detail h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.price { display: inline-block; margin: .4rem 0 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid var(--line-2); color: var(--gold); }
@media (max-width: 760px) { .service-detail { grid-template-columns: 1fr; gap: 1rem; } }

.feature-list { display: grid; gap: .6rem; margin: 1.2rem 0 0; }
.feature-list li { position: relative; padding-left: 1.6rem; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background: var(--holo); background-size: 300% 100%; transform: rotate(45deg); }
.service-detail .feature-list { margin: 0; align-content: start; }

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1.5rem; counter-reset: step; }
.process li { position: relative; padding-top: 1.4rem; border-top: 1px solid var(--line-2); }
.process li::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--holo); }
.process-no { display: block; color: var(--lilac); font-size: .78rem; margin-bottom: .8rem; }
.process p { margin: 0; }
.pricing-note { margin-top: 2.5rem; padding: 1.3rem 1.5rem; color: var(--muted); }
.pricing-note .hud { display: inline; margin-right: .6rem; }

/* ── CTA ──────────────────────────────────────────── */
.cta { --c: 28px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(1.8rem, 5vw, 3.2rem); }
.cta h2 { margin-bottom: .4rem; }
.cta p.muted { margin: 0; }

/* ── Case study ───────────────────────────────────── */
.case-meta { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 1rem 2.6rem; margin: 2rem 0; }
.case-meta dt { font: 500 .68rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: .45rem; }
.case-meta dd { margin: 0; max-width: 32ch; }
@media (max-width: 760px) { .case-meta { grid-template-columns: 1fr 1fr; } }
.case-shot { margin: 0; overflow: hidden; }
.case-shot img { width: 100%; }
.case-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.case-lead { font-size: 1.15rem; color: var(--text); margin-bottom: 2rem; }
.case-main > p:not(.hud):not(.case-lead) { color: var(--muted); }
.case-aside { display: grid; gap: 1.25rem; position: sticky; top: 90px; }
.aside-box { padding: 1.4rem; }
.aside-box p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font: 500 .76rem/1 var(--f-mono); padding: .5rem .65rem; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); }
.who { display: grid; gap: 1rem; }
.who li { display: flex; gap: .9rem; align-items: center; font-size: .92rem; }
.avatar-xs { width: 52px; flex: none; }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.case-nav a { padding: 1.3rem 1.5rem; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.case-nav a:last-child { text-align: right; align-items: flex-end; }
.case-nav a:hover { transform: translateY(-3px); }
.case-nav .hud { margin-bottom: .4rem; }
.case-nav-name { font: 700 1.25rem/1.2 var(--f-display); }
@media (max-width: 820px) {
  .case-body { grid-template-columns: 1fr; }
  .case-aside { position: static; }
}
@media (max-width: 520px) { .case-nav { grid-template-columns: 1fr; } .case-nav a:last-child { text-align: left; align-items: flex-start; } }

/* ── Profile ──────────────────────────────────────── */
.profile { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.profile-card {
  --c: 26px; position: sticky; top: 90px; padding: 2rem 1.6rem 1.6rem; text-align: center;
  background: var(--mc-bg) padding-box, var(--mc-edge) border-box;
}
.profile-card .player-tag { right: 1.6rem; }
.avatar-lg { width: min(220px, 70%); margin: .8rem auto 1.2rem; }
.profile-name { font: 700 1.4rem/1.2 var(--f-display); margin: 0 0 .2rem; color: var(--mc-hi); }
.member-black .profile-name { color: #fff; }
.profile-card .stats { text-align: left; margin-top: 1.4rem; }
.profile-links { display: grid; gap: .45rem; margin-top: 1.4rem; text-align: left; }
.profile-links a { display: flex; justify-content: space-between; padding: .7rem .85rem; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; }
.profile-links a:hover { border-color: var(--mc-hi); }
.profile-main h1 { margin-bottom: .3em; }
.profile-main > p:not(.hud):not(.lede) { color: var(--muted); max-width: 68ch; }
.profile-main .lede { color: var(--text); }
.h-sub { font-size: 1.35rem; margin: 2.6rem 0 1.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.4rem; }
.skill-groups .hud { margin-bottom: .6rem; }
.timeline { display: grid; gap: .9rem; }
.timeline li { display: flex; flex-direction: column; padding-left: 1.2rem; border-left: 2px solid var(--line-2); }
.timeline .muted { font-size: .9rem; }
.switch-player { display: flex; align-items: center; gap: 1.2rem; padding: 1.2rem 1.5rem; background: var(--mc-bg) padding-box, var(--mc-edge) border-box; transition: transform .3s var(--ease); }
.switch-player:hover { transform: translateY(-3px); }
.switch-player .hud { display: block; margin-bottom: .3rem; }
.switch-name { font: 700 1.3rem/1.2 var(--f-display); }
.avatar-sm { width: 70px; flex: none; }
@media (max-width: 820px) {
  .profile { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

/* ── About ────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about-grid > div:first-child p:not(.hud) { color: var(--muted); }
.about-facts { padding: 1.6rem; }
.about-facts dl { margin: 0; display: grid; gap: 1rem; }
.about-facts dt { font: 500 .68rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.about-facts dd { margin: .15rem 0 0; font: 600 1.1rem/1.3 var(--f-display); }
.duo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 1.25rem; }
.duo-card { --c: 24px; display: flex; gap: 1.4rem; align-items: center; padding: 1.6rem; background: var(--mc-bg) padding-box, var(--mc-edge) border-box; transition: transform .3s var(--ease); }
.duo-card:hover { transform: translateY(-4px); }
.duo-card > span { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.duo-card .player-tag { position: static; }
.duo-name { font: 700 2rem/1.1 var(--f-display); color: var(--mc-hi); }
.member-black .duo-name { color: #fff; }
.duo-tag { font-size: .92rem; margin-top: .4rem; }
.avatar-md { width: 120px; flex: none; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.values .panel { padding: 1.6rem; }
.values p { margin: 0; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .duo-card { flex-direction: column; align-items: flex-start; } }

/* ── Contact ──────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.form-panel { padding: clamp(1.4rem, 4vw, 2.4rem); scroll-margin-top: 90px; }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field > span { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  padding: .85rem .95rem; border-radius: 0; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(154, 216, 255, .15); }
.field [aria-invalid="true"] { border-color: var(--pink); }
.field-err { color: var(--pink); font-size: .84rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--lilac); flex: none; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-self: start; margin-top: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.2rem; margin-bottom: 1.4rem; border: 1px solid; font-size: .95rem; }
.alert-ok { color: var(--mint); background: rgba(166, 255, 216, .06); }
.alert-ok strong { color: var(--text); }
.alert-err { color: var(--pink); background: rgba(255, 154, 213, .06); }
.contact-aside { display: grid; gap: 1.25rem; }
.contact-list { display: grid; gap: .9rem; }
.contact-list li { display: grid; gap: .15rem; }
.contact-list .mono { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.contact-list a { overflow-wrap: anywhere; }
.contact-list a:hover, .aside-box a:hover { color: var(--sky); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

/* ── Prose (legal pages) ──────────────────────────── */
.prose h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.prose p { color: var(--muted); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 3.5rem 0 1.5rem; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 2rem; }
.footer-brand p { color: var(--muted); max-width: 30ch; }
.footer-h { font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin: .4rem 0 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer ul a { color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; overflow-wrap: anywhere; }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--dim); }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Reveal on scroll (only when JS is running) ──── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Motion & print ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  :root { --bg: #fff; --text: #111; --muted: #444; --dim: #666; --surface: #fff; --line: #ccc; --line-2: #bbb; }
  body::before, body::after, .site-header, .site-footer, .cta, .hero-actions, .case-nav { display: none !important; }
  .holo-text { color: #111; background: none; }
  .panel, .player, .profile-card { clip-path: none; background: #fff !important; border: 1px solid #ccc; }
}
