@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg-deep: #0f111b;
  --bg-surface: #141723;
  --bg-elevated: #1a1d2e;
  --bg-card: #171a28;
  --accent: #ffc950;
  --accent-dim: #e6b03a;
  --accent-ink: #0f111b;
  --accent-glow: rgba(255, 201, 80, 0.22);
  --accent-subtle: rgba(255, 201, 80, 0.1);
  --text-primary: #f4f4f8;
  --text-secondary: #9898a8;
  --text-muted: #8b8b9a;
  --danger: #e05c5c;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(255, 201, 80, 0.4);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container-max: 1120px;
  --radius-control: 10px;
  --radius-card: 12px;
  --radius-panel: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
}

/* Site-wide ambient field: drifting washes, a cursor lamp, a faint grid, shooting streaks, film grain. */

.ambient {
  --lx: 62%;
  --ly: 28%;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.amb-wash, .amb-cursor, .amb-grid, .amb-spark, .amb-film {
  position: absolute;
  pointer-events: none;
}
.amb-wash {
  width: 48vw;
  height: 48vw;
  min-width: 22rem;
  min-height: 22rem;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.55;
}
.amb-a {
  left: -8%;
  top: -12%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
}
.amb-b {
  right: -12%;
  top: 18%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(140, 170, 255, 0.18), transparent 70%);
}
.amb-c {
  left: 18%;
  bottom: -16%;
  background: radial-gradient(circle, rgba(95, 207, 188, 0.14), transparent 70%);
}
.motion .amb-a { animation: amb-drift-a 22s ease-in-out infinite; }
.motion .amb-b { animation: amb-drift-b 26s ease-in-out infinite; }
.motion .amb-c { animation: amb-drift-c 30s ease-in-out infinite; }
@keyframes amb-drift-a { 50% { translate: 12% 18%; opacity: 0.3; } }
@keyframes amb-drift-b { 50% { translate: -14% 10%; opacity: 0.28; } }
@keyframes amb-drift-c { 50% { translate: 8% -16%; opacity: 0.22; } }
.amb-cursor {
  width: 34rem;
  height: 34rem;
  left: var(--lx);
  top: var(--ly);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 68%);
  opacity: 0.7;
}
.amb-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.motion .amb-grid { animation: amb-grid 28s linear infinite; }
@keyframes amb-grid { to { background-position: 72px 36px, 36px 72px; } }
.amb-spark {
  width: 56px;
  height: 2px;
  left: -10%;
  background: linear-gradient(90deg, transparent, var(--accent), #fff, transparent);
  opacity: 0;
  filter: drop-shadow(0 0 6px var(--accent));
}
.motion .amb-spark { animation: amb-spark 11s linear infinite; }
.amb-spark:nth-child(6) { top: 12%; animation-delay: 0s; animation-duration: 10s; }
.amb-spark:nth-child(7) { top: 28%; width: 40px; animation-delay: -3s; animation-duration: 14s; }
.amb-spark:nth-child(8) { top: 46%; animation-delay: -6s; animation-duration: 12s; }
.amb-spark:nth-child(9) { top: 62%; width: 32px; animation-delay: -1.5s; animation-duration: 16s; }
.amb-spark:nth-child(10) { top: 74%; animation-delay: -8s; animation-duration: 13s; }
.amb-spark:nth-child(11) { top: 88%; width: 48px; animation-delay: -4.5s; animation-duration: 15s; }
@keyframes amb-spark {
  0% { translate: 0 0; opacity: 0; }
  8% { opacity: 0.85; }
  42% { opacity: 0; }
  100% { translate: 120vw 18vh; opacity: 0; }
}
.amb-film {
  inset: 0;
  opacity: 0.045;
  background-image: url("../grain.svg");
  mix-blend-mode: overlay;
}
.motion .amb-film { animation: amb-grain 0.8s steps(2) infinite; }
@keyframes amb-grain { to { background-position: 40px -28px; } }

.site-main, .site-footer { position: relative; z-index: 1; }

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 46%, #2a2e3d) var(--bg-deep);
}
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--accent) 46%, #2a2e3d) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--accent) 38%, #32364a);
  border: 2px solid var(--bg-deep);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-corner { background: transparent; }
html:has(.shot-view:not([hidden])) { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }

.wrap { width: min(var(--container-max), calc(100% - 2rem)); margin-inline: auto; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-control);
  z-index: 50;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.icon { flex: none; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 17, 27, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.4s var(--ease-out), box-shadow 0.3s ease;
  view-transition-name: site-header;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-hidden:focus-within { transform: none; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress {
    opacity: 1;
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes scroll-progress { to { transform: scaleX(1); } }
.nav-inner {
  min-height: var(--header-h);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text-primary);
}
.logo .logo-mark {
  width: 1.45rem;
  height: auto;
  flex: none;
  color: var(--accent);
  overflow: visible;
  margin-right: 0.5rem;
}
.logo span, .hero-title span { color: var(--accent); }
.motion .logo span { animation: logo-glow 4.2s ease-in-out infinite; }
.motion .logo .logo-mark { margin-right: 0.5rem; animation: logo-mark-glow 4.2s ease-in-out infinite; }
@keyframes logo-glow {
  50% { text-shadow: 0 0 18px var(--accent-glow), 0 0 4px color-mix(in srgb, var(--accent) 70%, transparent); }
}
@keyframes logo-mark-glow {
  50% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  padding: 0.5rem 0;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-control);
  transition: color 0.2s ease;
}
.nav-link .icon {
  width: 1.125rem;
  height: 1.125rem;
  color: currentColor;
}
.nav-label { position: relative; }
.nav-link:hover { color: var(--text-primary); }
.nav-link[aria-current="page"] { color: var(--text-primary); }
.nav-link[aria-current="page"] .icon { color: var(--accent); }
.nav-link[aria-current="page"] .nav-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.motion .nav-link[aria-current="page"] .nav-label::after { animation: nav-glow 2.6s ease-in-out infinite; }
@keyframes nav-glow { 50% { box-shadow: 0 0 18px var(--accent); opacity: 0.65; } }
.nav-form { margin: 0; }

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: transparent;
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }
.nav-toggle span { line-height: 0; }

@media (max-width: 767.98px) {
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 0.75rem 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
  }
  .js .nav-open .nav-links {
    display: flex;
    opacity: 1;
    translate: 0 0;
    transition: opacity 0.2s ease, translate 0.3s var(--ease-out), display 0.3s allow-discrete;
  }
  @starting-style {
    .js .nav-open .nav-links { opacity: 0; translate: 0 -8px; }
  }
  .js .nav-link { font-size: 1.05rem; padding: 0 0.65rem; gap: 0.55rem; }
  .js .nav-link .icon { width: 1.25rem; height: 1.25rem; }
  .js .nav-link[aria-current="page"] .nav-label::after { display: none; }
  .js .nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
    border-radius: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
  }
  .motion .js .nav-link[aria-current="page"]::after { animation: nav-glow 2.6s ease-in-out infinite; }
  .js .nav-form .btn { width: 100%; margin-top: 0.5rem; }
}
@media (min-width: 768px) {
  .nav-toggle { display: none !important; }
  .nav-links { padding: 0; }
}

/* Main */

.site-main { flex: 1; padding: 2.5rem 0 4rem; }
.site-main-landing { padding: 0; }

.bare-main {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-sm { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-lg { min-height: 52px; padding: 0.75rem 1.4rem; font-size: 1rem; }
.btn-primary { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
  background-size: 220% 100%;
  background-position: 120% 0;
  pointer-events: none;
}
.motion .btn-primary::after { animation: btn-sheen 5.5s ease-in-out infinite; }
@keyframes btn-sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -40% 0; } }
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-primary); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.22); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 86%, #fff); transform: translateY(-1px); }
.danger { color: var(--danger); }
.btn.danger { color: var(--danger); }

/* Shared type */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker::before { content: ""; width: 1.5rem; height: 2px; border-radius: 2px; background: currentColor; transform-origin: 0 50%; }
.motion .kicker.is-in::before { animation: line-in 0.8s var(--ease-out) both; }
@keyframes line-in { from { scale: 0 1; } }

[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-split] .word > span { display: inline-block; will-change: transform; }

/* Page hero */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.5rem, 0.75rem + 3vw, 3.25rem) 0 2rem;
  margin-bottom: 1.75rem;
}
.page-hero-glow {
  position: absolute;
  z-index: -1;
  left: 8%;
  top: -30%;
  width: min(28rem, 70%);
  height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.motion .page-hero-glow { animation: page-glow 6s ease-in-out infinite; }
@keyframes page-glow { 50% { opacity: 0.45; scale: 1.18; translate: 8% 10%; } }
.page-hero-orbit {
  position: absolute;
  z-index: -1;
  right: 4%;
  top: -1.5rem;
  width: min(16rem, 42vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, var(--accent) 0 1deg, transparent 1deg 18deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 62%, #000 63%, #000 68%, transparent 69%);
  mask-image: radial-gradient(closest-side, transparent 62%, #000 63%, #000 68%, transparent 69%);
  opacity: 0.35;
  pointer-events: none;
}
.motion .page-hero-orbit { animation: spin-slow 22s linear infinite; }
@keyframes spin-slow { to { rotate: 360deg; } }
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: -2.5rem;
  bottom: 0;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  background:
    radial-gradient(36rem 18rem at 18% 0%, var(--accent-subtle), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 30% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--border-accent), var(--border-subtle) 40%, transparent);
  transform-origin: 0 50%;
}
.motion .page-hero::after { animation: line-in 1.4s 0.2s var(--ease-out) both; }
.page-hero-word {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -0.08em;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 2rem + 11vw, 11rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  user-select: none;
}
.page-hero h1 {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.page-lead {
  margin-top: 1rem;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
}
.page-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.85rem;
}
.page-stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.motion .page-stat-dot { animation: pulse-dot 2.4s ease-out infinite; }
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 9px transparent; }
}

/* Empty states */

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: clamp(2.5rem, 2rem + 3vw, 4rem) 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-panel);
  background: radial-gradient(30rem 14rem at 50% 0%, var(--accent-subtle), transparent 70%), var(--bg-surface);
}
.empty-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--border-accent);
  background: var(--accent-subtle);
  color: var(--accent);
}
.motion .empty-icon { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -5px; } }
.empty-title { font-size: 1.25rem; font-weight: 700; }
.empty-text { max-width: 40ch; color: var(--text-secondary); }
.empty-state .btn, .sent-panel .btn { margin-top: 0.6rem; }

/* Inner pages */

.page-head {
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.page-head h1, .prose h1, .file-page h1 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head p { color: var(--text-secondary); margin-top: 0.5rem; }
.narrow { max-width: 45rem; }
.empty { color: var(--text-secondary); padding: 2rem 0; }
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}
.back::before { content: "\2190"; margin-right: 0.5rem; }
.back:hover { color: var(--text-primary); }

/* Lists */

.stack { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.row > span { min-width: 0; }
a.row:hover { border-color: var(--border-accent); background: var(--bg-elevated); }
.row strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.row > .icon:last-child { margin-left: auto; color: var(--text-secondary); transition: transform 0.2s var(--ease-out), color 0.2s ease; }
a.row:hover > .icon:last-child { color: var(--text-primary); transform: translateX(3px); }
.meta { display: block; color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; }
.file-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent-subtle);
  color: var(--accent);
  flex: none;
}

.entry {
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow-wrap: anywhere;
}
.entry h2, .entry h3, .entry-name { font-size: 1.1rem; font-weight: 600; }
.entry .meta, .entry-name + .meta { display: block; margin-top: 0.3rem; }
.entry p:not(.meta) { margin-top: 0.6rem; color: var(--text-secondary); }
button.entry,
a.entry {
  appearance: none;
  display: block;
  width: 100%;
  text-align: start;
  cursor: pointer;
}
span.entry { display: block; width: 100%; }
a.entry, button.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
a.entry > .icon, button.entry > .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--text-secondary); transition: transform 0.2s var(--ease-out), color 0.2s ease; }
a.entry:hover, a.entry:focus-visible, button.entry:hover,
button.entry:focus-visible { border-color: var(--border-accent); background: var(--bg-elevated); }
a.entry:hover > .icon, button.entry:hover > .icon { color: var(--text-primary); transform: translateX(3px); }

a.row, a.entry, button.entry { position: relative; overflow: hidden; }
a.row::before, a.entry::before, button.entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  scale: 1 0;
  transition: scale 0.3s var(--ease-out);
}
a.row:hover::before, a.row:focus-visible::before,
a.entry:hover::before, a.entry:focus-visible::before, button.entry:hover::before, button.entry:focus-visible::before { scale: 1 1; }

.chip {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.person-fields { display: grid; gap: 0.85rem; margin: 0; }
.person-fields div { display: grid; gap: 0.15rem; }
.person-fields dt { color: var(--text-muted); font-size: 0.8rem; }
.person-fields dd { margin: 0; }
.shot-admin img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.shot-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shot-admin img { aspect-ratio: 1; object-fit: cover; }
.shot-admin label { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; }

.report { max-width: none; }
.report > p,
.report .page-head { max-width: 44rem; }
.report .contact-grid { margin-top: 1.5rem; }
.report-story h2, .report h3 { font-size: 1.15rem; font-weight: 600; }
.report-story h3 { margin-top: 1.5rem; }
.report .body { margin-top: 0.6rem; color: var(--text-secondary); max-width: 65ch; }
.report .person-fields { margin-top: 1rem; }
.report .person-fields dd { overflow-wrap: anywhere; }
.phone-list {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.phone-list a { color: inherit; text-decoration: none; }
.phone-list a:hover { color: var(--text-primary); }
.report-rule {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 1.25rem 0 1.1rem;
}
.report-refs { margin-top: 0.85rem; }
.report-refs a { color: var(--text-secondary); text-decoration: none; }
.report-refs a:hover { color: var(--text-primary); }
.report-share .share-row { margin-top: 0.85rem; }
.shot-row-wrap { container-type: inline-size; }
.shot-row {
  display: grid;
  grid-template-columns: repeat(5, 96px);
  gap: 12px;
  margin-top: 0.8rem;
}
.shot-thumb {
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  cursor: pointer;
}
.shot-thumb img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
}
@container (max-width: 1027px) {
  .shot-row { grid-template-columns: repeat(auto-fill, 96px); }
}
@container (max-width: 430px) {
  .shot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-thumb { width: 100%; height: auto; aspect-ratio: 1; }
  .shot-thumb img { width: 100%; height: 100%; }
}
.shot-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(8, 9, 14, 0.28);
  backdrop-filter: blur(18px);
}
.shot-view[hidden] { display: none; }
.shot-view img {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 5.5rem);
}
.shot-view .shot-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
}

.pager { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin-top: 1.5rem; color: var(--text-secondary); }
.pager a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
}
.pager a:hover { background: rgba(255, 255, 255, 0.04); }

/* Forms */

.search, .actions, .section-head, .share-row, .link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}
.search { padding: 1rem; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-card); }
.section-head { align-items: center; justify-content: space-between; margin: 0.5rem 0 1rem; }
.section-head h2 { font-size: 1.35rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.grow, .search .field:first-child { flex: 1 1 14rem; }
.field label, .field .label, .panel > label, fieldset legend { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.hint { color: var(--text-muted); font-size: 0.8rem; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  padding: 0.65rem 1rem;
  font-size: 1rem;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:hover, select:hover, textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.04);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-strong));
  outline: none;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    0 0 18px 2px color-mix(in srgb, var(--accent) 28%, transparent);
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}
input:not([type="file"]):not([type="checkbox"]), select { height: 44px; }
textarea { resize: vertical; }
input[type="file"] { padding: 0.5rem; }
.check-input, .check { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0 1rem; }
.check input { width: auto; min-height: 0; }
.form { display: grid; gap: 1rem; }
.form-error { color: var(--danger); margin-bottom: 1rem; }
.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.5rem;
}
.confirm-wrap { max-width: 34rem; }
.confirm-card {
  gap: 0.7rem;
  padding: 1.6rem 1.5rem 1.35rem;
  border-color: color-mix(in srgb, var(--danger) 32%, var(--border-subtle));
  background:
    radial-gradient(16rem 7rem at 0 0, color-mix(in srgb, var(--danger) 16%, transparent), transparent 72%),
    var(--bg-elevated);
}
.confirm-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  color: #ffd4d4;
  background: color-mix(in srgb, var(--danger) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 42%, transparent);
}
.confirm-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.confirm-card p { color: var(--text-secondary); max-width: 40ch; }
.confirm-name { color: var(--text-primary); font-weight: 600; }
.confirm-card .actions { margin-top: 0.55rem; align-items: center; }
.flash { margin: 0 0 1.25rem; padding: 0.85rem 1rem; border-radius: var(--radius-card); background: var(--bg-card); }
.site-main-landing .flash { margin-top: 1.25rem; }
.flash-ok { border: 1px solid var(--border-accent); }
.flash-error { border: 1px solid var(--danger); color: var(--danger); }
fieldset { border: 1px solid var(--border-subtle); border-radius: var(--radius-card); padding: 1rem; margin: 0; display: grid; gap: 0.75rem; }
.link-row input { flex: 1 1 10rem; }
.link-row .field { flex: 1 1 10rem; }

.input-icon { position: relative; display: block; }
.input-icon > .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}
.input-icon:focus-within > .icon { color: var(--accent); }
.input-icon > input { padding-left: 2.65rem; padding-right: 2.75rem; }
.search-key {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-muted);
  font: 600 0.75rem var(--font-body);
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.input-icon:focus-within > .search-key { opacity: 0; }
@media (hover: none) { .search-key { display: none; } }

/* Contact */

.contact-grid { display: grid; gap: 1.25rem; }
.contact-aside { display: grid; gap: 1rem; }
.field-pair { display: grid; gap: 1rem; }
.field-count { align-self: end; font-variant-numeric: tabular-nums; transition: color 0.2s ease; }
.field-count.is-near { color: var(--accent); }
.field-count.is-full { color: var(--danger); }
.form .btn-lg { justify-self: start; }
.btn > .icon { transition: transform 0.2s var(--ease-out); }
.btn:hover > .icon:last-child { transform: translateX(3px); }
.aside-title { font-size: 1.05rem; font-weight: 700; }
.tips { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.tips li { display: flex; gap: 0.75rem; color: var(--text-secondary); font-size: 0.95rem; }
.tips .icon { flex: none; margin-top: 0.1rem; color: var(--accent); }
.discord-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-color: var(--border-accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--bg-elevated)), var(--bg-elevated) 70%);
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.discord-card strong { display: block; font-family: var(--font-display); }
.discord-card > .icon { flex: none; color: var(--accent); }
.discord-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px var(--accent-glow); }
.sent-panel { display: grid; justify-items: center; gap: 0.6rem; padding: 3rem 1.5rem; text-align: center; }
@media (min-width: 600px) {
  .field-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr); align-items: start; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* Reading and file pages */

.prose { max-width: 960px; }
.prose h1 { margin-top: 0.5rem; }
.prose .body { max-width: 65ch; }
.body { margin-top: 1rem; color: var(--text-primary); }
.prose section + section { margin-top: 2rem; }
.prose h2 { font-size: 1.15rem; font-weight: 600; }
.file-page { max-width: none; }
.file-page > p,
.file-page .page-head { max-width: 44rem; }
.file-page .contact-grid { margin-top: 1.5rem; }
.file-page .report-story h2:not(:first-child) { margin-top: 1.5rem; }
.file-page .body { margin-top: 0.6rem; color: var(--text-secondary); max-width: 65ch; }
.file-page .contact-aside .btn-primary { width: 100%; margin-top: 1rem; }
.file-page .contact-aside .meta { margin-top: 0.85rem; overflow-wrap: anywhere; }
.file-page .file-size { margin-top: 0.2rem; color: var(--text-primary); font-weight: 600; }
.file-page .report-share .btn { width: auto; margin-top: 0; }
.side { display: grid; gap: 0.75rem; align-content: start; }
.side .panel { padding: 1.25rem; }
.side .btn-primary { width: 100%; margin-top: 1rem; }
.side .meta { margin-top: 0; overflow-wrap: anywhere; }
.share-row input { flex: 1 1 12rem; font-size: 0.9rem; }
.side label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.link-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.link-list a::after { content: "\2197"; margin-left: auto; padding-left: 1rem; color: var(--text-secondary); }
.link-list a:hover { border-color: var(--border-accent); }

/* Admin */

.admin-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 2rem; }
.admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.9rem;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  font-weight: 500;
  font-size: 0.95rem;
}
.admin-nav a:hover { color: var(--text-primary); border-color: var(--border-strong); }
.admin-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.admin-row { flex-wrap: wrap; align-items: flex-start; }
.admin-row > .actions { margin-left: auto; }
.admin-row form { margin: 0; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.stats .panel { padding: 1.25rem; border-radius: var(--radius-card); }
.stat { display: block; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; }
.game-thumb {
  --game: var(--accent);
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius-control);
  background: color-mix(in srgb, var(--game) 18%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--game) 45%, transparent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
}
.game-thumb img { width: 100%; height: 100%; object-fit: contain; }
.game-thumb.has-gradient {
  border-color: transparent;
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(135deg, var(--game), var(--game-2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.color-pair { display: flex; gap: 1.25rem; align-items: end; }
.color-pair label { display: grid; gap: 0.35rem; color: var(--text-secondary); font-size: 0.85rem; }
.color-swatch {
  height: 2.75rem;
  margin-top: 0.75rem;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-strong);
  background: linear-gradient(90deg, var(--game, var(--accent)), var(--game-2, var(--game, var(--accent))));
}
.image-drop {
  position: relative;
  display: grid;
  min-height: 8.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.image-drop:hover, .image-drop.is-drag {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 16%, transparent);
}
.image-drop.has-image {
  border-style: solid;
  border-color: var(--border-subtle);
  background: var(--bg-card);
  box-shadow: none;
}
.image-drop-hit {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 8.5rem;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
}
.image-empty { color: var(--text-secondary); font-size: 0.95rem; overflow-wrap: anywhere; }
.image-file {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.image-status { min-height: 1.25rem; margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.image-status.is-error { color: var(--danger); }
.image-remove {
  position: absolute;
  z-index: 2;
  top: 0.55rem;
  right: 0.55rem;
  min-height: 32px;
  padding: 0.15rem 0.7rem;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 17, 27, 0.86);
  transition: opacity 0.18s ease;
}
.image-drop.has-image:hover .image-remove,
.image-drop.has-image:focus-within .image-remove {
  opacity: 1;
  pointer-events: auto;
}
.image-remove-fallback[hidden], .image-remove[hidden], .image-empty[hidden], .admin-preview[hidden] { display: none; }
[data-image-field][aria-busy="true"], [data-shot-field][aria-busy="true"] { opacity: 0.72; }
.shot-drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}
.shot-drops .image-drop,
.shot-drops .image-drop-hit { min-height: 9.5rem; }
.shot-drops .admin-preview { width: 100%; height: 9.5rem; max-height: none; object-fit: cover; }
.admin-preview { display: block; max-width: 100%; max-height: 12rem; border-radius: var(--radius-card); object-fit: cover; }
.image-drop.has-image .admin-preview { border: 0; }
.admin-preview-logo { max-height: 6.5rem; object-fit: contain; background: transparent; padding: 0.35rem; }
input[type="color"] { width: 5rem; padding: 0.25rem; cursor: pointer; }
.login-card { width: min(400px, 100%); }
.login-card h1 { font-size: 1.5rem; }
.login-card .hint { margin: 0.75rem 0 0.25rem; }
main h3 { font-size: 1rem; margin: 1.5rem 0 0; color: var(--text-secondary); font-weight: 600; }

/* Footer */

.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: grid;
  gap: 1.75rem;
  padding: 2.75rem 0 2rem;
}
.footer-slogan { margin-top: 0.5rem; color: var(--text-secondary); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-cta { justify-self: start; }
.footer-mark { overflow: hidden; margin-bottom: -1px; pointer-events: none; user-select: none; }
.footer-mark .wordmark { display: block; width: 100%; height: auto; translate: 0 18%; }
.footer-mark .wm-letter { stroke: rgba(255, 255, 255, 0.14); stroke-width: 5; }
.footer-mark .wm-smurf { color: rgba(255, 255, 255, 0.05); }
.footer-mark .wm-play { color: color-mix(in srgb, var(--accent) 22%, transparent); filter: none; }
.footer-base {
  position: relative;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Motion */

html.lenis { scroll-behavior: auto; }

.motion:not(.motion-live):not(.motion-failed) .site-main:not(.site-main-landing) > .wrap > * { opacity: 0; }

@view-transition { navigation: auto; }
.site-footer { view-transition-name: site-footer; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Breakpoints */

@media (max-width: 767.98px) {
  .search .btn { flex: 1 1 auto; }
}

@media (min-width: 768px) {
  .file-grid { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.75fr); align-items: start; }
  .side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .stats { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
  .footer-inner { grid-template-columns: 1.2fr 1.5fr auto; align-items: start; }
  .footer-links { padding-top: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .scroll-progress { display: none; }
  .site-header.is-hidden { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .btn-primary:hover, a.row:hover > .icon:last-child { transform: none; }
  .ambient, .page-hero-glow, .page-hero-orbit { display: none; }
}
