/* Apes Recoded — site styles. No build step: edit this file directly. */

/* Self-hosted fonts (no third-party requests).
   VCR OSD Mono by Riciery Leal (free, dafont). JetBrains Mono by JetBrains (SIL Open Font License 1.1). */
@font-face {
  font-family: "VCR OSD Mono";
  src: url("/assets/fonts/vcr-osd-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --panel: #161616;
  --panel-2: #1c1c1c;
  --line: #262626;
  --line-2: #333;
  --text: #ececec;
  --muted: #a6a6a6;
  --red: #e3202d;
  --red-bright: #ff0000; /* rgb(255, 0, 0) — all red text */
  --red-dark: #8f1019;
  --discord: #5865f2;
  --meta: #0064e0;
  --radius: 10px;
  --font-display: "VCR OSD Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-body: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.97rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--red-bright); text-underline-offset: 3px; }
a:hover { color: #ff4d4d; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: #000; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 11, 11, 0.9);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(11, 11, 11, 0.78); backdrop-filter: blur(10px); }
}

.site-header .container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 6px; }
.brand .accent { color: var(--red-bright); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.site-nav .icon { width: 17px; height: 17px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 1px);
    left: -16px; right: -16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line-2);
    padding: 8px 16px 14px;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; padding: 13px 10px; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--panel-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 20px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), filter 0.2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn .logo { width: 21px; height: 21px; flex: none; }
.btn-meta { --btn-bg: var(--meta); --btn-fg: #fff; }
.btn-discord { --btn-bg: var(--discord); --btn-fg: #fff; }
.btn-outline { --btn-bg: transparent; border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Icons ---------- */

.icon {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

@keyframes ic-bounce { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-4px); } 65% { transform: translateY(1px); } }
@keyframes ic-wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
@keyframes ic-spin { to { transform: rotate(360deg); } }
@keyframes ic-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.75; } }
@keyframes ic-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.hover-anim:hover .anim-bounce, .hover-anim:focus-visible .anim-bounce { animation: ic-bounce 0.6s var(--ease-out); }
.hover-anim:hover .anim-wiggle, .hover-anim:focus-visible .anim-wiggle { animation: ic-wiggle 0.7s ease-in-out; }
.hover-anim:hover .anim-spin, .hover-anim:focus-visible .anim-spin { animation: ic-spin 0.8s var(--ease-out); }
.hover-anim:hover .anim-pulse, .hover-anim:focus-visible .anim-pulse { animation: ic-pulse 1s ease-in-out infinite; }
.anim-draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hover-anim:hover .anim-draw [pathLength], .hover-anim:focus-visible .anim-draw [pathLength] { animation: ic-draw 0.9s var(--ease-out) both; }
.anim-bounce, .anim-wiggle, .anim-spin, .anim-pulse { transform-origin: 50% 50%; transform-box: fill-box; }

/* ---------- Glitch on the logo ---------- */

.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { color: var(--red-bright); }
.glitch::after { color: #fff; }

@keyframes glitch-a {
  0%, 93%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0 0 100% 0); }
  94% { opacity: 0.9; transform: translate(-3px, 0); clip-path: inset(15% 0 55% 0); }
  96% { opacity: 0.9; transform: translate(2px, 0); clip-path: inset(55% 0 20% 0); }
  97% { opacity: 0; }
}
@keyframes glitch-b {
  0%, 94%, 100% { opacity: 0; transform: translate(0); clip-path: inset(0 0 100% 0); }
  95% { opacity: 0.5; transform: translate(3px, 0); clip-path: inset(65% 0 10% 0); }
  97% { opacity: 0.5; transform: translate(-2px, 0); clip-path: inset(30% 0 50% 0); }
  98% { opacity: 0; }
}
@keyframes flicker { 0%, 94%, 100% { opacity: 1; } 95% { opacity: 0.6; } 96% { opacity: 1; } }
.glitch { animation: flicker 7s infinite; }
.glitch::before { animation: glitch-a 7s infinite steps(1, end); }
.glitch::after { animation: glitch-b 7s infinite steps(1, end); }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Parallax tilt ---------- */
/* The element with [data-tilt] moves; its parent is the (still) hover area. */

.tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.tilt-inner { position: relative; height: 100%; transform-style: preserve-3d; }
.tilt-inner .body,
.tilt-inner .btm-content,
.tilt-inner .btm-content > div,
.tilt-inner .email-row { transform-style: preserve-3d; }
.depth-1 { transform: translateZ(20px); }
.depth-2 { transform: translateZ(40px); }
.depth-3 { transform: translateZ(60px); }
.depth-4 { transform: translateZ(85px); }

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  opacity: var(--glare-o, 0);
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  mix-blend-mode: soft-light;
  transform: translateZ(1px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  display: grid;
  align-items: center;
  padding: 64px 0 80px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.95) 0%, rgba(11, 11, 11, 0.8) 38%, rgba(11, 11, 11, 0.35) 70%, rgba(11, 11, 11, 0.25) 100%),
    linear-gradient(0deg, rgba(11, 11, 11, 0.9) 0%, transparent 30%);
}

.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero h1 .line-2 { color: var(--red-bright); }

.hero-sub {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
}
.hero-copy { max-width: 33rem; margin: 0 0 28px; color: #cfcfcf; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 0.92rem; }

.hero-card-zone { width: 100%; max-width: 360px; margin-inline: auto; }
.hero-card {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.hero-card .card-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.hero-card .card-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-card .card-bg::after {
  /* only darkens the lower part so the title stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.7) 100%);
}
.hero-card .card-icon { position: absolute; left: 50%; top: 11%; width: 54%; margin-left: -27%; }
.hero-card .card-icon img {
  width: 100%;
  border-radius: 18px;
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6);
}
.hero-card .card-title {
  position: absolute;
  left: 0; right: 0; bottom: 18%;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.hero-card .card-title span { color: var(--red-bright); }
.hero-card .card-tag { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%) translateZ(70px); white-space: nowrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: live-dot 1.6s ease-in-out infinite; }
@keyframes live-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-card-zone { max-width: 300px; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 11, 11, 0.88) 0%, rgba(11, 11, 11, 0.72) 60%, rgba(11, 11, 11, 0.95) 100%); }
}

/* Hazard tape divider (the game uses tape like this on its floors) */
.tape {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--red) 0 18px, #0b0b0b 18px 36px);
  opacity: 0.9;
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 42rem; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 12px; font-size: clamp(2rem, 4.4vw, 2.9rem); }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1040px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

.feature-card {
  height: 100%;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color 0.25s;
}
.feature-card:hover { border-color: var(--line-2); }
.feature-card .media { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 10; }
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card .body { padding: 18px 20px 22px; }
.feature-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 1.25rem; }
.feature-card h3 .icon { color: var(--red-bright); width: 21px; height: 21px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Be The Monster ---------- */

.btm-card {
  border-radius: 16px;
  background: #0e0b0b;
  border: 1px solid #3a1518;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.btm-card .btm-bg { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.btm-card .btm-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.btm-card .btm-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 8, 8, 0.96) 0%, rgba(12, 8, 8, 0.86) 45%, rgba(12, 8, 8, 0.25) 100%);
}
.btm-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
}
.btm-content h2 { margin: 16px 0 12px; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 0.95; text-transform: uppercase; }
.btm-content h2 .red { color: var(--red-bright); }
.btm-content > div > p { color: #d2d2d2; max-width: 31rem; margin: 0; }

.btm-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.btm-list li { display: flex; align-items: flex-start; gap: 12px; }
.btm-list .icon { color: var(--red-bright); margin-top: 3px; }
.btm-list strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.btm-list span { color: var(--muted); font-size: 0.96rem; }

.btm-inset {
  justify-self: end;
  width: min(100%, 400px);
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}
.btm-inset figcaption { padding: 8px 12px; font-size: 0.86rem; color: #cfcfcf; background: rgba(11, 11, 11, 0.9); }

@media (max-width: 900px) {
  .btm-content { grid-template-columns: 1fr; }
  .btm-inset { justify-self: start; }
  .btm-card .btm-bg::after { background: linear-gradient(180deg, rgba(12, 8, 8, 0.9), rgba(12, 8, 8, 0.82)); }
}

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: zoom-in;
  color: inherit;
  font: inherit;
  text-align: left;
  aspect-ratio: 16 / 9;
}
.shot .tilt-inner { border-radius: inherit; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .shot-label {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}
.shot .shot-label .icon { width: 15px; height: 15px; color: var(--red-bright); }
.shot:hover .shot-label, .shot:focus-visible .shot-label { opacity: 1; }
@media (hover: none) { .shot .shot-label { opacity: 1; } }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.2s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox figure { margin: 0; padding: 70px 16px 20px; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 150px); width: auto; border-radius: 6px; }
.lightbox figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; }
.lb-btn {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(22, 22, 22, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s;
}
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-count { position: fixed; top: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.9rem; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; margin-top: 0; }
  .lightbox figure { padding-bottom: 80px; }
}

/* ---------- Discord CTA ---------- */

.discord-cta {
  border-radius: 14px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--discord);
  color: #fff;
}
.discord-cta .discord-mark { width: 72px; height: 72px; }
.discord-cta h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); color: #fff; }
.discord-cta p { margin: 0; color: #eceeff; max-width: 34rem; }
.discord-cta .btn { --btn-bg: #fff; --btn-fg: #23272a; }
@media (max-width: 820px) { .discord-cta { grid-template-columns: 1fr; gap: 18px; } .discord-cta .discord-mark { width: 56px; height: 56px; } }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 32px; border-top: 1px solid var(--line); background: #080808; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--discord);
  font-weight: 700;
}
.footer-discord:hover { color: #fff; filter: brightness(1.1); }
.footer-discord .logo { width: 20px; height: 20px; }
.footer-legal { margin: 24px 0 0; color: #8a8a8a; font-size: 0.85rem; }

/* ---------- Content pages ---------- */

.page-hero { padding: 64px 0 28px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.page-hero p { margin: 0; color: var(--muted); }
.updated { margin-top: 14px; color: var(--muted); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.updated .icon { width: 18px; height: 18px; color: var(--red-bright); }

.policy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 80px;
}
@media (max-width: 900px) { .policy-layout { grid-template-columns: 1fr; gap: 28px; } }

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .toc { position: static; } }
.toc h2 { margin: 0 0 10px; font-size: 1.05rem; }
.toc ol { margin: 0; padding-left: 1.4em; color: var(--muted); }
.toc li { margin: 4px 0; font-size: 0.95rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--red-bright); text-decoration: underline; }

.prose { max-width: 46rem; }
.prose section { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { margin: 0 0 12px; font-size: 1.5rem; }
.prose p, .prose li { color: #d4d4d4; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--red-bright); }
.prose .callout { padding: 14px 16px; border-left: 3px solid var(--red); background: var(--panel); }

/* Contact */
.contact-wrap { padding: 8px 0 110px; }
.contact-zone { width: min(620px, 100%); }
.contact-card {
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.contact-card .tilt-inner { padding: clamp(26px, 5vw, 40px); }
.contact-card .mail-icon { width: 34px; height: 34px; color: var(--red-bright); margin-bottom: 16px; }
.contact-card p { margin: 0 0 18px; font-size: 1.12rem; }

.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-size: clamp(0.98rem, 3.4vw, 1.12rem);
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
  transition: border-color 0.15s;
}
.email-link:hover { border-color: var(--red); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.copy-btn:hover { border-color: var(--red); }
.copy-btn .icon-check { display: none; }
.copy-btn.is-copied { color: #fff; background: var(--red); border-color: var(--red); animation: pop 0.4s var(--ease-out); }
.copy-btn.is-copied .icon-copy { display: none; }
.copy-btn.is-copied .icon-check { display: block; }
.copy-btn.is-copied .icon-check path { stroke-dasharray: 1; animation: ic-draw 0.4s 0.06s var(--ease-out) both; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.1); } 70% { transform: scale(0.97); } 100% { transform: scale(1); } }

/* 404 */
.notfound { min-height: calc(100svh - var(--header-h) - 160px); display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .code { font-family: var(--font-display); font-weight: 400; font-size: clamp(6rem, 22vw, 10rem); line-height: 0.9; color: var(--red-bright); }
.notfound h1 { margin: 10px 0; font-size: clamp(1.6rem, 4vw, 2.1rem); }
.notfound p { color: var(--muted); margin: 0 0 26px; }
.notfound .btn-row { justify-content: center; }

/* ---------- Reduced motion: everything off ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .glitch::before, .glitch::after { display: none; }
  .tilt-glare { display: none; }
}
