:root,
[data-theme="light"] {
  --bg: #f4fbfa;
  --bg-soft: #e7f6f4;
  --text: #3d4f4c;
  --text-strong: #14302c;
  --text-light: #5f7571;
  --border: #cfe8e4;
  --primary: #0f9d8a;
  --primary-dark: #0b7f70;
  --primary-hover: #12b39d;
  --header-bg: rgba(244, 251, 250, 0.9);
  --font: "Figtree", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 780px;
  --space: clamp(1.25rem, 4vw, 2rem);
  --glow: radial-gradient(
    1200px 500px at 10% -10%,
    rgba(45, 212, 191, 0.22),
    transparent 55%
  );
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #071412;
  --bg-soft: #0e221f;
  --text: #c5d9d5;
  --text-strong: #eef8f6;
  --text-light: #8aa8a2;
  --border: #1e3a35;
  --primary: #2dd4bf;
  --primary-dark: #5eead4;
  --primary-hover: #5eead4;
  --header-bg: rgba(7, 20, 18, 0.9);
  --glow: radial-gradient(
    1000px 480px at 85% -5%,
    rgba(45, 212, 191, 0.14),
    transparent 50%
  );
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg) var(--glow);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
  color: var(--primary-hover);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--space);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover,
.brand:focus-visible {
  color: inherit;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary-hover), var(--primary-dark));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-strong);
}

.brand__role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-light);
}

.header__right {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem 1.15rem;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--text-strong);
  border-bottom-color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-link,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}

.icon-link:hover,
.icon-link:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text-strong);
  background: var(--bg-soft);
}

.theme-toggle__icon {
  display: none;
  line-height: 0;
}

[data-theme="light"] .theme-toggle__icon--moon,
[data-theme="dark"] .theme-toggle__icon--sun {
  display: block;
}

.page {
  display: none;
  animation: pageIn 0.28s ease;
}

.page.is-active {
  display: block;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) var(--space) clamp(2.5rem, 6vh, 4rem);
}

.hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 3.15rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.hero__place {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero__name {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-strong);
}

.hero__lead {
  display: block;
  font-size: 0.72em;
  font-weight: 550;
  color: var(--text);
}

.hero__typed {
  display: block;
  min-height: 1.2em;
  color: var(--primary);
}

.hero__cursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

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

.hero__pitch {
  margin: -0.5rem 0 1.1rem;
  max-width: 36rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-strong);
}

.hero__lede {
  margin: 0 0 1rem;
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero__find {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.code-panel {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  overflow: hidden;
  background: #0f1115;
  color: #d6deeb;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .code-panel {
  box-shadow: 0 10px 30px rgba(15, 17, 21, 0.08);
}

.code-panel__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: #161a22;
  border-bottom: 1px solid #242a35;
}

.code-panel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3a4150;
}

.code-panel__dot:nth-child(1) {
  background: #ff5f57;
}

.code-panel__dot:nth-child(2) {
  background: #febc2e;
}

.code-panel__dot:nth-child(3) {
  background: #28c840;
}

.code-panel__file {
  margin-left: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #8b93a7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-panel__pre {
  margin: 0;
  padding: 1.1rem 1.15rem 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.code .k {
  color: #c792ea;
}

.code .t {
  color: #ffcb6b;
}

.code .p {
  color: #82aaff;
}

.code .m {
  color: #82aaff;
}

.code .s {
  color: #c3e88d;
}

.code .n {
  color: #f78c6c;
}

.proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.proof__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--space);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.proof__value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.proof__label {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.intro {
  margin: -0.5rem 0 1.75rem;
}

.impact {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.impact li {
  margin-bottom: 0.55rem;
}

.timeline__link {
  margin: 0.35rem 0 0;
  font-weight: 700;
}

.card-list {
  display: grid;
  gap: 1rem;
}

.card {
  display: block;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: inherit;
  background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover,
.card:focus-visible {
  border-color: var(--primary);
  color: inherit;
  transform: translateY(-2px);
}

.card--static {
  cursor: default;
}

.card--static:hover {
  border-color: var(--border);
  transform: none;
}

.card__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.card__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
}

.card__text {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.card__cta {
  margin: 0.85rem 0 0;
  font-weight: 700;
  color: var(--primary);
}

.case__meta {
  margin: -0.75rem 0 1.5rem;
  color: var(--text-light);
  font-weight: 600;
}

.case-block {
  margin-bottom: 1.75rem;
}

.case-block h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-strong);
}

.case-block p {
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0 1.85rem;
}

.metrics__item {
  padding: 1rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg-soft);
}

.metrics__value {
  margin: 0 0 0.3rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.1;
}

.metrics__label {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-light);
}

.more-intro {
  max-width: 34rem;
}

.more-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin: 2rem 0 1.75rem;
  max-width: 28rem;
}

.more-spotlight__value {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--primary);
}

.more-spotlight__body h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-strong);
}

.more-spotlight__body p {
  margin: 0;
  color: var(--text-light);
}

.more-facts {
  margin: 0;
  max-width: 34rem;
  border-top: 1px solid var(--border);
}

.more-facts__row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.more-facts__row dt {
  margin: 0;
  font-weight: 800;
  color: var(--text-strong);
}

.more-facts__row dd {
  margin: 0;
  color: var(--text);
}

.more-facts__row--feature dd {
  margin: 0;
}

.more-rock {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.more-rock:hover .more-band,
.more-rock:focus-visible .more-band {
  color: var(--primary);
}

.more-rock__art {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.25rem;
  object-fit: cover;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text-strong) 8%, transparent);
}

.more-rock__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.more-band {
  display: inline-block;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-strong);
  background: linear-gradient(
    180deg,
    transparent 62%,
    color-mix(in srgb, var(--primary) 28%, transparent) 62%
  );
  transition: color 0.15s ease;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 12.5rem);
  gap: 2rem 2.25rem;
  align-items: start;
}

.about-photo {
  margin: 0.35rem 0 0;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent),
    0 18px 40px color-mix(in srgb, var(--primary) 16%, transparent);
}

.note {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--bg-soft);
  color: var(--text-light);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 0.55rem;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--text-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.banner {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.banner__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 4.5rem) var(--space);
}

.section__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.section__title--page {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
}

.facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
}

.facts__label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

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

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: none;
}

.timeline__meta time {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.timeline__role {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.timeline__org {
  margin: 0.25rem 0 0;
  font-weight: 600;
  color: var(--primary);
}

.timeline__body p {
  margin: 0 0 0.65rem;
}

.timeline__stack {
  font-size: 0.92rem;
  color: var(--text-light) !important;
}

.stack-group {
  margin-bottom: 1.75rem;
}

.stack-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-strong);
}

.stack-list {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  border-top: 1px solid var(--border);
}

.stack-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
  background: var(--bg-soft);
}

.stack__note {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--space) 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-light);
}

.site-footer a {
  color: var(--text-light);
  font-weight: 600;
}

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

.site-footer__copy {
  margin: 0.75rem 0 0;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--header-bg);
  color: var(--text-strong);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 820px) {
  .nav {
    gap: 1.15rem;
  }

  .timeline__item {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
    gap: 1.5rem 2rem;
  }
}

@media (max-width: 720px) {
  .header__right {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
  }

  .nav {
    order: 2;
    font-size: 0.88rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

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

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

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    max-width: 10.5rem;
  }
}

@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }

  .brand__text {
    display: none;
  }
}

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

  .hero__cursor,
  .page,
  .back-to-top {
    animation: none !important;
    transition: none !important;
  }
}
