/* ── Design tokens ── */
:root {
  --color-bg: #08080d;
  --color-bg-elevated: #111118;
  --color-bg-card: #14141c;
  --color-bg-card-hover: #1a1a26;
  --color-border: #2a2a38;
  --color-border-accent: rgba(238, 0, 0, 0.35);
  --color-text: #e8e8ef;
  --color-text-muted: #9494a8;
  --color-accent: #ee0000;
  --color-accent-hover: #ff1a1a;
  --color-accent-glow: rgba(238, 0, 0, 0.25);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px var(--color-accent-glow);
  --header-height: 60px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

/* ── Reset & base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(238, 0, 0, 0.08), transparent),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--color-accent-hover);
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Focus states ── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ── Icons ── */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.icon--sm {
  width: 1rem;
  height: 1rem;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.btn--card {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  background: rgba(238, 0, 0, 0.12);
  color: var(--color-accent);
  border: 1px solid var(--color-border-accent);
}

.btn--card:hover {
  background: rgba(238, 0, 0, 0.22);
  color: #fff;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(8, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
}

.nav__brand {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav__brand:hover {
  color: var(--color-accent);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav__menu a:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav__github {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(238, 0, 0, 0.06), transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 32rem;
}

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

.hero__stats {
  margin-top: 1.75rem;
  max-width: 36rem;
}

.hero-stats {
  padding: 1rem 1.15rem;
  background: rgba(20, 20, 28, 0.72);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-stats__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.hero-stats__org {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.hero-stats__org:hover {
  color: var(--color-accent);
}

.hero-stats__live {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5);
  animation: live-pulse 2s ease-out infinite;
}

.hero-stats__updated {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.hero-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.hero-stat {
  margin: 0;
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.hero-stat__value {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero-stat__label {
  margin: 0 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.hero-stats__activity {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.hero-stats__activity-label {
  color: var(--color-text);
  font-weight: 600;
}

.hero-stats__activity a {
  color: var(--color-accent);
  font-weight: 600;
}

.hero-stats__activity a:hover {
  color: var(--color-accent-hover);
}

.hero-stats__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats__live {
    animation: none;
  }
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.workflow-diagram {
  width: 100%;
  max-width: 400px;
  opacity: 0.9;
}

.workflow-node {
  animation: node-pulse 3s ease-in-out infinite;
}

.workflow-node:nth-child(odd) {
  animation-delay: 0.5s;
}

.workflow-line {
  stroke-dasharray: 6 4;
  animation: line-flow 4s linear infinite;
}

.workflow-terminal {
  animation: terminal-glow 3s ease-in-out infinite alternate;
}

@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes line-flow {
  to { stroke-dashoffset: -20; }
}

@keyframes terminal-glow {
  from { filter: drop-shadow(0 0 4px rgba(238, 0, 0, 0.2)); }
  to { filter: drop-shadow(0 0 8px rgba(238, 0, 0, 0.4)); }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-node,
  .workflow-line,
  .workflow-terminal {
    animation: none;
  }
}

/* ── Entrance animation ── */
.has-entrance .hero__content {
  animation: fade-up 0.6s ease both;
}

.has-entrance .hero__visual {
  animation: fade-up 0.6s 0.15s ease both;
}

.has-entrance .hero__stats {
  animation: fade-up 0.6s 0.25s ease both;
}

.has-entrance .card {
  animation: fade-up 0.5s ease both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Projects ── */
.projects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.section-heading {
  margin: 0 0 1.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.category-section:last-child {
  margin-bottom: 0;
}

/* ── YouTube ── */
.youtube {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
}

.youtube__intro {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card-grid--youtube {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── Cards ── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover,
.card:focus-within {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover,
  .card:focus-within {
    transform: none;
  }
}

.card__surface {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.card__surface:hover {
  color: inherit;
}

.card__surface:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: var(--radius-lg);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: rgba(238, 0, 0, 0.1);
  border-radius: 10px;
  color: var(--color-accent);
}

.card__body {
  flex: 1;
}

.card__category {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.card__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.card__cta {
  pointer-events: none;
}

.card:hover .card__cta,
.card:focus-within .card__cta {
  background: rgba(238, 0, 0, 0.22);
  color: #fff;
}

.card__github {
  position: absolute;
  right: 1.5rem;
  bottom: 1.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-card-hover);
  border-radius: 6px;
}

.card__github:hover {
  color: var(--color-text);
}

/* ── Noscript fallback ── */
.noscript-notice {
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.noscript-notice ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.noscript-notice li {
  margin-bottom: 0.35rem;
}

/* ── About ── */
.about {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
}

.about__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.about__title {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
}

.about__text {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__content {
  text-align: left;
}

.site-footer__sticker-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 8px;
  line-height: 0;
}

.site-footer__sticker-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.site-footer__sticker {
  width: 88px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition);
}

.site-footer__sticker-btn:hover .site-footer__sticker,
.site-footer__sticker-btn:focus-visible .site-footer__sticker {
  transform: translateY(-4px) rotate(-2deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__sticker-btn:hover .site-footer__sticker,
  .site-footer__sticker-btn:focus-visible .site-footer__sticker {
    transform: none;
  }
}

.site-footer__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 0.9375rem;
}

.site-footer__note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.btn--subscribe {
  margin-bottom: 1rem;
  background: #ff0000;
  color: #fff;
}

.btn--subscribe:hover {
  background: #cc0000;
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.35);
}

.site-footer__links {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.site-footer__sep {
  margin: 0 0.5rem;
}

/* ── Sticker easter egg popup ── */
.sticker-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sticker-popup--dismissible {
  pointer-events: auto;
}

.sticker-popup--visible {
  opacity: 1;
}

.sticker-popup__content {
  position: relative;
}

.sticker-popup__close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, transform 0.15s ease;
}

.sticker-popup__close:hover,
.sticker-popup__close:focus-visible {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.sticker-popup__close:focus-visible {
  outline: 2px solid var(--color-accent, #ee0000);
  outline-offset: 2px;
}

.sticker-popup img {
  display: block;
  max-width: min(340px, 85vw);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.65);
}

.sticker-popup__image--wide {
  max-width: min(560px, 92vw);
}

@media (prefers-reduced-motion: reduce) {
  .sticker-popup {
    transition: none;
  }
}

.fireworks-canvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.disco-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(8, 0, 24, 0.35), rgba(0, 0, 0, 0.55));
}

.disco-overlay--visible {
  opacity: 1;
}

.disco-overlay__lights,
.disco-overlay__balls {
  position: absolute;
  inset: 0;
}

.disco-light {
  position: absolute;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: disco-light-pulse 1.2s ease-in-out infinite alternate;
}

.disco-light--1 {
  top: -10%;
  left: -5%;
  background: #ff2d95;
  animation-delay: 0s;
}

.disco-light--2 {
  top: 10%;
  right: -8%;
  background: #00d4ff;
  animation-delay: 0.3s;
}

.disco-light--3 {
  bottom: -12%;
  left: 20%;
  background: #ffe600;
  animation-delay: 0.6s;
}

.disco-light--4 {
  bottom: 5%;
  right: 15%;
  background: #7b61ff;
  animation-delay: 0.9s;
}

.disco-ball {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.2) 18%, transparent 36%),
    repeating-conic-gradient(
      from 0deg,
      #d8d8d8 0deg 8deg,
      #8a8a8a 8deg 16deg
    );
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 18px rgba(255, 255, 255, 0.35);
  animation: disco-ball-spin 2.4s linear infinite;
}

.disco-ball__shine {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), transparent 55%);
  animation: disco-ball-shine 1.1s ease-in-out infinite alternate;
}

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

@keyframes disco-ball-shine {
  from { opacity: 0.35; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes disco-light-pulse {
  from { opacity: 0.25; transform: scale(0.92); }
  to { opacity: 0.55; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .disco-overlay,
  .disco-ball,
  .disco-ball__shine,
  .disco-light {
    animation: none !important;
    transition: none;
  }
}

/* ── 404 page ── */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  text-align: center;
}

.page-404__code {
  margin: 0 0 0.5rem;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.85;
}

.page-404__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-404__text {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  max-width: 28rem;
}

/* ── Team pages ── */
.team-page {
  padding-bottom: 3rem;
}

.team-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

.team-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.team-hero__subtitle {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team-hero__subtitle a {
  color: var(--color-accent);
}

.team-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.team-card__link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex: 1;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.team-card__link:hover {
  color: inherit;
}

.team-card__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.team-card__photo-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: linear-gradient(160deg, #1a1a26 0%, #0d0d14 100%);
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card__body {
  padding: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.team-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap var(--transition);
}

.team-card:hover .team-card__cta {
  gap: 0.5rem;
}

.team-card__footer {
  display: flex;
  gap: 0.35rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--color-border);
}

.team-social--compact {
  padding: 0.45rem;
  border-radius: 6px;
}

.team-social--compact .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.team-social--compact span {
  display: none;
}

.team-card__badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: rgba(238, 0, 0, 0.12);
  border-radius: 4px;
}

.team-card__name {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.team-card__title {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.team-card__location {
  margin: 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.85;
}

.team-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.team-back:hover {
  color: #fff;
  background: rgba(238, 0, 0, 0.16);
  border-color: var(--color-accent);
  transform: translateX(-2px);
}

.team-back:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.team-back__arrow {
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-accent);
}

.team-back__key {
  margin-left: 0.15rem;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-muted);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.team-profile {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-profile__header {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(145deg, var(--color-bg-card) 0%, rgba(238, 0, 0, 0.03) 100%);
}

.team-profile__photo-wrap {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: linear-gradient(160deg, #1a1a26 0%, #0d0d14 100%);
}

.team-profile__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-profile__photo-wrap--interactive {
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.team-profile__photo-wrap--interactive:hover,
.team-profile__photo-wrap--interactive:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(238, 0, 0, 0.2);
  outline: none;
}

.team-profile__name {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.team-profile__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.team-profile__location,
.team-profile__username {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.team-profile__username {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  opacity: 0.8;
}

.team-profile__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.team-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color var(--transition), background var(--transition);
}

.team-social:hover {
  color: var(--color-text);
  border-color: var(--color-border-accent);
  background: var(--color-bg-card-hover);
}

.team-profile__content {
  padding: 2rem;
}

.team-profile__section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.team-profile__bio {
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 48rem;
}

.team-fun-fact {
  padding: 0;
  background: rgba(238, 0, 0, 0.06);
  border: 1px solid var(--color-border-accent);
  border-radius: var(--radius);
  max-width: 48rem;
}

.team-fun-fact__summary {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
}

.team-fun-fact__summary::-webkit-details-marker {
  display: none;
}

.team-fun-fact__summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform var(--transition);
}

.team-fun-fact[open] .team-fun-fact__summary::before {
  transform: rotate(90deg);
}

.team-fun-fact__body {
  padding: 0 1.25rem 1.25rem;
}

.team-fun-fact__body p {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.team-fun-fact__link {
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .team-profile__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
  }

  .team-profile__photo-wrap {
    width: 140px;
    height: 140px;
  }

  .team-profile__social {
    justify-content: center;
  }

  .team-profile__content {
    padding: 1.5rem;
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: rgba(8, 8, 13, 0.97);
    border-bottom: 1px solid var(--color-border);
  }

  .nav__menu--open {
    display: flex;
  }

  .nav__menu a {
    padding: 0.75rem 1rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__visual {
    order: -1;
  }

  .workflow-diagram {
    max-width: 280px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__sticker {
    width: 72px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    justify-content: center;
    width: 100%;
  }
}
