:root {
  color-scheme: light dark;
  --bg: #f8f5ef;
  --bg-rgb: 248, 245, 239;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: #ffffff;
  --text: #171825;
  --muted: #6c6d7b;
  --accent: #5c4cf4;
  --accent-strong: #2e22d6;
  --border: rgba(23, 24, 37, 0.08);
  --glow: 0 20px 60px rgba(28, 33, 52, 0.15);
  --max-width: 1240px;
  --max-width-wide: 1380px;
  --chip-bg: rgba(17, 18, 30, 0.08);
  --chip-border: rgba(17, 18, 30, 0.18);
  --panel-overlay: rgba(255, 255, 255, 0.92);
}

[data-theme='dark'] {
  --bg: #05060d;
  --bg-rgb: 5, 6, 13;
  --surface: rgba(16, 18, 27, 0.75);
  --surface-strong: #111423;
  --text: #f2f4ff;
  --muted: #9da3c4;
  --accent: #a99bff;
  --accent-strong: #fff4c7;
  --border: rgba(255, 255, 255, 0.08);
  --glow: 0 25px 70px rgba(3, 5, 12, 0.8);
  --chip-bg: rgba(255, 255, 255, 0.12);
  --chip-border: rgba(255, 255, 255, 0.2);
  --panel-overlay: rgba(16, 18, 27, 0.85);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, rgba(92, 76, 244, 0.12), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(255, 174, 113, 0.08), transparent 40%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

main,
footer,
section {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(var(--bg-rgb, 248, 245, 239), 0.9);
  backdrop-filter: blur(12px);
  z-index: 20;
  margin: 0;
}

.header-inner {
  width: min(var(--max-width-wide), 94vw);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.theme-toggle {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
}

.theme-toggle .sun {
  opacity: 1;
}

.theme-toggle .moon {
  opacity: 0.3;
}

[data-theme='dark'] .theme-toggle .sun {
  opacity: 0.3;
}

[data-theme='dark'] .theme-toggle .moon {
  opacity: 1;
}

section {
  padding: 3rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero {
  width: min(var(--max-width-wide), 94vw);
  padding: 4rem 0 3.5rem;
  margin-inline: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

.hero-content {
  max-width: 720px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 4.2vw, 4.4rem);
  line-height: 1.15;
  margin: 0.5rem 0 1.5rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 58ch;
  color: var(--muted);
}

.hero-actions {
  margin: 2rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.25rem;
  box-shadow: var(--glow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: flex-start;
  position: relative;
  margin-right: clamp(-0.5rem, -2vw, -1.5rem);
}

.hero-chipboard {
  margin: 2.25rem 0 1.75rem;
  border: 1px solid rgba(23, 24, 37, 0.08);
  border-radius: 24px;
  padding: 1.4rem 1.6rem;
  background: var(--panel-overlay);
  box-shadow: 0 25px 60px rgba(20, 20, 40, 0.08);
  backdrop-filter: blur(8px);
}

.cap-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.chip-list.emphasis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list.emphasis li {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text);
  box-shadow: 0 10px 20px rgba(20, 20, 40, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.stat-card .metric-value {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.stat-card .metric-label {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
}

.panel-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1rem 1.25rem;
}

.panel-title {
  margin: 0 0 0.3rem;
  font-weight: 600;
}

.panel-copy {
  margin: 0;
  color: var(--muted);
}

.panel-note {
  font-weight: 500;
  color: var(--accent);
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
}

.floating-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  background: var(--surface);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: var(--glow);
}

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

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.section-heading h2 {
  margin: 0.5rem 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.section-heading p {
  margin-top: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.case-study {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.75rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.case-meta {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
}

.case-impact {
  display: flex;
  gap: 1.5rem;
  margin: 0;
}

.case-impact dt {
  font-size: 1.5rem;
  font-weight: 600;
}

.case-impact dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.case-list {
  margin: 0;
  padding-left: 1.2rem;
}

.text-link {
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}

.approach {
  background: var(--surface);
  border-radius: 32px;
  padding: 3rem;
  box-shadow: var(--glow);
}

.approach-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.approach-steps li {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--surface-strong);
}

.step-count {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.framework-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  background: var(--surface-strong);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chips span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.about-details {
  display: grid;
  gap: 1rem;
}

.detail-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  background: var(--surface);
}

.detail-card .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.tools {
  margin-top: 2rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tools-grid li {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  background: var(--surface);
}

.chip-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  margin: 1rem 0 0;
}

.chip-list li {
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  background: var(--chip-bg);
  color: var(--text);
}

.hero-photo figure {
  max-width: 260px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(92, 76, 244, 0.25), rgba(255, 255, 255, 0.05));
}

.hero-photo {
  justify-self: center;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-photo figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1rem;
  color: var(--muted);
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tag-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  background: var(--surface);
  width: fit-content;
}

.about-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.5rem;
  background: var(--surface);
  box-shadow: var(--glow);
}

.advocacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.advocacy-block {
  margin-top: 2rem;
}

.advocacy-block h3 {
  margin-bottom: 0.5rem;
}

.advocacy-grid figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--glow);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.advocacy-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advocacy-grid figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface-strong);
}

.advocacy-grid figure img {
  flex: 1;
}

.shecodes-talk img {
  object-position: center top;
}

.shecodes-audience img {
  object-position: center 20%;
}

.root-grid {
  margin-top: 1rem;
}

.root-logo img {
  object-fit: contain;
  background: var(--surface-strong);
  padding: 1rem;
}

.root-team img {
  object-position: center top;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 1.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--glow);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
}

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

.card-list {
  list-style: none;
  margin: 0;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.card-list li {
  position: relative;
}

.card-list li::before {
  content: '';
  position: absolute;
  left: -1.2rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  background: var(--surface);
}

.contact {
  padding-bottom: 4rem;
}

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

.contact-list span {
  font-weight: 600;
  margin-right: 0.75rem;
  color: var(--muted);
}

.contact-list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  border-color: var(--accent);
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 2rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.contact-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

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

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-toggle .line {
    width: 22px;
    height: 2px;
    background: var(--text);
  }

  .site-nav ul {
    position: absolute;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: var(--surface-strong);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--glow);
    border: 1px solid var(--border);
    display: none;
  }

  .site-nav ul.open {
    display: flex;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    width: min(var(--max-width), 94vw);
  }

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

  .hero-panel {
    margin-right: 0;
  }

  .hero-chipboard {
    padding: 1.25rem;
  }
}

@media (min-width: 1400px) {
  .advocacy,
  .experience,
  .projects,
  .skills,
  .contact {
    width: min(var(--max-width-wide), 88vw);
  }
}
