:root {
  color-scheme: dark;
  /* Ops console palette */
  --bg-primary: #0b0c10;
  --bg-secondary: #0e1016;
  --bg-tertiary: rgba(20, 22, 30, 0.5);
  --surface: rgba(14, 16, 22, 0.85);
  --surface-soft: rgba(10, 12, 18, 0.75);
  --border-soft: rgba(255, 255, 255, 0.6);
  --border-strong: rgba(255, 255, 255, 0.9);
  --text-strong: #f5f5f7;
  --text-body: #c9cbd3;
  --text-muted: #8e919a;
  --text-soft: #6e717a;
  /* Alert accent in red hues */
  --accent: #ff3b3b;
  --accent-strong: #ff2222;
  --accent-hot: #ff3b3b;
  --accent-cool: #ff7a7a;
  --accent-veil: color-mix(in srgb, var(--accent) 16%, transparent);
  /* Glares tuned to red */
  --glare-purple: rgba(255, 59, 59, 0.12);
  --glare-blue: rgba(255, 122, 122, 0.1);
  --glare-pink: rgba(255, 59, 59, 0.12);
  --shadow-large: 0 40px 120px rgba(0, 0, 0, 0.72);
  --shadow-soft: 0 24px 68px rgba(0, 0, 0, 0.6);
  --max-width: 1200px;
  --ease: cubic-bezier(0.25, 0.85, 0.4, 1);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  position: relative;
  overflow-x: hidden;
  cursor: url('assets/cursor-pointer-white.svg') 8 8, pointer;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

/* --- IA Dock (macOS-like) --- */
.ia-dock {
  position: fixed;
  top: 50%;
  right: clamp(0.6rem, 2.5vw, 1rem);
  transform: translateY(-50%);
  z-index: 120;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--border-soft);
  background: rgba(12, 14, 18, 0.7);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Simulated cursor for dock build */
.ia-dock__cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  background: url('assets/cursor-pointer-white.svg') center/contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
  z-index: 130;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

.ia-dock__item { opacity: 0; transform: translateX(8px) scale(0.96); }
.ia-dock__item.is-visible { opacity: 1; transform: translateX(0) scale(1); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease); }

/* Context menu simulation (right-click > Paste) */
.ia-dock__menu {
  position: fixed;
  min-width: 140px;
  background: rgba(12, 14, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-soft);
  padding: 0.35rem 0;
  z-index: 131;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease);
}

.ia-dock__menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ia-dock__menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-body);
}

.ia-dock__menu-item.is-accent {
  color: var(--text-strong);
  background: rgba(255, 59, 59, 0.16);
  border-left: 2px solid var(--accent-hot);
}

.ia-dock__legend {
  display: inline-block;
  margin: 0 0 0.4rem 0;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-soft);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.ia-dock__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 1.2vw, 0.6rem);
}

.ia-dock__link {
  display: grid;
  place-items: center;
  width: clamp(34px, 4.8vw, 44px);
  height: clamp(34px, 4.8vw, 44px);
  border: 1px solid var(--border-soft);
  background: linear-gradient(150deg, rgba(16, 18, 24, 0.9), rgba(10, 12, 16, 0.8));
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative;
}

.ia-dock__link:hover {
  transform: translateX(-4px) scale(1.1);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px rgba(255, 59, 59, 0.25);
}

.ia-dock__icon {
  width: 70%;
  height: 70%;
  display: grid;
  place-items: center;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-cool));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.ia-dock__icon::after {
  content: attr(data-initials);
}

.ia-dock__icon-img {
  width: 70%;
  height: 70%;
  display: block;
  object-fit: contain;
  filter: invert(1) contrast(1.1) brightness(1.05);
}

.ia-dock__name {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.4rem);
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(12, 14, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.14rem 0.4rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.ia-dock__link:hover .ia-dock__name,
.ia-dock__link:focus .ia-dock__name {
  opacity: 1;
  transform: translateY(-50%) translateX(-2px);
}

@media (max-width: 720px) {
  .ia-dock__legend {
    display: none;
  }
  
  .recognition-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-actions {
    flex-direction: column;
  }
  
  .contact-link {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .ia-dock {
    top: auto;
    bottom: 0.8rem;
    right: 0.8rem;
    transform: none;
    padding: 0.35rem 0.5rem;
  }
  .ia-dock__list {
    flex-direction: row;
    gap: 0.6rem;
  }
  .ia-dock__link:hover {
    transform: translateY(-4px) scale(1.1);
  }
  .ia-dock__name {
    top: auto;
    bottom: -1.35rem;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .ia-dock__link:hover .ia-dock__name,
  .ia-dock__link:focus .ia-dock__name {
    transform: translateX(-50%) translateY(-2px);
  }
  
  /* Disable animations on mobile */
  .ia-dock__cursor {
    display: none !important;
  }
  
  .ia-dock__item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  
  body {
    cursor: auto !important;
  }
  
  a, button, .button {
    cursor: auto !important;
  }
  
  .cursor-label {
    display: none !important;
  }
  
  .hero__select-mouse,
  .hero__select-label,
  .hero__select-rect {
    display: none !important;
  }
  
  .hero__portrait-scene {
    animation: none !important;
  }
  
  .hero__orbit .hero__particle {
    animation: none !important;
  }
  
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body.is-command-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  /* HUD grid: minor and major lines */
  background-image:
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px,
      transparent 24px
    ),
    repeating-linear-gradient(
      to right,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 1px,
      transparent 1px,
      transparent 96px
    );
  opacity: 0.28;
  z-index: -2;
  pointer-events: none;
}

/* subtle scanlines for HUD feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* Global cursor-following label */
.cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(14px, -14px);
  background: rgba(14, 16, 22, 0.9);
  color: var(--text-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease-out, transform 0.08s linear;
  z-index: 9999;
  display: inline-block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: url('assets/cursor-pointer-white.svg') 8 8, pointer;
}

button,
.button {
  cursor: url('assets/cursor-pointer-white.svg') 8 8, pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--accent);
  color: var(--text-strong);
  text-shadow: none;
}

::-moz-selection {
  background: var(--accent);
  color: var(--text-strong);
  text-shadow: none;
}

strong {
  color: var(--text-strong);
  font-weight: 700;
}

section {
  padding-block: clamp(2.5rem, 6vw, 7rem);
}

.wrapper {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 680px) {
  .wrapper {
    width: min(100% - 1rem, 100vw);
    padding: 0 0.5rem;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .hero__portrait-scene {
    width: min(100%, 280px);
    padding: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero__visual {
    gap: 2rem;
  }
  
  .ia-dock {
    right: 0.5rem;
    bottom: 0.5rem;
  }
  
  .panel {
    padding: 1.5rem 1rem;
    max-width: 100%;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  
  .hero__metrics {
    gap: 1rem;
  }
  
  .hero__title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    white-space: normal;
    line-height: 1.4;
    min-height: auto;
    font-size: clamp(1.1rem, 5vw, 2.4rem);
    letter-spacing: -0.02em;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__lead {
    max-width: 100%;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  
  .hero__title span {
    display: inline;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    letter-spacing: -0.02em;
    max-width: 100%;
  }
  
  .hero__objective {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__tagline {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  
  .hero__typed {
    flex-wrap: wrap;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__typed-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
  
  .hero-metric {
    padding: 1rem;
  }
  
  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
  }
  
  .hero__actions {
    margin-top: 1.5rem;
  }
  
  .site-header__shell {
    padding: 0.8rem 1rem;
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
  }
  
  .mobile-nav {
    width: calc(100% - 1rem);
    max-width: calc(100vw - 2rem);
  }
}

.glow-ring {
  position: absolute;
  pointer-events: none;
  inset: auto auto -28rem 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(138, 123, 255, 0.35), rgba(138, 123, 255, 0) 60%),
    radial-gradient(circle at 50% 50%, rgba(0, 213, 255, 0.22), rgba(5, 11, 31, 0) 60%);
  z-index: 0;
  opacity: 0;
  filter: blur(12px);
}

.site-anchor {
  position: fixed;
  inset: 8rem auto auto 3.2rem;
  display: none;
  flex-direction: column;
  gap: 1.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-soft);
  z-index: 80;
}

@media (min-width: 1160px) {
  .site-anchor {
    display: flex;
  }
}

.site-anchor__mark {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0;
  /* background: linear-gradient(135deg, rgba(138, 123, 255, 0.28), rgba(0, 213, 255, 0.18)); */
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.site-anchor__nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1.6rem;
  transition: color 0.3s var(--ease), opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.nav-link__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.46rem;
  border: 1px solid var(--accent-strong);
  background: var(--accent);
  color: var(--bg-primary);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.48rem;
  font-weight: 600;
  /* border-radius: 999px; */
  line-height: 1;
  box-shadow: 0 0 16px rgba(255, 59, 59, 0.35);
}

body.nav-animating .nav-link {
  opacity: 0;
  transform: translateY(-12px);
}

body.nav-animated .nav-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--nav-index, 0) * 90ms);
}

body.nav-animating .mobile-nav a {
  opacity: 0;
  transform: translateY(-8px);
}

body.nav-animated .mobile-nav a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--nav-index, 0) * 70ms);
}

.nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 1.8rem;
  background: linear-gradient(180deg, rgba(255, 59, 59, 0), var(--accent-hot));
  transform: translateY(-50%) scaleY(0.5);
  transform-origin: center;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.28;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-strong);
}

.nav-link:hover::before,
.nav-link.is-active::before {
  transform: translateY(-50%) scaleY(1);
  opacity: 1;
}

.nav-link--highlight {
  color: var(--text-strong);
  text-shadow: 0 0 12px rgba(255, 59, 59, 0.45);
  z-index: 1;
}

.nav-link--highlight::after {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  width: calc(100% + 2.4rem);
  height: 2.3rem;
  background: radial-gradient(circle at 50% 50%, rgba(255, 59, 59, 0.45), rgba(255, 59, 59, 0));
  filter: blur(16px);
  opacity: 0.8;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  z-index: -1;
}

.nav-link--highlight:hover::after,
.nav-link--highlight.is-active::after {
  transform: translateY(-50%) scale(1.05);
  opacity: 1;
}

.nav-link__badge--pulse {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, rgba(255, 59, 59, 0.95), rgba(255, 59, 59, 0.55));
  animation: nav-badge-pulse 2.8s ease-in-out infinite;
  box-shadow: 0 0 0 rgba(255, 59, 59, 0.45);
}

@keyframes nav-badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 59, 59, 0);
  }
}

.site-header {
  position: sticky;
  inset-inline: 0;
  top: clamp(1rem, 4vw, 1.4rem);
  display: flex;
  justify-content: center;
  margin-block-start: clamp(0.75rem, 3vw, 1.2rem);
  z-index: 90;
}

.site-header__shell {
  width: min(92%, var(--max-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-radius: 0;
  border: 1px solid var(--border-soft);
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.site-header__shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-position:
    left -10px top -10px,
    right -10px top -10px,
    left -10px bottom -10px,
    right -10px bottom -10px;
  background-image:
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E');
}

.site-header__shell--scrolled {
  border-color: var(--border-strong);
  background: rgba(10, 12, 16, 0.86);
  box-shadow: var(--shadow-large);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-header__mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.22), rgba(255, 122, 122, 0.12));
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
  font-weight: 600;
}

.site-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  border: 1px solid var(--border-soft);
  background: rgba(20, 22, 28, 0.65);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header__toggle:hover {
  border-color: var(--border-strong);
  background: rgba(28, 30, 36, 0.8);
}

.site-header__bar {
  width: 1.25rem;
  height: 2px;
  background: var(--text-strong);
}

@media (min-width: 1080px) {
  .site-header {
    display: none;
  }
}

.mobile-nav {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.8rem);
  width: min(94%, 320px);
  border-radius: 0;
  border: 1px solid var(--border-soft);
  background: rgba(12, 14, 18, 0.92);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(-50%);
  z-index: 95;
}

.mobile-nav::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-position:
    left -10px top -10px,
    right -10px top -10px,
    left -10px bottom -10px,
    right -10px bottom -10px;
  background-image:
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E');
}

.mobile-nav.is-active {
  display: flex;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.3s var(--ease), opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.mobile-nav .nav-link--highlight {
  color: var(--text-strong);
}

.mobile-nav .nav-link--highlight::after {
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(12px);
  opacity: 0.65;
  transform: translateY(-50%) scale(1);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.site-main {
  margin-block-start: clamp(3.6rem, 10vw, 4.8rem);
  padding-top: clamp(1.2rem, 3.5vw, 2.6rem);
}

.site-main > section {
  scroll-margin-top: clamp(5rem, 12vw, 7rem);
}

@media (min-width: 1160px) {
  .site-main {
    margin-left: 10.6rem;
  }
}

.panel {
  position: relative;
  border-radius: 0;
  padding: clamp(2rem, 5vw, 2.8rem);
  background: linear-gradient(165deg, rgba(12, 14, 18, 0.96), rgba(8, 10, 14, 0.9));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Corner '+' markers on bordered squares */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-position:
    left -10px top -10px,
    right -10px top -10px,
    left -10px bottom -10px,
    right -10px bottom -10px;
  background-image:
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E');
}

.panel--accent {
  background: linear-gradient(140deg, rgba(255, 59, 59, 0.3), rgba(8, 10, 14, 0.95));
  border-color: var(--accent);
}

.section-header {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.8rem, 6vw, 4rem);
}

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-soft);
}

.eyebrow::after {
  content: '';
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 59, 59, 0), var(--accent-hot));
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3.6rem);
  line-height: 1.1;
  color: var(--text-strong);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.section-subtitle {
  font-size: clamp(2rem, 2.5vw, 2.2rem);
}

.section-subtitle {
  margin: 0;
  color: var(--text-muted);
  max-width: 100%;
  font-size: clamp(0.95rem, 2.2vw, 2.2rem);
}

.hero {
  position: relative;
  padding-block-start: clamp(1.6rem, 4vw, 2.5rem);
  padding-block-end: clamp(2.4rem, 5vw, 4rem);
}

.hero__viewport {
  min-height: calc(100svh - clamp(5rem, 14vw, 10rem));
  display: flex;
  align-items: flex-start;
  max-width: 100vw;
  overflow: hidden;
}

.hero__layout {
  display: grid;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  gap: clamp(1.8rem, 4vw, 3rem);
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }
}

.hero__lead {
  display: grid;
  gap: clamp(1.3rem, 3vw, 2.2rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.hero__tagline {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  overflow: hidden;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2.8rem);
  line-height: 1.4;
  color: var(--text-strong);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: -0.02em;
}

.hero__title span {
  display: inline;
  /* background: linear-gradient(120deg, var(--accent-hot), var(--accent-strong), var(--accent-cool)); */
  background: var(--accent-strong);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  overflow: visible;
  letter-spacing: -0.02em;
}

.hero__objective {
  margin: 0;
  font-size: clamp(0.85rem, 1.6vw, 1.0rem);
  color: var(--text-muted);
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow: hidden;
}

.hero__typed {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.9rem;
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
}

.hero__typed-label {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero__typed-wrapper {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--text-strong);
  position: relative;
}

.hero__typed-text {
  white-space: nowrap;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  font-weight: 600;
}

.hero__caret {
  width: 2px;
  height: 1.3em;
  background: linear-gradient(180deg, var(--accent-hot), var(--accent-cool));
  margin-left: 10px;
  animation: caret-blink 1s steps(1, end) infinite;
}

@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.hero__metrics {
  display: grid;
  gap: 2rem;
}

@media (min-width: 620px) {
  .hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-metric {
  padding: 1.35rem 1.2rem 1.1rem;
  background: linear-gradient(150deg, rgba(16, 18, 24, 0.95), rgba(10, 12, 16, 0.86));
  border: 1px solid var(--border-soft);
  display: grid;
  gap: 0.45rem;
  min-height: 0;
}

.hero-metric__label {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.64rem;
  color: var(--text-soft);
}

.hero-metric__value {
  font-size: clamp(1.4rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: var(--text-strong);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.hero-metric__note {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.hero-videos {
  padding-block-start: clamp(1rem, 4vw, 3rem);
  padding-block-end: clamp(1rem, 4vw, 3rem);
}

.hero-videos__panel {
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

.hero-videos__header {
  display: grid;
  gap: 1rem;
}

.hero-videos__title {
  margin: 0;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  color: var(--text-strong);
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.hero-videos__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 48ch;
}

.video-carousel {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.video-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(16, 18, 24, 0.92), rgba(8, 10, 14, 0.9));
}

.video-slide {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
}

.video-slide.is-active {
  display: flex;
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: inherit;
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-slide__caption {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0 1rem 1.2rem;
}

.video-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.video-carousel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 24, 0.8);
  color: var(--text-strong);
  font-size: 1rem;
  letter-spacing: 0.2em;
  cursor: url('assets/cursor-pointer-white.svg') 8 8, pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-carousel__nav:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(22, 24, 30, 0.92);
}

.video-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.video-carousel__dots {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.video-carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 0;
  cursor: url('assets/cursor-pointer-white.svg') 8 8, pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.video-carousel__dot.is-active {
  background: var(--accent-hot);
  border-color: var(--accent-hot);
  transform: scale(1.2);
  box-shadow: 0 0 18px rgba(255, 59, 59, 0.45);
}

.video-carousel__dot:hover {
  border-color: var(--border-strong);
}

@media (max-width: 720px) {
  .video-carousel__viewport {
    border-radius: 1rem;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
  }

  .video-slide__caption {
    padding: 0 0.4rem 1.1rem;
  }

  .video-carousel__controls {
    justify-content: space-between;
  }
}

.video-carousel[data-carousel-single='true'] .video-carousel__controls,
.video-carousel[data-carousel-single='true'] .video-carousel__dots {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.9rem 2rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.8rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-strong));
  color: var(--text-strong);
  box-shadow: 0 16px 40px rgba(255, 59, 59, 0.35);
}

.button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(255, 59, 59, 0.45);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(16, 18, 24, 0.65);
  color: var(--text-strong);
}

.button--ghost:hover {
  transform: translateY(-3px);
  background: rgba(22, 24, 30, 0.88);
  box-shadow: 0 18px 40px rgba(255, 59, 59, 0.22);
}

.hero__visual {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  justify-items: center;
}

@media (min-width: 900px) {
  .hero__visual {
    justify-items: stretch;
  }
}

@media (max-width: 1023px) {
  .hero__visual {
    max-width: 420px;
    margin-inline: auto;
  }
}

.hero__portrait-scene {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  border-radius: 0;
  background: linear-gradient(165deg, rgba(12, 14, 18, 0.96), rgba(8, 10, 14, 0.88));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  overflow: visible;
  width: min(100%, 360px);
  margin: auto;
}

.hero__portrait-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  background-position:
    left -10px top -10px,
    right -10px top -10px,
    left -10px bottom -10px,
    right -10px bottom -10px;
  background-image:
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E'),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 10 10" fill="none" stroke="%23ffffff" stroke-width="2.6" stroke-linecap="square"%3E%3Cpath d="M5 1 v8 M1 5 h8"/%3E%3C/svg%3E');
}

.hero__portrait {
  position: relative;
  z-index: 2;
  width: min(100%, 320px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.55));
}

.hero__portrait--rounded {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

/* --- Interactive selection animation over the portrait --- */
.hero__portrait-scene {
  --select-duration: 2.2s;
  --lift-duration: 1.4s;
  --lift: 0px; /* animated custom property used to move mouse + image up */
}

/* Animate custom properties to keep mouse and selection in perfect sync */
@property --sel-w {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}
@property --sel-h {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

/* Lift distance for phase 2 (mouse + image go up together) */
@property --lift {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

.hero__select-mouse,
.hero__select-label,
.hero__select-rect {
  position: absolute;
  pointer-events: none;
}

.hero__select-mouse {
  z-index: 4;
  width: 18px;
  height: 18px;
  background: url('assets/cursor-pointer-white.svg') center/contain no-repeat;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
  opacity: 0;
  left: calc(var(--sel-w) - 10px);
  top: calc(var(--sel-h) - 10px);
}

.hero__select-label {
  z-index: 4;
  transform: translate(6px, -6px);
  left: var(--sel-w);
  top: var(--sel-h);
  background: rgba(14,16,22,0.9);
  color: var(--text-strong);
  border: 1px solid var(--border-soft);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  opacity: 0;
  box-shadow: var(--shadow-soft);
}

.hero__select-rect {
  z-index: 3;
  border: 1px dashed var(--accent);
  background: var(--accent-veil);
  opacity: 0;
  left: 0;
  top: 0;
  width: var(--sel-w);
  height: var(--sel-h);
}

/* svg border removed */

/* Play sequence only when the scene enters (hooks already use data-animate) */
@keyframes hero-mouse-fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  100% { opacity: 1; }
}

@keyframes hero-rect-draw {
  0% { opacity: 0; --sel-w: 0%; --sel-h: 0%; }
  10% { opacity: 1; --sel-w: 0%; --sel-h: 0%; }
  55% { --sel-w: 100%; --sel-h: 0%; }
  100% { --sel-w: 100%; --sel-h: 100%; opacity: 1; }
}

/* Phase 2: simulate user dragging selection upward; image follows */
@keyframes hero-lift-move {
  0% { transform: translateY(0); }
  100% { transform: translateY(-80px); }
}

/* border draw removed */

.hero__portrait-scene.is-visible .hero__select-mouse {
  animation:
    hero-rect-draw var(--select-duration) var(--ease) forwards,
    hero-mouse-fade calc(var(--select-duration) * 0.6) var(--ease) forwards;
}

.hero__portrait-scene.is-visible .hero__select-label {
  animation:
    hero-rect-draw var(--select-duration) var(--ease) forwards,
    hero-mouse-fade calc(var(--select-duration) * 0.6) var(--ease) forwards;
}

.hero__portrait-scene.is-visible .hero__select-rect {
  animation: hero-rect-draw var(--select-duration) var(--ease) forwards;
}

/* After selection completes, move the entire scene (image + overlays) upward */
.hero__portrait-scene.is-visible {
  animation: hero-lift-move var(--lift-duration, 1.4s) var(--ease) forwards var(--select-duration);
}

/* border activation removed */

@media (prefers-reduced-motion: reduce) {
  .hero__select-mouse,
  .hero__select-rect,
  .hero__select-label { display: none; }
}

.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  --orbit-radius: clamp(120px, 30vw, 185px);
  --orbit-duration: 18s;
}

.hero__orbit--fast {
  --orbit-duration: 11s;
  --orbit-radius: clamp(100px, 26vw, 160px);
}

.hero__orbit .hero__particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(255, 59, 59, 0.95), rgba(255, 122, 122, 0.9));
  box-shadow: 0 0 18px rgba(255, 59, 59, 0.5);
  opacity: 0.85;
  transform: rotate(var(--angle-offset, 0deg)) translateX(var(--orbit-radius));
  animation: hero-particle var(--orbit-duration) linear infinite;
}

.hero__orbit .hero__particle:nth-child(1) {
  --angle-offset: 0deg;
  animation-delay: 0s;
}

.hero__orbit .hero__particle:nth-child(2) {
  --angle-offset: 120deg;
  animation-delay: -3s;
}

.hero__orbit .hero__particle:nth-child(3) {
  --angle-offset: 240deg;
  animation-delay: -6s;
}

@keyframes hero-particle {
  0% {
    transform: rotate(var(--angle-offset, 0deg)) translateX(var(--orbit-radius));
  }
  100% {
    transform: rotate(calc(360deg + var(--angle-offset, 0deg))) translateX(var(--orbit-radius));
  }
}

.hero__mission-card {
  display: grid;
  gap: 1rem;
  background: linear-gradient(150deg, rgba(16, 18, 24, 0.95), rgba(10, 12, 16, 0.9));
  border: 1px solid var(--border-soft);
  padding: clamp(1.6rem, 4vw, 2.2rem);
  width: 100%;
}

.hero__mission-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--text-strong);
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero__mission-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero__mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--text-body);
  font-size: 0.94rem;
}

.hero__mission-list li {
  position: relative;
  padding-left: 1.6rem;
}

.hero__mission-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-cool));
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.45);
}

.grid-panels {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

@media (min-width: 1024px) {
  .grid-panels.is-triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.grid-panels.is-duo {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.2rem);
}

@media (min-width: 900px) {
  .grid-panels.is-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  color: var(--text-strong);
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.bullet-list {
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.2rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.9rem;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-cool));
  box-shadow: 0 0 12px rgba(255, 61, 129, 0.45);
}

.channel-card {
  display: grid;
  gap: 0.6rem;
}

.channel-card__header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: baseline;
}

.channel-card__title {
  margin: 0;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-strong);
}

.channel-card__meta {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.channel-card__stat {
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-link {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-strong);
  position: relative;
  padding-bottom: 0.4rem;
  width: fit-content;
}

.feature-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-hot), var(--accent-cool));
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.3s var(--ease);
}

.feature-link:hover::after {
  transform: scaleX(1.35);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.82rem;
  color: var(--text-strong);
  background: rgba(18, 20, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 0.75rem 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(255, 59, 59, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Softer block for social recommended reads */
.social-reads {
  margin-top: 1.6rem; /* room above to avoid visual collision */
  padding: clamp(1.6rem, 4vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(12, 14, 18, 0.9), rgba(8, 10, 14, 0.82));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.social-reads__title {
  margin: 0 0 0.6rem 0;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--text-strong);
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.recognition-grid {
  margin: 1.4rem 0 0;
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.recognition-card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-soft) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.recognition-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.16);
}

.recognition-card__header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.recognition-card__source {
  color: var(--text-soft);
}

.recognition-card__year {
  color: var(--text-muted);
}

.recognition-card__title {
  margin: 0;
}

.recognition-card__summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.social-reads .feature-link {
  font-size: 0.86rem;
  letter-spacing: 0.22em;
}

.social-reads .feature-link::after {
  transform: scaleX(1);
}

/* --- Timeline (Experiencia) --- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem; /* space for the vertical line */
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
}

.timeline__item {
  position: relative;
  padding: 0 0 1.6rem 0;
  margin: 0 0 1.2rem 0;
}

.timeline__item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-cool));
  box-shadow: 0 0 12px rgba(255, 59, 59, 0.45);
  border: 1px solid var(--border-soft);
}

.timeline__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.timeline__role {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline__meta {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.timeline__summary {
  margin: 0.4rem 0 0.6rem 0;
  color: var(--text-muted);
}

.timeline__bullets {
  margin: 0.6rem 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  color: var(--text-body);
  font-size: 0.94rem;
}

.timeline__bullets li {
  position: relative;
  padding-left: 1.6rem;
}

.timeline__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.25));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

.social-reads .section-header {
  margin-bottom: 1.4rem;
}

.social-reads .section-title {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.social-reads .bullet-list {
  margin-top: 1rem;
}

.social-reads .bullet-list li::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.2));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
}

.social-reads .feature-link::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 3rem;
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-soft);
}

@media (min-width: 760px) {
  .site-footer__grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
  .wrapper {
    width: min(100% - 0.8rem, 100vw);
    padding: 0 0.4rem;
    overflow: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
  
  .panel {
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    padding: 1rem 0.8rem;
  }
  
  .hero__layout {
    gap: 1.5rem;
    max-width: 100%;
  }
  
  .section-header {
    gap: 1rem;
  }
  
  .hero__lead {
    gap: 1rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__visual {
    gap: 1.5rem;
  }
  
  .hero__portrait-scene {
    margin-bottom: 1.5rem;
  }
  
  .hero__actions {
    margin-top: 1rem;
  }
  
  .hero__title {
    font-size: clamp(1rem, 4.5vw, 2rem);
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__objective {
    font-size: clamp(0.8rem, 1.4vw, 0.95rem);
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__tagline {
    font-size: 0.6rem;
    max-width: 100%;
    overflow: hidden;
  }
  
  .hero__typed-text {
    font-size: clamp(0.8rem, 1.1vw, 0.9rem);
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .site-footer__grid {
    text-align: center;
  }
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0;
  background: rgba(22, 24, 30, 0.72);
  border: 1px solid var(--border-soft);
  color: var(--text-strong);
  font-weight: 600;
}

/* Monospace labels for diegetic console feel */
.eyebrow,
.hero__tagline,
.hero__typed-label,
.channel-card__meta,
.site-footer__grid,
.hero-metric__label,
.nav-link,
.mobile-nav a {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.site-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer__links a:hover {
  color: var(--text-strong);
}

.ideas-form {
  display: grid;
  gap: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.input,
.textarea,
select.input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 24, 0.75);
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input:focus,
.textarea:focus,
select.input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.2);
  background: rgba(18, 20, 28, 0.85);
  color: var(--text-strong);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.help-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: url('assets/cursor-pointer-white.svg') 8 8, pointer;
  user-select: none;
}

.checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form-status {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.form-status.is-success {
  color: var(--text-strong);
}

.form-status.is-error {
  color: var(--accent-cool);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.command-palette {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 140;
}

.command-palette[aria-hidden='true'] {
  pointer-events: none;
  opacity: 0;
}

.command-palette:not([aria-hidden='true']) {
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.command-palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(12px);
}

.command-palette__dialog {
  position: relative;
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-large);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.command-palette__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.command-palette__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.command-palette__hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.command-palette__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.command-palette__option {
  width: 100%;
  text-align: left;
  border: 0;
  background: rgba(18, 20, 28, 0.75);
  color: var(--text-body);
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.command-palette__option span {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.command-palette__option:hover,
.command-palette__option:focus {
  background: rgba(255, 59, 59, 0.18);
  color: var(--text-strong);
  outline: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 680px) {
  .command-palette {
    padding: 1.4rem;
  }

  .command-palette__dialog {
    padding: 1.4rem;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--animate-delay, 0ms);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-highlighted {
  outline: 2px solid var(--accent);
  outline-offset: 12px;
}

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

.blog-page {
  background: var(--bg-primary);
  color: var(--text-body);
}

.blog-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
}

.blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.blog-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Chakra Petch', 'Inter Tight', sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
  text-decoration: none;
}

.blog-header__brand:hover {
  color: var(--text-strong);
}

.blog-header__mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--border-soft);
  background: rgba(12, 14, 18, 0.7);
  color: var(--text-strong);
  font-weight: 600;
}

.blog-header__back {
  text-decoration: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.blog-main {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.blog-article {
  display: grid;
  gap: clamp(2.4rem, 6vw, 3.6rem);
}

.blog-article__header {
  display: grid;
  gap: 1rem;
}

.blog-article__lede {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  max-width: 720px;
}

.blog-article__section {
  display: grid;
  gap: 1.4rem;
}

.blog-article__footer {
  margin-top: 2rem;
}

.blog-related {
  margin-top: 2rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 1.4rem;
}

.blog-related__title {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.blog-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.blog-related__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.blog-related__list a::after {
  content: '→';
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-related__list a:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .blog-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-related__list {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.nav-animating .nav-link,
  body.nav-animated .nav-link {
    opacity: 1;
    transform: none;
    transition-duration: 0.01ms;
  }

  body.nav-animating .mobile-nav a,
  body.nav-animated .mobile-nav a {
    opacity: 1;
    transform: none;
    transition-duration: 0.01ms;
  }

  .hero__orbit .hero__particle {
    animation: none;
  }
}
