:root {
  --navy: #0b2240;
  --teal: #13829b;
  --slate: #1c2a38;
  --canvas: #f4f7f9;
  --paper: #ffffff;
  --crimson: #d9383a;
  --muted: #637385;
  --line: rgba(244, 247, 249, 0.16);
  --dark-line: rgba(28, 42, 56, 0.15);
  --panel: rgba(244, 247, 249, 0.93);
  --shadow: 0 28px 80px rgba(0, 8, 20, 0.3);
  --radius: 8px;
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy);
  scroll-behavior: smooth;
}

body {
  color: var(--canvas);
  font-family: Inter, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 0;
  min-width: 320px;
}

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

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

#scene-canvas,
.scene-fallback {
  height: 100svh;
  inset: 0;
  position: fixed;
  width: 100%;
}

#scene-canvas {
  background: var(--navy);
  z-index: 0;
}

.scene-fallback {
  background:
    radial-gradient(circle at 50% 42%, rgba(19, 130, 155, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(11, 34, 64, 0.9), rgba(7, 23, 42, 0.98));
  pointer-events: none;
  z-index: -1;
}

.node-hover-hint {
  height: 38px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 260ms ease;
  width: 38px;
  z-index: 1;
}

.node-hover-hint.is-visible {
  opacity: 0.9;
}

.node-hover-hint svg {
  filter: drop-shadow(0 3px 8px rgba(0, 8, 20, 0.42));
  height: 100%;
  overflow: visible;
  width: 100%;
}

.cursor-shape {
  fill: var(--canvas);
  stroke: var(--navy);
  stroke-linejoin: round;
  stroke-width: 2;
}

.cursor-rays {
  fill: none;
  opacity: 0;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-width: 2.4;
  transform: scale(0.72);
  transform-origin: 18px 8px;
  transition: opacity 120ms ease, transform 120ms ease;
}

.node-hover-hint.is-touching .cursor-rays {
  opacity: 1;
  transform: scale(1);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(11, 34, 64, 0.72);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

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

.brand img {
  height: 44px;
  width: 44px;
}

.site-header .brand img {
  background: var(--canvas);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(244, 247, 249, 0.24);
  padding: 7px;
}

.brand span {
  color: var(--canvas);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  align-items: center;
  display: flex;
  font-size: 0.9rem;
  font-weight: 760;
  gap: clamp(12px, 2.5vw, 30px);
}

.nav-links a {
  color: rgba(244, 247, 249, 0.78);
}

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

.nav-button {
  border: 1px solid rgba(19, 130, 155, 0.56);
  color: var(--canvas) !important;
  padding: 9px 14px;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

#gap,
#clinical,
#founders,
#contact {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.story-section {
  display: grid;
  min-height: 100svh;
  padding: clamp(92px, 12vw, 148px) clamp(20px, 5vw, 72px);
  position: relative;
}

.hero-section {
  align-items: center;
}

.split-section {
  align-items: center;
  justify-items: end;
}

.founders-section {
  align-content: center;
  gap: clamp(28px, 4vw, 52px);
}

.clinical-section,
.contact-section {
  align-items: center;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.86fr);
  gap: clamp(34px, 6vw, 90px);
}

.clinical-section {
  justify-items: start;
}

.contact-section {
  justify-items: end;
}

.hero-copy {
  max-width: 780px;
}

.hero-lede,
.content-panel > p,
.section-heading > p,
.contact-copy p,
.success-panel p {
  color: rgba(244, 247, 249, 0.8);
  font-size: clamp(1.06rem, 1.6vw, 1.28rem);
  margin: 22px 0 0;
  max-width: 760px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: inherit;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

h1 {
  color: var(--canvas);
  font-size: clamp(3.25rem, 7.8vw, 6.4rem);
  max-width: 900px;
}

h2 {
  color: var(--canvas);
  font-size: clamp(2.05rem, 4.65vw, 4.15rem);
  max-width: 980px;
}

h3 {
  color: var(--navy);
  font-size: clamp(1.18rem, 1.85vw, 1.55rem);
}

.title-stop {
  color: var(--teal);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 820;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--teal);
  color: var(--canvas);
}

.button.secondary {
  border-color: rgba(244, 247, 249, 0.32);
  color: var(--canvas);
}

.content-panel,
.founder-card,
.contact-form,
.success-panel {
  backdrop-filter: blur(22px);
  border: 1px solid rgba(244, 247, 249, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-panel {
  background: rgba(11, 34, 64, 0.62);
  max-width: 690px;
  padding: clamp(24px, 4vw, 44px);
}

.compact-panel {
  margin-left: auto;
}

.section-heading {
  margin: 0 auto;
  max-width: 970px;
  text-align: center;
}

.section-heading > p {
  margin-inline: auto;
}

.founder-grid {
  display: grid;
  gap: 18px;
}

.founder-card,
.contact-form {
  background: var(--panel);
  color: var(--slate);
}

.founder-card p,
.contact-copy p {
  color: var(--muted);
  margin: 18px 0 0;
}

.role {
  color: var(--teal);
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 26px;
}

.clinical-panel {
  max-width: 860px;
}

.evidence-list {
  display: grid;
  gap: 1px;
  margin-top: 28px;
}

.evidence-list div {
  border-top: 1px solid rgba(244, 247, 249, 0.16);
  padding: 18px 0 0;
}

.evidence-list span {
  color: var(--canvas);
  display: block;
  font-weight: 850;
  margin-bottom: 6px;
}

.evidence-list p {
  color: rgba(244, 247, 249, 0.72);
  margin: 0 0 2px;
}

.founder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1080px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
}

.founder-card .role {
  margin-bottom: 14px;
}

.founder-copy {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.founder-copy p {
  margin: 0;
}

.founder-photo {
  aspect-ratio: 1;
  background: var(--canvas);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  margin: 0 auto 24px;
  overflow: hidden;
  width: min(66%, 270px);
}

.founder-photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ashley-photo img {
  object-position: 50% 28%;
  transform: scale(1.08);
  transform-origin: 50% 28%;
}

.james-photo img {
  object-position: 50% 43%;
}

.contact-copy {
  background: rgba(11, 34, 64, 0.62);
  border-left: 4px solid var(--teal);
  max-width: 620px;
  padding: clamp(24px, 4vw, 42px);
}

.contact-copy h2 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
}

.contact-copy p {
  color: rgba(244, 247, 249, 0.76);
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
  padding: clamp(22px, 4vw, 42px);
  width: 100%;
}

.contact-form label {
  color: var(--navy);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 7px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: #fff;
  border: 1px solid rgba(28, 42, 56, 0.2);
  border-radius: 0;
  color: var(--slate);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
  width: 100%;
}

.contact-form textarea {
  min-height: 138px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(19, 130, 155, 0.18);
}

.hidden {
  display: none;
}

.scene-tooltip {
  background: rgba(244, 247, 249, 0.94);
  border: 1px solid rgba(19, 130, 155, 0.24);
  box-shadow: 0 18px 44px rgba(0, 8, 20, 0.24);
  color: var(--slate);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  left: 0;
  max-width: 260px;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate3d(-999px, -999px, 0);
  transition: opacity 120ms ease;
  z-index: 12;
}

.scene-tooltip.is-visible {
  opacity: 1;
}

.site-footer {
  align-items: center;
  background: rgba(4, 17, 32, 0.94);
  border-top: 1px solid var(--line);
  color: rgba(244, 247, 249, 0.78);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 72px);
}

.footer-brand span {
  color: var(--canvas);
}

.footer-brand img {
  background: var(--canvas);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(244, 247, 249, 0.24);
  padding: 6px;
}

.site-footer p {
  margin: 0;
}

.success-page {
  align-items: center;
  background: var(--navy);
  display: flex;
  min-height: 100svh;
  padding: 20px;
}

.success-panel {
  background: var(--panel);
  color: var(--slate);
  margin: 0 auto;
  max-width: 720px;
  padding: clamp(28px, 6vw, 64px);
}

.success-panel .brand {
  margin-bottom: 54px;
}

.success-panel .brand span,
.success-panel h1 {
  color: var(--navy);
}

.success-panel h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.success-panel p {
  color: var(--muted);
}

.success-panel .button {
  margin-top: 28px;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .story-section {
    min-height: auto;
    padding-block: clamp(86px, 18vw, 126px);
  }

  .hero-section {
    align-items: start;
    min-height: 100svh;
    padding-top: calc(var(--header-height) + clamp(28px, 6vw, 48px));
  }

  .split-section {
    justify-items: start;
  }

  .clinical-section,
  .contact-section {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

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

  .contact-copy,
  .contact-form,
  .content-panel {
    max-width: none;
  }
}

@media (max-height: 760px) {
  .hero-section {
    align-items: start;
    padding-top: calc(var(--header-height) + 32px);
  }
}

@media (max-width: 620px) {
  .brand span {
    font-size: 0.96rem;
  }

  .nav-links {
    font-size: 0.84rem;
    gap: 10px;
  }

  .nav-button {
    padding-inline: 11px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .founder-photo {
    width: min(76%, 250px);
  }

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

@media (max-width: 767px), (max-height: 559px), (pointer: coarse) {
  .node-hover-hint,
  .scene-tooltip {
    display: none;
  }
}

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

  .button {
    transition: none;
  }

}
