/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #1b1a1f;
  --bg-alt:       #211f25;
  --surface:      #29262d;
  --surface-hover:#322e37;
  --border:       #3d3844;
  --border-faint: #2e2a33;
  --text:         #eeedf2;
  --text-muted:   #aca6b4;
  --text-faint:   #7c7585;
  --accent:       #d49420;
  --accent-dim:   rgba(212, 148, 32, 0.11);
  --accent-border:rgba(212, 148, 32, 0.28);
  --green:        #4ade80;
  --green-dim:    rgba(74, 222, 128, 0.1);
  --spotify:      #1db954;

  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --radius:     8px;
  --radius-lg:  12px;
  --max-w:      860px;

  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light theme (sharp, minimal aesthetic) */
html[data-theme="light"] {
  --bg:           #F0EFEA;
  --bg-alt:       #E8E7E0;
  --surface:      #E0DFD8;
  --surface-hover:#D8D7D0;
  --border:       #DCDCDC;
  --border-faint: #E8E8E8;
  --text:         #0d0d0f;
  --text-muted:   #555566;
  --text-faint:   #888899;
  --accent:       #B8860B;
  --accent-dim:   rgba(184, 134, 11, 0.12);
  --accent-border:rgba(184, 134, 11, 0.30);
  --green:        #22c55e;
  --green-dim:    rgba(34, 197, 94, 0.12);
  --spotify:      #1db954;
}

html {
  scroll-behavior: smooth;
}

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

/* Skip link for keyboard users */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 0;
  font-size: 14px;
  font-weight: 500;
}

.skip-to-content:focus-visible {
  top: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

ul {
  list-style: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.mono {
  font-family: var(--font-mono);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
}

html[data-theme="light"] .nav {
  background: rgba(250, 250, 249, 0.9);
}

.nav-watermark {
  font-family: var(--font-mono);
  color: var(--text);
  opacity: 0.98;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: opacity 0.32s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.nav-wordmark-long,
.nav-wordmark-short {
  display: inline-flex;
  align-items: center;
}

.nav-wordmark-long {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.nav-wordmark-segment,
.nav-wordmark-tail,
.nav-wordmark-underscore,
.nav-wordmark-short {
  transition:
    opacity 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-wordmark-segment {
  display: inline-flex;
  align-items: center;
}

.nav-wordmark-initial {
  display: inline-block;
}

.nav-wordmark-tail {
  display: inline-block;
  opacity: 1;
  max-width: 6ch;
  overflow: hidden;
}

.nav-wordmark-segment--the .nav-wordmark-tail {
  max-width: 2ch;
}

.nav-wordmark-segment--rate .nav-wordmark-tail {
  max-width: 4ch;
}

.nav-wordmark-segment--keeper .nav-wordmark-tail {
  max-width: 6ch;
}

.nav-wordmark-underscore {
  display: inline-block;
  opacity: 1;
  margin-right: 0;
}

.nav-wordmark-short {
  position: absolute;
  left: 0;
  top: 50%;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translate3d(0, -50%, 0) scale(0.96);
  pointer-events: none;
}

.nav-watermark:hover {
  opacity: 1;
}

.nav.nav--wordmark-compact .nav-wordmark-tail,
.nav.nav--wordmark-compact .nav-wordmark-underscore {
  opacity: 0;
  max-width: 0;
  transform: translate3d(-0.08em, 0, 0);
  margin-right: 0;
}

.nav.nav--wordmark-compact .nav-wordmark-short {
  opacity: 1;
  transform: translate3d(0, -50%, 0) scale(1);
}

.nav.nav--wordmark-hidden .nav-watermark {
  transform: translate3d(-118%, 0, 0);
  opacity: 0;
  pointer-events: none;
}

.nav-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}

/* Desktop utility menu */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-utility--desktop {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-utility-trigger {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}

.nav-utility-trigger:hover,
.nav-utility-trigger[aria-expanded="true"] {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  opacity: 1;
}

.nav-utility-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 124px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate3d(0, -6px, 0);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 130;
}

.nav-utility-menu.open {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.nav-utility-item {
  background: none;
  border: none;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-utility-item:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--surface-hover) 82%, transparent);
}

html[data-theme="light"] .nav-utility-trigger {
  color: #666675;
}

html[data-theme="light"] .nav-utility-trigger:hover,
html[data-theme="light"] .nav-utility-trigger[aria-expanded="true"] {
  color: #22222a;
}

html[data-theme="light"] .nav-utility-menu {
  background: color-mix(in srgb, var(--surface) 92%, white 8%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .nav-utility-item {
  color: #666675;
}

html[data-theme="light"] .nav-utility-item:hover {
  color: #22222a;
}


.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  border-radius: 1px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 88px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-photo-wrap {
  flex-shrink: 0;
}

.hero-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-border);
  box-shadow: 0 0 0 6px rgba(212, 148, 32, 0.07);
  display: block;
}

.hero-label {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-name {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 17px);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.hero-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-cta-btn:hover {
  background: rgba(212, 148, 32, 0.18);
  border-color: rgba(212, 148, 32, 0.50);
  color: #e8aa30;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section--alt {
  background-color: var(--bg-alt);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 32px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: -20px;
  margin-bottom: 40px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-body p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 20px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.about-tags li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.team-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.team-card:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.team-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-border);
  background: linear-gradient(135deg, rgba(212,148,32,0.12), rgba(212,148,32,0.04));
  box-shadow: 0 0 0 4px rgba(212,148,32,0.05);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.team-avatar--image {
  display: block;
  object-fit: cover;
  padding: 0;
}

.team-avatar--placeholder {
  color: var(--text-faint);
}

.team-content {
  min-width: 0;
}

.team-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.team-role {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.team-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.project-card:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.project-card--featured {
  border-color: var(--accent-border);
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(212,148,32,0.04) 100%);
  box-shadow: 0 0 0 1px var(--accent-border), 0 8px 32px rgba(212,148,32,0.06);
}

.project-card--featured:hover {
  border-color: rgba(212, 148, 32, 0.50);
  box-shadow: 0 0 0 1px rgba(212,148,32,0.50), 0 12px 40px rgba(212,148,32,0.10);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.project-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  padding: 3px 8px;
  border-radius: 4px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--accent);
}

.btn--primary:hover {
  background: rgba(212, 148, 32, 0.20);
  border-color: rgba(212, 148, 32, 0.50);
}

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

.btn--secondary:hover {
  border-color: #3a3a48;
  color: var(--text);
}

.btn--placeholder {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.btn--sm {
  font-size: 11px;
  padding: 5px 11px;
}

.btn-icon {
  font-style: normal;
  line-height: 1;
}

/* Featured card two-column inner layout */
.project-card--featured .project-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  align-items: start;
}

.project-card--featured .project-main {
  display: flex;
  flex-direction: column;
}

/* TMA custom layout: main full width, subs side-by-side below */
.project-card--featured.tma-featured .project-body {
  grid-template-columns: 1fr;
  gap: 0;
}

.project-card--featured.tma-featured .tma-main {
  grid-column: 1;
  margin-bottom: 32px;
}

.tma-subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

/* ============================================================
   SUB-PROJECT (Compound Intelligence)
   ============================================================ */
.sub-project {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

/* TMA subs: no left border, side-by-side layout */
.tma-subs .sub-project {
  border-left: none;
  padding-left: 0;
}

.sub-project-header {
  margin-bottom: 10px;
}

.sub-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 4px;
}

.sub-project-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.sub-project-desc {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-body p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 660px;
  margin-bottom: 20px;
}

.ai-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.pillar-title {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pillar p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   PODCASTS
   ============================================================ */
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

.podcast-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px 14px 14px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.podcast-card:hover {
  background: var(--surface-hover);
  border-color: rgba(29, 185, 84, 0.25);
}

.podcast-cover {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.podcast-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.podcast-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.45;
  transition: color 0.2s;
}

.podcast-card:hover .podcast-title {
  color: var(--text);
}

.podcast-platform {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--spotify);
}

.podcast-arrow {
  font-size: 14px;
  color: var(--text-faint);
  transition: color 0.2s;
  flex-shrink: 0;
}

.podcast-card:hover .podcast-arrow {
  color: var(--spotify);
}

/* ============================================================
   ADMIN MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 8px;
}

.modal-input:focus {
  border-color: var(--accent-border);
}

.modal-error {
  font-size: 12px;
  color: #f87171;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.modal-error[hidden] {
  display: none;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 520px;
  margin: 0 auto;
}

.cta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.cta-heading {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.cta-email:hover {
  background: rgba(212, 148, 32, 0.18);
  border-color: rgba(212, 148, 32, 0.5);
  color: #e8aa30;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-url {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-admin {
  font-size: 11px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  border: 1px solid var(--border-faint);
  padding: 3px 9px;
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-admin:hover {
  color: var(--text-muted) !important;
  border-color: var(--border);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .nav-links {
    gap: 20px;
  }

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

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-avatar {
    width: 96px;
    height: 96px;
  }

  .section {
    padding: 60px 0;
  }

  .team-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .team-card {
    padding: 18px;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .team-avatar {
    width: 56px;
    height: 56px;
  }

  .team-name {
    font-size: 16px;
  }

  .team-role {
    margin-bottom: 8px;
  }

  .team-desc {
    font-size: 13px;
    line-height: 1.5;
  }

  .project-card--featured .project-body {
    grid-template-columns: 1fr;
    gap: 24px 0;
  }

  .sub-project {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 20px;
  }

  .ai-pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .nav-links {
    display: none;
  }

  .ai-pillars {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.nav-lang-toggle {
  margin-left: auto;
  margin-right: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
  letter-spacing: 0.05em;
}

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

.lang-text {
  transition: color 0.2s ease;
}

.lang-text.active {
  color: var(--accent);
  font-weight: 600;
}

.lang-sep {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .lang-btn {
    font-size: 11px;
    padding: 3px 6px;
  }
}

/* ============================================================
   HAMBURGER MENU
   ============================================================ */

/* Hamburger button - visible on mobile only, positioned top-right */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px 12px;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.7;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  margin-left: auto;
  position: relative;
  z-index: 120;
}

.hamburger:hover {
  color: var(--text);
  opacity: 1;
}

/* Desktop nav - hide on mobile */
.nav-utility--desktop,
.nav-links--desktop {
  display: flex;
}

/* Mobile menu overlay */
.mobile-menu {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.42s,
    background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  will-change: opacity;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s,
    background-color 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Mobile menu content drawer — overlays header and slides from right edge */
.mobile-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  width: min(39vw, 180px);
  max-width: 100%;
  height: min(68vh, 560px);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  z-index: 115;
  display: flex;
  flex-direction: column;
  transform: translate3d(36px, 0, 0) scale(0.98);
  opacity: 0;
  transition:
    transform 0.56s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.56s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 0 0 0 18px;
  overflow-y: auto;
  padding: 72px 14px 20px;
  box-shadow: -14px 20px 40px rgba(0, 0, 0, 0.16);
  will-change: transform, opacity;
}

html[data-theme="light"] .mobile-menu-content {
  background: color-mix(in srgb, var(--bg) 96%, white 4%);
  box-shadow: -14px 20px 40px rgba(0, 0, 0, 0.07);
}

.mobile-menu.open .mobile-menu-content {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  box-shadow: -20px 28px 64px rgba(0, 0, 0, 0.22);
}

/* Mobile menu toggles (theme + language) */
.mobile-menu-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.mobile-menu-toggle-group {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.mobile-menu-toggle-label {
  cursor: pointer;
  width: 100%;
}

.mobile-menu-toggle-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 2px;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  text-align: left;
}

.mobile-menu-toggle-btn:hover {
  color: var(--text);
}

.mobile-menu-toggle-btn:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.mobile-menu-toggle-emoji {
  font-size: 20px;
  min-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle-text {
  display: inline;
}

/* Mobile nav links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-link {
  display: block;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.mobile-nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.mobile-nav-link:active {
  background: var(--surface-hover);
  transform: scale(0.985);
}

html[data-theme="light"] .mobile-nav-link {
  color: var(--text-muted);
}

html[data-theme="light"] .mobile-nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */

/* Tablet/smaller screens */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
  }
}

/* Mobile breakpoint - 768px */
@media (min-width: 768px) {
  .nav-wordmark-short {
    display: none !important;
  }

  .nav.nav--wordmark-compact .nav-wordmark-tail,
  .nav.nav--wordmark-compact .nav-wordmark-underscore {
    opacity: 1;
    max-width: none;
    transform: none;
  }

  .nav.nav--wordmark-hidden .nav-watermark {
    transform: none;
    opacity: 0.98;
    pointer-events: auto;
  }
}

@media (max-width: 767px) {
  /* Show hamburger */
  .hamburger {
    display: inline-flex;
    position: relative;
    z-index: 110;
    margin-left: 0;
    align-self: center;
  }

  /* Hide desktop utility nav */
  .nav-utility--desktop,
  .nav-links--desktop {
    display: none;
  }

  /* Mobile header becomes invisible chrome */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    padding: 0 16px;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    justify-content: space-between;
    align-items: center;
  }

  html[data-theme="light"] .nav {
    background: transparent;
  }

  .nav-watermark {
    opacity: 0.98;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .nav-wordmark-long,
  .nav-wordmark-short {
    font-size: 13px;
  }


  /* Mobile menu overlays the floating header zone */
  .mobile-menu-content {
    top: 0;
    max-width: 100%;
  }

  /* Ensure mobile nav links are tappable (48px+ recommended) */
  .mobile-nav-link {
    padding: 14px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* Hamburger icon size */
  .hamburger {
    font-size: 24px;
  }
}
