:root {

  --bg:    #060710;
  --bg-1:  #0B0D1A;
  --bg-2:  #101324;
  --bg-3:  #171A2E;

  --ink:       #D8E0F6;
  --ink-mid:   #5A6488;
  --ink-faint: #282E4C;

  --blue:          #4878F8;
  --blue-lo:       #1A3882;
  --blue-hi:       #88AEFC;
  --blue-dim:      #364A88;
  --blue-glow:     rgba(72, 120, 248, 0.18);
  --blue-glow-soft: rgba(72, 120, 248, 0.08);
  --blue-ultra:    rgba(72, 120, 248, 0.04);

  --amber: #f59e0b;

  --line:   rgba(216, 224, 246, 0.055);
  --line-2: rgba(216, 224, 246, 0.11);

  --f-display: 'Unbounded', sans-serif;
  --f-body:    'Figtree', sans-serif;
  --f-serif:   'Figtree', sans-serif;
  --f-mono:    'DM Mono', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; cursor: none; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: 16px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh;
  cursor: none;
}
*, a, button, input, textarea, select, label,
.category-hub, .grid-card, .lb-close, .lb-prev, .lb-next, .p-element {
  cursor: none !important;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; }
em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (hover: none) {
  .cursor, .cursor-dot { display: none !important; }
  html, body, *, a, button, input, textarea, .category-hub, .grid-card { cursor: auto !important; }
}

.grain {
  position: fixed; inset: 0; z-index: 9990; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  transform: translateZ(0); contain: strict;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 1px; z-index: 9996; pointer-events: none;
  background: linear-gradient(90deg, var(--blue-lo), var(--blue) 55%, var(--blue-hi));
  transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

.cursor {
  position: fixed; z-index: 9999; width: 32px; height: 32px;
  border: 1px solid rgba(72, 120, 248, 0.45); border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%) translateZ(0);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.25s, background 0.25s, opacity 0.25s;
  opacity: 0; top: 0; left: 0;
  will-change: transform, opacity; backface-visibility: hidden;
}
.cursor.cursor-hover {
  width: 56px; height: 56px;
  background: var(--blue-glow); border-color: var(--blue);
}
.cursor-dot {
  position: fixed; z-index: 10000; width: 4px; height: 4px; background: var(--blue);
  border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%) translateZ(0);
  opacity: 0; transition: opacity 0.25s; top: 0; left: 0;
  will-change: transform, opacity; backface-visibility: hidden;
}

.label, .mono {
  font-family: var(--f-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mid);
}

.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); z-index: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 16, 0.85);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  transition: border-color 0.3s;
  transform: translateZ(0); isolation: isolate;
}
.logo {
  font-family: var(--f-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink);
  display: inline-block; position: relative; transition: color 0.2s;
}
.logo:hover { color: var(--blue-hi); }

@keyframes logoGlitch {
  0%   { clip-path: none; transform: translateZ(0); }
  15%  { clip-path: inset(0 0 60% 0); transform: translateX(-4px) translateZ(0); color: var(--blue-hi); }
  30%  { clip-path: inset(48% 0 0 0); transform: translateX(4px) translateZ(0); }
  45%  { clip-path: inset(20% 0 38% 0); transform: translateX(-2px) translateZ(0); }
  60%  { clip-path: none; letter-spacing: 0.32em; transform: translateZ(0); }
  80%  { letter-spacing: 0.24em; }
  100% { clip-path: none; transform: translateZ(0); }
}
.logo.glitching { animation: logoGlitch 0.36s steps(4) forwards; }

.nav-icon {
  background: transparent; border: none; padding: 8px; color: var(--ink-mid);
  display: none; align-items: center; justify-content: center; transition: color 0.2s;
}
.nav-icon:hover { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mid); position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; right: 50%; height: 1px;
  background: var(--blue); transition: left 0.3s var(--ease), right 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-current::after { left: 0; right: 0; }
.nav-links a.is-current::after { background: var(--blue-hi); }

@media (max-width: 720px) { .nav-icon { display: flex; } .nav-links { display: none; } }

.side-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 80vw);
  background: var(--bg-1); border-right: 1px solid var(--line-2);
  padding: 80px 40px 40px; z-index: 700;
  transform: translateX(-100%) translateZ(0);
  transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column;
  will-change: transform; backface-visibility: hidden;
}
.side-drawer.active { transform: translateX(0) translateZ(0); }
.close-btn {
  position: absolute; top: 18px; right: 18px; background: transparent; border: none;
  color: var(--ink-mid); padding: 8px; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}
.close-btn:hover { color: var(--blue-hi); }
.drawer-label {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 32px;
}
.side-drawer nav { display: flex; flex-direction: column; }
.side-drawer nav a {
  font-family: var(--f-display); font-size: 1.55rem; font-weight: 400; line-height: 1.18;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-mid);
  transition: color 0.2s, transform 0.3s var(--ease); transform: translateZ(0);
}
.side-drawer nav a:first-child { border-top: 1px solid var(--line); }
.side-drawer nav a:hover { color: var(--blue-hi); transform: translateX(10px) translateZ(0); }
.drawer-footer { margin-top: auto; }

.overlay {
  position: fixed; inset: 0; background: rgba(6, 7, 16, 0.72); backdrop-filter: blur(4px);
  z-index: 600; opacity: 0; pointer-events: none; transition: opacity 0.4s;
  will-change: opacity; transform: translateZ(0);
}
.overlay.active { opacity: 1; pointer-events: auto; }

#top { padding: 0; max-width: 1440px; margin: 0 auto; }
.hero { padding-top: 60px; padding-left: var(--pad); padding-right: var(--pad); }
.hero-inner { display: grid; grid-template-columns: 1fr 44%; min-height: 78vh; border-bottom: 1px solid var(--line); }
.hero-left { display: flex; flex-direction: column; padding: 44px 48px 36px 0; border-right: 1px solid var(--line); }
.hero-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 44px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.hero-status { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 10px rgba(72, 120, 248, 0.9);
  animation: pulseDot 2.6s ease-in-out infinite;
  flex-shrink: 0; will-change: opacity, transform; transform: translateZ(0);
}
.status-dot.unavailable {
  background: var(--amber); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
  animation: none; opacity: 0.9;
}
@keyframes pulseDot { 50% { opacity: 0.3; transform: scale(0.65) translateZ(0); } }

.hero-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.8rem, 6vw, 6.8rem); line-height: 0.97;
  letter-spacing: -0.042em; color: var(--ink);
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  animation: heroTitleReveal 1.05s var(--ease) 0.2s both;
}
@keyframes heroTitleReveal {
  0%   { opacity: 0; transform: translateY(6px) translateZ(0); }
  12%  { opacity: 0.7; transform: translateX(-5px) translateY(0) translateZ(0); }
  28%  { opacity: 0.5; transform: translateX(4px) translateZ(0); }
  44%  { opacity: 0.9; transform: translateX(-2px) translateZ(0); }
  60%  { opacity: 1; transform: translateX(1px) translateZ(0); }
  80%  { transform: translateX(-0.5px) translateZ(0); }
  100% { opacity: 1; transform: translateX(0) translateY(0) translateZ(0); }
}
.hero-title .word-em {
  display: block;
  font-family: var(--f-serif);
  font-weight: 300; font-style: italic;
  color: var(--blue-hi); font-size: 0.82em;
  letter-spacing: -0.005em; margin-left: 0.04em;

  text-shadow:
    -1px 0 rgba(72, 120, 248, 0.25),
     1px 0 rgba(140, 174, 252, 0.2);
}

.hero-foot {
  padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  animation: fadeUp 0.9s var(--ease) 0.35s both;
}
.hero-sub { max-width: 300px; font-size: 0.88rem; font-weight: 300; color: var(--ink-mid); line-height: 1.82; }
.hero-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.hero-visual {
  position: relative; overflow: hidden; background: var(--bg-1);
  animation: fadeIn 1s var(--ease) 0.15s both;
  contain: layout paint; isolation: isolate;
}
.hero-visual img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.68) saturate(0.72);
  transition: transform 1.2s var(--ease), filter 0.6s;
  will-change: transform, filter; transform: translateZ(0); backface-visibility: hidden;
}
.hero-visual:hover img { transform: scale(1.04) translateZ(0); filter: brightness(0.78) saturate(0.94); }
.hero-visual::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(165deg, transparent 30%, rgba(16, 24, 80, 0.58) 100%);
  pointer-events: none;
}
.hero-visual::after {
  content: ''; position: absolute; z-index: 2; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--blue-hi) 38%, var(--blue) 62%, transparent 100%);
  opacity: 0; pointer-events: none;
  animation: heroScan 9s ease-in-out 4s infinite;
  will-change: top, opacity; transform: translateZ(0);
}
@keyframes heroScan { 0% { top: -2px; opacity: 0; } 5% { opacity: 0.24; } 92% { opacity: 0.15; } 100% { top: 100%; opacity: 0; } }
.hero-visual-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(6,7,16,0.92));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.hero-visual-title { font-family: var(--f-display); font-size: 0.76rem; font-weight: 400; letter-spacing: 0.04em; color: var(--ink); }
.hero-visual-meta  { font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(136, 174, 252, 0.52); text-align: right; }
.hero-visual-link  { position: absolute; inset: 0; z-index: 4; }

.hero-marquee {
  overflow: hidden; padding: 13px 0; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: fadeIn 0.8s var(--ease) 0.5s both;
  contain: layout paint;
}
.marquee-track {
  display: flex; gap: 44px; white-space: nowrap; animation: marquee 48s linear infinite;
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
  will-change: transform; backface-visibility: hidden;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-family: var(--f-display); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-mid);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.btn:hover { color: var(--ink); border-color: rgba(216, 224, 246, 0.28); }
.btn-primary {
  background: var(--blue); color: var(--bg); border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hi); border-color: var(--blue-hi); color: var(--bg);
  box-shadow: 0 0 32px var(--blue-glow), 0 0 8px rgba(72, 120, 248, 0.3);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-hi); }

section { padding: 96px var(--pad); max-width: 1440px; margin: 0 auto; }

.section-head {
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 52px; padding-bottom: 24px; position: relative;
}
.section-head::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--blue-lo) 0%, var(--blue) 28%, var(--line-2) 52%, transparent 80%);
  transition: width 1s var(--ease-out) 0.12s;
  will-change: width;
}
.section-head.is-revealed::after { width: 100%; }

.section-num { padding-top: 6px; flex-shrink: 0; }
.section-num::after { content: '_'; animation: blink 1.4s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.section-title-row { flex: 1; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }

h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 4.6rem); line-height: 1.02; letter-spacing: -0.036em; color: var(--ink);
}
h2 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  color: var(--blue-hi); letter-spacing: -0.005em;
}

[data-reveal] {
  opacity: 0; transform: translateY(26px) translateZ(0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform; backface-visibility: hidden;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0) translateZ(0); }

.scene-veil {
  position: fixed; inset: 0; z-index: 9500; background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity 300ms ease-in-out;
  will-change: opacity; transform: translateZ(0);
}
.scene-veil.show { opacity: 1; pointer-events: auto; }

.lightbox {
  position: fixed; inset: 0; z-index: 8000; background: rgba(6, 7, 16, 0.97);
  display: none; align-items: center; justify-content: center; padding: 40px;
  isolation: isolate;
}
.lightbox.active { display: flex; animation: fadeIn 0.3s var(--ease); }
.lb-figure {
  margin: 0; max-width: 90vw; max-height: 90vh; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.lb-figure img {
  max-width: 100%; max-height: 80vh; display: block;
  box-shadow: 0 40px 100px rgba(0,0,0,0.72), 0 0 0 1px var(--line);
  position: relative; z-index: 1;
  will-change: opacity, transform, filter; transform: translateZ(0); backface-visibility: hidden;
}
.lightbox.reveal .lb-figure img { animation: imgReveal 550ms var(--ease) both; }
@keyframes imgReveal {
  0%   { opacity: 0; filter: brightness(1.5) saturate(0.35); transform: scale(0.987) translateZ(0); }
  35%  { opacity: 1; filter: brightness(1.1) saturate(1.05); transform: scale(0.997) translateZ(0); }
  100% { opacity: 1; filter: none; transform: scale(1) translateZ(0); }
}
.lightbox.closing .lb-figure img {
  transition: filter 260ms var(--ease), opacity 260ms, transform 260ms;
  filter: brightness(0.48) saturate(0.55); opacity: 0.75; transform: scale(0.99) translateZ(0);
}
.lb-figure img.swapping {
  transition: opacity 180ms var(--ease), filter 180ms;
  opacity: 0; filter: brightness(1.4) saturate(0.35);
}
#lbCaption {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mid);
  position: relative; z-index: 1; opacity: 0;
  transform: translateY(4px) translateZ(0);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
  will-change: opacity, transform;
}
#lbCaption.in { opacity: 1; transform: translateY(0) translateZ(0); }
.lightbox.closing #lbCaption { transition: opacity 180ms; opacity: 0; }

.lb-close, .lb-prev, .lb-next {
  position: absolute; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-mid);
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.2rem; display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 10; transform: translateZ(0);
}
.lb-close { top: 22px; right: 22px; }
.lb-prev  { left: 22px;  top: 50%; transform: translateY(-50%) translateZ(0); }
.lb-next  { right: 22px; top: 50%; transform: translateY(-50%) translateZ(0); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: var(--blue); border-color: var(--blue); color: var(--bg);
  box-shadow: 0 0 24px var(--blue-glow);
}

.dd-zoom-overlay {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(6, 7, 16, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0s 0.28s;
  will-change: opacity;
}
.dd-zoom-overlay.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.28s var(--ease), visibility 0s 0s;
}
.dd-zoom-overlay img {
  max-width: 96vw; max-height: 92vh; object-fit: contain;
  animation: imgReveal 0.35s var(--ease) both;
  transform: translateZ(0); backface-visibility: hidden;
}
.dd-zoom-hint {
  position: absolute; bottom: 24px;
  font-family: var(--f-mono); font-size: 0.52rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}

.avail-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid transparent; margin-bottom: 28px;
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; animation: fadeUp 0.6s var(--ease) both;
}
.avail-badge:empty { display: none; }
.avail-badge.open  { border-color: rgba(72, 120, 248, 0.26); background: var(--blue-ultra); color: var(--blue-hi); }
.avail-badge.open .avail-dot {
  background: var(--blue); box-shadow: 0 0 8px rgba(72,120,248,0.9);
  animation: pulseDot 2.6s ease-in-out infinite;
}
.avail-badge.closed { border-color: rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.04); color: var(--amber); }
.avail-badge.closed .avail-dot { background: var(--amber); opacity: 0.82; }
.avail-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.about-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 80px; align-items: start; }

.about-text h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.7vw, 2.5rem); line-height: 1.18; letter-spacing: -0.026em;
  color: var(--ink); margin-bottom: 32px;
}
.about-text h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--blue-hi);
}
.about-text p {
  font-size: 0.94rem; font-weight: 300; color: var(--ink-mid); line-height: 1.88; margin-bottom: 14px;
}
.about-text strong { color: var(--ink); font-weight: 500; }

.about-side { display: flex; flex-direction: column; }
.stat { padding: 26px 0; border-bottom: 1px solid var(--line); }
.stat:first-child { border-top: 1px solid var(--line); }
.stat-num {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -0.042em;
  color: var(--ink); margin-bottom: 7px; transition: color 0.3s;
}
.stat .stat-num + .stat-num {
  font-size: clamp(1.3rem, 2.2vw, 2.4rem); color: var(--ink-faint); margin-top: -5px; margin-bottom: 0;
}
.stat:hover .stat-num { color: var(--blue-hi); }
.stat:hover .stat-num + .stat-num { color: var(--ink-mid); }

@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; padding-top: 32px; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-intro h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.4rem, 2.7vw, 2.5rem); line-height: 1.14; letter-spacing: -0.026em;
  margin-bottom: 18px; color: var(--ink);
}
.contact-intro h3 em {
  font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--blue-hi);
}
.contact-intro p { color: var(--ink-mid); font-size: 0.9rem; font-weight: 300; line-height: 1.75; margin-bottom: 26px; max-width: 38ch; }
.contact-email {
  display: inline-block; font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.08em;
  color: var(--blue-hi); border-bottom: 1px solid var(--blue-lo); padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--blue); border-color: var(--blue); }
.contact-channels { display: flex; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-channel {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px; border-right: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); transition: color 0.2s, background 0.2s, transform 0.12s;
  transform: translateZ(0);
}
.contact-channel:last-child { border-right: none; }
.contact-channel:hover { color: var(--blue-hi); background: var(--blue-ultra); }
.contact-channel:active { transform: scale(0.96) translateZ(0); transition-duration: 0.08s; }
.contact-channel-icon { font-size: 0.9rem; color: var(--ink-mid); transition: color 0.2s; line-height: 1; }
.contact-channel:hover .contact-channel-icon { color: var(--blue); }

.footer {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a {
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue-hi); }

/* =========================================================
   INTERACTIVE BIO — link after style.css
   or merge at the bottom of style.css
   ========================================================= */
 
/* Override about-grid specifically for the interactive layout */
.about-grid.interactive-bio {
  grid-template-columns: 1.45fr 1fr;
  gap: 80px;
  align-items: start;
}
 
/* ─── Bio Text Column ──────────────────────────────────── */
 
.about-text-column h3 {
  margin-bottom: 24px;
}
 
.bio-content p {
  margin-bottom: 20px;
  color: var(--ink-mid);
  line-height: 1.84;
  font-size: 0.94rem;
  font-weight: 300;
}
 
/* ─── Trigger Words ────────────────────────────────────── */
/*
   More raw than the original — instead of a bg flash,
   a thin underline animates in from left, feels handmade.
*/
.bio-trigger {
  color: var(--blue-hi);
  border-bottom: 1px dashed rgba(72, 120, 248, 0.32);
  cursor: crosshair;
  padding: 0 2px;
  position: relative;
  transition: color 0.15s, border-color 0.15s;
}
 
.bio-trigger::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--blue-hi);
  transition: width 0.22s var(--ease);
  will-change: width;
}
 
.bio-trigger:hover {
  color: var(--ink);
  border-bottom-color: transparent;
}
 
.bio-trigger:hover::after {
  width: 100%;
}
 
/* ─── Smooth-expand Bio Text ───────────────────────────── */
 
.bio-extended-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.2, 1, 0.3, 1);
}
 
.bio-extended-wrapper[aria-hidden="false"] {
  grid-template-rows: 1fr;
}
 
.bio-extended-inner {
  overflow: hidden;
}
 
.bio-extended-inner p:first-child {
  padding-top: 6px;
}
 
/* ─── Expand Button — raw, minimal, no box ─────────────── */
 
.bio-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 0;
  margin-top: 16px;
  transition: color 0.2s, border-color 0.2s;
}
 
.bio-expand-btn::before {
  content: '▸';
  color: var(--blue);
  opacity: 0.6;
  transition: transform 0.25s var(--ease), opacity 0.2s;
  display: inline-block;
}
 
.bio-expand-btn[aria-expanded="true"]::before {
  transform: rotate(90deg);
  opacity: 1;
}
 
.bio-expand-btn:hover {
  color: var(--blue-hi);
  border-color: var(--blue-lo);
}
 
.bio-expand-btn:hover::before {
  opacity: 1;
}
 
/* ─── Location Label ───────────────────────────────────── */
 
.bio-location-line {
  margin-top: 24px;
  color: var(--ink-faint);
}
 
.bio-location-line strong {
  color: var(--ink-mid);
  font-weight: 400;
}
 
/* ─── Visual Column — Sticky Terminal ─────────────────── */
 
.about-visual-column {
  position: sticky;
  top: 84px;
}
 
/* ─── Terminal Container ───────────────────────────────── */
 
.bio-terminal {
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  /* Subtle blue aura — feels like an active CRT, not a UI mockup */
  box-shadow:
    0 0 0 1px rgba(72, 120, 248, 0.04),
    0 24px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
 
/* ─── Titlebar ──────────────────────────────────────────── */
 
.bio-terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  /* No padding hack — real tight titlebar */
  min-height: 32px;
}
 
.bio-term-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
 
/* Desaturated traffic-light dots — tasteful, not garish */
.bio-term-dot:nth-child(1) { background: rgba(255, 90, 80, 0.48); }
.bio-term-dot:nth-child(2) { background: rgba(255, 185, 48, 0.38); }
.bio-term-dot:nth-child(3) { background: rgba(45, 200, 95, 0.36); }
 
.bio-term-label {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: auto;
  user-select: none;
}
 
/* ─── Terminal Screen ───────────────────────────────────── */
 
.bio-terminal-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
/* Scanline fallback — only applies if dive.css isn't linked */
.bio-terminal-screen > .dd-scanline {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.022) 2px,
    rgba(0, 0, 0, 0.022) 4px
  );
}
 
/* ─── Bio States ────────────────────────────────────────── */
 
.bio-state {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), visibility 0s 0.28s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
 
.bio-state.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s var(--ease), visibility 0s 0s;
  z-index: 2;
}
 
/* ─── Stats inside terminal — scoped overrides ─────────── */
/*
   The global .stat/.stat-num are sized for the full page.
   Inside the compact terminal they need to breathe differently.
*/
 
.bio-state .stat {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
 
.bio-state .stat:first-child {
  border-top: 1px solid var(--line);
}
 
.bio-state .stat:hover .stat-num {
  color: var(--blue-hi);
}
 
.bio-state .stat-num {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  margin-bottom: 4px;
  line-height: 1;
}
 
/* "Too Much / Motor Oil" two-line treatment */
.bio-state .stat-num--sub {
  font-family: var(--f-display);
  font-size: clamp(0.72rem, 1.3vw, 0.95rem) !important;
  font-weight: 400;
  color: var(--ink-faint) !important;
  letter-spacing: 0.02em;
  margin-top: -3px;
  margin-bottom: 0;
}
 
.stat-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0;
}
 
/* ─── Image states ──────────────────────────────────────── */
 
.bio-state-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default: desaturated, slightly dark — feels archival */
  filter: brightness(0.72) contrast(1.18) saturate(0.38) grayscale(0.2);
  transition: filter 0.3s var(--ease);
}
 
.bio-state.is-active .bio-state-img {
  filter: brightness(0.8) contrast(1.2) saturate(0.5);
}
 
/* ─── Motor Oil Easter Egg ──────────────────────────────── */
 
.bio-oil-glitch {
  font-family: var(--f-mono);
  font-size: clamp(0.65rem, 1.4vw, 0.88rem);
  color: #ff3366;
  text-align: center;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  animation: bioGlitchText 0.17s steps(3) infinite;
}
 
@keyframes bioGlitchText {
  0%   { transform: translate(0, 0);      clip-path: none; }
  22%  { transform: translate(-3px, 1px); clip-path: inset(0 0 55% 0); color: #4878f8; }
  44%  { transform: translate(2px, -2px); clip-path: inset(42% 0 0 0);  color: #ff3366; }
  66%  { transform: translate(-1px, 2px); clip-path: inset(18% 0 28% 0);}
  88%  { transform: translate(1px, 0);    clip-path: none; }
  100% { transform: translate(0, 0);      clip-path: none; }
}
 
/* ─── Terminal Footer ───────────────────────────────────── */
 
.bio-terminal-footer {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 7, 14, 0.97);
  min-height: 36px;
}
 
.bio-meta-text {
  font-family: var(--f-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-hi);
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
  /* Prevent layout shift when text changes */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
 
.bio-terminal:hover .bio-meta-text { opacity: 1; }
 
.bio-status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 7px rgba(72, 120, 248, 0.8);
  flex-shrink: 0;
  animation: pulseDot 2.6s ease-in-out infinite;
}
 
/* ─── Mobile ────────────────────────────────────────────── */
 
@media (max-width: 900px) {
  .about-grid.interactive-bio {
    grid-template-columns: 1fr;
    gap: 44px;
  }
 
  .about-visual-column {
    position: relative;
    top: 0;
  }
}
 
@media (max-width: 580px) {
  .about-grid.interactive-bio {
    gap: 36px;
  }
 
  .bio-terminal-screen {
    aspect-ratio: 3 / 2;
  }
 
  .bio-state {
    padding: 20px;
  }
}

@keyframes fadeUp  { 0% { opacity: 0; transform: translateY(16px) translateZ(0); } 100% { opacity: 1; transform: translateY(0) translateZ(0); } }
@keyframes fadeIn  { 0% { opacity: 0; } 100% { opacity: 1; } }


/* ─────────────────────────────────────────────────────────────
   📱 MOBILE MODE — iOS / Android (PWA-style)
   Added automatically. Targets phones (≤ 768px) + touch devices.
   • Safe-area insets (notch, home indicator)
   • Momentum scrolling
   • No tap highlight, no text-size auto-adjust
   • 16px inputs (prevents iOS auto-zoom)
   • Custom cursor disabled
   • Larger tap targets (≥ 44px)
   ───────────────────────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  :root {
    --safe-top:    env(safe-area-inset-top);
    --safe-right:  env(safe-area-inset-right);
    --safe-bottom: env(safe-area-inset-bottom);
    --safe-left:   env(safe-area-inset-left);
  }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  html, body {
    cursor: auto !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
  }
  body {
    -webkit-overflow-scrolling: touch;
    padding-top:    env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    padding-left:   env(safe-area-inset-left, 0);
    padding-right:  env(safe-area-inset-right, 0);
  }
  *, a, button, input, textarea, select, label { cursor: auto !important; }
  .cursor, .cursor-dot, .grain { display: none !important; }

  /* Prevent iOS zoom on focus */
  input, select, textarea { font-size: 16px !important; }

  /* Bigger tap targets */
  a, button, [role="button"], .btn, .nav-icon, .close-btn,
  .bl-close, .bl-prev, .bl-next, .lb-close, .lb-prev, .lb-next,
  .blog-filter-btn, .audio-play-btn, .entry-expand-btn,
  .dd-close-btn, .dd-nav-btn {
    min-height: 44px;
    min-width:  44px;
    touch-action: manipulation;
  }
}

/* ─── style.css mobile layout (hero / about / contact / nav) ─── */
@media (max-width: 768px) {
  :root { --pad: 18px; }

  .navbar {
    padding: 14px var(--pad);
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .nav-links { display: none; }
  .nav-icon  { display: inline-flex; }
  .logo { font-size: 0.9rem; letter-spacing: 0.18em; }

  /* Hero */
  .hero { min-height: auto; padding: 110px var(--pad) 60px; }
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hero-left  { width: 100%; padding-right: 0; border-right: none; }
  .hero-visual { width: 100%; aspect-ratio: 16 / 9; min-height: 260px; margin-top: 8px; }
  .hero-eyebrow { font-size: 0.6rem; }
  .hero-title { font-size: clamp(2.2rem, 11vw, 4rem); line-height: 1; }
  .hero-sub   { font-size: 1rem; max-width: 100%; }
  .hero-actions { flex-wrap: wrap; gap: 10px; }
  .btn, .btn-primary, .btn-ghost { width: 100%; justify-content: center; padding: 14px 18px; }
  .hero-foot, .hero-status { font-size: 0.6rem; }
  /* marquee-track font-size is set in its own rule (0.58rem) — no override needed */

  /* Section padding reduction on mobile */
  section { padding: 48px var(--pad); }

  /* About */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .about-side, .about-text-column, .about-visual-column { width: 100%; }
  .about-text { font-size: 1rem; line-height: 1.6; }

  .bio-terminal { width: 100%; max-width: 100%; }
  .bio-terminal-screen { padding: 16px; font-size: 0.78rem; }
  .bio-extended-inner { padding: 16px; }
  .bio-state-img { width: 100%; height: auto; }

  /* Section headings */
  h2 { font-size: clamp(1.7rem, 8vw, 3rem); }
  .section-head { padding: 60px var(--pad) 24px; }
  .section-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-num { font-size: 0.6rem; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px; padding: 60px var(--pad) calc(60px + env(safe-area-inset-bottom));
  }
  .contact-channels { gap: 12px; }
  .contact-channel  { padding: 16px; min-height: 64px; }
  .contact-email    { font-size: clamp(1.1rem, 5vw, 1.6rem); word-break: break-all; }

  /* Footer */
  .footer {
    flex-direction: column; gap: 14px; text-align: center;
    padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  /* Lightbox / drawer */
  .lightbox { padding: 0; }
  .lb-figure { max-width: 100vw; max-height: 80vh; }
  .lb-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .side-drawer {
    width: 100vw !important; max-width: 100vw;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* Constellation/category fallback */
  .category-hub { width: 84px !important; height: 84px !important; }
}

/* iOS safe-area for notched landscape */
@media (max-width: 932px) and (orientation: landscape) {
  .navbar { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
  .hero { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
}