:root,
[data-theme="dark"] {
  --bg-primary: #05060a;
  --bg-secondary: #0f1117;
  --bg-tertiary: #14161e;
  --bg-elevated: #14161e;
  --bg-glass: rgba(10, 12, 18, 0.72);
  --border-primary: rgba(48, 54, 61, 0.66);
  --border-soft: rgba(230, 237, 243, 0.1);
  --text-primary: #e6edf3;
  --text-secondary: #b1bac4;
  --text-muted: #7d8590;
  --text-faint: #484f58;
  --accent-green: #238636;
  --accent-green-bright: #3fb950;
  --accent-blue: #58a6ff;
  --accent-purple: #bc8cff;
  --accent-pink: #f778ba;
  --accent-orange: #d29922;
  --accent-yellow: #f7c35c;
  --glow-green: rgba(63, 185, 80, 0.26);
  --glow-blue: rgba(88, 166, 255, 0.18);
  --glow-purple: rgba(188, 140, 255, 0.16);
  --glow-orange: rgba(210, 153, 34, 0.18);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-logo: "Rajdhani", var(--font-body);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.4, 1.05);
}

[data-theme="light"] {
  --bg-primary: #f4f7fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #edf2f7;
  --bg-elevated: #f9fbfd;
  --bg-glass: rgba(255, 255, 255, 0.78);
  --border-primary: rgba(21, 31, 45, 0.13);
  --border-soft: rgba(21, 31, 45, 0.1);
  --text-primary: #111827;
  --text-secondary: #3f4a5a;
  --text-muted: #667085;
  --text-faint: #98a2b3;
  --accent-green: #238636;
  --accent-green-bright: #1f9d45;
  --accent-blue: #0969da;
  --accent-purple: #8250df;
  --accent-pink: #bf3989;
  --accent-orange: #9a6700;
  --accent-yellow: #b7791f;
  --glow-green: rgba(31, 157, 69, 0.16);
  --glow-blue: rgba(9, 105, 218, 0.13);
  --glow-purple: rgba(130, 80, 223, 0.12);
  --glow-orange: rgba(154, 103, 0, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background: var(--bg-primary);
}

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

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-150%);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--accent-green-bright);
  color: #061009;
  font-weight: 700;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.team-container {
  margin-inline: auto;
}

.team-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(18px);
}

[data-theme="light"] .team-header {
  background: rgba(244, 247, 251, 0.78);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.team-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.header-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.team-hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3.25rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-green-bright);
  margin-bottom: var(--space-3);
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(1.85rem, 4.2vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
}

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

.hero-lead {
  max-width: 600px;
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.hero-meta span,
.member-tags li,
.role-stack li,
.director-tags span,
.career-card li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.topology-panel {
  position: relative;
  min-height: 410px;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 45%, rgba(63, 185, 80, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 44%),
    rgba(10, 12, 18, 0.82);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
}

[data-theme="light"] .topology-panel {
  background:
    radial-gradient(circle at 50% 45%, rgba(31, 157, 69, 0.09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.46) 44%),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    0 24px 62px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.topology-panel::before,
.topology-panel::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 50%;
  animation: topologyFloat 8s ease-in-out infinite alternate;
}

.topology-panel::after {
  inset: 24%;
  border-color: rgba(63, 185, 80, 0.18);
  animation-duration: 6s;
  animation-direction: alternate-reverse;
}

.topology-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  opacity: 0.42;
}

.topology-grid span {
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

[data-theme="light"] .topology-grid span {
  border-color: rgba(17, 24, 39, 0.045);
}

.topology-lines {
  position: absolute;
  inset: clamp(1.25rem, 3vw, 2rem);
  width: calc(100% - clamp(2.5rem, 6vw, 4rem));
  height: calc(100% - clamp(2.5rem, 6vw, 4rem));
  z-index: 3;
  pointer-events: none;
  overflow: visible;
  opacity: 0.76;
}

.topology-lines path {
  fill: none;
  stroke: rgba(63, 185, 80, 0.28);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: topologyDash 9s linear infinite;
}

.topology-lines path:nth-child(2) {
  stroke: rgba(88, 166, 255, 0.28);
  animation-duration: 11s;
}

.topology-lines path:nth-child(3) {
  stroke: rgba(188, 140, 255, 0.24);
  animation-duration: 10s;
  animation-direction: reverse;
}

.topology-lines path:nth-child(4) {
  stroke: rgba(210, 153, 34, 0.24);
  animation-duration: 12s;
}

[data-theme="light"] .topology-lines path {
  stroke-opacity: 0.72;
}

.topology-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 166px;
  min-height: 112px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(63, 185, 80, 0.36);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(63, 185, 80, 0.16), transparent 68%),
    rgba(5, 6, 10, 0.86);
  box-shadow:
    0 0 0 1px rgba(63, 185, 80, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(63, 185, 80, 0.1);
  z-index: 4;
}

[data-theme="light"] .topology-core {
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 157, 69, 0.14), transparent 68%),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(31, 157, 69, 0.08),
    0 18px 42px rgba(15, 23, 42, 0.12),
    0 0 34px rgba(31, 157, 69, 0.08);
}

.core-pulse {
  width: 11px;
  height: 11px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--accent-green-bright);
  box-shadow: 0 0 18px var(--accent-green-bright);
  animation: pulseNode 1.7s ease-in-out infinite;
}

.topology-core p,
.topology-node span:last-child {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.topology-core strong {
  margin-top: var(--space-1);
  font-size: 0.98rem;
}

.topology-ring {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.topology-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 142px;
  padding: 0.56rem 0.72rem;
  border: 1px solid var(--node-border, rgba(88, 166, 255, 0.34));
  border-radius: 999px;
  background: rgba(5, 6, 10, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  translate: 0 0;
  animation: nodeFloat 6.5s ease-in-out infinite;
}

.topology-node:nth-child(1) { top: 14%; left: 7%; animation-delay: -0.4s; }
.topology-node:nth-child(2) { top: 14%; right: 6%; animation-delay: -1.1s; }
.topology-node:nth-child(3) { bottom: 16%; left: 8%; animation-delay: -2.1s; }
.topology-node:nth-child(4) { bottom: 15%; right: 6%; animation-delay: -3s; }
.topology-node:nth-child(5) { top: 45%; left: 3%; animation-delay: -1.7s; }
.topology-node:nth-child(6) { top: 45%; right: 3%; animation-delay: -2.6s; }

[data-theme="light"] .topology-node {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--node-color, var(--accent-blue));
  box-shadow: 0 0 14px var(--node-color, var(--accent-blue));
  flex: 0 0 auto;
}

.accent-green { --node-color: var(--accent-green-bright); --node-border: rgba(63, 185, 80, 0.42); --node-glow: var(--glow-green); }
.accent-blue { --node-color: var(--accent-blue); --node-border: rgba(88, 166, 255, 0.42); --node-glow: var(--glow-blue); }
.accent-purple { --node-color: var(--accent-purple); --node-border: rgba(188, 140, 255, 0.42); --node-glow: var(--glow-purple); }
.accent-orange { --node-color: var(--accent-orange); --node-border: rgba(210, 153, 34, 0.42); --node-glow: var(--glow-orange); }
.accent-yellow { --node-color: var(--accent-yellow); --node-border: rgba(247, 195, 92, 0.42); --node-glow: rgba(247, 195, 92, 0.18); }
.accent-pink { --node-color: var(--accent-pink); --node-border: rgba(247, 120, 186, 0.42); --node-glow: rgba(247, 120, 186, 0.18); }

.mission-section,
.director-section,
.engineering-code-section,
.units-section,
.career-section,
.open-roles-section,
.career-contact-section {
  padding: clamp(2.25rem, 4.5vw, 4rem) 0;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.48fr);
  align-items: end;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.section-header.narrow {
  display: block;
  max-width: 860px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-header p:not(.section-kicker) {
  color: var(--text-secondary);
}

.principles-grid,
.code-grid,
.open-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.principles-grid article,
.code-grid article,
.open-role-card,
.career-card,
.department-empty,
.director-empty {
  position: relative;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

[data-theme="light"] .principles-grid article,
[data-theme="light"] .code-grid article,
[data-theme="light"] .open-role-card,
[data-theme="light"] .career-card,
[data-theme="light"] .department-empty,
[data-theme="light"] .director-empty,
[data-theme="light"] .team-member-card {
  background: var(--bg-secondary);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.principles-grid article,
.code-grid article {
  padding: var(--space-5);
}

.principle-index {
  display: inline-block;
  margin-bottom: var(--space-5);
  font-family: var(--font-mono);
  color: var(--accent-green-bright);
  font-size: 0.78rem;
}

.principles-grid h3,
.code-grid h3,
.open-role-card h3,
.career-card h3 {
  margin-bottom: var(--space-3);
  letter-spacing: -0.025em;
}

.principles-grid p,
.code-grid p,
.open-role-description,
.career-card p,
.department-empty p,
.director-empty p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.director-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
  border: 1px solid var(--node-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  background:
    radial-gradient(circle at 0 0, var(--node-glow), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012) 38%),
    var(--bg-secondary);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.58);
}

[data-theme="light"] .director-card {
  background:
    radial-gradient(circle at 0 0, var(--node-glow), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62) 38%),
    var(--bg-secondary);
  box-shadow: 0 28px 62px rgba(15, 23, 42, 0.14);
}

.director-photo-wrap,
.member-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  align-self: center;
  border-radius: 24px;
}

.director-photo,
.member-photo,
.director-photo-fallback,
.member-photo-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.director-photo,
.member-photo {
  object-fit: cover;
}

.director-photo-fallback,
.member-photo-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 20%, var(--node-glow, rgba(63, 185, 80, 0.18)), transparent 42%),
    var(--bg-tertiary);
}

[data-theme="light"] .director-photo-fallback,
[data-theme="light"] .member-photo-fallback {
  background:
    radial-gradient(circle at 30% 20%, var(--node-glow, rgba(31, 157, 69, 0.16)), transparent 42%),
    var(--bg-tertiary);
}

.director-photo-fallback span,
.member-photo-fallback span {
  font-family: var(--font-logo);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700;
  color: var(--node-color, var(--accent-green-bright));
}

.director-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.director-label,
.member-role-label,
.open-role-topline,
.role-format,
.open-role-department {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--node-color, var(--accent-green-bright));
}

.director-content h3 {
  margin-top: var(--space-2);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.director-position {
  margin-top: var(--space-2);
  color: var(--text-secondary);
  font-weight: 600;
}

.director-bio {
  margin-top: var(--space-4);
  max-width: 640px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.director-tags,
.member-tags,
.role-stack,
.career-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  list-style: none;
}

.departments-stack,
.departments-row,
.departments-cluster {
  display: grid;
  gap: var(--space-6);
}

.department-heading {
  display: grid;
  gap: 16px;
  align-items: start;
  margin-bottom: 32px;
}

.department-heading__main {
  max-width: 700px;
}

.department-heading__main h2 {
  margin: 0;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  line-height: 1.05;
}

.department-heading__description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #666;
}

.departments-cluster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.departments-cluster--single {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}

.department-block {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--node-border);
  border-radius: var(--radius-xl);
  background: rgba(10, 12, 18, 0.58);
}

[data-theme="light"] .department-block {
  background: rgba(255, 255, 255, 0.68);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    align-items: stretch;
}

.members-grid > :only-child {
    grid-column: 1 / -1;
}

.members-grid > * {
    min-width: 0;
}

.team-member-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.42);
  transition:
    transform 260ms var(--ease-spring),
    border-color 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    background 260ms var(--ease-out);
  isolation: isolate;
}

.team-member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(420px circle at calc(var(--mx, 50) * 1%) calc(var(--my, 35) * 1%), var(--node-glow), transparent 66%),
    radial-gradient(220px circle at calc(var(--mx, 50) * 1%) calc(var(--my, 35) * 1%), color-mix(in srgb, var(--node-color) 18%, transparent), transparent 72%);
  transition: opacity 220ms var(--ease-out);
  z-index: 2;
}

.team-member-card:hover {
  transform: translateY(-6px);
  border-color: var(--node-border);
  background: var(--bg-elevated);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.62), 0 0 0 1px var(--node-border);
}

.team-member-card:hover::before {
  opacity: 1;
}

.member-photo-shell {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.member-photo {
  transition: transform 420ms var(--ease-out), filter 220ms var(--ease-out);
}

.team-member-card:hover .member-photo {
  transform: scale(1.035);
  filter: brightness(1.05) contrast(1.04) saturate(1.03);
}

.member-photo-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 10, 0.82));
}

.member-department-badge {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 3;
  max-width: calc(100% - 2rem);
  border: 1px solid var(--node-border);
  border-radius: 999px;
  padding: 0.36rem 0.74rem;
  background: rgba(5, 6, 10, 0.72);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.member-card-body {
  position: relative;
  z-index: 4;
  padding: var(--space-5);
}

.member-card-body h3 {
  margin-top: var(--space-2);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.member-position {
  margin-top: var(--space-1);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.member-bio {
  margin-top: var(--space-4);
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.member-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.member-links a {
  color: var(--node-color);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
}

.member-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.department-empty,
.director-empty {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
}

.director-empty {
  flex-direction: column;
  text-align: center;
  padding: var(--space-12);
}

.empty-orbit {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(63, 185, 80, 0.38);
  box-shadow: inset 0 0 0 10px rgba(63, 185, 80, 0.05), 0 0 28px rgba(63, 185, 80, 0.14);
}

.career-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(230px, 1fr));
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scroll-snap-type: x mandatory;
}

.career-card {
  min-height: 270px;
  padding: var(--space-5);
  scroll-snap-align: start;
}

.career-grade {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  border-radius: 16px;
  border: 1px solid rgba(63, 185, 80, 0.35);
  color: var(--accent-green-bright);
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(63, 185, 80, 0.08);
}

.career-card li {
  min-height: 26px;
  font-size: 0.72rem;
  padding: 0.22rem 0.56rem;
}

.open-role-card {
  padding: var(--space-5);
  border-color: var(--node-border);
  overflow: hidden;
}

.open-role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--node-glow), transparent);
  transform: translateX(-105%);
  animation: scanRole 5.2s ease-in-out infinite;
  pointer-events: none;
}

.open-role-topline {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.open-role-card h3 {
  font-size: 1.25rem;
}

.open-role-department {
  margin-bottom: var(--space-4);
}

.role-format {
  margin-top: var(--space-4);
  color: var(--text-muted);
}

.career-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  border: 1px solid rgba(63, 185, 80, 0.34);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: var(--bg-secondary);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.56);
}

.career-contact-card h2 {
  max-width: 760px;
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.career-contact-card p:not(.section-kicker) {
  margin-top: var(--space-3);
  color: var(--text-secondary);
}

.career-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px solid rgba(63, 185, 80, 0.38);
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  background: rgba(63, 185, 80, 0.1);
  color: var(--accent-green-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 26px rgba(63, 185, 80, 0.11);
  transition: transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.career-email:hover {
  transform: translateY(-2px);
  background: rgba(63, 185, 80, 0.16);
}

code {
  font-family: var(--font-mono);
  color: var(--accent-green-bright);
}

@keyframes topologyFloat {
  from { transform: rotate(0deg) scale(1); opacity: 0.52; }
  to { transform: rotate(8deg) scale(1.04); opacity: 0.86; }
}

@keyframes topologyDash {
  to { stroke-dashoffset: -80; }
}

@keyframes nodeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes pulseNode {
  0%, 100% { transform: scale(0.9); opacity: 0.68; }
  50% { transform: scale(1.24); opacity: 1; }
}

@keyframes scanRole {
  0%, 58% { transform: translateX(-105%); opacity: 0; }
  66% { opacity: 1; }
  82%, 100% { transform: translateX(105%); opacity: 0; }
}

@media (max-width: 1040px) {
  .hero-grid,
  .section-header,
  .department-heading,
  .director-card,
  .career-contact-card {
    grid-template-columns: 1fr;
  }

  .departments-cluster {
    grid-template-columns: 1fr;
  }

  .departments-cluster--single {
    grid-template-columns: 1fr;
  }

  .topology-panel {
    min-height: 480px;
  }

  .principles-grid,
  .code-grid,
  .open-roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: var(--space-4) 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-note {
    text-align: left;
  }

  .team-hero {
    padding-top: var(--space-16);
  }

  .topology-panel {
    min-height: 560px;
  }

  .topology-node {
    min-width: 122px;
    max-width: 174px;
  }

  .topology-node:nth-child(1) { top: 8%; left: 50%; transform: translateX(-50%); }
  .topology-node:nth-child(2) { top: 27%; right: 6%; }
  .topology-node:nth-child(3) { bottom: 27%; left: 6%; }
  .topology-node:nth-child(4) { bottom: 9%; left: 50%; transform: translateX(-50%); }
  .topology-node:nth-child(5) { top: auto; bottom: 27%; left: 6%; }
  .topology-node:nth-child(6) { top: auto; bottom: 27%; right: 6%; }

  .principles-grid,
  .code-grid,
  .members-grid,
  .open-roles-grid {
    grid-template-columns: 1fr;
  }

  .departments-cluster,
  .departments-cluster--single,
  .departments-row {
      grid-template-columns: 1fr;
  }

  .department-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .department-heading__main {
    max-width: none;
  }

  .department-heading__main h2 {
    font-size: clamp(2.1rem, 7vw, 2.8rem);
    line-height: 1.08;
    max-width: 10ch;
  }

  .department-heading__description {
    max-width: 42ch;
    font-size: 1rem;
    line-height: 1.6;
  }

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

  .director-photo-wrap {
    min-height: auto;
  }

  .department-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .career-email {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
