/* ─── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07090f;
  --surface:   #0d1117;
  --surface2:  #111827;
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(0,212,255,0.35);
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,0.12);
  --cyan-mid:  rgba(0,212,255,0.25);
  --purple:    #7c3aed;
  --purple-dim:rgba(124,58,237,0.15);
  --text:      #eef2f7;
  --muted:     #8892a4;
  --muted2:    #4a5568;
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Cursor Glow ───────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
  z-index: 0;
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(7,9,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 48px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  padding: 9px 22px;
  border: 1px solid var(--border-h);
  border-radius: 100px;
  color: var(--cyan) !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  background: var(--cyan-dim);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}

.nav-toggle { display: none; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
}
.btn-primary:hover {
  background: #33ddff;
  box-shadow: 0 0 32px rgba(0,212,255,0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ─── Section Shared ────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-header {
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Reveal Animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 640px; height: 640px;
  top: -160px; right: -120px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  animation: orb-float 8s ease-in-out infinite;
}
.orb-2 {
  width: 480px; height: 480px;
  bottom: -80px; right: 30%;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  animation: orb-float 11s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.04); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  animation: hero-in 1s ease both;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.stat { text-align: left; }
.stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--muted2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: 3px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: var(--muted2);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ─── Work ──────────────────────────────────────────────── */
.work {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.work-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border-h);
}

.work-card--featured {
  grid-column: 1 / -1;
}

.work-card--featured .work-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.work-card-inner {
  height: 100%;
}

.work-card-media {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.work-card--featured .work-card-media {
  aspect-ratio: 4/1;
  min-height: unset;
}

.work-card--featured .work-card-media--video video,
.work-card--featured .work-card-media--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Work Placeholders */
.work-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wp-divzero {
  background: linear-gradient(135deg, #060c18 0%, #0a1628 50%, #0d0a1a 100%);
}
.wp-divzero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(0,212,255,0.15) 0%, transparent 60%),
    radial-gradient(circle at 30% 80%, rgba(124,58,237,0.12) 0%, transparent 50%);
}

.wp-niantic {
  background: linear-gradient(135deg, #050f0a 0%, #071a0e 60%, #050f0a 100%);
}
.wp-niantic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(0,255,150,0.12) 0%, transparent 60%);
}

.wp-xr {
  background: linear-gradient(135deg, #100818 0%, #1a0b28 60%, #100818 100%);
}
.wp-xr::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.18) 0%, transparent 60%);
}

.wp-sniper {
  background: linear-gradient(135deg, #0f0a05 0%, #1a1005 60%, #0f0a05 100%);
}
.wp-sniper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(255,160,0,0.1) 0%, transparent 60%);
}

.wp-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
}

.wp-sublabel {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
  margin-top: 8px;
  text-transform: uppercase;
}

/* Animated grid for Div Zero */
.wp-grid-anim {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: grid-move 6s linear infinite;
}

@keyframes grid-move {
  from { background-position: 0 0; }
  to   { background-position: 32px 32px; }
}

.work-card-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-card--featured .work-card-content {
  padding: 36px 40px 40px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.work-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.work-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted2);
  letter-spacing: 0.04em;
}

.work-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}

.work-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.work-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 5px 11px;
  border-radius: 100px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition), gap var(--transition);
  width: fit-content;
}
.work-link:hover { color: var(--cyan); gap: 10px; }
.work-link span { font-size: 1rem; }

/* ─── Lightbox ──────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.lb-open { display: flex; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
}
.lb-img {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  z-index: 1;
  animation: lbIn 0.2s ease;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lb-prev { left: 20px; }
.lb-next { right: 70px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.18); }
.lb-prev:disabled, .lb-next:disabled { opacity: 0.2; cursor: default; }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
  z-index: 2;
}
.lb-video {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  z-index: 1;
  animation: lbIn 0.2s ease;
  display: none;
}
#lightbox.lb-video-mode .lb-video { display: block; }
#lightbox.lb-video-mode .lb-img   { display: none; }
#lightbox.lb-video-mode .lb-prev,
#lightbox.lb-video-mode .lb-next,
#lightbox.lb-video-mode .lb-counter { display: none; }

/* ─── Work Card Gallery Strip ───────────────────────────── */
.work-card-gallery {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 3px;
  margin: 14px 0 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-h) transparent;
}
.work-card-gallery::-webkit-scrollbar { height: 2px; }
.work-card-gallery::-webkit-scrollbar-track { background: transparent; }
.work-card-gallery::-webkit-scrollbar-thumb {
  background: var(--border-h);
  border-radius: 2px;
}
.work-card-gallery img {
  height: 58px;
  width: auto;
  min-width: 80px;
  object-fit: cover;
  border-radius: 5px;
  opacity: 0.82;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.work-card-gallery img:hover {
  opacity: 1;
  transform: scale(1.06);
  border-color: var(--cyan);
}

/* ─── Stack ─────────────────────────────────────────────── */
.stack {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stack-group {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
}
.stack-group:last-child { border-right: none; }

.stack-group h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.stack-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-group li {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.4;
  transition: color var(--transition);
  padding-left: 14px;
  position: relative;
}
.stack-group li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--muted2);
  font-size: 0.7rem;
  top: 2px;
  transition: color var(--transition);
}
.stack-group:hover li { color: var(--text); }
.stack-group:hover li::before { color: var(--cyan); }

/* ─── How I Lead ────────────────────────────────────────── */
.operate-section {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.op-image-wrap {
  margin-top: 48px;
  text-align: center;
}
.op-image-wrap img {
  max-width: 100%;
  width: 860px;
  border-radius: var(--radius-lg);
  display: block;
  margin: 0 auto;
}
.op-flow {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  margin-top: 48px;
  gap: 0;
}
.op-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), background var(--transition);
  margin: 4px;
}
.op-card:hover {
  border-color: var(--border-h);
  background: var(--surface);
}
.op-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  opacity: 0.7;
  display: block;
  margin-bottom: 12px;
}
.op-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.op-card p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}
.op-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  opacity: 0.45;
}
.op-arrow svg {
  width: 36px;
  height: 22px;
}
.op-connector {
  grid-column: 1 / -1;
  height: 48px;
  position: relative;
}
.op-connector--from-right::before {
  content: '';
  position: absolute;
  top: 0;
  right: calc(50% - 28px);
  width: calc(50% + 28px);
  height: 100%;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-bottom-right-radius: 16px;
}
.op-connector--from-right::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: calc(50% - 28px);
  width: calc(50% + 28px);
  height: 50%;
  border-left: 1px solid var(--border);
  border-bottom-left-radius: 0;
}
/* Arrow dot at the end of connector pointing into col-1 */
.op-connector--from-right .op-connector-arrow {
  position: absolute;
  bottom: -1px;
  left: calc(50% - 28px - 4px);
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

/* ─── Platform Principles ────────────────────────────────── */
.pp-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.pp-item {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.pp-item:nth-child(even) { border-right: none; }
.pp-item:nth-last-child(-n+2) { border-bottom: none; }
.pp-item:hover { background: var(--bg); }
.pp-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  opacity: 0.85;
  display: block;
  margin-bottom: 8px;
}
.pp-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Product & Testing ──────────────────────────────────── */
.pt-section {
  padding: 120px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.pt-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 48px;
}
.pt-item {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.pt-item:nth-child(even) { border-right: none; }
.pt-item:last-child { border-bottom: none; }
.pt-item:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: none; }
.pt-item:hover { background: var(--surface); }
.pt-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pt-item p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── About ─────────────────────────────────────────────── */
.about {
  padding: 140px 0;
}

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

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 0.975rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-links {
  display: flex;
  gap: 24px;
  margin-top: 36px;
}

.about-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color var(--transition), border-color var(--transition);
}
.about-link:hover { color: var(--cyan); border-color: var(--cyan); }

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.about-card:hover { border-color: var(--border-h); }

.about-card--mono { background: var(--surface2); }

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.al-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.al-value {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.4;
}

/* ─── Contact ───────────────────────────────────────────── */
.contact {
  padding: 100px 0 140px;
}

.contact-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.contact-inner p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted2);
}

.contact-links a {
  color: var(--muted);
  transition: color var(--transition);
}
.contact-links a:hover { color: var(--cyan); }

/* Contact form */
.contact-form {
  text-align: left;
  margin: 0 0 32px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-form-field:last-of-type { margin-bottom: 0; }

.contact-form-field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.contact-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.contact-form-field select option {
  background: var(--surface2);
  color: var(--text);
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  border-color: var(--border-h);
  background: var(--surface2);
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: var(--muted2);
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form-btn {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}


@media (max-width: 600px) {
  .contact-form-row { grid-template-columns: 1fr; }
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted2);
  font-family: var(--font-mono);
}

/* ─── Work card video media ─────────────────────────────── */
.work-card-media--video {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}
.work-card-media--video::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 36%, rgba(0,0,0,0.14) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.07), rgba(0,0,0,0.12));
}

.work-card-media--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.work-card:hover .work-card-media--video video {
  transform: scale(1.03);
}
.work-card-media--video .expand-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.work-card-media--video .expand-hint svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}
.work-card:hover .work-card-media--video .expand-hint {
  opacity: 1;
}
.work-card-logo {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 2;
}
.work-card-logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* ─── Work card image media ─────────────────────────────── */
.work-card-media--img {
  overflow: hidden;
}
.work-card-media--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.work-card:hover .work-card-media--img img {
  transform: scale(1.04);
}

/* ─── Code Section ──────────────────────────────────────── */
.code-section {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.code-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color var(--transition), transform var(--transition);
}
.code-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.code-card-header {
  margin-bottom: 16px;
}

.code-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  opacity: 0.8;
}

.code-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.code-card > p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.code-snippet {
  background: #060810;
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.code-snippet pre {
  margin: 0;
}

.code-snippet code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: #c9d1d9;
  white-space: pre;
}

.c-comment { color: #6e7681; }
.c-kw      { color: #ff7b72; }

/* Platforms shipped */
.platforms-shipped {
  margin: 0 0 48px;
  text-align: center;
}
.platforms-shipped .section-tag {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.platform-grid span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.05em;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.platform-grid span:hover {
  border-color: var(--border-h);
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* Stack strip */
.stack-strip {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stack-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.stack-item:hover {
  background: rgba(0,212,255,0.04);
  color: var(--text);
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.stack-div {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Writing Section ───────────────────────────────────── */
.writing {
  padding: 120px 0;
}

.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 24px;
}

.writing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition);
}
.writing-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
}

.writing-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.writing-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.writing-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted2);
  letter-spacing: 0.04em;
}

.writing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.writing-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

.writing-card--cta {
  background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, rgba(124,58,237,0.07) 100%);
  border-color: rgba(0,212,255,0.2);
  justify-content: center;
}

.writing-card--cta h3 {
  font-size: 1.3rem;
}

/* ─── About Portrait ────────────────────────────────────── */
.about-portrait {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(20%);
  transition: filter var(--transition);
}
.about-portrait:hover img { filter: grayscale(0%); }



/* ─── Div Zero featured framing override ───────────────── */
.work-card--divzero .work-card-inner {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.work-card--divzero .work-card-media--square-left {
  aspect-ratio: 4/1;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border-radius: 0;
}

.work-card--divzero .work-card-media--square-left video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.work-card--divzero .work-card-logo {
  left: 20px;
  bottom: 20px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stack-strip { flex-wrap: wrap; }
  .stack-div { display: none; }
  .stack-item { min-width: 45%; border-bottom: 1px solid var(--border); }
  .writing-grid { grid-template-columns: 1fr 1fr; }
  .writing-card--cta { grid-column: 1 / -1; }
  .code-grid { grid-template-columns: 1fr 1fr; }
  .op-flow { grid-template-columns: 1fr 40px 1fr; }
}

@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; gap: 24px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(7,9,15,0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
  }

  .hero { padding: 100px 24px 60px; }
  .scroll-indicator { left: 50%; transform: translateX(-50%); }

  .work-grid { grid-template-columns: 1fr; }
  .work-card--featured { grid-column: auto; }
  .work-card--featured .work-card-inner { grid-template-columns: 1fr; }
  .work-card--divzero .work-card-media--square-left { border-radius: 0; aspect-ratio: 64 / 27; min-height: 0; height: auto; }
  .work-card--featured .work-card-media { aspect-ratio: 16/9; min-height: unset; height: auto; }
  .work-card--featured .work-card-content { padding: 28px; }

  .stack-grid { grid-template-columns: 1fr 1fr; }
  .stack-group { border-right: none; border-bottom: 1px solid var(--border); }
  .stack-group:nth-child(odd) { border-right: 1px solid var(--border); }
  .stack-group:nth-last-child(-n+2) { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .code-grid { grid-template-columns: 1fr; }
  .op-flow { grid-template-columns: 1fr; }
  .op-arrow { display: none; }
  .op-connector { height: 20px; }
  .op-connector--from-right::before,
  .op-connector--from-right::after { display: none; }
  .pp-grid { grid-template-columns: 1fr; }
  .pp-item:nth-child(even) { border-right: none; }
  .pp-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .pp-item:last-child { border-bottom: none; }
  .pt-list { grid-template-columns: 1fr; }
  .pt-item:nth-child(even) { border-right: none; }
  .pt-item:last-child:nth-child(odd) { grid-column: auto; }
  .pt-item { border-bottom: 1px solid var(--border); border-right: none; }
  .pt-item:last-child { border-bottom: none; }
  .writing-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 20px 60px; }
  .container { padding: 0 20px; }
  .work { padding: 80px 0; }
  .work-card-content { padding: 24px; }
  .stack-grid { grid-template-columns: 1fr; }
  .stack-group:nth-child(odd) { border-right: none; }
  .stack-group:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stack-group:last-child { border-bottom: none; }
  .footer .container { flex-direction: column; gap: 12px; text-align: center; }
}
