/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NATAN · AI Systems Implementer · Portfolio
   Design: Dark Editorial × Technical · 2025
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── Google Fonts: loaded in HTML ── */

/* ── Design tokens ──────────────────────────────────── */
:root {
  --black:   #0B0B0B;
  --surface: #111114;
  --surface2:#18181C;
  --white:   #EDECEB;
  --muted:   #EDECEB;
  --dim:     #EDECEB;
  --accent:  #E8FF4B;           /* electric yellow — unexpected, memorable */
  --accent-dim: rgba(232,255,75,0.08);
  --accent-glow:rgba(232,255,75,0.20);
  --border:  rgba(237,236,235,0.07);
  --border-2:rgba(237,236,235,0.14);
  --radius:  10px;
  --radius-lg: 16px;
  --mono: "Space Mono", "Courier New", monospace;
  --sans: "Syne", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: transparent; /* fixed video bg + .site-bg fallback handle this */
  color: var(--white);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* overflow-x on html (not body) — prevents horizontal scroll WITHOUT breaking
   position:sticky on iOS Safari (body overflow-x:hidden kills sticky) */
html { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: rgba(237,236,235,0.15); border-radius: 4px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVIGATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 60px;
  background: rgba(11,11,11,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--border);
  transition: background 200ms ease;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 40px;
  width: 40px;
  object-fit: cover;
  object-position: center 8%;  /* frame the hat + face area */
  border-radius: 50%;
  background: #fff;
  display: block;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 100px;
  transition: color 150ms, background 150ms;
}
.nav-links a:hover { color: var(--white); background: rgba(237,236,235,0.06); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  transition: box-shadow 200ms, transform 150ms;
}
.nav-cta:hover {
  box-shadow: 0 0 0 6px var(--accent-glow);
  transform: scale(1.03);
}
.nav-mobile-btn {
  display: none;
  padding: 8px;
  color: var(--white);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   HERO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 60px;
  overflow: hidden;
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
  z-index: 2;
}
.hero-orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(232,255,75,0.07) 0%, transparent 70%);
  top: -80px; right: -100px;
  animation: orb-float-a 20s ease-in-out infinite;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56,189,248,0.06) 0%, transparent 70%);
  bottom: 10%; left: -80px;
  animation: orb-float-b 25s ease-in-out infinite;
}
.hero-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(232,255,75,0.04) 0%, transparent 70%);
  bottom: 30%; right: 25%;
  animation: orb-float-c 17s ease-in-out infinite;
}

@keyframes orb-float-a {
  0%,100% { transform: translate(0,0) scale(1); }
  40%      { transform: translate(-40px, 30px) scale(1.07); }
  70%      { transform: translate(30px,-25px) scale(0.95); }
}
@keyframes orb-float-b {
  0%,100% { transform: translate(0,0) scale(1); }
  35%      { transform: translate(35px,-30px) scale(1.05); }
  65%      { transform: translate(-20px, 20px) scale(0.97); }
}
@keyframes orb-float-c {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(20px, 30px); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FULL-SITE FIXED VIDEO BACKGROUND
   The video is fixed to the viewport and never moves.
   Scroll position controls how far into the video you are.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Dark fallback — shows if video hasn't loaded yet */
.site-bg {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: -3;
}

/* Video layer */
.site-video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.site-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Semi-transparent overlay — keeps all text readable
   across every section without hiding the video */
.site-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(7, 8, 15, 0.48);
  pointer-events: none;
}

/* Noise overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-status-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-status-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s cubic-bezier(0.4,0,0.6,1) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* Display name */
.hero-name {
  font-family: var(--sans);
  font-size: clamp(52px, 14vw, 160px); /* min reduced: 72→52 so it fits on mobile */
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
  margin-bottom: 28px;
  white-space: nowrap; /* prevent letter spans from wrapping to next line */
}
/* Cursor proximity — individual letter spans */
.prox-letter {
  display: inline-block;
  will-change: transform, color;
}

/* Tagline */
.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--dim);
  line-height: 1.2;
  max-width: 560px;
  margin-bottom: 44px;
}

/* Skill ticker */
.ticker-wrap {
  overflow: hidden;
  margin: 0 -28px 44px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 12px 0;
  position: relative;
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before { left: 0;  background: linear-gradient(to right,  var(--black), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--black), transparent); }
.ticker {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 22s linear infinite;
}
.ticker-item {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ticker-item::after {
  content: "·";
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero CTA */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 100px;
  letter-spacing: -0.01em;
  transition: box-shadow 220ms, transform 150ms;
}
.hero-cta:hover {
  box-shadow: 0 0 0 8px var(--accent-glow);
  transform: translateY(-1px);
}
.hero-cta svg { transition: transform 200ms ease; }
.hero-cta:hover svg { transform: translateY(3px); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION BASE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section {
  padding: 88px 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-full {
  padding: 88px 28px;
}
.section-full .section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: "";
  display: block;
  width: 20px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
}
.section-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  background: var(--surface2);
  border: 0.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 4px;
}

/* Divider between sections */
.section-divider {
  height: 0.5px;
  background: var(--border);
  margin: 0 28px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VISUALIZATIONS (RENDERS)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Compare slider card */
.viz-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 220ms, transform 220ms, box-shadow 220ms;
}
.viz-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.compare {
  position: relative;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  aspect-ratio: 4/3;
  background: var(--surface2);
}

/* Both images fill the container fully */
.compare-after,
.compare-before-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Before image clipped with clip-path — clean and reliable */
.compare-before-img {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0ms; /* instant during drag */
}

/* Divider */
.compare-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.88);
  transform: translateX(-50%);
  z-index: 10;
  transition: background 150ms;
}
.compare-handle.dragging { background: var(--accent); }

.compare-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 11;
  transition: background 150ms, box-shadow 150ms;
  flex-shrink: 0;
}
.compare-handle.dragging .compare-btn {
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-glow);
}

.compare-badge {
  position: absolute;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.58);
  color: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 9px;
  border-radius: 4px;
  z-index: 5;
  transition: opacity 150ms;
  pointer-events: none;
}
.compare-badge-before { left: 10px; }
.compare-badge-after  { right: 10px; }

/* Placeholder when no images */
.viz-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.viz-placeholder-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 0.5px solid rgba(232,255,75,0.3);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.viz-card-info {
  padding: 16px 18px 18px;
}
.viz-card-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.viz-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 300;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WEBSITES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.site-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 220ms, transform 220ms, box-shadow 220ms;
}
.site-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
/* Browser chrome */
.site-chrome {
  background: var(--surface2);
  border-bottom: 0.5px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}
.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.chrome-dot-r { background: rgba(255, 95, 86, 0.6); }
.chrome-dot-y { background: rgba(255,189, 68, 0.5); }
.chrome-dot-g { background: rgba( 68,201,119, 0.5); }
.chrome-bar {
  flex: 1;
  height: 18px;
  background: rgba(255,255,255,0.04);
  border-radius: 4px;
  margin-left: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}
.chrome-bar-text {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-screenshot {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.site-screenshot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.site-screenshot-placeholder {
  width: 100%; height: 100%;
}
.site-info {
  padding: 16px 18px 20px;
}
.site-info-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.site-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.site-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 300;
  line-height: 1.6;
}
.site-link-btn {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 150ms, border-color 150ms, background 150ms;
  margin-top: 2px;
}
.site-link-btn:hover {
  color: var(--accent);
  border-color: rgba(232,255,75,0.3);
  background: var(--accent-dim);
}
.site-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.site-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border);
  padding: 3px 9px;
  border-radius: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VIDEOS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.video-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.video-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--surface2);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0C0E18 0%, #111827 50%, #080C12 100%);
}
.video-rings {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-ring {
  position: absolute;
  border-radius: 50%;
  border: 0.5px solid rgba(232,255,75,0.12);
  animation: ring-pulse 3s ease-in-out infinite;
}
.video-ring-1 { width: 110px; height: 110px; animation-delay: 0s; }
.video-ring-2 { width: 75px;  height: 75px;  animation-delay: 0.4s; }
@keyframes ring-pulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.9; transform: scale(1.04); }
}
.video-play {
  position: relative;
  z-index: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms, box-shadow 200ms;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.video-play:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 10px var(--accent-glow);
}
.video-play svg { margin-left: 3px; }
.video-info {
  padding: 20px 24px 24px;
  text-align: center;
}
.video-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
}
.video-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ABOUT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo-wrap {
  width: 100%;
  aspect-ratio: 2/3;           /* portrait — suits a full-body shot */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f0efeb;          /* matches the photo's white background */
  border: 0.5px solid rgba(232,255,75,0.15);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.about-name {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}
.about-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 6px;
}
.about-location {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.about-bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: #EDECEB;
  margin-top: 24px;
  max-width: 620px;
}
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface2);
  border: 0.5px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  transition: color 150ms, border-color 150ms, background 150ms;
}
.skill-tag:hover {
  color: var(--accent);
  border-color: rgba(232,255,75,0.25);
  background: var(--accent-dim);
}
.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  background: var(--accent);
  padding: 10px 22px;
  border-radius: 100px;
  transition: box-shadow 200ms, transform 150ms;
}
.btn-primary:hover {
  box-shadow: 0 0 0 6px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border: 0.5px solid var(--border-2);
  padding: 10px 22px;
  border-radius: 100px;
  transition: border-color 200ms, color 200ms;
}
.btn-outline:hover {
  border-color: rgba(232,255,75,0.3);
  color: var(--accent);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-links {
  display: flex;
  gap: 8px;
}
.footer-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color 150ms, border-color 150ms, background 150ms;
}
.footer-link:hover {
  color: var(--accent);
  border-color: rgba(232,255,75,0.3);
  background: var(--accent-dim);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   REVEAL ANIMATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16,1,0.3,1),
              transform 600ms cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ── WhatsApp button ──────────────────────────────────── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #25D366;
  padding: 10px 22px;
  border-radius: 100px;
  transition: box-shadow 200ms, transform 150ms;
}
.btn-whatsapp:hover {
  box-shadow: 0 0 0 6px rgba(37,211,102,0.22);
  transform: translateY(-1px);
}

/* ── Video thumbnail (works locally + when hosted) ────── */
.video-thumb-link {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0c14;
}
.video-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease, filter 400ms ease;
}
.video-thumb-link:hover .video-thumb-img {
  transform: scale(1.03);
  filter: brightness(0.72);
}
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(0,0,0,0.3);
  transition: background 250ms ease;
}
.video-thumb-link:hover .video-thumb-overlay { background: rgba(0,0,0,0.48); }
.video-yt-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.52);
  backdrop-filter: blur(6px);
  padding: 5px 14px;
  border-radius: 100px;
  border: 0.5px solid rgba(255,255,255,0.15);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCESSIBILITY / LEGAL / COOKIES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ── High-contrast mode ─────────────────────────────── */
:root.high-contrast {
  --black:   #000000;
  --surface: #0a0a0a;
  --surface2:#111111;
  --white:   #ffffff;
  --muted:   rgba(255,255,255,0.88);
  --dim:     rgba(255,255,255,0.65);
  --accent:  #ffff00;
  --accent-dim: rgba(255,255,0,0.12);
  --accent-glow:rgba(255,255,0,0.28);
  --border:  rgba(255,255,255,0.45);
  --border-2:rgba(255,255,255,0.7);
  --bg-card: rgba(255,255,255,0.08);
  --bg-card-hover: rgba(255,255,255,0.14);
}
:root.high-contrast .site-video-overlay { background: rgba(0,0,0,0.72); }

/* ── Reduce motion ──────────────────────────────────── */
:root.reduce-motion *,
:root.reduce-motion *::before,
:root.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ACCESSIBILITY WIDGET PANEL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Backdrop */
.a11y-backdrop {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(0,0,0,0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 280ms ease;
}
.a11y-backdrop.open { opacity: 1; pointer-events: auto; }

/* Panel — slides in from right on desktop */
.a11y-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 340px; max-width: 100%;
  z-index: 200;
  background: #111116;
  border-left: 0.5px solid var(--border-2);
  display: flex; flex-direction: column;
  transform: translateX(110%);
  transition: transform 320ms cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
}
.a11y-panel.open { transform: translateX(0); }

/* Header */
.a11y-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  background: #141418;
}
.a11y-panel-title-row {
  display: flex; align-items: center; gap: 10px;
  color: var(--accent);
}
.a11y-panel-title {
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--white); margin: 0;
}
.a11y-panel-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms, color 150ms; flex-shrink: 0;
}
.a11y-panel-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.a11y-panel-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Scrollable body */
.a11y-panel-body {
  flex: 1; overflow-y: auto; padding: 8px 0 20px;
  -webkit-overflow-scrolling: touch;
}

/* Groups */
.a11y-group {
  padding: 16px 20px;
  border-bottom: 0.5px solid var(--border);
}
.a11y-group:last-child { border-bottom: none; }
.a11y-group-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}

/* Text size buttons */
.a11y-size-row {
  display: flex; gap: 8px;
}
.a11y-size-btn {
  flex: 1; padding: 9px 4px;
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--muted); background: rgba(255,255,255,0.04);
  border: 0.5px solid var(--border); border-radius: var(--radius);
  transition: all 150ms; cursor: pointer;
}
.a11y-size-btn:hover { color: var(--white); border-color: var(--border-2); }
.a11y-size-btn.active {
  color: var(--black); background: var(--accent); border-color: var(--accent);
}
.a11y-size-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Toggle switch */
.a11y-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.a11y-toggle-row:last-child { margin-bottom: 0; }
.a11y-toggle-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
.a11y-switch {
  position: relative; width: 44px; height: 24px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid var(--border-2); border-radius: 100px;
  cursor: pointer; transition: background 200ms, border-color 200ms;
  flex-shrink: 0;
}
.a11y-switch[aria-checked="true"] {
  background: var(--accent); border-color: var(--accent);
}
.a11y-switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: transform 200ms cubic-bezier(0.16,1,0.3,1), background 200ms;
}
.a11y-switch[aria-checked="true"] .a11y-switch-thumb {
  transform: translateX(20px); background: var(--black);
}
.a11y-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Features list */
.a11y-features {
  list-style: none; display: flex; flex-direction: column; gap: 7px;
}
.a11y-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.a11y-features li span { flex-shrink: 0; font-size: 11px; margin-top: 1px; }
.af-ok  span { color: #4ade80; }
.af-warn span { color: #fbbf24; }
.af-warn { color: #EDECEB; }
.af-warn em { font-style: normal; color: #fbbf24; }

/* Contact block */
.a11y-contact-block {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.a11y-contact-name { font-size: 13px; color: var(--white); font-weight: 500; }
.a11y-contact-link {
  font-size: 12px; color: var(--accent); text-decoration: underline;
}
.a11y-contact-link:hover { opacity: 0.8; }
.a11y-contact-note { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Full statement link */
.a11y-full-link {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  text-decoration: none; margin: 16px 20px 0;
  padding: 12px 14px;
  background: var(--accent-dim);
  border: 0.5px solid rgba(232,255,75,0.2);
  border-radius: var(--radius);
  transition: background 150ms;
}
.a11y-full-link:hover { background: rgba(232,255,75,0.14); }
.a11y-full-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Mobile: slide from bottom */
@media (max-width: 640px) {
  .a11y-panel {
    top: auto; left: 0; right: 0;
    width: 100%; height: 88vh;
    border-left: none;
    border-top: 0.5px solid var(--border-2);
    border-radius: 20px 20px 0 0;
    transform: translateY(110%);
  }
  .a11y-panel.open { transform: translateY(0); }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LEGAL BAR (very bottom of page)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.legal-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 12px 28px;
  background: rgba(7,8,15,0.96);
  border-top: 0.5px solid var(--border);
}
.legal-bar-copy {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.legal-bar-links {
  display: flex; align-items: center; gap: 10px;
}
.legal-link {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  background: none; border: none; cursor: pointer; padding: 0;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  transition: color 150ms;
}
.legal-link:hover { color: var(--accent); }
.legal-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.legal-sep { color: var(--border-2); font-size: 11px; }
.legal-bar-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent); opacity: 0.7;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .legal-bar { padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .legal-bar-badge { display: none; }
}

/* ── Skip link ──────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 20px;
  z-index: 9999;
  background: var(--accent);
  color: var(--black);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

/* ── Floating accessibility button ──────────────────── */
.a11y-fab {
  position: fixed;
  bottom: 28px;
  left: 24px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.a11y-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px var(--accent-glow), 0 4px 20px rgba(0,0,0,0.4);
}
.a11y-fab:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

/* ── Modal overlay ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #141418;
  border: 0.5px solid var(--border-2);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 680px;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slide-up 280ms cubic-bezier(0.16,1,0.3,1);
}
@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
}
.modal-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 150ms, color 150ms;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.modal-body {
  overflow-y: auto;
  padding: 24px;
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  -webkit-overflow-scrolling: touch;
}
.modal-body h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 20px 0 8px;
  letter-spacing: -0.01em;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body h4 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin: 16px 0 6px;
}
.modal-body p  { margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 10px; }
.modal-body li { margin-bottom: 4px; }
.modal-body a  { color: var(--accent); text-decoration: underline; }
.modal-body small { color: var(--dim); }
.modal-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 24px 0;
}

/* ── Footer legal links ─────────────────────────────── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  order: 2;
}
.footer-legal-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 150ms;
}
.footer-legal-link:hover { color: var(--accent); }
.footer-legal-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Cookie banner ──────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: #141418;
  border-top: 0.5px solid var(--border-2);
  padding: 16px 24px;
  animation: slide-up 300ms cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 240px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.cookie-text svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.cookie-text p { margin: 0; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  border: 0.5px solid transparent;
  transition: all 150ms;
}
.cookie-btn-accept {
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
}
.cookie-btn-accept:hover { box-shadow: 0 0 0 4px var(--accent-glow); }
.cookie-btn-decline {
  background: transparent;
  color: var(--muted);
  border-color: var(--border-2);
}
.cookie-btn-decline:hover { color: var(--white); border-color: var(--border-2); }
.cookie-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE CATEGORY TABS
   Shown only on mobile. Hidden on desktop.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mobile-tabs {
  display: none; /* desktop: hidden */
}
.mobile-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 100px;
  border: 0.5px solid var(--border);
  background: transparent;
  transition: color 150ms, border-color 150ms, background 150ms;
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}
.mobile-tab.active {
  color: var(--black);
  background: var(--accent);
  border-color: var(--accent);
}
.mobile-tab-count {
  font-family: var(--mono);
  font-size: 9px;
  background: rgba(0,0,0,0.18);
  border-radius: 100px;
  padding: 1px 6px;
}
.mobile-tab.active .mobile-tab-count {
  background: rgba(0,0,0,0.18);
}

/* Utility: hidden on mobile */
.mobile-hide { display: block; } /* visible on desktop */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — TABLET (≤900px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 900px) {
  /* Nav */
  .nav-links   { display: none; }
  .nav-cta     { display: none; }
  .nav-mobile-btn { display: flex; }

  /* About — tighter on tablet but still side-by-side */
  .about-grid { grid-template-columns: 180px 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 180px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — MOBILE (≤640px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 640px) {

  /* ── Mobile tab bar ─────────────────────────────── */
  .mobile-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    position: sticky;
    top: 54px;          /* sit just below the nav bar */
    z-index: 30;
    background: rgba(7,8,15,0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 0.5px solid var(--border);
  }

  /* Sections hidden by default on mobile — JS activates one */
  #visualizations,
  #websites,
  #videos { display: none; }

  /* Show the active section */
  #visualizations.mob-active,
  #websites.mob-active,
  #videos.mob-active { display: block; }

  /* Hide dividers between sections on mobile */
  .mobile-hide { display: none; }

  /* ── Nav ─────────────────────────────────────────── */
  .nav { padding: 0 20px; height: 54px; }

  /* ── Hero ────────────────────────────────────────── */
  .hero { padding: 78px 20px 44px; min-height: 92vh; }

  /* Shrink orbs — massive on desktop, overwhelming on mobile */
  .hero-orb-1 { width: 240px; height: 240px; filter: blur(60px); }
  .hero-orb-2 { width: 180px; height: 180px; filter: blur(50px); }
  .hero-orb-3 { display: none; } /* REMOVE — too much on small screens */

  .hero-status { font-size: 9px; letter-spacing: 0.12em; margin-bottom: 18px; }

  /* Hero tagline */
  .hero-tagline {
    font-size: clamp(16px, 4.5vw, 22px);
    margin-bottom: 32px;
    max-width: 100%;
  }

  /* CTA button */
  .hero-cta { padding: 11px 22px; font-size: 13px; gap: 10px; margin-top: 0; }

  /* ── Ticker ──────────────────────────────────────── */
  .ticker-wrap { margin: 0 -20px 32px; padding: 10px 0; }
  .ticker-wrap::before,
  .ticker-wrap::after { width: 36px; } /* narrower fade edges */
  .ticker-item { font-size: 9px; padding: 0 14px; gap: 14px; }

  /* ── Sections ────────────────────────────────────── */
  .section      { padding: 52px 20px; }
  .section-full { padding: 52px 20px; }
  .section-divider { margin: 0 20px; }

  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-count  { display: none; }  /* REMOVE — no room on mobile */
  .section-title  { font-size: clamp(22px, 6vw, 30px); }
  .section-label  { font-size: 9px; }

  /* ── Visualizations ──────────────────────────────── */
  .viz-grid { grid-template-columns: 1fr; gap: 12px; }
  .viz-card-info { padding: 12px 14px 14px; }
  .viz-card-title { font-size: 13px; }
  .viz-card-sub   { font-size: 11px; }

  /* Bigger touch target on compare handle */
  .compare-btn { width: 50px; height: 50px; }
  .compare-badge { font-size: 8px; padding: 3px 7px; }

  /* ── Websites ────────────────────────────────────── */
  .sites-grid { grid-template-columns: 1fr; gap: 12px; }
  .site-info  { padding: 12px 14px 14px; }
  .site-name  { font-size: 13px; }
  .site-desc  { font-size: 12px; }
  .site-tag   { font-size: 8px; padding: 3px 8px; }

  /* ── Video ───────────────────────────────────────── */
  .video-wrap { max-width: 100%; }
  .video-info { padding: 14px 18px 18px; text-align: center; }
  .video-title { font-size: 15px; }
  .video-desc  { font-size: 12px; }

  /* ── About ───────────────────────────────────────── */
  /* Stack vertically — photo on top, bio below */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-photo-wrap {
    width: 180px;       /* big enough to appreciate the full body shot */
    max-width: 180px;
    aspect-ratio: 2/3;  /* portrait */
  }
  .about-name { font-size: 22px; }
  .about-role { font-size: 10px; margin-top: 4px; }
  .about-bio  { font-size: 14px; line-height: 1.8; margin-top: 16px; }

  /* Skills — show fewer tags, tighter sizing */
  .skills-grid { gap: 6px; margin-top: 16px; }
  .skill-tag   { font-size: 9px; padding: 5px 10px; }
  /* Hide lower-priority skills on mobile (keep top 8) */
  .skill-tag:nth-child(n+9) { display: none; }

  /* Action buttons — wrap cleanly */
  .about-actions { flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .btn-whatsapp,
  .btn-primary,
  .btn-outline  { padding: 9px 16px; font-size: 12px; gap: 7px; }

  /* ── Footer ──────────────────────────────────────── */
  .footer {
    padding: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-copy { font-size: 9px; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE — SMALL PHONES (≤390px)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 390px) {
  .nav  { padding: 0 16px; }
  .hero { padding: 72px 16px 40px; }

  /* Even smaller phones — orbs get too heavy */
  .hero-orb-1 { width: 160px; height: 160px; }
  .hero-orb-2 { display: none; }

  .ticker-wrap { margin: 0 -16px 24px; }

  .section      { padding: 40px 16px; }
  .section-full { padding: 40px 16px; }
  .section-divider { margin: 0 16px; }

  /* About photo — slightly smaller on tiny phones */
  .about-photo-wrap { width: 140px; max-width: 140px; }
  .about-name  { font-size: 20px; }

  /* Hide even more skills on very small phones */
  .skill-tag:nth-child(n+7) { display: none; }

  .btn-whatsapp,
  .btn-primary,
  .btn-outline { padding: 8px 14px; font-size: 11px; }

  .footer { padding: 18px 16px; }
}
