/* ===== EPIC ATK: public site (premium dark) ===== */
:root {
  --bg: #050506;
  --bg-elev: #0c0c10;
  --surface: rgba(18, 18, 24, 0.55);
  --surface-solid: #0f0f14;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f2ef;
  --muted: #8e8e98;
  --dim: #5c5c66;
  --cyan: #7ee8ff;
  --pink: #ff5c8a;
  --violet: #8b7bff;
  --accent: var(--cyan);
  --radius: 22px;
  --font-display: 'Inter Tight', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); letter-spacing: -0.005em;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; border-radius: 6px; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(1280px, 100% - 80px); } }

/* ----- ambient layers */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; will-change: transform; }
.orb-a { width: 46vmax; height: 46vmax; left: -12vmax; top: -18vmax; background: radial-gradient(circle, #1d3c66, transparent 70%); animation: drift-a 26s var(--ease-io) infinite alternate; }
.orb-b { width: 40vmax; height: 40vmax; right: -14vmax; top: 10vh; background: radial-gradient(circle, #2c1f5c, transparent 70%); animation: drift-b 32s var(--ease-io) infinite alternate; }
.orb-c { width: 34vmax; height: 34vmax; left: 30vw; bottom: -22vmax; background: radial-gradient(circle, #0f4049, transparent 70%); animation: drift-c 28s var(--ease-io) infinite alternate; opacity: .4; }
.page-mod .orb-b { background: radial-gradient(circle, color-mix(in srgb, var(--page-accent, #2c1f5c) 45%, #050506), transparent 70%); }
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px; opacity: .35;
  -webkit-mask: radial-gradient(ellipse 70% 55% at 50% 30%, #000, transparent 75%);
  mask: radial-gradient(ellipse 70% 55% at 50% 30%, #000, transparent 75%);
}
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
.cursor-ring {
  position: fixed; left: 0; top: 0; z-index: 70; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background .3s, border-color .3s;
  mix-blend-mode: difference;
}
.cursor-ring.on { opacity: 1; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255, 255, 255, .9); border-color: transparent; }

/* ----- intro loader (first visit per session) */
.intro {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px max(16px, 4vw);
  animation: intro-failsafe 0s 3.2s forwards;
}
.intro-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.intro-name { font: 600 clamp(28px, 5vw, 56px)/1 var(--font-display); letter-spacing: -.04em; }
.intro-count { font: 400 clamp(56px, 12vw, 160px)/.8 var(--font-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--muted); }
.intro-bar { height: 1px; background: var(--line); margin-top: 24px; }
.intro-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--text); transition: width .15s linear; }
.intro.done { transform: translateY(-100%); transition: transform 1s var(--ease-io); }
.intro-seen .intro { display: none; }

/* ----- nav (floating glass pill) */
.nav {
  position: fixed; top: 16px; left: 50%; translate: -50% 0; z-index: 40;
  width: min(1280px, 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(14, 14, 18, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .4s, border-color .4s;
}
.nav.scrolled { background: rgba(10, 10, 14, .8); border-color: var(--line-strong); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 16px/1 var(--font-display); letter-spacing: -.01em; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 6px; position: relative; overflow: hidden;
  background: conic-gradient(from 0deg, #fff, #7ee8ff, #8b7bff, #fff); animation: spin 10s linear infinite;
}
.brand-mark::after { content: ''; position: absolute; inset: 3px; border-radius: 4px; background: var(--bg); }
.brand-name { display: inline-flex; align-items: baseline; gap: .38em; white-space: nowrap; }
.b-x { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.15em; color: var(--muted); }
.b-part { display: inline-block; }
.intro-name { display: inline-flex; align-items: baseline; gap: .3em; flex-wrap: wrap; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font: 500 14px/1 var(--font-body);
  padding: 10px 16px; border-radius: 999px; transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ----- type */
.label { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.label-num { color: var(--text); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -.04em; line-height: .95; }
h1 em, h2 em, h3 em, .rich em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
h2 { font-size: clamp(44px, 7vw, 104px); }
.section { padding: clamp(96px, 14vw, 180px) 0; position: relative; }
.section-head { display: grid; gap: 28px; margin-bottom: clamp(48px, 7vw, 88px); padding-top: 22px; border-top: 1px solid var(--line); }
.section-head-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; }
.section-text { color: var(--muted); font-size: 17px; max-width: 380px; margin: 0; }

/* word-by-word mask reveal */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 55ms + var(--base, 0ms)); }
.split.in .w > span { transform: none; }
.split em { padding-right: .06em; }

.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--base, 0ms); }
.fade-up.in { opacity: 1; transform: none; }

/* ----- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 24px; min-height: 52px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.btn-arrow {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--text); color: var(--bg); font-size: 15px; transition: transform .5s var(--ease);
}
.btn:hover .btn-arrow { transform: rotate(-45deg); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary .btn-arrow { background: var(--bg); color: var(--text); }
.btn-primary:hover { background: #fff; }
.btn-ghost { padding: 13px 22px; min-height: 0; }
.btn-ghost:hover { border-color: var(--text); }
.btn-disabled { color: var(--muted); cursor: default; padding-right: 24px; border-style: dashed; }
.magnetic { will-change: transform; }

/* ----- hero */
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 130px 0 56px; position: relative; }
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 48px); }
.hero-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #5dffa8; box-shadow: 0 0 0 4px rgba(93, 255, 168, .12); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(56px, 11.2vw, 184px); line-height: .9; letter-spacing: -.055em; max-width: 12ch; font-weight: 600; }
.hero-title em, .hero-title em .w > span {
  color: transparent; background: linear-gradient(100deg, #fff 0%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-title em:has(.w) { background: none; }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.hero-text { max-width: 440px; color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.hero-stats div { padding: 20px 0 0; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-stats dt { font: 400 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-stats dd { margin: 12px 0 0; font: 500 clamp(24px, 3vw, 36px)/1 var(--font-display); letter-spacing: -.03em; }

/* ----- marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap; font: 600 clamp(40px, 6vw, 84px)/1 var(--font-display); letter-spacing: -.045em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.marquee-track span:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.marquee-track i { font-style: normal; font-size: .4em; color: var(--muted); -webkit-text-stroke: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ----- shared card */
.fx-card {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .5s, transform .6s var(--ease);
}
.fx-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 70%, #fff), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
.fx-card:hover::before { opacity: 1; }

/* ----- mod cards */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.mod-card { display: flex; flex-direction: column; overflow: hidden; padding: 10px; }
.mod-visual {
  position: relative; aspect-ratio: 16 / 11; border-radius: calc(var(--radius) - 8px); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at var(--mx) var(--my), color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%),
    radial-gradient(80% 60% at 80% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    #0a0a0e;
}
.mod-visual::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask: radial-gradient(circle at 50% 50%, #000, transparent 72%); mask: radial-gradient(circle at 50% 50%, #000, transparent 72%);
}
.mod-cover-thumb { position: absolute; inset: 0; z-index: -1; }
.mod-cover-thumb img { transition: transform 1.2s var(--ease); }
.mod-cover-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,5,6,.7), transparent 60%); }
.mod-card:hover .mod-cover-thumb img { transform: scale(1.05); }
.mod-visual .mod-logo {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: clamp(110px, 24%, 170px); height: auto; aspect-ratio: 1; border-radius: 30%;
  transition: transform 1s var(--ease);
}
.mod-card:hover .mod-visual .mod-logo { transform: scale(1.08) rotate(-4deg); }
.mod-visual-meta { position: absolute; inset: 18px 20px auto; display: flex; justify-content: space-between; z-index: 1; }
.mod-visual-meta .label { color: rgba(255,255,255,.7); }
.mod-info { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: start; padding: 24px 14px 14px; }
.mod-name { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.045em; }
.mod-tagline { grid-column: 1; margin: 0; font: 400 italic clamp(19px, 1.8vw, 23px)/1.25 var(--font-serif); color: color-mix(in srgb, var(--accent) 55%, #fff); }
.mod-summary { grid-column: 1 / -1; color: var(--muted); margin: 12px 0 0; max-width: 54ch; }
.mod-arrow {
  grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-size: 18px; transition: background .5s var(--ease), color .5s, transform .6s var(--ease), border-color .5s;
}
.mod-card:hover .mod-arrow { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(-45deg); }
.mod-card .tags { grid-column: 1 / -1; margin-top: 16px; }
.stretch { position: absolute; inset: 0; border-radius: inherit; z-index: 3; }
.stretch:focus-visible { outline-offset: -3px; }
.empty-note { color: var(--muted); font-family: var(--font-mono); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.tags li { font: 400 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; padding: 8px 11px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line-strong); }

/* ----- images */
.img-slot { position: relative; overflow: hidden; }
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.is-empty img { display: none; }
.mod-logo {
  width: 72px; height: 72px; border-radius: 22px; flex: none;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 35%, #101016), #0b0b10);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -20px color-mix(in srgb, var(--accent) 70%, transparent);
}
.mod-logo.is-empty::after, .team-avatar.is-empty::after {
  content: attr(data-fallback); position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 clamp(22px, 3vw, 40px)/1 var(--font-display); letter-spacing: -.04em; color: #fff;
}

/* ----- team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.team-card { padding: 28px; display: flex; gap: 22px; align-items: center; }
.team-avatar { width: 84px; height: 84px; border-radius: 50%; flex: none; background: linear-gradient(140deg, #24243a, #0d0d12); box-shadow: 0 0 0 1px var(--line-strong); }
.team-card h3 { font-size: clamp(28px, 3vw, 38px); }
.team-role { margin: 8px 0 8px; font: 400 12px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.team-bio { margin: 0; color: var(--muted); }

/* ----- footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 0; overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-note { flex: 1; margin: 0; color: var(--dim); font-size: 14px; }
.footer-top { text-decoration: none; transition: color .3s; }
.footer-top:hover { color: var(--text); }
.wordmark {
  margin: clamp(32px, 6vw, 64px) 0 0; white-space: nowrap; text-align: center;
  font: 600 clamp(64px, 17.5vw, 290px)/.78 var(--font-display); letter-spacing: -.065em;
  background: linear-gradient(to bottom, rgba(255,255,255,.16), rgba(255,255,255,0) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.wordmark:has(.b-x) {
  display: grid; justify-items: center; font-size: clamp(56px, 15vw, 250px); line-height: .82; padding-bottom: .04em;
}
.wordmark .b-part { background: inherit; -webkit-background-clip: text; background-clip: text; }
.wordmark .b-x {
  font-size: .32em; line-height: 1; margin: .12em 0 .02em; color: rgba(255, 255, 255, .28);
  -webkit-text-fill-color: rgba(255, 255, 255, .28);
}
.admin-lock {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--muted); opacity: .3; cursor: pointer; transition: opacity .3s, border-color .3s;
}
.admin-lock:hover { opacity: 1; border-color: var(--line-strong); }

/* ----- mod page */
.mod-hero { position: relative; padding: 140px 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.mod-cover { position: absolute; inset: 0; z-index: -1; }
.mod-cover img { opacity: .32; }
.mod-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,6,.4), var(--bg) 95%); }
.mod-cover.is-empty { display: none; }
.back-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: clamp(40px, 6vw, 72px); }
.back-link:hover { color: var(--text); }
.mod-hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; align-items: end; }
.mod-hero-text { display: grid; gap: 22px; }
.mod-title { font-size: clamp(60px, 11vw, 176px); letter-spacing: -.06em; line-height: .88; }
.mod-tagline-lg { margin: 0; font: 400 italic clamp(24px, 3vw, 38px)/1.15 var(--font-serif); color: color-mix(in srgb, var(--accent) 55%, #fff); }
.mod-hero .hero-actions { margin-top: 10px; }
.mod-logo-frame { position: relative; padding: 18px; border-radius: 40px; border: 1px solid var(--line); background: var(--surface); }
.mod-logo-frame::before, .mod-logo-frame::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line-strong); }
.mod-logo-frame::before { top: -7px; left: -7px; border-width: 1px 0 0 1px; }
.mod-logo-frame::after { bottom: -7px; right: -7px; border-width: 0 1px 1px 0; }
.mod-logo-lg { width: clamp(150px, 20vw, 260px); height: clamp(150px, 20vw, 260px); border-radius: 30px; animation: float 7s ease-in-out infinite; }

.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.spec-strip > div { padding: 22px 0; }
.spec-strip > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.spec-strip dt { font: 400 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.spec-strip dd { margin: 12px 0 0; font: 500 20px/1.2 var(--font-display); letter-spacing: -.02em; }
.spec-strip dd.soon { color: var(--dim); }

.mod-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(40px, 7vw, 120px); align-items: start; }
.mod-summary-lg { margin: 0; font: 500 clamp(26px, 3vw, 40px)/1.12 var(--font-display); letter-spacing: -.035em; }
.mod-description { color: #b9b9c2; font-size: 18px; line-height: 1.7; white-space: pre-line; }
.mod-body .label { grid-column: 1 / -1; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.gallery-item { padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 10; background: var(--surface-solid); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.is-empty-gallery { display: none; }

.next-mod { display: block; text-decoration: none; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); position: relative; }
.next-mod .label { margin-bottom: 18px; }
.next-mod-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.next-mod-name { font: 600 clamp(48px, 9vw, 140px)/.9 var(--font-display); letter-spacing: -.06em; transition: color .6s var(--ease), transform .8s var(--ease); }
.next-mod:hover .next-mod-name { color: color-mix(in srgb, var(--accent) 60%, #fff); transform: translateX(14px); }
.next-mod .mod-arrow { width: clamp(64px, 8vw, 104px); height: clamp(64px, 8vw, 104px); font-size: clamp(22px, 3vw, 34px); flex: none; }
.next-mod:hover .mod-arrow { background: var(--text); color: var(--bg); transform: rotate(-45deg); }

.not-found { padding: 200px 0 120px; display: grid; gap: 24px; justify-items: start; }
.not-found h1 { font-size: clamp(56px, 10vw, 140px); }
.not-found p { color: var(--muted); margin: 0; }
.loading-state { padding: 220px 0 160px; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(3, 3, 5, .94); backdrop-filter: blur(8px); animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 14px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text); font-size: 24px; cursor: pointer; }

/* ----- empty editable fields are hidden on the public site */
[data-edit].is-empty { display: none; }

/* ----- login modal + toasts */
.login-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(3, 3, 5, .8); backdrop-filter: blur(10px); animation: fade .25s; }
.login-box { width: min(400px, 100%); padding: 32px; border-radius: 26px; background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -30px rgba(0,0,0,.8); animation: rise .5s var(--ease); }
.login-box .kicker { font: 400 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.login-box h2 { font-size: 36px; margin-bottom: 22px; }
.login-box input { width: 100%; padding: 15px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: 15px var(--font-mono); }
.login-box input:focus { outline: none; border-color: var(--text); }
.login-error { min-height: 22px; margin: 10px 4px; color: #ff8aa6; font-size: 14px; }
.login-actions { display: flex; justify-content: flex-end; gap: 10px; }
.login-actions .btn { min-height: 0; padding: 13px 22px; }
.login-box.busy { opacity: .7; pointer-events: none; }
.shake { animation: shake .4s; }

.toasts { position: fixed; bottom: 24px; left: 50%; translate: -50% 0; z-index: 300; display: grid; gap: 8px; justify-items: center; }
.toast { padding: 12px 18px; border-radius: 999px; font: 500 14px/1.3 var(--font-body); background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: rise .4s var(--ease); transition: opacity .4s, transform .4s; }
.toast-ok { color: #b6ffd6; }
.toast-err { color: #ffb1c4; border-color: rgba(255, 92, 138, .4); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ----- reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal.in { opacity: 1; transform: none; }

/* ----- keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pulse { 50% { opacity: .4; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-5%, 3%); } 50% { transform: translate(4%, -4%); } 75% { transform: translate(-3%, -2%); } 100% { transform: translate(2%, 5%); } }
@keyframes drift-a { to { transform: translate(14vw, 10vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 16vh) scale(.9); } }
@keyframes drift-c { to { transform: translate(-16vw, -10vh) scale(1.2); } }
@keyframes intro-failsafe { to { visibility: hidden; } }

/* ----- responsive */
@media (max-width: 860px) {
  .mod-hero-main { grid-template-columns: 1fr; }
  .mod-logo-frame { justify-self: start; order: -1; }
  .mod-body { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .nav { top: 10px; width: calc(100% - 20px); padding-left: 14px; }
  .nav-links a { padding: 9px 12px; }
  .hero { padding-top: 110px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(3) { display: none; }
  .mod-info { padding: 20px 8px 8px; }
  .mod-arrow { width: 44px; height: 44px; }
  .team-card { padding: 20px; }
  .team-avatar { width: 64px; height: 64px; }
}
@media (max-width: 370px) {
  .brand { font-size: 14px; gap: 8px; }
  .nav-links a { padding: 9px 9px; font-size: 13px; }
}
@media (pointer: coarse) { .cursor-ring { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .fade-up { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .intro { display: none; }
  .grain { animation: none; }
}
