:root {
  --ink: #101816;
  --muted: #63716d;
  --paper: #fffdfa;
  --soft: #f4f8f5;
  --teal: #123c36;
  --red: #d40822;
  --plum: #6b0f6e;
  --gold: #e5b757;
  --mint: #74c6a2;
  --line: #dce5df;
  --dark-line: rgba(255, 255, 255, 0.14);
  --shadow: 0 18px 55px rgba(16, 33, 31, 0.12);
  --shadow-strong: 0 30px 90px rgba(8, 14, 13, 0.28);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(229, 183, 87, 0.76);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--teal);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--dark-line);
  background: rgba(12, 19, 18, 0.94);
  color: #fffaf2;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.nav-links {
  color: rgba(255, 250, 242, 0.68);
}

.logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 8, 34, 0.96), rgba(107, 15, 110, 0.9));
  color: #ffffff;
  font-weight: 950;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.7vw, 24px);
  font-size: 14px;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(212, 8, 34, 0.24);
}

.button.secondary {
  border-color: rgba(18, 60, 54, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--teal);
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.section {
  scroll-margin-top: 96px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) 0;
}

.hero-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  min-height: clamp(650px, calc(92svh - 78px), 860px);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  color: #fffaf2;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 20% 10%, rgba(212, 8, 34, 0.2), transparent 34vw),
    radial-gradient(circle at 82% 24%, rgba(116, 198, 162, 0.13), transparent 26vw),
    linear-gradient(180deg, #0d1514 0%, #18201f 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: #ffb9c8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(44px, 5.3vw, 76px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
}

h3 {
  margin: 0;
  color: var(--teal);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.lede {
  max-width: 720px;
  color: rgba(255, 250, 242, 0.8);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-signal {
  max-width: 650px;
  border-left: 4px solid var(--red);
  padding: 12px 0 12px 18px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-portrait,
.video-card,
article,
details,
.purpose-band,
.comparison-panel,
.rhythm-shell,
.system-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-portrait {
  overflow: hidden;
  margin: 0;
  background: #101816;
  box-shadow: var(--shadow-strong);
}

.hero-portrait img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-portrait figcaption {
  border-top: 1px solid var(--dark-line);
  padding: 16px 18px;
  color: rgba(255, 250, 242, 0.76);
}

.purpose-band {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: -36px;
  padding: clamp(30px, 4vw, 44px);
}

.purpose-band p,
.section-heading p,
article p,
details p,
.video-section p,
.system-section p,
.contact-section p,
.footer,
.text-link {
  color: var(--muted);
  line-height: 1.62;
}

.purpose-band .eyebrow,
.origin-section .eyebrow,
.principles-section .eyebrow,
.model-section .eyebrow,
.team-section .eyebrow,
.ecosystem-section .eyebrow,
.answers-section .eyebrow,
.contact-section .eyebrow,
.system-section .eyebrow,
.comparison-section .eyebrow,
.rhythm-section .eyebrow,
.video-section .eyebrow,
.leadership-section .eyebrow {
  color: var(--red);
}

.flow-story {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.flow-story span,
.system-steps button,
.comparison-tabs button,
.rhythm-buttons button,
.tab-list button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--soft);
  color: var(--teal);
  font-weight: 850;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.timeline,
.principle-grid,
.model-track,
.team-grid,
.ecosystem-grid,
.answer-grid {
  display: grid;
  gap: 12px;
}

.timeline {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

article {
  padding: 22px;
}

article span,
.model-track span,
.team-grid span,
.video-card span,
.comparison-output span,
.rhythm-output span,
.system-output span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

article strong,
summary,
.ecosystem-grid strong,
.contact-card a:not(.button) {
  color: var(--teal);
  font-weight: 900;
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.founder-card {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 0.58fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.founder-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: var(--soft);
}

.founder-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.tab-list,
.system-steps,
.comparison-tabs,
.rhythm-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-list button,
.system-steps button,
.comparison-tabs button,
.rhythm-buttons button {
  cursor: pointer;
  text-align: left;
}

.tab-list button.active,
.system-steps button.active,
.comparison-tabs button.active,
.rhythm-buttons button.active {
  border-color: rgba(212, 8, 34, 0.35);
  background: #fff4f5;
  color: var(--red);
  box-shadow: inset 4px 0 0 rgba(212, 8, 34, 0.72);
}

.tab-panel {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--soft);
  color: var(--muted);
  line-height: 1.62;
}

.video-section,
.system-section,
.comparison-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.video-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 0.45fr);
  gap: 0;
  overflow: hidden;
}

.video-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.video-card div,
.contact-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.system-panel {
  padding: clamp(22px, 3vw, 34px);
}

.system-output,
.rhythm-output {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--soft);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.model-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.team-grid article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}

.team-grid img {
  grid-row: span 3;
  width: 150px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
}

.comparison-panel,
.rhythm-shell {
  padding: clamp(22px, 3vw, 34px);
}

.comparison-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.comparison-output div {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--soft);
}

.comparison-output strong {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecosystem-grid a {
  display: grid;
  min-height: 170px;
  align-content: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(140deg, #ffffff, var(--soft));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ecosystem-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 60, 54, 0.24);
  box-shadow: 0 18px 42px rgba(16, 33, 31, 0.1);
}

.ecosystem-grid span {
  color: var(--muted);
  line-height: 1.5;
}

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

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  min-height: 34px;
}

.contact-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.footer strong,
.footer a {
  color: var(--teal);
  font-weight: 850;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 36px));
}

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

@media (max-width: 1080px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .purpose-band,
  .video-section,
  .system-section,
  .comparison-section,
  .contact-section,
  .founder-card {
    grid-template-columns: 1fr;
  }

  .timeline,
  .model-track,
  .principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-card img {
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 56px 0;
  }

  .site-header {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .site-header .button,
  .hero-actions .button,
  .contact-card .button {
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 34px;
  }

  .hero-portrait img {
    min-height: 360px;
  }

  .flow-story,
  .timeline,
  .principle-grid,
  .model-track,
  .team-grid,
  .ecosystem-grid,
  .answer-grid,
  .comparison-output,
  .video-card {
    grid-template-columns: 1fr;
  }

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

  .team-grid img {
    grid-row: auto;
    width: 100%;
    height: 260px;
  }

  .footer {
    display: grid;
  }
}
