:root {
  --void: #060607;
  --void-2: #0c0c0e;
  --red: #ff3b3b;
  --red-dim: #5a1414;
  --red-glow: rgba(255, 59, 59, 0.35);
  --fog: #9a9aa2;
  --white: #ededf0;
  --border: rgba(255, 255, 255, 0.08);
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: var(--void);
}

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  background: rgba(255, 59, 59, 0.08);
  color: var(--red);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

#scene-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding: 140px 32px 100px;
}

body:not(.has-hero) #scene-container {
  opacity: 0.72;
  filter: saturate(1.15) contrast(1.06);
}

.has-hero #scene-container {
  left: auto;
  right: 0;
  width: 58%;
}

.hero-fade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--void) 0%,
    var(--void) 30%,
    rgba(6, 6, 7, 0.85) 42%,
    rgba(6, 6, 7, 0.3) 55%,
    transparent 68%
  );
}

body:not(.has-hero) .hero-fade {
  display: none;
}

body:not(.has-hero) .section.page {
  padding-top: 100px;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--fog);
  margin-bottom: 36px;
  transition: color 160ms ease;
}

.back-link:hover { color: var(--red); }

.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  margin: 0 0 10px;
  color: var(--white);
}

.page-note {
  color: var(--fog);
  font-size: 0.98rem;
  margin: 0 0 40px;
  max-width: 640px;
}

.addr {
  font-family: var(--mono);
  color: var(--red);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  opacity: 0.85;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}

.hero-logo-wrapper {
  width: auto;
  margin-bottom: 22px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 0;
}

.hero-logo {
  width: min(160px, 22vw);
  max-width: 160px;
  height: auto;
  display: block;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  margin-left: 0;
}

.page-corner-logo {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 4;
  display: block;
  width: min(110px, 18vw);
  max-width: 110px;
  opacity: 0.95;
  pointer-events: none;
}

.page-corner-logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-stage {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  width: min(calc(100% + 300px), 1080px);
  flex-wrap: nowrap;
}

.hero-inner {
  flex: 1 1 560px;
  max-width: 780px;
  position: relative;
  padding: 48px 34px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 90px rgba(255, 59, 59, 0.04);
}

.hero-side-card {
  flex: 0 1 280px;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: min(100%, 280px);
  min-height: 250px;
  padding: 24px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 90px rgba(255, 59, 59, 0.04);
  position: relative;
  overflow: hidden;
}

.hero-side-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
  pointer-events: none;
}

.hero-side-card > * {
  position: relative;
  z-index: 1;
}

.hero-side-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.9;
}

.hero-side-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
  color: var(--white);
}

.hero-side-copy,
.hero-side-note {
  margin: 0;
  color: var(--fog);
}

.hero-side-copy {
  font-size: 0.92rem;
  line-height: 1.55;
}

.hero-side-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-side-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.92), rgba(185, 15, 15, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 28px rgba(255, 59, 59, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.hero-side-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 59, 59, 0.3);
  filter: brightness(1.03);
}

.hero-side-cta:focus-visible {
  outline-offset: 4px;
}



.hero-inner::before,
.hero-inner::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.hero-inner::before { top: 0; }
.hero-inner::after { bottom: 0; }

.hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.hero-thumb {
  width: 140px;
  height: auto;
  display: block;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-banner {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 22px;
}

.hero-ornament {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.88;
}

.hero-hello {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  font-weight: 800;
  margin: 0;
  color: var(--white);
  letter-spacing: -0.065em;
  display: inline-block;
  position: relative;
  line-height: 1;
}

.glitch-text {
  position: relative;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
}

.glitch-matrix {
  font-family: 'MatrixCodeNFI', monospace;
}

.glitch-gridtile {
  font-family: 'Gridtile', sans-serif;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-default);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  opacity: 0;
  color: var(--red);
  text-shadow: -1px 0 var(--white), 1px 0 var(--red);
  transform: translateX(0);
  transition: opacity 120ms ease;
  pointer-events: none;
}

.glitch-text::before {
  text-shadow: -2px 0 rgba(255, 59, 59, 0.85);
}

.glitch-text::after {
  text-shadow: 2px 0 rgba(0, 205, 255, 0.85);
}

.glitch-text.glitching {
  color: transparent;
}

.glitch-text.glitching::before,
.glitch-text.glitching::after {
  opacity: 1;
}

.glitch-text.glitching::before {
  animation: glitch-rgb 480ms ease-in-out;
}

.glitch-text.glitching::after {
  animation: glitch-rgb-reverse 480ms ease-in-out;
}

.glitch-text.glitching::after {
  animation-delay: 50ms;
}

.glitch-text.glitching span {
  opacity: 0;
}

@keyframes glitch-rgb {
  0% { transform: translateX(0) skewX(0deg); clip-path: inset(0 0 0 0); }
  10% { transform: translateX(-2px) skewX(-3deg); clip-path: inset(0 0 30% 0); }
  20% { transform: translateX(2px) skewX(3deg); clip-path: inset(10% 0 20% 0); }
  30% { transform: translateX(-4px) skewX(-1deg); clip-path: inset(20% 0 10% 0); }
  40% { transform: translateX(3px) skewX(2deg); clip-path: inset(30% 0 15% 0); }
  60% { transform: translateX(-1px) skewX(-2deg); clip-path: inset(20% 0 40% 0); }
  80% { transform: translateX(1px) skewX(1deg); clip-path: inset(10% 0 20% 0); }
  100% { transform: translateX(0) skewX(0deg); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-rgb-reverse {
  0% { transform: translateX(0) skewX(0deg); clip-path: inset(0 0 0 0); }
  10% { transform: translateX(2px) skewX(3deg); clip-path: inset(0 0 30% 0); }
  20% { transform: translateX(-2px) skewX(-3deg); clip-path: inset(10% 0 20% 0); }
  30% { transform: translateX(4px) skewX(1deg); clip-path: inset(20% 0 10% 0); }
  40% { transform: translateX(-3px) skewX(-2deg); clip-path: inset(30% 0 15% 0); }
  60% { transform: translateX(1px) skewX(2deg); clip-path: inset(20% 0 40% 0); }
  80% { transform: translateX(-1px) skewX(-1deg); clip-path: inset(10% 0 20% 0); }
  100% { transform: translateX(0) skewX(0deg); clip-path: inset(0 0 0 0); }
}

@keyframes scanline {
  0%, 100% { opacity: 0.1; transform: translateY(0); }
  50% { opacity: 0.25; transform: translateY(-2px); }
}

.glitch-text.glitching::before,
.glitch-text.glitching::after {
  animation: scanline 120ms infinite alternate;
}

.hero-intro {
  display: inline-block;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-hello-default {
  position: relative;
}

.hero-hello-default::after {
  content: "";
  position: absolute;
  left: 0;
  top: 52%;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.hero-hello-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.hero-hello:hover .hero-hello-default {
  opacity: 1;
  transform: translateY(0);
}

.hero-hello:hover .hero-hello-default::after {
  transform: scaleX(1);
}

.hero-hello:hover .hero-hello-hover {
  opacity: 1;
  transform: translateY(0);
}

.hero-hello:not(:hover) .hero-hello-default {
  opacity: 1;
  transform: translateY(0);
}

.hero-hello:not(:hover) .hero-hello-default::after {
  transform: scaleX(0);
}

.hero-hello:not(:hover) .hero-hello-hover {
  opacity: 0;
  transform: translateY(4px);
}

.hero-intro {
  font-family: var(--body);
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c9c9ce;
  margin: 0;
  max-width: 680px;
  line-height: 1.7;
}

.hero-desc {
  font-family: var(--mono);
  font-size: 0.94rem;
  color: var(--fog);
  margin: 0 0 28px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
}

.scroll-hint {
  position: absolute;
  bottom: 120px;
  left: 32px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fog);
  opacity: 0.6;
  animation: float 2.4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- HOME DIRECTORY GRID ---------- */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin-top: 64px;
}

.dir-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 22px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.dir-card:hover {
  border-color: var(--red-dim);
  background: rgba(255, 59, 59, 0.05);
  transform: translateY(-3px);
}

.dir-addr {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--red);
  opacity: 0.85;
}

.dir-name {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
}

.dir-desc {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--fog);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  margin-top: 20px;
  align-items: center;
}

.about-text p {
  color: #c9c9ce;
  font-size: 1.02rem;
  margin: 0 0 18px;
}

.about-stack {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-picture {
  width: min(520px, 100%);
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 44px rgba(0,0,0,0.28);
  padding: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(5px);
}

.stack-label {
  font-family: var(--mono);
  color: var(--red);
  font-size: 0.8rem;
  margin: 0 0 14px;
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--fog);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* ---------- WRITEUPS ---------- */
.wu-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 30px 0 24px;
}

.wu-stat {
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.wu-stat-label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wu-stat-value {
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--white);
}

.wu-stat-copy {
  margin: 0;
  color: var(--fog);
  font-size: 0.9rem;
}

.wu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.wu-col-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.wu-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wu-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wu-card:hover {
  border-color: var(--red-dim);
  background: rgba(255, 59, 59, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.wu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wu-card h3 {
  font-family: var(--display);
  margin: 0;
  font-size: 1.1rem;
}

.wu-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(255, 59, 59, 0.18);
  background: rgba(255, 59, 59, 0.06);
  border-radius: 999px;
  padding: 6px 10px;
}

.wu-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  opacity: 0.8;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wu-rank {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.84;
}

.wu-card p:not(.wu-meta) {
  color: var(--fog);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- BBP ---------- */
.bbp-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.bbp-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.015);
}

.bbp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.bbp-head h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin: 0;
}

.bbp-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

.status-dup { color: var(--fog); }
.status-progress { color: var(--red); border-color: var(--red-dim); }

.bbp-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--red);
  opacity: 0.8;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bbp-row p:not(.bbp-meta) {
  color: var(--fog);
  font-size: 0.94rem;
  margin: 0;
  max-width: 680px;
}

/* ---------- TOOLS ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.tool-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.tool-card:hover {
  border-color: var(--red-dim);
  background: rgba(255, 59, 59, 0.04);
  transform: translateY(-2px);
}

.tool-card h3 {
  font-family: var(--display);
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.tool-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  opacity: 0.8;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tool-card p:not(.tool-tag) {
  color: var(--fog);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- NOTES / VAULT ---------- */
.vault-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 32px 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 59, 59, 0.05), rgba(255, 255, 255, 0.015));
  transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
}

.vault-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255, 59, 59, 0.09), rgba(255, 255, 255, 0.02));
}

.vault-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
  margin: 0 0 10px;
}

.vault-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 12px;
  color: var(--white);
}

.vault-desc {
  color: var(--fog);
  font-size: 0.96rem;
  margin: 0;
  max-width: 480px;
}

.vault-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--white);
  white-space: nowrap;
  padding-bottom: 4px;
}

.vault-cta svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  transition: transform 200ms ease;
}

.vault-card:hover .vault-cta svg {
  transform: translate(2px, -2px);
}

@media (max-width: 620px) {
  .vault-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- NOTES (legacy, unused) ---------- */
.notes-list {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.note-row {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.note-row:first-child { padding-top: 0; }

.note-date {
  font-family: var(--mono);
  color: var(--red);
  font-size: 0.72rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.note-row h3 {
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.note-row p:not(.note-date) {
  color: #c9c9ce;
  font-size: 0.94rem;
  margin: 0;
  max-width: 640px;
}

/* ---------- BLOG (legacy, unused) ---------- */
.blog-list {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.blog-post {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}

.blog-post:first-child { padding-top: 0; }

.blog-date {
  font-family: var(--mono);
  color: var(--red);
  font-size: 0.75rem;
  margin: 4px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-post h3 {
  font-family: var(--display);
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.blog-post p:not(.blog-date) {
  color: #c9c9ce;
  font-size: 0.96rem;
  margin: 0 0 12px;
  max-width: 620px;
}

.blog-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--fog);
  border: 1px dashed var(--border);
  padding: 4px 10px;
  border-radius: 100px;
}

/* ---------- NETWORK ---------- */
.network {
  margin-top: 24px;
  padding: 24px 24px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
  max-width: 100%;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  color: var(--white);
}

.section-header p {
  margin: 0;
  color: var(--fog);
  font-size: 0.95rem;
  max-width: 640px;
  line-height: 1.7;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.network-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.network-card:hover {
  transform: translateY(-3px);
  border-color: var(--red-dim);
  background: rgba(255, 59, 59, 0.06);
  box-shadow: 0 10px 24px rgba(255, 59, 59, 0.12);
}

.network-card img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.08);
}

.network-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.network-info h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--white);
}

.network-info span {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--fog);
}

.network-card i {
  color: var(--red);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ---------- CONTACT ---------- */
.contact-body { margin-top: 10px; }

.contact-line {
  color: #c9c9ce;
  font-size: 1.05rem;
  margin: 0 0 28px;
  max-width: 560px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}

.contact-link {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--white);
  width: fit-content;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--border);
  transition: color 160ms ease, border-color 160ms ease;
}

.contact-link:hover {
  color: var(--red);
  border-color: var(--red);
}

.pgp-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--red);
  margin: 0 0 8px;
}

.pgp-key {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--fog);
  letter-spacing: 0.03em;
  word-spacing: 4px;
}

.footer-note {
  margin-top: 80px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--fog);
  opacity: 0.5;
}

/* ---------- DOCK NAV ---------- */
.dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.dock-list {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  background: rgba(12, 12, 14, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--fog);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(0.25, 1, 0.5, 1);
}

.dock-item svg {
  width: 20px;
  height: 20px;
}

.dock-item:hover a,
.dock-item.active a {
  color: var(--red);
  background: rgba(255, 59, 59, 0.08);
  border-color: var(--red-dim);
  transform: translateY(-6px) scale(1.15);
}

.dock-item.neighbor a {
  transform: translateY(-3px) scale(1.05);
}

.dock-label {
  position: absolute;
  bottom: 54px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--white);
  background: rgba(12, 12, 14, 0.9);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(4px);
}

.dock-item:hover .dock-label {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .about-grid,
  .wu-overview,
  .wu-columns,
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .dir-grid {
    grid-template-columns: 1fr 1fr;
  }
  .network-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stage {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-side-card {
    max-width: 100%;
  }
  .blog-post {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .section { padding: 100px 20px 80px; }
  .scroll-hint { display: none; }
  .dock-list { gap: 6px; padding: 8px 12px; }
  .dock-item a { width: 38px; height: 38px; }
  .dock-item:hover a,
  .dock-item.active a {
    transform: translateY(-3px) scale(1.02);
  }
  .dock-item.neighbor a {
    transform: translateY(-1px) scale(1.01);
  }
}

@media (max-width: 560px) {
  .network-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dir-grid { grid-template-columns: 1fr; }
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
