:root {
  --bg: #f6eee5;
  --paper: #fffcf8;
  --ink: #1e1a17;
  --ink-soft: #5c524a;
  --muted: #5e564e;
  --line: #e3d6c8;
  --line-strong: #cdbba9;
  --sand: #e9ddd0;
  --ember: #ea4014;
  --ember-deep: #b8340d;
  --ember-soft: #fde6dd;
  --dark: #1e1a17;
  --dark-line: #38312b;
  --dark-muted: #b5aea6;
  --max: 1180px;
  --header: 68px;
  --display: "Space Grotesk", sans-serif;
  --sans: "Poppins", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 24px 60px rgba(30, 26, 23, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--ember);
  color: #fff;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.eyebrow,
.section-index {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ember-deep);
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}

.section-index span {
  color: var(--ember);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.04em;
}

h1 {
  margin: 18px 0 0;
  max-width: 12em;
  font-size: clamp(56px, 8.6vw, 118px);
  line-height: 0.92;
}

h1 em,
.word-ember {
  font-style: normal;
  font-weight: 400;
  color: var(--ember);
}

h2 {
  margin: 0;
  max-width: 14em;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 19px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(234, 64, 20, 0.55);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(234, 64, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 64, 20, 0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ember {
  background: var(--ember);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.btn-ember:hover {
  background: #d63a12;
}

.btn-ink {
  min-height: 42px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.btn-ink:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 500;
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--ink);
}

.btn-light {
  min-height: 48px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.btn-line {
  min-height: 48px;
  background: transparent;
  border-color: #3a3530;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.btn-line:hover {
  border-color: #fff;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: rgba(246, 238, 229, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.03em;
}

.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}

.mark svg {
  width: 16px;
  height: 16px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navlink {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.navlink:hover,
.navlink.is-active {
  color: var(--ink);
}

.navlink.is-active {
  box-shadow: inset 0 -1.5px 0 var(--ember);
}

.nav-cta-short {
  display: none;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-btn .bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-btn[aria-expanded="true"] .bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.hero {
  position: relative;
  padding: 88px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30, 26, 23, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 26, 23, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-top: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.clock-block {
  margin-top: 84px;
}

.clock-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.clock-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.clock-date {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.clock-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clock-face {
  position: relative;
  overflow: hidden;
  padding: 18px 8px 16px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.clock-num {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(46px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.clock-card.is-live .clock-face {
  background: var(--ember);
}

.clock-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.clock-card.is-live .clock-label {
  color: var(--ember-deep);
}

.film {
  padding: 28px 0 8px;
}

.film-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(80% 80% at 50% 40%, rgba(234, 64, 20, 0.22), transparent 60%),
    var(--dark);
  color: #fff;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 2;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.corner-tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.corner-tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.corner-br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

.film-poster,
.film-player {
  position: absolute;
  inset: 0;
}

.film-poster {
  display: flex;
  align-items: center;
  justify-content: center;
}

.play {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 40px rgba(234, 64, 20, 0.35);
  transition: transform 0.18s ease;
}

.play:hover {
  transform: scale(1.04);
}

.play svg {
  margin-left: 4px;
}

.film-caption {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
}

.film-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.film-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
  text-align: right;
}

.film-player iframe,
.film-player video {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 80px;
}

.why-grid > * {
  flex: 1 1 380px;
  min-width: 0;
}

.why-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 17px;
}

.why-copy p {
  margin: 0;
}

.beds-block {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.beds-kicker {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.beds {
  display: grid;
  grid-template-columns: repeat(20, minmax(0, 1fr));
  gap: 6px;
}

.bed {
  height: 26px;
  border-radius: 6px;
  background: var(--sand);
}

.bed-then {
  background: var(--ink);
}

.bed-now {
  background: var(--ember);
}

.bed-soon {
  background: transparent;
  border: 1.5px dashed var(--ember);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 26px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.swatch {
  width: 22px;
  height: 16px;
  border-radius: 4px;
  background: var(--ink);
  flex: none;
}

.swatch-now { background: var(--ember); }
.swatch-soon {
  background: transparent;
  border: 1.5px dashed var(--ember);
}

.legend b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.source {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.source a {
  color: inherit;
}

.principles {
  background: var(--dark);
  color: #fff;
}

.principles .section-index {
  color: var(--dark-muted);
}

.principle-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}

.principle-list li {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--dark-line);
}

.principle-list span {
  flex: none;
  width: 52px;
  font-family: var(--display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: var(--ember);
}

.principle-list p {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.priority {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.priority:first-child {
  border-top-color: var(--ember);
}

.priority small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ember-deep);
}

.priority h3 {
  margin: 10px 0 0;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.priority p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.voices {
  border-top: 1px solid var(--line);
}

.voices-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
}

.filters button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filters button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.voice {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 220px;
  padding: 28px;
  border-radius: 20px;
  background: var(--paper);
}

.voice q {
  quotes: none;
  flex: 1;
  font-family: var(--display);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.voice q::before { content: "“"; }
.voice q::after { content: "”"; }

.voice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.voice-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.voice-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.tag-person { background: var(--bg); color: var(--ink-soft); }
.tag-clinician { background: var(--ember-soft); color: #9a2c0b; }
.tag-org { background: var(--ink); color: #fff; }

.voices-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.voices-empty b {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 88px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.voices-empty h3 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.voices-empty p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.more-wrap {
  margin-top: 32px;
  text-align: center;
}

.join {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
  align-items: flex-start;
}

.join-copy .lede {
  margin-top: 20px;
}

.lock strong {
  color: var(--ink);
}

.join-copy,
.join-panel {
  flex: 1 1 340px;
  min-width: 0;
}

.join-panel {
  flex-basis: 520px;
}

.lock {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--paper);
}

.lock svg {
  flex: none;
  margin-top: 2px;
}

.lock p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.lock a,
.check a,
.prose a,
.footer a {
  color: inherit;
}

.form,
.success {
  padding: 36px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg);
}

.tracks button {
  flex: 1 1 140px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.tracks button[aria-checked="true"] {
  background: var(--ink);
  color: #fff;
}

.fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.lbl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.lbl.full {
  flex-basis: 100%;
}

.in {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #ddcfc1;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

textarea.in {
  min-height: 110px;
  resize: vertical;
}

.in:focus {
  outline: 2px solid var(--ember);
  outline-offset: 1px;
  border-color: var(--ember);
}

.in::placeholder {
  color: #8b857f;
}

.hint,
.count {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.hint-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--ember);
  flex: none;
}

.check.optional {
  color: var(--ink-soft);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  color: var(--ember-deep);
  font-size: 14px;
}

.form .btn {
  width: 100%;
}

.success {
  background: var(--dark);
  color: #fff;
}

.success-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ember);
}

.success h3 {
  margin: 22px 0 0;
  font-size: 40px;
  line-height: 1.05;
}

.success p {
  margin: 12px 0 0;
  color: var(--dark-muted);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.site-footer {
  background: var(--dark);
  color: #fff;
}

.footer-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer a {
  color: var(--dark-muted);
  text-decoration: none;
}

.footer-bar a.credit {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: #fff;
}

.page-hero {
  padding: 72px 0 24px;
}

.prose {
  max-width: 68ch;
  padding-bottom: 96px;
  color: var(--ink-soft);
}

.prose h2 {
  margin: 36px 0 8px;
  font-size: 28px;
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: 16px;
}

.prose ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .priority-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav-cta-full {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 20px 18px;
    background: rgba(246, 238, 229, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .navlinks.is-open {
    display: flex;
  }

  .navlink {
    width: 100%;
    padding: 12px 0;
  }

  .navlink.is-active {
    box-shadow: none;
  }

  .principle-list,
  .voices-empty {
    grid-template-columns: 1fr;
  }

  .clock {
    grid-template-columns: 1fr 1fr;
  }
}

.page-hero h1 {
  max-width: 14em;
  font-size: clamp(44px, 6vw, 84px);
}

@media (max-width: 640px) {
  h1 br {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .wrap {
    width: min(var(--max), calc(100% - 40px));
  }

  .beds {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .form,
  .success,
  .voices-empty {
    padding: 22px;
  }

  .film-caption {
    left: 18px;
    right: 18px;
    bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .play {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
