:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --surface: #161b22;
  --surface-2: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #7d8590;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --dim: #c9d1d9;
  --dim-soft: rgba(255, 255, 255, 0.12);
  --radius: 12px;
  --maxw: 1180px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--accent);
  color: #0d1117;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #21262d 0%, var(--bg) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name { font-size: 0.98rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="true"] {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.primary-nav .nav-cta {
  margin-left: 4px;
  color: #0d1117;
  background: var(--accent);
  font-weight: 600;
}
.primary-nav .nav-cta:hover { background: #ffffff; color: #0d1117; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 24px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 0 0 rgba(182, 242, 74, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(182, 242, 74, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(182, 242, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(182, 242, 74, 0); }
}

.hero h1 {
  max-width: 17ch;
  margin-bottom: 20px;
  font-size: clamp(2.15rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  background: linear-gradient(96deg, #ffffff 0%, var(--accent) 45%, var(--dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 56ch;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Terminal */

.terminal {
  margin-bottom: 30px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #21262d;
}
.terminal-dot:nth-child(1) { background: #ffffff; }
.terminal-dot:nth-child(2) { background: #c9d1d9; }
.terminal-dot:nth-child(3) { background: #8b949e; }

.terminal-title {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.terminal-body {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.75;
  color: #c9d1d9;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 168px;
}

.t-prompt { color: var(--accent); }
.t-text { color: #c9d1d9; }
.t-dim { color: #8a8a92; }

.t-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--dim);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Hero actions and stats */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #0d1117; }
.btn-primary:hover { background: #ffffff; }

.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: #6e7681; background: var(--surface-2); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat { padding: 18px 20px; background: var(--bg); }

.stat dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat dd { font-size: 0.98rem; font-weight: 600; }

/* Hero visual */

.hero-visual {
  position: relative;
  padding: 18px 0 34px;
}

.sys-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  animation: float 7s ease-in-out infinite;
}

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

.sys-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.sys-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #21262d;
}
.sys-dot:nth-child(1) { background: #ffffff; }
.sys-dot:nth-child(2) { background: #c9d1d9; }
.sys-dot:nth-child(3) { background: #8b949e; }

.sys-title {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.sys-frame {
  position: relative;
  margin: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #0d1117;
  aspect-ratio: 1408 / 768;
}

.sys-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sys-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.16) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: scan 5.5s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}

.sys-caption {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.sys-caption-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 10px var(--dim);
}

/* ---------- Upwork trust band ---------- */

.trust {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 100%);
  overflow: hidden;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}

.trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.trust-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dim);
  box-shadow: 0 0 12px var(--dim);
  animation: pulse 2.4s ease-out infinite;
}

.trust-title {
  max-width: 20ch;
  margin-bottom: 26px;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.trust-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  list-style: none;
  margin-bottom: 30px;
}

.trust-facts li {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
  border-left: 2px solid rgba(255, 255, 255, 0.4);
}

.trust-facts strong {
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.trust-facts span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Animated spotlight frame */

.spotlight {
  display: block;
  border-radius: 16px;
  text-decoration: none;
  animation: float 8s ease-in-out infinite;
}

.spotlight:hover { text-decoration: none; }

.spotlight-frame {
  display: block;
  padding: 2px;
  border-radius: 16px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0) 200deg,
    rgba(255, 255, 255, 0.9) 285deg,
    rgba(182, 242, 74, 1) 320deg,
    rgba(255, 255, 255, 0.95) 340deg,
    rgba(255, 255, 255, 0.9) 355deg,
    rgba(255, 255, 255, 0) 360deg
  );
  animation: spin 5.5s linear infinite;
}

.spotlight:hover .spotlight-frame { animation-duration: 2.4s; }

.spotlight-body {
  position: relative;
  display: block;
  padding: 10px;
  border-radius: 14px;
  background: #161b22;
  overflow: hidden;
}

.spotlight-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.spotlight-sweep {
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background: linear-gradient(
    115deg,
    transparent 38%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.05) 54%,
    transparent 62%
  );
  background-size: 260% 260%;
  animation: sweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% { background-position: 180% 0; }
  55%, 100% { background-position: -80% 0; }
}

@keyframes spin {
  to { filter: hue-rotate(360deg); }
}

/* ---------- Sections ---------- */

.section { padding: 96px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 62ch; margin-bottom: 48px; }

.section-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-desc { color: var(--muted); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.prose p { margin-bottom: 18px; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }

.about-facts {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.facts-title {
  margin-bottom: 16px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.facts-list { list-style: none; }

.facts-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}
.facts-list li:first-child { border-top: 0; }

.facts-key { color: var(--muted); flex-shrink: 0; }
.facts-val { text-align: right; font-weight: 500; }

/* ---------- Experience timeline ---------- */

.timeline {
  position: relative;
  list-style: none;
  padding-left: 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--border) 28%, var(--border) 100%);
}

.tl-item { position: relative; padding-bottom: 22px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-marker {
  position: absolute;
  top: 26px;
  left: -34px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--bg-alt);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.tl-marker-muted {
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(147, 163, 179, 0.14);
}

.tl-card {
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.tl-card:hover { border-color: #6e7681; }

.tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px 20px;
}

.tl-role {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

.tl-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  background: rgba(182, 242, 74, 0.12);
  border: 1px solid rgba(182, 242, 74, 0.3);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  vertical-align: middle;
}

.tl-org {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.tl-org a { color: inherit; }
.tl-org a:hover { text-decoration: underline; }

.tl-tag {
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--accent-soft);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.tl-date {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.tl-type {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tl-place {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.tl-desc {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
}

.tl-card .work-meta { margin-bottom: 0; }

/* ---------- Stack ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: #6e7681; transform: translateY(-2px); }

.card h3 { margin-bottom: 14px; font-size: 1.05rem; }

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.stack-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.card:hover .stack-chip { color: var(--text); border-color: #6e7681; }
.card:hover .stack-logo { opacity: 1; transform: scale(1.06); }

/* ---------- Field lab gallery ---------- */

.lab-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 14px;
}

.lab-item {
  position: relative;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #161b22;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.lab-item::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--media);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.2) brightness(0.6);
  opacity: 0.5;
  transform: scale(1.05);
  transition: transform 0.6s ease, opacity 0.4s ease;
  pointer-events: none;
}

.lab-item:hover,
.lab-item:focus-visible { border-color: var(--accent); transform: translateY(-2px); }

.lab-item:hover::before { transform: scale(1.12); opacity: 0.62; }

.lab-item img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease, filter 0.4s ease;
}

.lab-item:hover img { transform: scale(1.03); filter: saturate(1.08); }

.lab-wide { grid-column: span 2; }

.lab-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.6);
  backdrop-filter: blur(4px);
}

.lab-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  margin: -8px 0 0 -5px;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--accent);
}

.lab-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(1, 4, 9, 0.5) 100%);
  pointer-events: none;
}

.lab-empty {
  padding: 34px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.lab-empty code {
  padding: 2px 7px;
  background: var(--surface-2);
  border-radius: 5px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
}

.lab-empty[hidden] { display: none; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  background: rgba(1, 4, 9, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] { display: none; }

.lightbox-figure {
  max-width: min(1200px, 92vw);
  max-height: 82vh;
}

.lightbox-stage { display: flex; }

.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: 82vh;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0d1117;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}

.lightbox-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(33, 38, 45, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }

.lightbox-close { top: 22px; right: 22px; }

.lightbox-nav { top: 50%; margin-top: -23px; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }

/* ---------- Featured project spotlight ---------- */

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 28px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(0, 173, 216, 0.07) 0%, transparent 42%), var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.9);
  transition: border-color 0.25s ease;
}

.spotlight-card:hover { border-color: #6e7681; }

.spotlight-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spotlight-tag {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

.spotlight-name { margin-bottom: 6px; }

.spotlight-logo {
  width: 218px;
  max-width: 100%;
  height: auto;
  display: block;
}

.spotlight-tagline {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.spotlight-body {
  max-width: 58ch;
  margin-bottom: 22px;
  color: var(--muted);
}

.spotlight-body code {
  padding: 1px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85em;
}

.spotlight-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
  padding: 0;
  list-style: none;
}

.spotlight-stack li {
  padding: 4px 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.spotlight-card:hover .spotlight-stack li {
  color: var(--text);
  border-color: #6e7681;
  transform: translateY(-1px);
}

.spotlight-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.spotlight-facts strong { color: var(--text); }

.spotlight-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spotlight-visual { min-width: 0; }

.spotlight-visual .terminal { margin-bottom: 0; min-height: 0; }
.spotlight-visual .terminal-body { min-height: 322px; }

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.work-card:hover { border-color: #6e7681; transform: translateY(-2px); }

.work-title { margin-bottom: 10px; font-size: 1.2rem; }

.work-desc { margin-bottom: 18px; color: var(--muted); font-size: 0.95rem; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  margin-top: auto;
  list-style: none;
}

.work-meta li {
  padding: 3px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.work-link { font-size: 0.9rem; font-weight: 600; }

/* ---------- Social recognition cards ---------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.social-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand, var(--border));
  box-shadow: 0 26px 60px -40px rgba(0, 0, 0, 0.95);
}

.social-linkedin { --brand: #ffffff; --brand-soft: var(--accent-soft); }
.social-facebook { --brand: #c9d1d9; --brand-soft: var(--dim-soft); }
.social-instagram { --brand: #d8d8dd; --brand-soft: rgba(255, 255, 255, 0.08); }

.social-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #161b22;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
}

.social-media::before {
  content: "";
  position: absolute;
  inset: -12%;
  background-image: var(--media);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.2) brightness(0.6);
  opacity: 0.5;
  transform: scale(1.05);
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.social-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.social-media:hover::before { transform: scale(1.12); opacity: 0.62; }
.social-media:hover img { transform: scale(1.04); }

.social-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 60%
  );
  background-size: 240% 240%;
  animation: social-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.social-card:nth-child(2) .social-shine { animation-delay: 1.4s; }
.social-card:nth-child(3) .social-shine { animation-delay: 2.8s; }

@keyframes social-sweep {
  0% { background-position: 180% 0; }
  60%, 100% { background-position: -80% 0; }
}

.social-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.social-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--brand, var(--accent));
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

.social-icon { width: 16px; height: 16px; flex-shrink: 0; }

.social-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.social-title {
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.social-caption {
  flex: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand, var(--accent));
}

/* ---------- Education & certifications ---------- */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.col-title {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.edu-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.edu-item { padding: 18px 2px; border-bottom: 1px solid var(--border); }

.edu-item h4 { font-size: 1.02rem; font-weight: 600; }

.edu-org { color: var(--accent); font-size: 0.9rem; font-weight: 500; }

.edu-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
}

/* ---------- Testimonials ---------- */

.voice-columns {
  column-count: 3;
  column-gap: 20px;
}

.voice-card {
  display: flex;
  flex-direction: column;
  break-inside: avoid;
  margin-bottom: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.voice-card:hover {
  border-color: #6e7681;
  transform: translateY(-3px);
  box-shadow: 0 24px 54px -38px rgba(0, 0, 0, 0.95);
}

.voice-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.voice-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #0d1117;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.voice-id { min-width: 0; }

.voice-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.voice-role {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.voice-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.voice-link svg { width: 15px; height: 15px; }

.voice-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.voice-card blockquote { margin-bottom: 14px; }

.voice-card blockquote p {
  color: var(--muted);
  font-size: 0.92rem;
}

.voice-card blockquote p::before { content: "\201C"; margin-right: 2px; }
.voice-card blockquote p::after { content: "\201D"; }

.voice-date {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: #6f7f8d;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .voice-columns { column-count: 2; }
}

@media (max-width: 620px) {
  .voice-columns { column-count: 1; }
  .sky { --orbit-r: 210px; --sky-x: 68%; --sky-y: 88%; }
  .saturn { width: 96px; height: 96px; margin: -48px 0 0 -48px; opacity: 0.3; }
}

/* ---------- Galaxy backdrop ---------- */

.galaxy {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
}

/* ---------- Sky: Saturn orbit ---------- */

.sky {
  --orbit-r: 460px;
  --sky-x: 68%;
  --sky-y: 44%;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orbit-path {
  position: absolute;
  top: var(--sky-y);
  left: var(--sky-x);
  width: calc(var(--orbit-r) * 2);
  height: calc(var(--orbit-r) * 2);
  margin: calc(var(--orbit-r) * -1) 0 0 calc(var(--orbit-r) * -1);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orbit {
  position: absolute;
  top: var(--sky-y);
  left: var(--sky-x);
  width: 0;
  height: 0;
  animation: orbit-spin 240s linear infinite;
}

.saturn {
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  opacity: 0.42;
  animation: orbit-counter 240s linear infinite;
}

.saturn svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 26px rgba(255, 255, 255, 0.28));
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbit-counter {
  from { transform: translate(var(--orbit-r), 0) rotate(0deg); }
  to { transform: translate(var(--orbit-r), 0) rotate(-360deg); }
}

/* ---------- Stillness / third eye ---------- */

.devotion {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.devotion-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 88px;
}

.devotion-art {
  --eye-shift: 0px;
  position: relative;
  display: grid;
  place-items: center;
}

.devotion-art svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  overflow: visible;
}

.devotion-art .mandala {
  transform-origin: 160px 160px;
  animation: mandala-spin 70s linear infinite;
}

.devotion-art .trishul {
  animation: trishul-breathe 5.5s ease-in-out infinite;
}

.devotion-art .eye-halo {
  transform-origin: 160px 120px;
  transform: translateY(calc(var(--eye-shift) * 0.35));
  animation: halo-breathe 5.5s ease-in-out infinite;
}

.devotion-art .eye,
.devotion-art .eye-pupil {
  transform: translateY(var(--eye-shift));
  transition: transform 0.2s linear;
}

.devotion-art .eye-pupil {
  animation: pupil-blink 6.5s ease-in-out infinite;
}

.devotion-art .figure {
  transform-origin: 160px 260px;
  animation: figure-breathe 5.5s ease-in-out infinite;
}

.devotion-art .ground {
  transform-origin: 160px 268px;
  animation: ground-pulse 5.5s ease-in-out infinite;
}

@keyframes mandala-spin {
  to { transform: rotate(360deg); }
}

@keyframes trishul-breathe {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.85; }
}

@keyframes halo-breathe {
  0%, 100% { transform: translateY(calc(var(--eye-shift) * 0.35)) scale(0.92); opacity: 0.7; }
  50% { transform: translateY(calc(var(--eye-shift) * 0.35)) scale(1.08); opacity: 1; }
}

@keyframes pupil-blink {
  0%, 44%, 48%, 100% { opacity: 1; transform: translateY(var(--eye-shift)) scaleY(1); }
  46% { opacity: 0.15; transform: translateY(var(--eye-shift)) scaleY(0.12); }
}

@keyframes figure-breathe {
  0%, 100% { transform: scaleY(0.985); }
  50% { transform: scaleY(1.015); }
}

@keyframes ground-pulse {
  0%, 100% { opacity: 0.25; transform: scaleX(0.9); }
  50% { opacity: 0.55; transform: scaleX(1); }
}

.devotion-copy h2 { margin-bottom: 16px; }
.devotion-copy > p { color: var(--muted); max-width: 54ch; }

.devotion-quote {
  position: relative;
  margin: 26px 0 20px;
  padding: 20px 22px 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
}

.devotion-quote p:last-child { color: var(--muted); font-size: 0.95rem; }

.devotion-mantra {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.5;
}

.devotion-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6e7681;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.devotion-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

@media (max-width: 980px) {
  .devotion-inner { grid-template-columns: 1fr; gap: 40px; }
  .devotion-art svg { max-width: 300px; }

  .sky { --orbit-r: 520px; }
  .orbit { animation-duration: 170s; }
  .saturn { width: 140px; height: 140px; margin: -70px 0 0 -70px; animation-duration: 170s; }
}

/* ---------- Cinematic statement band ---------- */

.statement {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.statement-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.statement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(-1.4%, -1.6%, 0); }
}

.statement-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 22% 50%, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 0.74) 45%, rgba(13, 17, 23, 0.38) 100%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.85) 0%, rgba(13, 17, 23, 0.5) 45%, rgba(1, 4, 9, 0.95) 100%);
}

.statement-beam {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  background-size: 240% 100%;
  animation: beam 9s ease-in-out infinite;
}

@keyframes beam {
  0%, 100% { background-position: 160% 0; }
  50% { background-position: -60% 0; }
}

.statement-inner { max-width: 720px; }

.statement h2 {
  max-width: 16ch;
  margin-bottom: 20px;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.statement-body {
  max-width: 56ch;
  margin-bottom: 30px;
  color: #b0b0b8;
  font-size: 1.04rem;
}

.statement-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.statement-chips li {
  padding: 6px 14px;
  background: rgba(33, 38, 45, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* ---------- Contact ---------- */

.contact-inner { max-width: 720px; }

.contact-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border);
}

.contact-key {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-val { font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer { padding: 34px 0; background: var(--bg-alt); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-note { font-family: var(--mono); font-size: 0.8rem; }

.footer-credit { font-size: 0.74rem; color: var(--muted); }
.footer-credit a { color: var(--muted); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .primary-nav a { padding: 8px 8px; font-size: 0.84rem; }
}

@media (max-width: 980px) {
  .sky { --orbit-r: 300px; --sky-x: 74%; --sky-y: 82%; }
  .saturn { width: 118px; height: 118px; margin: -59px 0 0 -59px; opacity: 0.34; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 560px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr; gap: 34px; }
  .trust-title { max-width: none; }
  .spotlight { max-width: 560px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
  }

  .primary-nav a { display: block; padding: 12px 4px; font-size: 0.95rem; }

  .primary-nav .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero { padding: 60px 0 72px; }
  .hero-actions { margin-bottom: 40px; }
  .section { padding: 72px 0; }

  .hero-visual { padding-bottom: 28px; }

  .timeline { padding-left: 26px; }
  .tl-marker { left: -26px; width: 14px; height: 14px; }
  .tl-card { padding: 20px; }
  .tl-date { white-space: normal; }
  .tl-badge { margin-left: 0; margin-top: 4px; }

  .statement { min-height: 0; padding: 72px 0; }
  .statement-body { font-size: 0.98rem; }

  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  .lab-wide { grid-column: span 2; }

  .spotlight-card { grid-template-columns: 1fr; gap: 30px; padding: 24px; }
  .spotlight-visual .terminal-body { min-height: 0; }

  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-stage img,
  .lightbox-stage video { max-height: 76vh; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .brand-name { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .t-caret { display: none; }
  .statement-media img { animation: none; transform: scale(1.05); }
  .statement-beam { display: none; }
}

/* ---------- Section dots ---------- */

.section-dots {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 56;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 10px 6px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.4);
  backdrop-filter: blur(6px);
}

.section-dots button {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.section-dots button:hover { border-color: var(--accent); }

.section-dots button.on {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.3);
}

.section-dots button::after {
  content: attr(data-label);
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--accent);
  color: #0d1117;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.section-dots button:hover::after,
.section-dots button:focus-visible::after { opacity: 1; }

.section-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 900px) {
  .section-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .section-dots { display: none; }
}
