:root {
  --green: #023924;
  --accent: #f29bc6;
  --surface: #33402c;
  --ink: #000;
  --white: #fff;
  --line: #e9e9e9;
  --display: "Monomaniac One", monospace;
  --body: "DM Sans", sans-serif;
  --mono: "Space Mono", monospace;
}

:root[data-colour-mode="calm"] {
  --green: #263a32;
  --accent: #e4c1cc;
  --surface: #393e39;
  --line: #8f898c;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  margin: 0;
  max-width: none;
  margin-inline: auto;
  border-inline: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.4;
}

button, input { font: inherit; }
a { color: inherit; }

.scroll-progress {
  position: fixed;
  z-index: 20;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 375px);
  height: 8px;
  overflow: hidden;
  transform: translateX(-50%);
  background: var(--green);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  background: var(--white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  width: min(100%, 375px);
  transform: translateX(-50%);
  z-index: 5;
  min-height: 78px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  transition: border-radius .2s ease;
}

.nav-top {
  width: 100%;
  height: 78px;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  transition: height .2s ease;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.colour-mode-label {
  color: #023924;
  font: 14px/1.2 var(--mono);
  white-space: nowrap;
}

.colour-mode-toggle {
  position: relative;
  flex: 0 0 63px;
  width: 63px;
  height: 27px;
  padding: 0;
  display: block;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.colour-mode-toggle::before {
  position: absolute;
  top: 2px;
  left: 23px;
  width: 37px;
  height: 23px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .12);
  content: "";
  transition: left .2s ease;
}
:root[data-colour-mode="calm"] .colour-mode-toggle::before { left: 3px; }
.colour-mode-toggle:active { transform: scale(.97); }
.colour-mode-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 46px;
  color: var(--accent);
  font: 16px/1 var(--display);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 27px;
  height: 46px;
  object-fit: contain;
}

.menu-state {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
}

.menu-toggle img { display: block; width: 18px; height: 12px; }
.menu-toggle { transition: background-color .18s ease; }
.menu-state:focus-visible ~ .nav-top .menu-toggle,
.menu-state:focus-visible ~ .nav-top .menu-close { outline: 2px solid var(--green); outline-offset: 4px; }
.menu-close { position: relative; width: 24px; height: 24px; display: none; cursor: pointer; }
.menu-close span { position: absolute; top: 11px; left: 2px; width: 20px; height: 2px; background: var(--accent); transition: background-color .18s ease; }
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child { transform: rotate(-45deg); }

.menu {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height .25s ease, padding .25s ease, opacity .2s ease, visibility .2s ease;
}

.menu-state:checked ~ .nav-top .menu-toggle { display: none; }
.menu-state:checked ~ .nav-top .menu-close { display: block; }
.menu-state:checked ~ .menu { max-height: 560px; padding: 8px 20px 32px; visibility: visible; opacity: 1; pointer-events: auto; }
.menu-list { display: flex; flex-direction: column; }
.menu-link { min-height: 0; padding: 30px 0; display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--green); text-decoration: none; font-size: 14px; font-weight: 700; transition: color .18s ease; }
.menu-link[href="what-else.html"] { border-bottom: 1px solid var(--line); }
.menu-link:active { color: var(--surface); }
.menu-contact-button {
  align-self: flex-start;
  margin-top: 18px;
  padding: 12px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1000px;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font: 700 14px/1.2 var(--body);
  transition: background-color .18s ease;
}
.menu-contact-button:active { background: #023924; }
.back-home-row {
  width: 100%;
  height: 45px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  background: var(--green);
}
.back-home-link {
  display: inline-flex;
  align-items: baseline;
  color: var(--white);
  font: 700 12px/1.4 var(--mono);
  letter-spacing: -.005em;
  text-decoration: none;
}
.back-home-arrow {
  margin-right: 4px;
  font: 700 12px/1.4 var(--body);
}
.back-home-text { text-decoration: underline; text-underline-offset: 1px; }
.back-home-link:active { color: var(--accent); }

.button {
  min-height: 46px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.button img { width: 7px; height: 7px; filter: brightness(0) invert(1); }
.button:active { background: var(--green); transform: scale(.98); }

.hero {
  min-height: 566px;
  padding: 120px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--green);
}
.hero h1 {
  width: 100%;
  margin: 0;
  color: var(--accent);
  font: 400 60px/.85 var(--display);
  letter-spacing: -2.7px;
  text-align: center;
}

.hero-art-frame {
  position: relative;
  width: 302px;
  max-width: 100%;
  height: 233px;
  flex: 0 0 233px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: var(--green);
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; }
h2 { font-size: 40px; line-height: 1; letter-spacing: .01em; }

main p { text-wrap: pretty; }

.introduction {
  min-height: 356px;
  padding: 50px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--accent);
  color: var(--surface);
}

.introduction h2 { width: 100%; color: var(--surface); }
.intro-copy { width: 100%; max-width: 760px; min-height: 0; }
.intro-copy p, .cabin-description p { margin: 0 0 18px; font-size: 16px; letter-spacing: -.08px; }
.intro-copy p:last-child, .cabin-description p:last-child { margin-bottom: 0; }

.definition-section {
  padding: 50px 16px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-top: 1px solid var(--white);
  background: var(--accent);
  color: var(--green);
}
.definition-section h2 { color: var(--green); }
.definition-copy { max-width: 760px; margin: 0; font-size: 16px; line-height: 1.4; letter-spacing: -.08px; }
.definition-reference { max-width: 760px; margin: 0; font-size: 12px; font-style: italic; font-weight: 300; line-height: 1.4; letter-spacing: -.05px; }
.cabin-section {
  padding: 0 16px 100px;
  background: var(--green);
  color: var(--accent);
}

.cabin-copy {
  max-width: 1000px;
  padding: 80px 0 50px;
}

.cabin-copy h2 { margin: 0 0 30px; color: var(--accent); }
.cabin-description { display: flex; flex-direction: column; gap: 14px; }
.cabin-feature-title { margin: 0; color: var(--accent); font: 400 18px/1 var(--display); letter-spacing: .18px; }
.cabin-description p { max-width: 780px; }

.cabin-carousel {
  position: relative;
  width: 100%;
  max-width: 343px;
  height: 273px;
  margin: 0 auto 50px;
}
.cabin-carousel-viewport {
  width: 100%;
  height: 227px;
  overflow: hidden;
  border-radius: 30px;
  touch-action: pan-y;
}
.cabin-carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  user-select: none;
  -webkit-user-drag: none;
}
.cabin-carousel-dots {
  position: absolute;
  top: 244px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}
.cabin-carousel-dot {
  width: 16px;
  height: 16px;
  padding: 0;
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.cabin-carousel-dot.is-active img,
.cabin-carousel-dot[aria-current="true"] img { width: 16px; height: 16px; }
.cabin-carousel-dot img { display: block; width: 12px; height: 12px; }
.cabin-carousel-dot:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 50%; }
.cabin-carousel-dot:active { transform: scale(.9); }

.resources {
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource {
  min-height: 260px;
  padding: 40px 20px 40px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.resource-icon { width: 24px; height: 24px; object-fit: contain; }
.resource-copy { display: flex; flex-direction: column; gap: 20px; }
.resource h3 { color: var(--accent); font-size: 18px; line-height: 1.2; letter-spacing: .01em; }
.resource p { margin: 0; color: var(--accent); font-size: 16px; line-height: 1.4; letter-spacing: -.08px; }

.button-accent { background: var(--accent); color: var(--white); }
.button-accent:active { background: var(--green); color: var(--white); }

.connect {
  padding: 120px 16px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  background: var(--accent);
  color: var(--green);
  text-align: center;
}

.connect h2 { width: 100%; font-size: 60px; line-height: .9; }
.connect p { width: 100%; max-width: 500px; margin: 0; color: var(--green); font-size: 16px; letter-spacing: -.08px; }
.button-dark { width: 100%; background: var(--green); color: var(--white); }
.button-dark:active { background: var(--surface); }

.thanks {
  min-height: 157px;
  padding: 25px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--green);
  color: var(--accent);
}

.thanks h2 { font-size: 40px; }
.thanks-list { display: flex; flex-direction: column; gap: 10px; }
.thanks-list p { width: 100%; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 8px; margin: 0; color: var(--accent); font-size: 13px; font-weight: 700; line-height: 17px; letter-spacing: -.35px; white-space: nowrap; }
.thanks-list span { flex: 0 0 auto; color: var(--accent); font: 11px/17px var(--mono); letter-spacing: -.11px; white-space: nowrap; }

.site-footer {
  max-width: 1600px;
  min-height: 365px;
  margin: 0 auto;
  padding: 40px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: var(--green);
  color: var(--accent);
}
.home-footer { min-height: 366px; padding-bottom: 0; justify-content: flex-start; gap: 40px; }
.page-bottom-fill { width: min(100%, 375px); height: 81px; margin-inline: auto; background: #023924; }

.train-drawer {
  position: fixed;
  z-index: 21;
  right: auto;
  bottom: 0;
  left: 50%;
  width: min(100%, 375px);
  height: 81px;
  overflow: hidden;
  transform: translateX(-50%);
  border-radius: 30px 30px 0 0;
  background: var(--accent);
  color: var(--green);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, .18);
  transition: height .32s cubic-bezier(.22,.61,.36,1);
}
.train-drawer[data-open="true"] { height: 318px; }
.train-drawer-toggle {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  width: 100%;
  height: 81px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.train-drawer-closed-view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: opacity .16s ease;
}
.train-drawer[data-open="true"] .train-drawer-closed-view { opacity: 0; pointer-events: none; }
.train-drawer-handle {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 150px;
  height: 4px;
  border-radius: 2px;
  background: #e5e5ea;
  transform: translateX(-50%);
}
.train-drawer-closed-art {
  position: static;
  flex: 0 0 auto;
  width: 39px;
  height: 50px;
  object-fit: contain;
}
.train-drawer-closed-title {
  position: static;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  font-size: clamp(14px, 4.8vw, 18px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.1px;
  text-align: left;
  white-space: nowrap;
}
.train-drawer-open-handle { position: absolute; inset: 0; opacity: 0; transition: opacity .16s ease; }
.train-drawer[data-open="true"] .train-drawer-open-handle { opacity: 1; }
.train-drawer-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease .08s;
}
.train-drawer[data-open="true"] .train-drawer-content { opacity: 1; pointer-events: auto; }
.train-drawer-open-art {
  position: absolute;
  top: 33px;
  left: 22px;
  width: 131px;
  height: 167px;
  object-fit: contain;
}
.train-drawer-message {
  position: absolute;
  top: 66px;
  left: 45.6%;
  width: calc(54.4% - 22px);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.1px;
}
.train-drawer-cta {
  position: absolute;
  top: 220px;
  left: 8px;
  width: calc(100% - 16px);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 30px;
  background: var(--green);
  color: var(--white);
  font: 25px/.85 var(--display);
  letter-spacing: -1.125px;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.train-drawer-cta:active { background: var(--surface); transform: scale(.99); }
.train-drawer-toggle:focus-visible,
.train-drawer-cta:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .train-drawer, .train-drawer-closed-view, .train-drawer-open-handle, .train-drawer-content { transition-duration: .01ms; }
}

.footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 27px; }
.home-footer .footer-nav { height: 99px; min-height: 99px; justify-content: center; gap: 20px; }
.footer-nav a { font-size: 14px; font-weight: 700; text-decoration: none; transition: color .18s ease; }
.footer-nav a:active { color: var(--white); }
.footer-bottom { min-height: 129px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.home-footer .footer-bottom { width: calc(100% + 32px); height: 186px; min-height: 186px; margin-inline: -16px; padding: 27px 16px 0; border-top: 1px solid var(--line); }
.credits { display: flex; flex-direction: column; align-items: flex-start; gap: 23px; text-align: left; font: 12px/1.4 var(--mono); }
.footer-tagline { display: block; margin-bottom: 4px; font: 15px/1.4 var(--display); }
.footer-institution { display: block; }
.credits p { margin: 0; }

/* Keep hover feedback limited to devices that actually support hovering. */
@media (hover: hover) and (pointer: fine) {
  .menu-toggle:hover { background: var(--accent); }
  .menu-close:hover span { background: var(--green); }
  .menu-link:hover { color: var(--accent); }
  .menu-contact-button:hover { background: #023924; }
  .button-accent:hover { background: var(--green); }
  .button-dark:hover { background: var(--surface); }
  .footer-nav a:hover,
  .support-return-link:hover,
  .asd-return-link:hover { color: var(--white); }
}

.menu-close:focus-visible,
.menu-link:focus-visible,
.menu-contact-button:focus-visible,
.button:focus-visible,
.back-home-link:focus-visible,
.footer-nav a:focus-visible,
.support-return-link:focus-visible,
.asd-return-link:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: gentle-reveal linear both;
    animation-timeline: view(block);
    animation-range: entry 0% entry 35%;
  }
}

@keyframes gentle-reveal {
  from { opacity: .65; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* What Else Can You Do? — Figma mobile frame */
body.support-page { padding-top: 78px; background: var(--white); color: var(--white); }
.support-guidance { width: 100%; padding: 60px 32px 80px; }
.support-for-self { padding-top: 0; background: var(--green); }
.support-for-others { background: var(--accent); color: var(--green); }
.support-intro { display: flex; flex-direction: column; gap: 40px; margin-bottom: 20px; }
.support-intro h1 { margin: 0; font: 400 60px/.9 var(--display); letter-spacing: .01em; overflow-wrap: anywhere; }
.support-for-self .support-intro h1 { color: var(--accent); }
.support-for-others .support-intro h1 { color: var(--green); }
.support-intro p { margin: 0; font: 400 16px/1.4 var(--body); letter-spacing: -.005em; }
.support-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.support-step { min-width: 0; }
.support-step > img, .support-image-pair img { display: block; width: 100%; height: 217px; border-radius: 30px; object-fit: cover; }
.support-image-pair { display: flex; flex-direction: column; gap: 11px; }
.support-image-pair-dots { display: none; }
.support-step-copy { display: flex; align-items: flex-start; gap: 20px; padding: 20px 0; font: 400 16px/1.4 var(--body); letter-spacing: -.005em; }
.support-number { flex: 0 0 auto; font-weight: 700; }
.support-step-copy > div { min-width: 0; flex: 1; }
.support-step-copy h2 { margin: 0 0 5px; font: 400 16px/1.4 var(--body); letter-spacing: -.005em; }
.support-step-copy p { margin: 0; }
.support-step-copy > div > p { font: 400 12px/1.4 var(--mono); letter-spacing: -.01em; }
.support-caption { font: 400 12px/1.4 var(--mono); letter-spacing: -.01em; }
.support-caption p + p { margin-top: 3px; }
.support-caption ul { margin: 0; padding-left: 18px; }
.support-reference { margin: 0; color: inherit; font: italic 300 12px/1.4 var(--body); letter-spacing: -.06px; }
.support-reference a { color: inherit; }
.support-return-nav {
  min-height: 168px;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--green);
}
.support-return-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.35px;
  text-decoration: none;
  transition: color .18s ease;
}
.support-return-link:active { color: var(--white); }
.support-footer { min-height: 186px; height: 186px; border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .phase-marker { transition: none !important; }
}

/* Learn More about Autism and Meltdowns page */
body.asd-page { padding-top: 78px; background: var(--white); color: var(--green); }
.asd-hero {
  width: 100%;
  height: 536px;
  padding: 120px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--green);
}
.asd-hero h1 {
  width: 100%;
  margin: 0;
  color: var(--accent);
  font: 400 44px/.9 var(--display);
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
}
.asd-hero-art-frame { position: relative; width: 100%; height: 97px; flex: 0 0 97px; }
.asd-hero-art-window {
  position: absolute;
  top: -133.6px;
  left: 20px;
  width: calc(100% - 41px);
  height: 233px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}
.asd-hero-art-window img {
  position: absolute;
  top: .25%;
  left: -19.19%;
  width: 128.92%;
  height: 113.84%;
  max-width: none;
}
.asd-copy {
  width: 100%;
  padding: 50px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  color: var(--green);
  background: var(--accent);
}
.asd-copy h2 {
  width: 100%;
  margin: 0;
  font: 400 40px/1 var(--display);
  letter-spacing: .01em;
}
.asd-copy p {
  width: 100%;
  margin: 0;
  font: 400 16px/1.4 var(--body);
  letter-spacing: -.005em;
}
.asd-definition { min-height: 296px; }
.asd-meltdown-hero {
  width: 100%;
  height: 382px;
  padding: 5px 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  background: var(--green);
}
.asd-meltdown-hero h2,
.asd-phases-hero h2 {
  width: 100%;
  margin: 0;
  color: var(--accent);
  font: 400 44px/.9 var(--display);
  letter-spacing: .01em;
  text-align: center;
}
.asd-meltdown-hero h2 { padding: 0 10px; font-size: 60px; }
.asd-meltdown-art-window {
  position: relative;
  width: min(100%, 328px);
  height: 229px;
  flex: 0 0 229px;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}
.asd-meltdown-art-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  border-radius: 30px 30px 0 0;
}
.asd-what-are-they {
  width: min(100%, 375px);
  height: 297px;
  min-height: 297px;
  padding: 50px 16px 42px;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}
.asd-tantrum { min-height: 310px; }
.asd-tantrum-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.asd-tantrum-copy p { margin: 0; }
.asd-reference {
  color: #000;
  font: italic 300 12px/1.4 var(--body);
  letter-spacing: -.004em;
}
.asd-reference p {
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}
.asd-reference a { color: inherit; }
.asd-phases-hero {
  width: 100%;
  min-height: 461px;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow: hidden;
  color: var(--accent);
  background: var(--green);
}
.asd-phases-hero h2 { padding: 0 16px; }
.asd-phases-hero p {
  width: calc(100% - 32px);
  max-width: 1030px;
  margin: 0 auto;
  font: 400 16px/1.4 var(--body);
  letter-spacing: -.005em;
}
.phase-diagram {
  position: relative;
  width: 100%;
  height: 129px;
  flex: 0 0 129px;
  margin-top: auto;
}
.phase-diagram > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phase-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  transform: translate3d(var(--marker-x, 62px), var(--marker-y, 94px), 0);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
  z-index: 1;
}
.phase-marker > img { display: block; }
@supports (offset-path: path("M 0 0 L 1 1")) {
  .phase-marker {
    transform: none;
    offset-path: path("M 70 102 C 88 97, 101 94, 112 74 C 127 54, 147 62, 166 51 C 174 45, 170 31, 182 34 C 199 46, 219 56, 238 55 C 252 55, 251 78, 266 97");
    offset-anchor: center;
    offset-rotate: 0deg;
    offset-distance: var(--marker-distance, 0%);
    transition: offset-distance .55s cubic-bezier(.22, .61, .36, 1);
  }
}
.asd-phase-carousel {
  width: 100%;
  min-height: 424px;
  padding: 50px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  color: var(--accent);
  background: var(--green);
}
.asd-phase-carousel > h2 {
  width: 100%;
  margin: 0;
  font: 400 40px/1 var(--display);
  letter-spacing: .01em;
}
.phase-carousel {
  position: relative;
  flex: 0 0 188px;
  width: 273px;
  max-width: calc(100vw - 96px);
}
.phase-card {
  position: relative;
  width: 100%;
  height: 188px;
  touch-action: pan-y;
  overflow: hidden;
  border: 10px solid var(--accent);
  border-radius: 44px;
  color: var(--green);
  background: var(--white);
  text-align: center;
}
.phase-card-title {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  margin: 0;
  font: 400 30px/1 var(--display);
  letter-spacing: .01em;
  text-align: center;
}
.phase-card-description {
  position: absolute;
  top: 82px;
  right: 24px;
  left: 24px;
  height: 67px;
  margin: 0;
  font: 400 14px/1.4 var(--body);
  letter-spacing: -.005em;
  text-align: center;
}
.phase-card[data-phase-index="0"] .phase-card-description { right: 29px; left: 30px; }
.phase-card[data-phase-index="2"] .phase-card-description { right: 39px; left: 39px; }
.phase-card[data-phase-index="3"] .phase-card-description { right: 39px; left: 38px; }
.phase-card[data-phase-index="4"], .phase-card[data-phase-index="5"] { --phase-copy-inset: 29px; }
.phase-card[data-phase-index="4"] .phase-card-description,
.phase-card[data-phase-index="5"] .phase-card-description { right: 30px; left: var(--phase-copy-inset); }
.phase-arrow {
  position: absolute;
  z-index: 1;
  top: 78px;
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}
.phase-arrow-previous { left: -48px; }
.phase-arrow-next { right: -49px; }
.phase-arrow span {
  position: relative;
  width: 20px;
  height: 4px;
  background: currentColor;
}
.phase-arrow span::before {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  content: "";
}
.phase-arrow-previous span::before { left: 0; transform: translateY(-50%) rotate(-135deg); }
.phase-arrow-next span::before { right: 0; transform: translateY(-50%) rotate(45deg); }
.phase-arrow:active { color: var(--white); transform: scale(.92); }
.phase-dots {
  position: absolute;
  top: 204px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
}
.phase-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.phase-dots button[aria-current="true"] { width: 16px; height: 16px; background: var(--accent); }
.phase-dots button:active { transform: scale(.88); }
.phase-arrow:focus-visible, .phase-dots button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.asd-footer {
  width: 100%;
  height: 186px;
  min-height: 186px;
  padding: 27px 16px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  background: var(--green);
}
.asd-footer .footer-bottom { min-height: 129px; }
.asd-return-nav {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: var(--green);
}
.asd-return-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.35px;
  text-decoration: none;
  transition: color .18s ease;
}
.asd-return-link:active { color: var(--white); }

:root[data-colour-mode="calm"] img { filter: saturate(.65); }
:root[data-colour-mode="calm"] .menu-toggle img { filter: saturate(.45); }
:root[data-colour-mode="calm"] .menu-close span { background: var(--green); }
:root[data-colour-mode="calm"] .menu-link:hover { color: var(--surface); }
:root[data-colour-mode="calm"] .button-accent { color: var(--green); }
:root[data-colour-mode="calm"] .button-accent:hover,
:root[data-colour-mode="calm"] .button-accent:active { color: var(--white); }

@media (max-width: 767px) {
  .site-header,
  .scroll-progress,
  .train-drawer,
  .page-bottom-fill { width: 100%; }
  .asd-what-are-they { width: 100%; }
  .phase-diagram { max-width: 375px; margin-inline: auto; }
}

/* Tablet and desktop layout. The page sections retain their existing order. */
@media (min-width: 600px) {
  :root {
    --large-page-gutter: clamp(32px, 6vw, 104px);
    --large-nav-height: clamp(84px, 8vh, 104px);
  }

  body { width: 100%; max-width: none; }

  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    padding-inline: var(--large-page-gutter);
    transform: none;
  }
  .nav-top { height: var(--large-nav-height); }
  .brand { font-size: clamp(18px, 2vw, 24px); }
  .menu { padding-inline: var(--large-page-gutter); }
  .menu-state:checked ~ .menu {
    max-height: min(70vh, 680px);
    padding: 18px var(--large-page-gutter) 36px;
  }
  .menu-link,
  .menu-contact-button { font-size: clamp(16px, 1.6vw, 20px); }
  .menu-link { padding-block: 22px; }
  .back-home-row { height: 56px; padding-inline: var(--large-page-gutter); }
  .back-home-link { font-size: 13px; }

  .scroll-progress {
    left: 0;
    width: 100%;
    height: 9px;
    transform: none;
  }
  .page-bottom-fill { width: 100%; }
  .train-drawer {
    left: 0;
    width: 100%;
    height: 90px;
    transform: none;
  }
  .train-drawer[data-open="true"] { height: min(440px, 46vh); }
  .train-drawer-toggle { height: 90px; }
  .train-drawer-closed-art { width: 48px; height: 58px; }
  .train-drawer-closed-title {
    font-size: clamp(20px, 2vw, 28px);
  }
  .train-drawer-open-art {
    top: 42px;
    left: var(--large-page-gutter);
    width: clamp(150px, 22vw, 260px);
    height: clamp(170px, 25vh, 230px);
  }
  .train-drawer-message {
    top: 70px;
    left: 38%;
    width: 55%;
    font-size: clamp(22px, 2.5vw, 34px);
  }
  .train-drawer-cta {
    top: auto;
    bottom: 24px;
    left: var(--large-page-gutter);
    width: calc(100% - var(--large-page-gutter) - var(--large-page-gutter));
    height: 62px;
    font-size: clamp(28px, 3vw, 38px);
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--large-nav-height) + clamp(30px, 6vh, 64px)) var(--large-page-gutter) 0;
    gap: clamp(24px, 4vh, 40px);
  }
  .hero h1 {
    max-width: 1280px;
    font-size: clamp(64px, 7.5vw, 116px);
    letter-spacing: -.045em;
  }
  .hero-art-frame {
    width: min(82vw, 720px, 72svh);
    aspect-ratio: 2388 / 1668;
    height: auto;
    flex: 0 1 auto;
  }

  .introduction {
    min-height: 0;
    padding: clamp(64px, 8vw, 120px) var(--large-page-gutter);
    gap: clamp(30px, 4vw, 56px);
  }
  .introduction h2,
  .definition-section h2,
  .cabin-copy h2,
  .connect h2,
  .thanks h2 {
    font-size: clamp(48px, 5.5vw, 82px);
  }
  .intro-copy { max-width: 1100px; }
  .intro-copy p,
  .cabin-description p,
  .definition-copy,
  .connect p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
  .definition-section {
    padding: clamp(64px, 8vw, 120px) var(--large-page-gutter);
    gap: clamp(30px, 4vw, 56px);
  }
  .definition-copy,
  .definition-reference { max-width: 1100px; }
  .definition-reference { font-size: 14px; }
  .definition-reference,
  .support-reference,
  .asd-reference {
    max-width: 1100px;
    font-family: var(--body);
    font-size: 14px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -.05px;
  }
  .asd-reference { color: inherit; }

  .cabin-section {
    min-height: 100svh;
    padding: clamp(48px, 8vh, 84px) var(--large-page-gutter) 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(70svh, auto) auto;
    align-items: center;
    column-gap: clamp(32px, 6vw, 96px);
  }
  .cabin-copy {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 680px;
    padding: 0;
    align-self: center;
  }
  .cabin-copy h2 { margin-bottom: clamp(20px, 2.4vw, 34px); font-size: clamp(30px, 3.2vw, 48px); }
  .cabin-description { gap: clamp(16px, 1.8vw, 24px); }
  .cabin-feature-title { font-size: clamp(20px, 2vw, 30px); }
  .cabin-description p { max-width: 680px; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.4; }
  .cabin-carousel {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, 540px);
    max-width: 540px;
    height: auto;
    margin: 0;
    align-self: center;
    display: flex;
    flex-direction: column;
  }
  .cabin-carousel-viewport { height: auto; aspect-ratio: 2360 / 1640; }
  .cabin-carousel-dots {
    position: static;
    margin: 24px auto 0;
    transform: none;
  }
  .resources {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 56px;
    gap: 0;
  }
  .resource {
    min-height: 0;
    padding: 40px 0;
    gap: 24px;
  }
  .resource-icon { width: 32px; height: 32px; }
  .resource-copy { max-width: 900px; gap: 16px; }
  .resource h3 { font-size: clamp(22px, 2.2vw, 30px); }
  .resource p { font-size: clamp(16px, 1.3vw, 19px); }
  .resource .button { min-width: 190px; }

  .connect {
    padding: clamp(96px, 12vw, 180px) var(--large-page-gutter);
    gap: clamp(32px, 5vw, 64px);
  }
  .connect h2 { font-size: clamp(64px, 7vw, 108px); }
  .connect p { max-width: 800px; }
  .button-dark { width: min(100%, 360px); }
  .thanks { min-height: 0; padding: 48px var(--large-page-gutter); gap: 28px; }
  .thanks-list { gap: 14px; }
  .thanks-list p { white-space: normal; font-size: 16px; line-height: 1.5; }
  .thanks-list span { font-size: 13px; line-height: 1.5; white-space: normal; }
  .site-footer { max-width: none; padding: 56px var(--large-page-gutter) 28px; }
  .home-footer { min-height: 320px; gap: 48px; }
  .home-footer .footer-nav a {
    font-size: clamp(17px, 1.7vw, 22px);
    line-height: 1.4;
    letter-spacing: -.35px;
  }
  .home-footer .footer-bottom {
    width: calc(100% + var(--large-page-gutter) + var(--large-page-gutter));
    margin-inline: calc(0px - var(--large-page-gutter));
    padding-inline: var(--large-page-gutter);
  }

  body.support-page,
  body.asd-page { padding-top: var(--large-nav-height); }
  .support-guidance { padding: clamp(36px, 6vw, 88px) var(--large-page-gutter) clamp(72px, 9vw, 132px); }
  .support-for-self { padding-top: clamp(24px, 4vw, 64px); }
  .support-intro { gap: clamp(28px, 4vw, 52px); margin-bottom: clamp(32px, 5vw, 68px); }
  .support-intro h1 { font-size: clamp(58px, 7vw, 104px); }
  .support-intro p { max-width: 1100px; font-size: clamp(17px, 1.4vw, 20px); }
  .support-for-self { padding-top: clamp(36px, 5vw, 72px); }
  .support-for-self .support-intro {
    gap: clamp(16px, 2vw, 28px);
    margin-bottom: calc(clamp(40px, 5vw, 72px) - 10px);
  }
  .support-for-self .support-intro h1 { font-size: clamp(42px, 5vw, 76px); }
  .support-for-self .support-intro p { max-width: none; font-size: clamp(18px, 1.5vw, 24px); }
  .support-for-self .support-list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3.5vw, 60px);
  }
  .support-for-self .support-step { display: block; }
  .support-for-self .support-step > img,
  .support-for-self .support-image-pair > img {
    width: 100%;
    height: auto;
    aspect-ratio: 2388 / 1668;
    flex: 0 0 auto;
    border-radius: 30px;
  }
  .support-for-self .support-step:not(:nth-child(2)) > img { margin-bottom: 30px; }
  .support-for-self .support-step-copy { gap: clamp(12px, 1.6vw, 20px); padding: 24px 0 0; }
  .support-for-self .support-number { font-size: clamp(20px, 1.7vw, 28px); line-height: 1.25; }
  .support-for-self .support-step-copy h2 { margin: 0 0 10px; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; }
  .support-for-self .support-step-copy > div > p { font-size: clamp(12px, 1vw, 14px); line-height: 1.4; }
  .support-for-self .support-image-pair { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .support-for-self .support-image-pair > img { display: none; }
  .support-for-self .support-image-pair > img.is-active { display: block; }
  .support-image-pair-dots { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px auto 0; }
  .support-image-pair-dots button {
    width: 16px;
    height: 16px;
    padding: 0;
    display: grid;
    flex: 0 0 16px;
    place-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .support-image-pair-dots img { display: block; width: 12px; height: 12px; }
  .support-for-self .support-image-pair-dots img {
    width: 12px;
    height: 12px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }
  .support-for-self .support-image-pair-dots button[aria-current="true"] img { width: 14px; height: 14px; }
  .support-image-pair-dots button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 50%; }
  .support-image-pair-dots button:active { transform: scale(.9); }
  .support-for-self .support-reference { max-width: 1100px; margin: clamp(44px, 5vw, 64px) 0 0; }
  .support-for-others { padding-top: clamp(36px, 5vw, 72px); }
  .support-for-others .support-intro { gap: clamp(16px, 2vw, 28px); margin-bottom: calc(clamp(40px, 5vw, 72px) - 10px); }
  .support-for-others .support-intro h1 { font-size: clamp(40px, 4.6vw, 68px); }
  .support-for-others .support-intro p { max-width: none; font-size: clamp(18px, 1.5vw, 24px); }
  .support-for-others .support-list {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3.5vw, 60px);
  }
  .support-for-others .support-step { display: block; }
  .support-for-others .support-step > img {
    width: 100%;
    height: auto;
    aspect-ratio: 2388 / 1668;
    margin-bottom: 30px;
    border-radius: 30px;
    object-fit: cover;
  }
  .support-for-others .support-step-copy { gap: clamp(12px, 1.6vw, 20px); padding: 0; }
  .support-for-others .support-number { font-size: clamp(20px, 1.7vw, 28px); line-height: 1.25; }
  .support-for-others .support-step-copy h2 { margin: 0 0 10px; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; }
  .support-for-others .support-step-copy > div > p { font-size: clamp(12px, 1vw, 14px); line-height: 1.4; }
  .support-for-others .support-reference { max-width: 1100px; margin: clamp(44px, 5vw, 64px) 0 0; }
  .support-step > img,
  .support-image-pair img { height: clamp(280px, 42vh, 560px); }
  .support-image-pair { gap: 20px; }
  .support-step-copy { gap: 28px; padding: 28px 0; font-size: clamp(17px, 1.4vw, 20px); }
  .support-step-copy h2 { font-size: clamp(20px, 1.7vw, 24px); }
  .support-step-copy > div > p,
  .support-caption { font-size: clamp(14px, 1.2vw, 18px); }
  .support-reference { max-width: 1100px; font-size: 14px; }
  .support-return-nav,
  .asd-return-nav { padding: 56px var(--large-page-gutter); gap: 24px; }
  .support-return-link,
  .asd-return-link { font-size: clamp(17px, 1.7vw, 22px); }
  .support-footer { min-height: 240px; height: auto; }

  .asd-meltdown-hero {
    height: calc(100svh - var(--large-nav-height) - 56px);
    min-height: 0;
    padding: clamp(24px, 5vh, 48px) var(--large-page-gutter) 0;
    gap: clamp(24px, 4vh, 40px);
  }
  .asd-meltdown-hero h2 { padding: 0; font-size: clamp(64px, 8vw, 112px); }
  .asd-meltdown-art-window {
    width: min(78vw, 720px, 72svh);
    aspect-ratio: 328 / 229;
    height: auto;
    flex: 0 1 auto;
  }
  .asd-copy {
    min-height: 0;
    padding: clamp(64px, 8vw, 120px) var(--large-page-gutter);
    gap: clamp(30px, 4vw, 56px);
  }
  .asd-copy h2 { font-size: clamp(48px, 5.5vw, 82px); }
  .asd-copy p { max-width: 1100px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
  .asd-reference p { margin: 0; font: inherit; letter-spacing: inherit; }
  .asd-what-are-they { width: 100%; height: auto; min-height: 0; padding: clamp(64px, 8vw, 120px) var(--large-page-gutter); }
  .asd-tantrum { min-height: 0; }
  .asd-tantrum-copy { gap: 24px; }
  .asd-reference { font-size: 14px; }
  .asd-phases-hero {
    min-height: 0;
    padding: clamp(64px, 8vw, 120px) var(--large-page-gutter) 88px;
    gap: clamp(32px, 5vw, 64px);
  }
  .asd-phases-hero h2 { padding: 0; font-size: clamp(56px, 6vw, 92px); }
  .asd-phases-hero p { width: 100%; max-width: 1100px; margin: 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
  .phase-diagram { width: 375px; max-width: none; margin-inline: auto; transform-origin: top center; }
  .asd-phase-carousel { min-height: 0; padding: clamp(64px, 8vw, 120px) var(--large-page-gutter) 140px; gap: 56px; }
  .asd-phase-carousel > h2 { font-size: clamp(48px, 5.5vw, 82px); }
  .phase-carousel { width: min(54vw, 600px); max-width: 600px; flex-basis: 300px; }
  .phase-card { height: 300px; border-width: 14px; border-radius: 56px; }
  .phase-card-title { top: 44px; font-size: clamp(38px, 4vw, 54px); }
  .phase-card-description { top: 116px; right: 40px; left: 40px; height: auto; font-size: clamp(17px, 1.6vw, 22px); }
  .phase-card[data-phase-index="0"] .phase-card-description,
  .phase-card[data-phase-index="2"] .phase-card-description,
  .phase-card[data-phase-index="3"] .phase-card-description,
  .phase-card[data-phase-index="4"] .phase-card-description,
  .phase-card[data-phase-index="5"] .phase-card-description { right: 40px; left: 40px; }
  .phase-arrow { top: 50%; width: 48px; height: 48px; transform: translateY(-50%); }
  .phase-arrow-previous { left: -64px; }
  .phase-arrow-next { right: -64px; }
  .phase-arrow:active { transform: translateY(-50%) scale(.92); }
  .phase-dots { top: auto; bottom: -60px; }
  .phase-dots button { width: 16px; height: 16px; }
  .asd-footer { height: auto; min-height: 240px; padding: 44px var(--large-page-gutter); }
}

@media (min-width: 600px) and (max-width: 899px) {
  .support-for-self .support-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-for-others .support-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phase-diagram { transform: scale(1.35); margin-bottom: 45px; }
}

@media (min-width: 900px) {
  .phase-diagram { transform: scale(1.8); margin-bottom: 103px; }
}

@media (min-width: 1024px) {
  .hero-art-frame { width: min(74vw, 720px, 72svh); }
  .cabin-carousel { width: min(100%, 540px); max-width: 540px; }
  .support-guidance { padding-inline: clamp(96px, 10vw, 168px); }
  .asd-copy,
  .asd-what-are-they,
  .asd-phases-hero,
  .asd-phase-carousel { padding-inline: clamp(96px, 10vw, 168px); }
}

