/* ==========================================================================
   v3c — Neo Blue Kinetic Glass
   Obsidian Sapphire (#040812), Electric Cobalt (#2563EB) & Glacier Cyan (#38BDF8)
   Space Grotesk + Plus Jakarta Sans + JetBrains Mono
   ========================================================================== */

:root {
  --bg-0: #040812;
  --bg-1: #091224;
  --bg-2: #0F1B33;
  --bg-well-deep: #060D1C;
  --glass-shell: rgba(56, 189, 248, 0.04);
  --glass-core: rgba(11, 20, 39, 0.82);

  --ink-primary: #F0F6FF;      /* ~17.4:1 on #040812 */
  --ink-secondary: #C0CFE4;    /* ~11.8:1 on #040812 */
  --ink-muted: #93A8C8;        /* ~7.8:1 on #040812, ~6.8:1 on #0B1427 */

  --blue: #3B82F6;
  --cyan: #38BDF8;
  --cyan-bright: #7DD3FC;      /* ~11.5:1 on #0B1427 */
  --neo-grad: linear-gradient(110deg, #4F94FF 0%, #38BDF8 100%);
  --neo-ink: #030917;          /* ~8.5:1 on neo-grad button */

  --hairline: rgba(148, 186, 238, 0.14);
  --hairline-strong: rgba(148, 186, 238, 0.28);
  --cyan-line: rgba(56, 189, 248, 0.45);

  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-outer: 24px;
  --bezel-pad: 6px;
  --radius-inner: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --container-max: 1240px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background-color: var(--bg-0);
  color: var(--ink-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.66;
  color: var(--ink-primary);
  background-color: var(--bg-0);
  overflow-x: clip;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--neo-ink);
  font-size: 14px;
  font-weight: 700;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==========================================================================
   Kinetic Neo-Blue Ambient Layers (Drifting Aurora + Neural Mesh + Dot Matrix)
   ========================================================================== */
.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

.orb-1 {
  width: 54vw;
  height: 54vw;
  min-width: 480px;
  min-height: 480px;
  top: -22%;
  left: -12%;
  background: radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.34), transparent 64%);
  animation: neoDrift1 24s ease-in-out infinite alternate;
}

.orb-2 {
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  top: 8%;
  right: -14%;
  background: radial-gradient(circle at 55% 40%, rgba(14, 165, 233, 0.25), transparent 64%);
  animation: neoDrift2 30s ease-in-out infinite alternate;
}

.orb-3 {
  width: 42vw;
  height: 42vw;
  min-width: 380px;
  min-height: 380px;
  bottom: -20%;
  left: 28%;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.16), transparent 62%);
  animation: neoDrift3 34s ease-in-out infinite alternate;
}

@keyframes neoDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vw, 6vh) scale(1.16); }
}

@keyframes neoDrift2 {
  from { transform: translate(0, 0) scale(1.04); }
  to { transform: translate(-7vw, 9vh) scale(0.92); }
}

@keyframes neoDrift3 {
  from { transform: translate(0, 0) scale(0.95); }
  to { transform: translate(5vw, -8vh) scale(1.14); }
}

#neural-net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.dot-matrix {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(125, 211, 252, 0.14) 1px, transparent 1.3px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 88% 76% at 50% 35%, #000 32%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 88% 76% at 50% 35%, #000 32%, transparent 92%);
}

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

main, header, .mobile-drawer {
  position: relative;
  z-index: 2;
}

.fonts-loading .reveal-hero {
  opacity: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.neo-grad {
  background: var(--neo-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Liquid Glass Double-Bezel & Interactive Cursor Spotlight
   ========================================================================== */
.glass-shell {
  padding: var(--bezel-pad);
  border-radius: var(--radius-outer);
  background: var(--glass-shell);
  border: 1px solid var(--hairline);
  box-shadow: 0 26px 60px -34px rgba(0, 10, 32, 0.85);
}

.glass-core {
  border-radius: var(--radius-inner);
  background: var(--glass-core);
  border: 1px solid rgba(148, 186, 238, 0.12);
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.14);
}

.spot {
  position: relative;
  overflow: hidden;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 189, 248, 0.13), transparent 64%);
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .spot:hover::before {
    opacity: 1;
  }
}

.spot > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Button-in-Button Neo-Blue Pills
   ========================================================================== */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 150ms var(--ease-out),
    box-shadow 240ms var(--ease-out);
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn--sm {
  min-height: 40px;
  padding: 4px 4px 4px 16px;
  font-size: 14px;
  gap: 10px;
}

.pill-btn--lg {
  min-height: 54px;
  padding: 7px 7px 7px 26px;
  font-size: 15.5px;
}

.pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: transform 240ms var(--ease-out);
}

.pill-btn--sm .pill-icon {
  width: 30px;
  height: 30px;
}

.pill-btn--lg .pill-icon {
  width: 40px;
  height: 40px;
}

.pill-btn--neo {
  background: var(--neo-grad);
  color: var(--neo-ink);
  font-weight: 700;
  box-shadow: 0 8px 26px -10px rgba(56, 189, 248, 0.55);
}

.pill-btn--neo .pill-icon {
  background: rgba(3, 9, 23, 0.16);
  color: var(--neo-ink);
}

.pill-btn--glass {
  background: rgba(56, 189, 248, 0.06);
  color: var(--ink-primary);
  border-color: var(--hairline-strong);
}

.pill-btn--glass .pill-icon {
  background: rgba(148, 186, 238, 0.12);
  color: var(--ink-primary);
}

.copy-label {
  display: inline-block;
  transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.pill-btn.is-swapping .copy-label {
  opacity: 0.4;
  filter: blur(2px);
}

.pill-btn.is-copied {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(56, 189, 248, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .pill-btn--neo:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 32px -10px rgba(56, 189, 248, 0.7);
  }
  .pill-btn--glass:hover {
    border-color: rgba(125, 211, 252, 0.55);
    background: rgba(56, 189, 248, 0.12);
  }
  .pill-btn:hover .pill-icon {
    transform: translate(1.5px, -1.5px) scale(1.06);
  }
  .pill-btn--glass[href="#systems"]:hover .pill-icon {
    transform: translateY(2px) scale(1.05);
  }
}

/* ==========================================================================
   Floating Glass Navigation + Scroll Progress Laser
   ========================================================================== */
.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}

.nav-island {
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1040px;
  padding: 7px 8px 7px 14px;
  border-radius: 999px;
  background: rgba(8, 16, 33, 0.78);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--hairline);
  box-shadow:
    0 18px 42px -20px rgba(0, 8, 28, 0.8),
    inset 0 1px 0 rgba(186, 230, 253, 0.14);
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}

.site-header.is-scrolled .nav-island {
  background: rgba(5, 11, 24, 0.9);
  border-color: rgba(56, 189, 248, 0.25);
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--neo-grad);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 2px 6px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--cyan-line);
  color: var(--cyan-bright);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.nav-links a.is-current {
  color: var(--cyan-bright);
  background: rgba(56, 189, 248, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink-primary);
    background: rgba(148, 186, 238, 0.1);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 150ms var(--ease-out);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.toggle-line {
  position: absolute;
  width: 18px;
  height: 1.75px;
  border-radius: 2px;
  background: var(--ink-primary);
  transition: transform 260ms var(--ease-drawer);
}

.toggle-line--top { transform: translateY(-3.5px); }
.toggle-line--bot { transform: translateY(3.5px); }

.nav-toggle[aria-expanded="true"] .toggle-line--top {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-line--bot {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile Frosted Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 8, 18, 0.96);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 28px 40px;
  opacity: 0;
  transition: opacity 280ms var(--ease-drawer);
}

.mobile-drawer[hidden] { display: none; }
.mobile-drawer.is-open { opacity: 1; }

.mobile-drawer-inner {
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan-bright);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink-primary);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 45ms + 50ms);
}

.mobile-drawer.is-open .drawer-links a {
  opacity: 1;
  transform: translateY(0);
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 8px;
}

.drawer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-primary);
}

.drawer-socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ==========================================================================
   01. Hero + Executive Metrics Strip
   ========================================================================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(104px, 11vh, 134px) 0 clamp(44px, 5vw, 68px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 7px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(11, 20, 39, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.pill-sep {
  color: var(--cyan-bright);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--ink-primary);
  text-wrap: balance;
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: clamp(1rem, 1.15vw, 1.11rem);
  line-height: 1.66;
  color: var(--ink-secondary);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  width: 100%;
  max-width: 56ch;
}

.meta-note {
  font-size: 13px;
  color: var(--ink-muted);
}

.profile-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-secondary);
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 180ms var(--ease-out), text-decoration-color 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .profile-links a:hover {
    color: var(--cyan-bright);
    text-decoration-color: var(--cyan-bright);
  }
}

/* Portrait Glass Tilt Frame */
.hero-portrait {
  min-width: 0;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  perspective: 1100px;
}

.portrait-shell {
  border-color: rgba(56, 189, 248, 0.34);
  transition: transform 260ms var(--ease-out), border-color 260ms var(--ease-out);
  will-change: transform;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #071022;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(4, 8, 18, 0.84) 0%, rgba(4, 8, 18, 0.22) 28%, transparent 52%);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.portrait-plate {
  position: absolute;
  z-index: 2;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(5, 11, 24, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.24);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plate-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}

.plate-role {
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Metrics Strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 20px 20px 18px;
  border-radius: 16px;
  background: var(--glass-core);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  transition: border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .metric-card:hover {
    border-color: var(--cyan-line);
    transform: translateY(-2px);
  }
}

.m-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cyan-bright);
}

.m-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.m-arrow {
  color: var(--ink-muted);
  font-weight: 500;
}

.m-desc {
  font-size: 13.5px;
  line-height: 1.56;
  color: var(--ink-secondary);
}

.js .reveal-hero {
  animation: heroEnter 620ms var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 60ms + 50ms);
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   02. Counter Telemetry Band
   ========================================================================== */
.counter-band {
  padding: 46px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(14, 30, 62, 0.42), rgba(7, 14, 30, 0.52));
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.c-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.c-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.c-lbl {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Shared Section Framing
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 12px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.section-deck {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
  max-width: 48ch;
}

/* ==========================================================================
   03. Interactive Neo-Blue Systems Matrix
   ========================================================================== */
.systems-section {
  padding: clamp(76px, 9vw, 120px) 0;
}

.matrix-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.m-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: rgba(11, 20, 39, 0.72);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-out),
    border-color 200ms var(--ease-out),
    transform 150ms var(--ease-out);
}

.m-tab:active { transform: scale(0.98); }

.m-tab-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.m-tab-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.25;
}

.m-tab.is-active {
  background: rgba(20, 38, 72, 0.9);
  border-color: var(--cyan);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.28);
}

.m-tab.is-active .m-tab-idx { color: var(--cyan-bright); }
.m-tab.is-active .m-tab-name { color: var(--ink-primary); }

@media (hover: hover) and (pointer: fine) {
  .m-tab:not(.is-active):hover {
    background: rgba(18, 33, 62, 0.85);
    border-color: var(--hairline-strong);
  }
  .m-tab:not(.is-active):hover .m-tab-name { color: var(--ink-primary); }
}

.matrix-stage {
  padding: clamp(22px, 3.2vw, 38px);
}

.m-panel {
  animation: panelFade 280ms var(--ease-out) both;
}

.m-panel[hidden] { display: none; }

@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.m-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.m-diagram-col,
.m-copy-col { min-width: 0; }

.diagram-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.mono-tag--cyan { color: var(--cyan-bright); }

.diagram-scroll-hint {
  display: none;
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-bright);
}

.diagram-well {
  background: var(--bg-well-deep);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 16px 14px;
  background-image: radial-gradient(rgba(125, 211, 252, 0.11) 1px, transparent 1px);
  background-size: 18px 18px;
}

.neo-svg {
  width: 100%;
  height: auto;
}

.svg-rail {
  fill: none;
  stroke: #5A7398;
  stroke-width: 1.5;
}

.svg-rail--blue {
  stroke: rgba(56, 189, 248, 0.65);
  stroke-width: 1.75;
}

.svg-rail--dashed {
  stroke: #475E80;
  stroke-dasharray: 4 4;
}

.svg-pulse {
  fill: none;
  stroke: #7DD3FC;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-dasharray: 14 140;
  stroke-dashoffset: 154;
  animation: signalFlow 3.1s linear infinite;
}

.svg-pulse--d1 { animation-delay: 0.4s; }
.svg-pulse--d2 { animation-delay: 1.0s; }
.svg-pulse--d3 { animation-delay: 1.6s; }

@keyframes signalFlow {
  from { stroke-dashoffset: 154; }
  to { stroke-dashoffset: 0; }
}

.svg-box {
  fill: #0D1930;
  stroke: rgba(148, 186, 238, 0.22);
  stroke-width: 1;
}

.svg-box--core {
  fill: #112240;
  stroke: rgba(56, 189, 248, 0.78);
  stroke-width: 1.3;
}

.svg-box--aux {
  fill: #0A1426;
  stroke: rgba(148, 186, 238, 0.16);
}

.svg-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  fill: #A4BCD8;
  letter-spacing: 0.06em;
}

.svg-kicker--cyan { fill: #7DD3FC; }

.svg-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  fill: #F0F6FF;
}

.svg-sub {
  font-family: var(--font-sans);
  font-size: 11.5px;
  fill: #C0CFE4;
}

.svg-center {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: #C0CFE4;
  text-anchor: middle;
}

.m-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  text-wrap: balance;
  margin-bottom: 14px;
}

.m-summary {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
  margin-bottom: 22px;
}

.m-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.m-specs > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.spec-lbl {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.35;
}

.story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--cyan-line);
  background: rgba(56, 189, 248, 0.1);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 150ms var(--ease-out);
}

.story-toggle:active { transform: scale(0.97); }
.story-chevron { display: inline-flex; transition: transform 240ms var(--ease-out); }
.story-toggle[aria-expanded="true"] .story-chevron { transform: rotate(180deg); }

@media (hover: hover) and (pointer: fine) {
  .story-toggle:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--cyan-bright);
  }
}

.story-drawer {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: panelFade 240ms var(--ease-out) both;
}

.story-drawer[hidden] { display: none; }

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

.story-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
  min-width: 0;
}

.story-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan-bright);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-pills span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   04. Asymmetrical Spotlight Bento Dossiers
   ========================================================================== */
.bento-section {
  padding: clamp(72px, 9vw, 118px) 0;
  border-top: 1px solid var(--hairline);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.bento-tile {
  display: flex;
  flex-direction: column;
}

.bento-tile--wide { grid-column: span 7; }
.bento-tile--narrow { grid-column: span 5; }

.bento-core {
  flex: 1;
  padding: clamp(22px, 2.8vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--cyan-bright);
}

.bento-stat {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid var(--hairline);
  color: var(--ink-primary);
}

.bento-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.62rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
  text-wrap: balance;
}

.bento-hook {
  font-size: 15px;
  line-height: 1.64;
  color: var(--ink-secondary);
}

.dossier-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  margin-top: auto;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: rgba(56, 189, 248, 0.06);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 150ms var(--ease-out);
}

.dossier-btn:active { transform: scale(0.97); }

.dossier-plus {
  position: relative;
  width: 14px;
  height: 14px;
}

.dossier-plus::before,
.dossier-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--cyan-bright);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease-out);
}

.dossier-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.dossier-btn[aria-expanded="true"] {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.16);
}

.dossier-btn[aria-expanded="true"] .dossier-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
  .dossier-btn:hover {
    border-color: var(--cyan-bright);
    background: rgba(56, 189, 248, 0.14);
  }
}

.dossier-drawer {
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
  animation: panelFade 240ms var(--ease-out) both;
}

.dossier-drawer[hidden] { display: none; }

/* ==========================================================================
   05. Reconciled Track Record — Vertical Neo-Blue Spine
   ========================================================================== */
.timeline-section {
  padding: clamp(72px, 9vw, 118px) 0;
  border-top: 1px solid var(--hairline);
}

.timeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.36fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.timeline-sticky {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-muted);
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  max-width: 40ch;
}

.timeline-spine {
  list-style: none;
  padding: 0 0 0 28px;
  border-left: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.tl-item {
  position: relative;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hairline);
}

.tl-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tl-node {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 2px solid var(--cyan);
}

.tl-item:first-child .tl-node {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25);
}

.tl-period {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan-bright);
  margin-bottom: 6px;
}

.tl-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-primary);
  text-wrap: balance;
  margin-bottom: 4px;
}

.tl-org {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.tl-summary {
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink-secondary);
}

/* ==========================================================================
   06. Craft & Off the Clock
   ========================================================================== */
.craft-section {
  padding: clamp(72px, 9vw, 118px) 0;
  border-top: 1px solid var(--hairline);
}

.craft-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: stretch;
}

.craft-grid > .glass-shell,
.craft-right > .glass-shell {
  display: flex;
  flex-direction: column;
}

.craft-grid > .glass-shell > .glass-core,
.craft-right > .glass-shell > .glass-core {
  flex: 1;
}

.craft-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  height: 100%;
}

.craft-right > .glass-shell { flex: 1; }

.craft-card { padding: clamp(24px, 3vw, 34px); }

.craft-card--compact {
  padding: clamp(22px, 2.8vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan-bright);
  margin-bottom: 10px;
}

.craft-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink-primary);
  text-wrap: balance;
  margin-bottom: 18px;
}

.code-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.code-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.code-list li:first-child {
  padding-top: 0;
  border-top: none;
}

.code-list strong {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.code-list span {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-secondary);
}

.craft-copy {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.mini-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-specs span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   07. Closing Contact Panel & Footer
   ========================================================================== */
.contact-section {
  padding: clamp(72px, 9vw, 112px) 0 42px;
  border-top: 1px solid var(--hairline);
}

.contact-shell {
  border-color: rgba(56, 189, 248, 0.32);
  margin-bottom: 34px;
}

.contact-well {
  padding: clamp(28px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  background:
    radial-gradient(ellipse 68% 70% at 85% 15%, rgba(56, 189, 248, 0.14), transparent 65%),
    var(--glass-core);
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.95rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  text-wrap: balance;
  max-width: 19ch;
  margin-bottom: 16px;
}

.contact-lead {
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
  max-width: 54ch;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: end;
  width: 100%;
  max-width: 300px;
  gap: 12px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-primary);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ink-secondary);
  transition: color 180ms var(--ease-out);
}

.footer-sep { color: var(--ink-muted); }

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--cyan-bright); }
}

/* ==========================================================================
   Scroll Reveal Choreography
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .metrics-strip,
  .counter-grid,
  .matrix-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-grid,
  .story-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding: 104px 0 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 4vw, 2.75rem);
  }

  .hero-cta-row .pill-btn {
    min-width: 244px;
  }

  .section-head,
  .timeline-grid,
  .craft-grid,
  .contact-well {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .timeline-sticky { position: static; }

  .bento-tile--wide,
  .bento-tile--narrow {
    grid-column: span 12;
  }

  .contact-actions {
    justify-self: start;
    max-width: 340px;
  }
}

@media (max-width: 1020px) {
  .nav-island {
    max-width: 100%;
    gap: 12px;
    padding: 6px 8px 6px 12px;
  }

  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 740px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-title { max-width: 22ch; }

  .hero-portrait {
    justify-self: center;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .nav-actions .pill-btn { display: none; }

  .hero { padding: 96px 0 48px; }

  .status-pill {
    margin-bottom: 14px;
    padding: 6px 12px;
    gap: 7px;
    letter-spacing: 0.03em;
  }

  .hero-title {
    font-size: 2.08rem;
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-cta-row {
    width: 100%;
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-cta-row .pill-btn,
  .contact-actions .pill-btn {
    width: 100%;
    min-width: 0;
  }

  .hero-meta { padding-top: 14px; }
  .hero-portrait { max-width: 100%; }

  .metrics-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .counter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .matrix-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .m-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-height: 54px;
    padding: 10px 12px;
  }

  .m-tab-name { font-size: 13px; }

  .matrix-shell.glass-shell {
    padding: 5px;
    border-radius: 19px;
  }

  .matrix-stage {
    padding: 18px 14px;
    border-radius: 14px;
  }

  .diagram-scroll-hint { display: block; }

  .diagram-well {
    padding: 12px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 90%, transparent 100%);
  }

  .neo-svg { min-width: 580px; }

  .m-specs { gap: 10px; }
  .spec-val { font-size: 13.5px; }

  .contact-actions {
    width: 100%;
    max-width: 100%;
  }

  .footer-sep--top { display: none; }
}

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

  .aurora .orb,
  .status-pulse,
  .svg-pulse {
    animation: none !important;
  }

  .svg-pulse { opacity: 0; }

  .js .reveal-hero,
  .js .reveal,
  .m-panel,
  .story-drawer,
  .dossier-drawer {
    animation: none !important;
    transition: opacity 150ms ease !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Drop-in Language Switcher (rendered automatically when 2+ locales exist) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(148, 186, 238, 0.18);
  background: rgba(148, 186, 238, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.lang-switch a,
.lang-switch span[aria-current="page"] {
  padding: 5px 9px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-muted);
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-switch span[aria-current="page"] {
  background: rgba(56, 189, 248, 0.2);
  color: var(--cyan-bright);
  font-weight: 500;
}

.lang-switch a:hover {
  color: var(--ink-primary);
}

/* Periodic Diagonal Portrait Light Sheen (matches v3 / v3b cadence) */
.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(210, 238, 255, 0.22) 50%, transparent 100%);
  transform: skewX(-14deg) translateX(0);
  opacity: 0;
  animation: portraitSheenNeo 11s cubic-bezier(0.32, 0.72, 0, 1) 1.2s infinite;
}

@keyframes portraitSheenNeo {
  0%   { transform: skewX(-14deg) translateX(0); opacity: 0; }
  3%   { opacity: 1; }
  20%  { transform: skewX(-14deg) translateX(520%); opacity: 0; }
  100% { transform: skewX(-14deg) translateX(520%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-frame::before {
    animation: none !important;
    display: none;
  }
}
