:root {
  --dark: #102019;
  --mint: #b2f38d;
  --ink: #17251e;
  --muted: #42584b;
  --paper: #f8faf6;
  --line: #cad8cd;
  --font: Inter, "Helvetica Neue", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #58a467; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.shell { width: min(1160px, calc(100% - clamp(32px, 9vw, 120px))); margin-inline: auto; }
.skip { position: absolute; z-index: 1; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .5rem 1rem; background: white; }
.skip:focus { transform: none; }
.site-header { background: var(--dark); color: #f6faf5; border-bottom: 1px solid #ffffff20; }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; }
.header-inner { padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 1.4rem; font-weight: 750; letter-spacing: -.045em; white-space: nowrap; }
nav { display: flex; flex-wrap: wrap; gap: 0 clamp(12px, 2.4vw, 30px); }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: #d2e0d6; font-size: .875rem; font-weight: 650; }
nav a[aria-current="page"] { color: var(--mint); text-decoration: underline; text-underline-offset: .35em; }

@media (hover: hover) {
  nav a:hover { color: var(--mint); text-decoration: underline; text-underline-offset: .35em; }
}
.hero { background: radial-gradient(ellipse at 84% 40%, #284736, transparent 60%), var(--dark); color: #f6faf5; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr); align-items: center; gap: clamp(30px, 6vw, 86px); padding-block: clamp(46px, 8vw, 110px); }
.hero h1 { max-width: 13ch; font-size: clamp(2.55rem, 1.65rem + 4vw, 5.5rem); font-weight: 700; line-height: 1; letter-spacing: -.065em; }
.hero em { color: var(--mint); font-style: normal; }
.hero p { max-width: 48ch; margin-top: 22px; color: #d5e2d8; font-size: clamp(1rem, .92rem + .45vw, 1.24rem); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 48px; margin-top: 25px; padding: 9px 17px; border-radius: 7px; background: var(--mint); color: var(--dark); font-weight: 750; }
.button:hover { background: #cdf8b6; }
.audit-card { min-width: 0; border-radius: 16px; padding: clamp(15px, 2.6vw, 30px); color: var(--ink); background: #fff; box-shadow: 0 20px 48px #0004; }
.audit-card figcaption, .audit-card dl div, .audit-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; }
.audit-card figcaption { font-size: clamp(1.12rem, 1rem + .5vw, 1.45rem); font-weight: 750; letter-spacing: -.03em; }
.audit-card small { color: var(--muted); font: 500 .76rem/1.4 var(--mono); }
.audit-card dl { margin-block: 16px; }
.audit-card dl div { border-top: 1px solid #e0e8e0; padding-block: 10px; }
.audit-card dt { color: var(--muted); }
.audit-card dd, .audit-result strong { font: 700 .95rem/1.4 var(--mono); }
.audit-result { padding: 10px 12px; border-left: 3px solid #a56826; border-radius: 5px; color: #573916; background: #fbf0da; }
.section { padding-block: clamp(40px, 7vw, 88px); }
.split, .product-grid, .profile { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(20px, 6vw, 80px); }
h2 { font-size: clamp(1.8rem, 1.25rem + 2.3vw, 3.55rem); line-height: 1.06; font-weight: 700; letter-spacing: -.055em; }
h3 { font-size: 1.18rem; line-height: 1.25; letter-spacing: -.025em; }
.prose, .profile p, .steps p, .followup { color: var(--muted); }
.prose { display: grid; align-content: start; gap: 14px; max-width: 62ch; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 52px); padding-left: 1.4rem; margin: 28px 0 22px; }
.steps li { border-top: 1px solid var(--line); padding-top: 14px; padding-inline-start: 3px; }
.steps li::marker { color: #2b5f40; font-weight: 750; }
.steps p { margin-top: 7px; }
.followup .text-link { display: inline-block; margin-inline-start: 4px; }
.text-link, .email a { text-decoration: underline; text-underline-offset: .25em; font-weight: 650; }
.text-link { color: #245e3e; }
.aside { margin-top: 15px; color: var(--muted); max-width: 34ch; font-size: .91rem; }
.inner-hero .shell { padding-block: clamp(42px, 7vw, 85px); }
.inner-hero h1 { max-width: none; }
.product-grid h2, .profile h2 { font-size: clamp(1.45rem, 1rem + 1.65vw, 2.45rem); }
.detail-list { list-style: none; padding: 0; margin: 19px 0 0; }
.detail-list li { padding-block: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.profile { padding-block: 23px; border-top: 1px solid var(--line); }
.hero .email { margin-top: 14px; font-size: .95rem; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-block: 16px; color: var(--muted); font-size: .9rem; }
.footer-inner .brand { font-size: 1.12rem; color: var(--ink); }
.footer-inner a:hover { text-decoration: underline; text-underline-offset: .25em; }

@media (max-width: 760px) {
  .hero-grid, .split, .product-grid, .profile, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .hero-grid { padding-block: 36px; }
  .header-inner { gap: 0 16px; }
  .audit-card { width: min(100%, 480px); }
}

@media (max-width: 430px) {
  .header-inner { display: block; padding-block: 8px; }
  nav { column-gap: 15px; }
  nav a { font-size: .8125rem; }
}

.scroll-story { scroll-snap-type: y mandatory; }

.story-opening,
.story-panel {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.story-opening {
  display: flex;
  flex-direction: column;
  min-block-size: 100dvh;
  color: #f6faf5;
  background: var(--dark);
}

.story-opening .hero {
  flex: 1;
  display: grid;
  align-items: center;
}

.story-controls {
  display: flex;
  justify-content: flex-end;
  padding-block: 0 12px;
}

.story-scroll {
  display: inline-grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  color: var(--mint);
  font-size: 1.25rem;
}

.story-scroll:hover { background: #ffffff12; }

.story-panel {
  display: grid;
  align-content: center;
  min-block-size: 100svh;
}

.story-panel:focus { outline: none; }
.story-panel .detail-list { margin-top: 0; }
.scroll-story .site-footer { scroll-snap-align: end; }

@media (max-width: 760px) {
  .story-opening .hero { align-items: start; }
  .story-opening .hero-grid { gap: 22px; padding-block: 22px; }
  .story-opening .inner-hero .shell { padding-block: 32px; }
}

@media (max-width: 430px) and (max-height: 560px) {
  .story-opening .hero-grid { gap: 14px; padding-block: 14px; }
  .story-opening .hero h1 { font-size: 2.15rem; }
  .story-opening .hero p { margin-top: 12px; line-height: 1.4; }
  .story-opening .button { margin-top: 13px; }
  .story-opening .audit-card dl { margin-block: 8px; }
  .story-opening .audit-card dl div { padding-block: 6px; }
  .story-controls { padding-bottom: 4px; }
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-story { scroll-behavior: smooth; }
  .story-arrived > * { animation: story-enter .42s ease-out both; }
  @keyframes story-enter {
    from { opacity: .35; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 760px) {
  .story-controls {
    position: sticky;
    inset-block-end: 0;
    z-index: 1;
    pointer-events: none;
  }

  .story-scroll {
    pointer-events: auto;
    background: var(--dark);
  }

  .story-scroll:hover { background: #294735; }
}

.has-next-panel {
  position: relative;
  padding-block-end: max(68px, 7vw);
}

.panel-controls {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  pointer-events: none;
}

.shell > .panel-controls { width: 100%; }

.panel-controls .story-scroll {
  color: #245e3e;
  background: var(--paper);
  border-color: #9db8a5;
  pointer-events: auto;
}

.panel-controls .story-scroll:hover { background: #dce9db; }

#site:has(.team-main) {
  display: flex;
  flex-direction: column;
  min-block-size: 100svh;
}

.team-main { flex: 1; }
.team-hero .shell { padding-block: clamp(24px, 6vh, 64px); }
.team-hero p { margin-top: 12px; }
.team-profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 32px);
  padding-block: clamp(20px, 5vh, 54px);
}

.team-profiles article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.team-profiles h2 { font-size: clamp(1.05rem, 1rem + .45vw, 1.5rem); }
.team-profiles p { margin-top: 7px; color: var(--muted); }

@media (max-width: 640px) {
  .team-hero .shell { padding-block: 17px; }
  .team-hero h1 { font-size: 2rem; }
  .team-hero p { margin-top: 6px; font-size: .875rem; line-height: 1.35; }
  .team-profiles { grid-template-columns: 1fr; gap: 0; padding-block: 5px; }
  .team-profiles article {
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .team-profiles article:last-child { border-bottom: 0; }
  .team-profiles p { margin-top: 4px; font-size: .875rem; line-height: 1.35; }
  .footer-inner { padding-block: 4px; gap: 0 10px; }
  .footer-inner .brand { min-height: 34px; }
}

@media (max-width: 430px) and (max-height: 560px) {
  #site:has(.team-main) .header-inner { padding-block: 0; }
  .team-hero .shell { padding-block: 9px; }
  .team-hero p { display: none; }
  .team-profiles article { padding-block: 7px; }
  .footer-inner { min-height: 40px; }
  .footer-inner .brand { display: none; }
}

#main:focus { outline: none; }

#site:has(.contact-main) {
  display: flex;
  flex-direction: column;
  min-block-size: 100svh;
}

.contact-main { display: grid; flex: 1; }
.team-main { color: #f6faf5; background: var(--dark); }
.team-hero { background: transparent; }
.team-profiles p { color: #d5e2d8; }
.team-profiles article { border-color: #456651; }

@media (min-width: 641px) {
  .team-profiles article { background: #1c3428; }
}

@media (max-width: 760px) {
  .contact-hero .shell { padding-block: 32px; }
}

#site {
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
}

.dark-band {
  color: #f6faf5;
  background: var(--dark);
}

.dark-band .steps p,
.dark-band .detail-list li { color: #d5e2d8; }
.dark-band .steps li,
.dark-band .detail-list li { border-color: #456651; }
.dark-band .steps li::marker,
.dark-band .text-link,
.dark-band .story-scroll { color: var(--mint); }

.dark-band .story-scroll {
  background: var(--dark);
  border-color: #ffffff38;
}

.dark-band .story-scroll:hover { background: #294735; }

@media (max-width: 640px) and (min-height: 561px) {
  .team-main {
    display: flex;
    flex-direction: column;
  }

  .team-profiles {
    flex: 1;
    grid-template-rows: repeat(3, minmax(min-content, 1fr));
    padding-block: 0 12px;
  }

  .team-profiles article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 12px;
  }

  .team-profiles p { margin-top: 6px; }
}

@media (min-width: 641px) {
  .team-main { padding-block-start: clamp(0px, calc(33svh - 191px), 106px); }
  .team-hero .shell { padding-block-end: clamp(24px, 4vh, 40px); }

  .team-profiles {
    row-gap: 8px;
    padding-block-start: 12px;
  }

  .team-profiles article {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    padding: 16px 0 0;
    border-width: 1px 0 0;
    border-radius: 0;
    background: transparent;
  }

  .team-profiles h2 { text-wrap: wrap; }
  .team-profiles p { margin: 0; max-width: 38ch; }
}

@media (max-width: 640px) and (min-height: 561px) {
  .team-profiles article {
    justify-content: flex-start;
    padding-block: clamp(13px, 2.4vh, 22px);
    border-top: 1px solid #456651;
    border-bottom: 0;
  }
}
