:root {
  --bone: #F5F2EC;
  --stone: #D8D0C5;
  --charcoal: #2C2C2C;
  --teal: #355F63;
  --taupe: #B7A899;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Aptos", "Avenir Next", "Helvetica Neue", sans-serif;
  color-scheme: light;
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  background: var(--bone);
  color: var(--charcoal);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 12%, rgb(53 95 99 / 8%), transparent 26rem),
    linear-gradient(112deg, rgb(216 208 197 / 30%), transparent 34%);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin-block: 0;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  translate: 0 -180%;
  background: var(--charcoal);
  color: var(--bone);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: translate 160ms ease;
}

.skip-link:focus {
  translate: 0;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}

.page-shell {
  width: min(100%, 120rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  border-inline: 1px solid rgb(44 44 44 / 12%);
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 0;
  padding: 1.35rem clamp(1.25rem, 3.6vw, 4.5rem);
  border-bottom: 1px solid var(--stone);
  animation: reveal-down 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-decoration: none;
}

.category,
.launch-marker,
.eyebrow,
.section-label,
.motif-index,
.step-number,
.site-footer {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category {
  justify-self: center;
  color: var(--charcoal);
}

.launch-marker {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.65rem;
  color: var(--teal);
  white-space: nowrap;
}

.launch-marker span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 0.28rem rgb(53 95 99 / 12%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(23rem, 0.72fr);
  min-height: min(52rem, calc(100svh - 4.5rem));
  border-bottom: 1px solid var(--stone);
}

.hero-copy,
.motif {
  min-width: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 9rem) clamp(1.5rem, 5.2vw, 6.5rem);
}

.eyebrow {
  margin-bottom: clamp(2rem, 4vw, 4.5rem);
  color: var(--teal);
  animation: reveal-up 700ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

h1 {
  max-width: 10ch;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 7.6vw, 9.25rem);
  font-weight: 400;
  letter-spacing: -0.062em;
  line-height: 0.78;
}

.headline-line {
  display: block;
  min-width: 0;
  animation: reveal-up 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline-line:nth-of-type(2) {
  animation-delay: 150ms;
}

.headline-line:nth-of-type(3) {
  animation-delay: 220ms;
}

.headline-line:nth-of-type(4) {
  animation-delay: 290ms;
}

.headline-accent {
  padding-inline-start: 0.78em;
  color: var(--teal);
  font-style: italic;
}

.intro {
  max-width: 31ch;
  margin-top: clamp(2.5rem, 4vw, 4.25rem);
  margin-left: clamp(0rem, 11vw, 10rem);
  color: rgb(44 44 44 / 74%);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.65vw, 1.75rem);
  line-height: 1.35;
  animation: reveal-up 750ms 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motif {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid var(--stone);
  background: rgb(216 208 197 / 22%);
  color: var(--teal);
  animation: fade-in 900ms 250ms ease both;
}

.motif::before {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 5.9rem, rgb(44 44 44 / 4%) 5.9rem 6rem);
  content: "";
}

.motif svg {
  position: relative;
  width: min(112%, 43rem);
  height: auto;
  overflow: visible;
  stroke: currentColor;
  stroke-width: 1.15;
}

.motif svg ellipse,
.motif svg path,
.motif svg circle {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw-line 2s 500ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motif svg ellipse:nth-of-type(2) {
  animation-delay: 610ms;
}

.motif svg ellipse:nth-of-type(3) {
  animation-delay: 720ms;
}

.motif svg ellipse:nth-of-type(4) {
  animation-delay: 830ms;
}

.motif-index,
.motif-caption {
  position: absolute;
  z-index: 1;
}

.motif-index {
  top: 2rem;
  left: 2rem;
}

.motif-caption {
  right: 2rem;
  bottom: 2rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.25;
  text-align: right;
}

.pathway {
  display: grid;
  grid-template-columns: minmax(14rem, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(2.5rem, 6vw, 8rem);
  min-width: 0;
  padding: clamp(4rem, 6vw, 6.75rem) clamp(1.5rem, 5.2vw, 6.5rem);
  animation: reveal-up 700ms 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-label {
  margin-bottom: 1.25rem;
  color: var(--teal);
}

h2 {
  max-width: 9ch;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.pathway ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pathway li {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 13rem;
  padding: 0.15rem clamp(1.25rem, 2vw, 2.25rem) 0;
  border-left: 1px solid var(--stone);
}

.step-number {
  color: var(--teal);
}

.pathway li > div {
  align-self: end;
  min-width: 0;
}

h3 {
  margin-bottom: 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.pathway li p {
  max-width: 26ch;
  color: rgb(44 44 44 / 68%);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 1.2fr) 1fr;
  align-items: end;
  gap: 2rem;
  min-width: 0;
  padding: 1.75rem clamp(1.5rem, 5.2vw, 6.5rem);
  border-top: 1px solid var(--stone);
  color: var(--charcoal);
}

.clinical-note {
  max-width: 54ch;
  justify-self: center;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.55;
  text-align: center;
  text-transform: none;
}

.copyright {
  justify-self: end;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 64rem) {
  .hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  }

  .intro {
    margin-left: 0;
  }

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

@media (max-width: 53.75rem) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand launch"
      "category category";
    row-gap: 0.7rem;
  }

  .brand { grid-area: brand; }
  .category {
    grid-area: category;
    justify-self: start;
  }
  .launch-marker { grid-area: launch; }

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

  .hero-copy {
    min-height: 41rem;
  }

  .motif {
    min-height: 31rem;
    border-top: 1px solid var(--stone);
    border-left: 0;
  }

  .motif svg {
    width: min(90%, 34rem);
  }
}

@media (max-width: 43rem) {
  .site-header,
  .hero-copy,
  .pathway,
  .site-footer {
    padding-inline: 1.2rem;
  }

  .brand {
    font-size: 1.08rem;
  }

  .launch-marker {
    gap: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.09em;
  }

  .hero-copy {
    min-height: 36rem;
    padding-block: 4.5rem;
  }

  h1 {
    font-size: clamp(3.55rem, 17.2vw, 5.25rem);
  }

  .headline-accent {
    padding-inline-start: 0.45em;
  }

  .intro {
    font-size: 1.22rem;
  }

  .motif {
    min-height: 26rem;
  }

  .motif-index {
    top: 1.25rem;
    left: 1.25rem;
  }

  .motif-caption {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .pathway ol {
    grid-template-columns: 1fr;
  }

  .pathway li {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-rows: none;
    min-height: auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--stone);
    border-left: 0;
  }

  .pathway li > div {
    align-self: start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .clinical-note {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }

  .footer-brand { grid-column: 1; }
  .copyright { grid-column: 2; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
