/* Syzora Health placeholder site. Page styles (the scroll hero lives in hero.css).
   Depends on design/tokens.css. Plain CSS, no build step. */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--color-ground);
}
/* The 404 page is ink to its edges, overscroll included. */
html:has(> body.on-ink) { background: var(--color-ink); }

body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

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

::selection { background: var(--color-accent); color: var(--color-ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: var(--focus-width) solid var(--focus-on-ground);
  outline-offset: var(--focus-offset);
}
.on-ink :focus-visible { outline-color: var(--focus-on-ink); }

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* Skip link: first focusable element */
.skip {
  position: fixed;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 100;
  transform: translateY(-200%);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 calc(var(--space-4) - 1px);
  border: 1px solid transparent; /* an edge in forced colours */
  border-radius: var(--radius-1);
  background: var(--color-accent);
  color: var(--color-ink);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus-visible { transform: none; outline-color: var(--color-ink); outline-offset: -5px; }

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--stage-max); /* same box as the header and the hero copy */
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
/* The hand-off: the first section starts close under the hero. Build and work sit as one pair. */
.day > .section:first-child { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.build { padding-bottom: var(--space-8); }
.work { padding-top: var(--space-8); padding-bottom: var(--space-8); }
/* Everything after the hero is day. (In scroll mode hero.css paints the body ink.) */
.day, .foot { background: var(--color-ground); color: var(--color-ink); }

/* Type roles */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  font-weight: 600;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  font-weight: 600;
  max-width: 18ch;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  letter-spacing: -0.01em;
  font-weight: 600;
}
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
  max-width: var(--measure);
  color: var(--color-ink);
}
.small { font-size: var(--fs-small); line-height: var(--lh-small); }
.muted { color: var(--color-muted); }

/* Buttons. One intent on the page ("Contact us") and one spec: 48 px, saffron hover, 0.97 press.
   The hero button (hero.css) uses the same values. The transparent border shows in forced colours. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 calc(1.5rem - 1px);
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  background: var(--color-ink);
  color: var(--color-ground);
  font: 600 1.0625rem/1.2 var(--font-sans);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur-ui) ease,
    color var(--dur-ui) ease,
    box-shadow var(--dur-ui) ease,
    transform var(--dur-press) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--color-accent); color: var(--color-ink); }
.btn--sm { min-height: 44px; padding: 0 calc(1rem - 1px); font-size: var(--fs-small); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--color-accent); color: var(--color-ink); }
  .btn--light:hover { background: var(--color-ground); color: var(--color-ink); }
}

/* Site header. Static mode (no JS, reduced motion, short screens): it sits on the light page
   with the brand lockup and an ink button. In scroll mode hero.css makes it fixed, and hero.js
   sets data-tone="night|day" and data-solid. The rules below restyle the button to match. */
.site-header { position: absolute; z-index: 20; top: 0; left: 0; right: 0; }
.site-header__inner {
  max-width: var(--stage-max);
  margin-inline: auto;
  padding: 1.125rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand { position: relative; display: inline-flex; align-items: center; min-height: 44px; border-radius: var(--radius-1); }
.brand img { height: 32px; width: auto; }
@media (max-width: 767px) {
  .site-header__inner { padding-block: 1rem; }
  .brand img { height: 26px; }
}
/* The header CTA is the quiet one: an outline button. The in-page Contact us buttons are solid. */
.site-header__cta {
  background: transparent;
  color: var(--color-ink);
  box-shadow: inset 0 0 0 1px var(--color-ink);
  transition:
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    box-shadow 240ms var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-header__cta:hover { box-shadow: inset 0 0 0 1px var(--color-accent); }
}
/* Keep this media query identical to the scrub query in hero.css and SCRUB_QUERY in hero.js. */
@media (prefers-reduced-motion: no-preference) and (min-height: 40rem) and (forced-colors: none) {
  /* Night: a solid ink fill, so the label (14.76:1) and the focus ring never depend on what
     passes behind the button (slips at frame 0, the dawn band before the tone change). */
  html.js [data-hero-header]:not([data-tone="day"]) .site-header__cta {
    background: var(--color-ink);
    color: var(--color-ground);
    box-shadow: inset 0 0 0 1px var(--color-line-night);
  }
  html.js [data-hero-header]:not([data-tone="day"]) .site-header__cta:focus-visible {
    outline-color: var(--focus-on-ink);
    box-shadow: inset 0 0 0 1px var(--color-line-night), 0 0 0 5px var(--color-ink);
  }
  html.js [data-hero-header]:not([data-tone="day"]) .brand:focus-visible { box-shadow: 0 0 0 5px var(--color-ink); }
  @media (hover: hover) and (pointer: fine) {
    html.js [data-hero-header]:not([data-tone="day"]) .site-header__cta:hover {
      background: var(--color-accent);
      color: var(--color-ink);
      box-shadow: inset 0 0 0 1px var(--color-accent);
    }
  }
}
/* Forced colours (Windows contrast themes): give the logo lockups a plate, so the ink or white
   wordmark stays visible on any system background. */
@media (forced-colors: active) {
  .brand, .foot__home { forced-color-adjust: none; background: #F6F7F8; padding: 4px 6px; }
  .on-ink .brand { background: #1B2A4A; }
  [data-hero-header] .brand .brand__white { opacity: 0; }
  [data-hero-header] .brand .brand__colour { opacity: 1; }
}

/* ---------- Two-column sections share one 12-column grid: the second column starts at column 7 ---------- */
.problem__grid, .name__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 1024px) {
  .problem__grid, .name__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
  .problem__text { grid-column: 1 / span 5; }
  .syzygy { grid-column: 7 / -1; }
  /* S3: the heading comes first in the DOM (reading order); the figure is drawn on the left. */
  .exploded { grid-column: 1 / span 5; grid-row: 1; }
  .name__text { grid-column: 7 / -1; grid-row: 1; }
}

/* ---------- The problem: three records that line up ---------- */
.problem__text { display: grid; gap: var(--space-5); }
.syzygy { margin: 0; display: grid; gap: var(--space-8); }
/* The axis sits at the top edge of the bodies row; each bar is centred on it. */
.syzygy__stage { position: relative; padding-top: var(--space-9); }
.syzygy__axis {
  position: absolute;
  left: 0; right: 0;
  top: var(--space-9);
  height: 2px;
  margin-top: -1px;
  background: var(--color-accent);
  transform-origin: left center;
  transition: transform 450ms var(--ease-out) 550ms;
}
.syzygy__bodies {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.syzygy__body {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--space-3);
  transition: transform var(--dur-bodies) cubic-bezier(0.65, 0, 0.35, 1);
}
/* Start offsets (here, not in style attributes, so a strict CSP needs no 'unsafe-inline'). */
.syzygy__body:nth-child(1) { --off: -3.5rem; }
.syzygy__body:nth-child(2) { --off: 2.75rem; transition-delay: 60ms; }
.syzygy__body:nth-child(3) { --off: -1.25rem; transition-delay: 120ms; }
/* Each record is a bar, like the hero slips: ink when aligned, the middle one saffron. */
.syzygy__dot {
  width: clamp(4rem, 9vw, 7rem);
  height: 12px;
  margin-top: -6px;
  background: var(--color-ink);
  transition: background-color 250ms ease 700ms, transform 300ms var(--ease-out) 700ms;
}
.syzygy__body:nth-child(2) .syzygy__dot { background: var(--color-accent); }
.syzygy__label {
  font-size: clamp(0.875rem, 0.55rem + 1.8vw, 1.125rem); /* 18 px from 640 wide; smaller so "requirements" fits a 320 px column */
  line-height: 1.35;
  font-weight: 600;
  text-wrap: balance;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* The aligned line is copy, so it is never hidden. */
.syzygy__line { font-size: var(--fs-h2-sm); line-height: 1.2; letter-spacing: -0.02em; max-width: 20ch; }
/* Before the reveal: bodies off-axis, bars grey, axis undrawn. Only site.js adds html.reveal,
   so a blocked or failed site.js leaves the final state. Reduced motion never hides anything. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal .syzygy:not(.is-aligned) .syzygy__body { transform: translateY(var(--off)); }
  html.reveal .syzygy:not(.is-aligned) .syzygy__axis { transform: scaleX(0); }
  html.reveal .syzygy:not(.is-aligned) .syzygy__dot { background: var(--color-fog); transform: scale(0.8); }
}

/* ---------- The name: an exploded view of the mark ---------- */
.name { background: var(--color-ground-2); } /* a tonal band: still the light theme */
.name__text { display: grid; gap: var(--space-5); align-content: start; }
.exploded { margin: 0; display: grid; gap: var(--space-5); }
/* The viewBox is cut to the art, so the stock edge lines up with the captions. */
.exploded__art { width: 100%; max-width: 40rem; height: auto; aspect-ratio: 116 / 88; }
.exploded__captions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  max-width: 40rem;
}
@media (min-width: 600px) {
  .exploded__captions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
}
.exploded__captions li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-line);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}
.swatch { width: 12px; height: 12px; margin-top: 4px; }
.swatch--halves { background: linear-gradient(90deg, var(--color-accent) 0 45%, transparent 45% 55%, var(--color-ink) 55%); }
.swatch--notch { box-shadow: inset 0 0 0 1.5px var(--color-ink); transform: rotate(45deg) scale(0.75); }
.swatch--light { background: var(--light-core); box-shadow: inset 0 0 0 1.5px var(--color-accent); transform: rotate(45deg) scale(0.75); }

/* ---------- Why it matters: a tonal band. Heading left, two short paragraphs right ---------- */
/* Platform statement (v5): the second sentence of the company line, as one large statement on a tinted band. */
.platform { background: var(--color-ground-2); }
.day > .section.platform:first-child { padding-block: clamp(4rem, 3rem + 5vw, 7rem); }
.platform__text {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 400; /* the design system has weights 400 and 600 only (500 drew with the 400 file) */
  max-width: 38ch;
  text-wrap: pretty;
}
.why { background: var(--color-ground-2); }
.why__grid { display: grid; gap: var(--space-6); align-items: start; }
.why__text { display: grid; gap: var(--space-5); }
@media (min-width: 1024px) {
  .why__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
  .why__grid .h2 { grid-column: 1 / span 5; }
  .why__text { grid-column: 7 / -1; padding-top: 0.4rem; }
}

/* ---------- What we are building: three rows under one ink rule, titles lead ---------- */
.build__head { display: grid; gap: var(--space-5); margin-bottom: var(--space-9); }
.build__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-ink); }
.build__item {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-7);
  align-items: start;
}
.build__item .h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.build__item p { color: var(--color-muted); max-width: 34rem; }
@media (min-width: 900px) {
  .build__item { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-6); }
  .build__item .h3 { grid-column: 1 / span 5; }
  .build__item p { grid-column: 7 / -1; padding-top: 0.25rem; }
}
/* The three status names (content deck S4.point3): their own type style, not quotes. */
.status {
  color: var(--color-ink);
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(transparent 64%, rgba(227, 162, 26, 0.3) 0);
  padding-inline: 0.08em;
}

/* ---------- How we work ---------- */
.work { background: var(--color-ground); }
.work__head { margin-bottom: var(--space-8); }
.work__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-7) var(--space-6);
}
.work__grid li { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-5); border-top: 1px solid var(--color-ink); }
.work__grid p { color: var(--color-muted); max-width: 30rem; }
@media (min-width: 768px) {
  .work__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .work__grid li:nth-child(odd) { grid-column: 1 / span 5; }
  .work__grid li:nth-child(even) { grid-column: 7 / -1; }
}
/* Wide: a compact four-up row (columns 1, 4, 7 and 10 of the same grid). */
@media (min-width: 1100px) {
  .work__grid li:nth-child(n) { grid-column: span 3; }
  .work__grid .h3 { font-size: 1.125rem; }
}

/* ---------- Who we are building for: two groups, side by side ---------- */
.who { padding-top: var(--space-8); }
.who__head { margin-bottom: var(--space-8); }
.who__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-7) var(--space-6); }
.who__grid li { display: grid; gap: var(--space-3); align-content: start; padding-top: var(--space-5); border-top: 1px solid var(--color-ink); }
.who__grid .h3 { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; }
.who__grid p { color: var(--color-muted); max-width: 30rem; }
@media (min-width: 768px) {
  .who__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .who__grid li:nth-child(odd) { grid-column: 1 / span 5; }
  .who__grid li:nth-child(even) { grid-column: 7 / -1; }
}

/* ---------- Invitation: the closing moment. A warm horizon, and the mark whose light opens once ---------- */
.invite {
  text-align: center;
  padding-bottom: calc(var(--section-pad) * 0.8);
  background: linear-gradient(to bottom, var(--color-ground) 55%, color-mix(in srgb, var(--color-dawn-3) 35%, var(--color-ground)));
}
.invite__inner { display: grid; justify-items: center; gap: var(--space-6); }
.invite .h2 { max-width: 24ch; text-wrap: balance; }
.invite .lead { text-wrap: balance; max-width: 34rem; }
.invite__mark { width: 6rem; height: auto; aspect-ratio: 1; }
.invite__team { max-width: 30rem; text-wrap: balance; }
.invite__mark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* As in the hero: the light lives only in the cut and opens from the seam out to the diamond. */
.invite__light { position: absolute; inset: 0; clip-path: inset(0 31.5%); transition: clip-path var(--dur-light) var(--ease-light); }
@media (prefers-reduced-motion: no-preference) {
  html.reveal .invite__mark:not(.is-lit) .invite__light { clip-path: inset(0 50%); }
}

/* ---------- Contact form (1 Dec 2026), in the pop-up below ----------
   One column on a phone, two columns from 40rem. Fields are 48 px high with 16 px text (no zoom on iOS).
   The field border is the muted colour (5.78:1 on ground), so the field edge is easy to see.
   --color-error is the "danger" value of the website tokens v0.1 (#B42318, 13 Oct 2026); it is not a new colour.
   The PA design system uses #A3271D for errors; the two are close. */
.contact { --color-error: #B42318; width: 100%; max-width: 40rem; display: grid; gap: var(--space-6); text-align: left; }
.contact__grid { display: grid; gap: var(--space-5) var(--space-4); }
@media (min-width: 40rem) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: var(--space-2); align-content: start; min-width: 0; }
.field label { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--color-muted); }
.field__req { color: var(--color-error); font-weight: 600; } /* the red star of a mandatory field */
.contact__legend { margin: 0 0 calc(var(--space-3) * -1); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; margin: 0; padding: 0.6875rem 0.75rem;
  border: 1px solid var(--color-muted); border-radius: var(--radius-1);
  background-color: var(--color-ground); color: var(--color-ink);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B2A4A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 0.75rem auto;
}
.field select:invalid { color: var(--color-muted); }
.field select option { color: var(--color-ink); }
@media (hover: hover) and (pointer: fine) {
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink); }
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--color-ink); outline-offset: 1px;
}
.field [aria-invalid="true"], .field [aria-invalid="true"]:hover, .field [aria-invalid="true"]:focus-visible {
  border-color: var(--color-error); box-shadow: inset 0 0 0 1px var(--color-error);
}
.field__err { color: var(--color-error); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.field__hint { margin: 0; }
.contact__trap input { font: inherit; }
.contact__trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-5); }
.contact__send .btn { cursor: pointer; }
.contact__send .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.contact__status { flex: 1 1 14rem; color: var(--color-error); font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; }
.contact__done { max-width: 34rem; display: grid; gap: var(--space-4); justify-items: center; }
.contact__done:focus { outline: none; }
.contact__done .h3, .contact__done .lead { text-wrap: balance; }
[hidden] { display: none !important; }

/* ---------- Contact pop-up (1 Dec 2026): a native <dialog>, opened as a modal by site.js ----------
   The browser keeps the keyboard focus inside it, closes it on Esc and gives the focus back to the button.
   A phone gets the full screen. The page behind does not scroll while it is open; the scrollbar space
   stays reserved, so the page does not move sideways.
   Parts: .dialog (transparent box, so the opening light can show around the panel), .dialog__glow (the
   opening light, behind the panel), .dialog__panel (the surface; it scrolls), .dialog__spark (gold over
   the panel while it opens). Without motion, every part is in its final state: a plain panel. */
html { scrollbar-gutter: stable; }
html:has(dialog[open]) { overflow: hidden; }
.dialog {
  width: min(44rem, calc(100% - 2rem)); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--color-ink); overflow: visible;
}
.dialog::backdrop { background: rgb(27 42 74 / 0.86); }
.dialog__panel {
  position: relative; z-index: 1;
  max-height: calc(100dvh - 2rem); overflow: hidden auto; overscroll-behavior: contain;
  border: 1px solid var(--color-line); border-radius: var(--radius-1);
  background: var(--color-ground); color: var(--color-ink);
  transition: background-color 320ms ease, border-color 320ms ease, color 320ms ease;
}
.dialog__in { display: grid; gap: var(--space-6); padding: var(--space-6); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.dialog__head h2:focus { outline: none; }
.dialog__close {
  min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--color-muted); border-radius: var(--radius-1);
  background: transparent; color: inherit;
  font: 600 var(--fs-small)/1.2 var(--font-sans); cursor: pointer;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
@media (hover: hover) and (pointer: fine) { .dialog__close:hover { background: var(--color-ground-2); border-color: var(--color-ink); } }
.dialog .contact { max-width: none; }
.dialog .contact__done { max-width: none; justify-items: start; padding-bottom: var(--space-4); }
@media (max-width: 40rem) {
  .dialog { width: 100%; height: 100dvh; margin: 0; }
  .dialog__panel { height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .dialog__in { padding: var(--space-4) var(--gutter) var(--space-7); }
}

/* Light E, shared (1 Dec 2026). ONE light for the three blooms of the site: the hero (css/hero.css, where the
   scroll position drives it), the opening of the pop-up, and the "Thank you" scene. The parts, the colours
   and the proportions here are the same as in hero.css. --L = the size of the mark that the light belongs to.
   A = body, 1.5 L. S = streak, 5.2 L by 0.5 L. V = beam along the seam, 0.42 L by 2.7 L. L = hairline, 6 L by 2 px.
   Motion, as in the hero: the light swells from 0.32 of its size, holds, then contracts and is gone.
   Exception: in the "Thank you" scene the light stays up and breathes until the pop-up closes. */
.light-e { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.light-e > span { position: absolute; left: 0; top: 0; opacity: 0; }
.light-e__a {
  width: calc(var(--L) * 1.5); height: calc(var(--L) * 1.5); margin: calc(var(--L) * -0.75) 0 0 calc(var(--L) * -0.75);
  background: radial-gradient(closest-side, #F6CC62 0%, #EFB546 34%, rgba(234, 166, 58, 0.66) 56%,
    rgba(239, 165, 69, 0.24) 76%, transparent 100%);
}
.light-e__s {
  width: calc(var(--L) * 5.2); height: calc(var(--L) * 0.5); margin: calc(var(--L) * -0.25) 0 0 calc(var(--L) * -2.6);
  background: radial-gradient(closest-side, rgba(255, 243, 209, 0.95) 0%, rgba(244, 196, 82, 0.62) 14%,
    rgba(239, 165, 69, 0.26) 40%, rgba(224, 135, 106, 0.08) 70%, transparent 100%);
}
.light-e__v {
  width: calc(var(--L) * 0.42); height: calc(var(--L) * 2.7); margin: calc(var(--L) * -1.35) 0 0 calc(var(--L) * -0.21);
  background: radial-gradient(closest-side, rgba(255, 243, 209, 0.9) 0%, rgba(244, 196, 82, 0.58) 22%,
    rgba(239, 165, 69, 0.22) 55%, transparent 100%);
}
.light-e__l {
  width: calc(var(--L) * 6); height: 2px; margin: -1px 0 0 calc(var(--L) * -3);
  background: linear-gradient(to right, transparent, rgba(255, 243, 209, 0.9) 30%, #FFFFFF 50%,
    rgba(255, 243, 209, 0.9) 70%, transparent);
}
@keyframes light-e-body {
  0% { opacity: 0; transform: scale(0.32); animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  8% { opacity: 0.9; }
  36% { opacity: 0.9; transform: scale(0.94); animation-timing-function: ease-in-out; }
  58% { opacity: 0.9; transform: scale(1); animation-timing-function: ease-in-out; }
  100% { opacity: 0; transform: scale(0.6); }
}
@keyframes light-e-streak {
  0% { opacity: 0; transform: scaleX(0.32); animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  8% { opacity: 1; }
  36% { opacity: 1; transform: scaleX(0.94); animation-timing-function: ease-in-out; }
  58% { opacity: 1; transform: scaleX(1); animation-timing-function: ease-in-out; }
  100% { opacity: 0; transform: scaleX(0.6); }
}
@keyframes light-e-beam {
  0% { opacity: 0; transform: scaleY(0.32); animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  8% { opacity: 1; }
  36% { opacity: 1; transform: scaleY(0.94); animation-timing-function: ease-in-out; }
  58% { opacity: 1; transform: scaleY(1); animation-timing-function: ease-in-out; }
  100% { opacity: 0; transform: scaleY(0.6); }
}

/* The opening of the pop-up. A gold diamond (the notch of a mark 300 px in size) lights at the centre of the
   dark screen, light E blooms behind it, and the diamond opens into the panel. 560 ms in all; the close is immediate. */
.dialog__glow { --L: 300px; }
.dialog__spark {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden;
  /* the light in the cut, as in the hero: cream core, gold, saffron */
  background: radial-gradient(circle at 50% 50%, var(--light-core) 0, #F4C452 22px, #EDB43A 40px, var(--color-accent) 54px);
}
@media (prefers-reduced-motion: no-preference) {
  .dialog[open]::backdrop { animation: pop-fade 240ms ease; }
  .dialog[open] .dialog__panel { animation: pop-open 560ms linear; }
  .dialog[open] .dialog__spark { animation: pop-spark 560ms linear; }
  .dialog[open] .dialog__in { animation: pop-in 560ms linear; }
  .dialog[open] .dialog__glow .light-e__a { animation: light-e-body 560ms linear; }
  .dialog[open] .dialog__glow .light-e__s,
  .dialog[open] .dialog__glow .light-e__l { animation: light-e-streak 560ms linear; }
  .dialog[open] .dialog__glow .light-e__v { animation: light-e-beam 560ms linear; }
}
@keyframes pop-fade { from { opacity: 0; } }
/* The panel is cut to a diamond that grows, then its four sides push out to the corners of the panel.
   Eight points in both shapes (corners and side centres), so the browser can blend them. */
@keyframes pop-open {
  0% {
    clip-path: polygon(50% calc(50% - 2px), calc(50% + 1px) calc(50% - 1px), calc(50% + 2px) 50%, calc(50% + 1px) calc(50% + 1px),
      50% calc(50% + 2px), calc(50% - 1px) calc(50% + 1px), calc(50% - 2px) 50%, calc(50% - 1px) calc(50% - 1px));
    animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  }
  24% {
    clip-path: polygon(50% calc(50% - 46px), calc(50% + 23px) calc(50% - 23px), calc(50% + 46px) 50%, calc(50% + 23px) calc(50% + 23px),
      50% calc(50% + 46px), calc(50% - 23px) calc(50% + 23px), calc(50% - 46px) 50%, calc(50% - 23px) calc(50% - 23px));
    animation-timing-function: ease-in-out;
  }
  36% {
    clip-path: polygon(50% calc(50% - 54px), calc(50% + 27px) calc(50% - 27px), calc(50% + 54px) 50%, calc(50% + 27px) calc(50% + 27px),
      50% calc(50% + 54px), calc(50% - 27px) calc(50% + 27px), calc(50% - 54px) 50%, calc(50% - 27px) calc(50% - 27px));
    animation-timing-function: cubic-bezier(0.6, 0, 0.1, 1);
  }
  84%, 100% { clip-path: polygon(50% 0%, 100% 0%, 100% 50%, 100% 100%, 50% 100%, 0% 100%, 0% 50%, 0% 0%); }
}
@keyframes pop-spark {
  0%, 50% { opacity: 1; visibility: visible; }
  96% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes pop-in { 0%, 66% { opacity: 0; } 100% { opacity: 1; } }
/* "Thank you" scene: only after a sent message (data-done="sent" on the dialog). The panel turns to night,
   the official reversed mark shows with the light in its cut, and the light blooms one time behind the halves
   (light E, the shared ".light-e" above), then it settles. The final state is the mark with a crisp lit diamond.
   --DM = mark size. The scene runs to the edges of the panel, as the hero light runs to the edges of the stage. */
.done-mark { display: none; position: relative; width: var(--DM); height: var(--DM); --DM: 7.5rem; }
.done-mark .light-e { --L: var(--DM); }
.dialog[data-done="sent"] .done-mark { display: block; }
.done-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.done-mark__halves path { fill: #FFFFFF; } /* the official reversed mark */
.dialog[data-done="sent"] .dialog__panel { background: var(--color-ink); border-color: var(--color-line-night); color: var(--color-ground); }
.dialog[data-done="sent"] .dialog__close { border-color: var(--color-fog); }
.dialog[data-done="sent"] :focus-visible { outline-color: var(--focus-on-ink); }
@media (hover: hover) and (pointer: fine) {
  .dialog[data-done="sent"] .dialog__close:hover { background: rgb(246 247 248 / 0.1); border-color: var(--color-ground); }
}
.dialog[data-done="sent"] .contact__done {
  justify-items: center; align-content: center; text-align: center; gap: var(--space-4);
  min-height: 30rem; margin-inline: calc(var(--space-6) * -1); padding: 6.5rem var(--space-6) var(--space-8); overflow: hidden;
}
.dialog[data-done="sent"] .done-mark { margin-bottom: var(--space-8); }
.dialog[data-done="sent"] .contact__done .h3 { max-width: 26ch; }
.done__body { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--color-fog); max-width: 30ch; text-wrap: balance; }
/* Text guard, as on the hero line: the beam of the light reaches this text while it blooms. */
.dialog[data-done="sent"] .contact__done .h3,
.dialog[data-done="sent"] .done__body {
  position: relative;
  text-shadow: 0 0 0.14em rgb(27 42 74 / 0.95), 0 0 0.34em rgb(27 42 74 / 0.9), 0 0 0.7em rgb(27 42 74 / 0.8), 0 0 1.3em rgb(27 42 74 / 0.6);
}
@media (max-width: 40rem) { /* phone: the scene sits at the centre of the full screen */
  .dialog[data-done="sent"] .dialog__in { min-height: 100dvh; grid-template-rows: auto 1fr; }
  .dialog[data-done="sent"] .contact__done { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}
@media (prefers-reduced-motion: no-preference) {
  .dialog[data-done="sent"] .done-mark__light { animation: done-light 520ms var(--ease-light) both; }
  /* 1 Dec 2026, the founder's decision: the light does not stop after one bloom. It swells one time (700 ms),
     then it stays up and breathes slowly until the visitor closes the pop-up (the animation ends when the
     dialog closes). Transform and opacity only. With reduced motion there is no bloom: the still lit mark. */
  .dialog[data-done="sent"] .done-mark .light-e__a {
    animation: light-e-body-in 700ms cubic-bezier(0.33, 1, 0.68, 1) 300ms both, light-e-body-breathe 2600ms ease-in-out 1000ms infinite alternate;
  }
  .dialog[data-done="sent"] .done-mark .light-e__s,
  .dialog[data-done="sent"] .done-mark .light-e__l {
    animation: light-e-streak-in 700ms cubic-bezier(0.33, 1, 0.68, 1) 300ms both, light-e-streak-breathe 2600ms ease-in-out 1000ms infinite alternate;
  }
  .dialog[data-done="sent"] .done-mark .light-e__v {
    animation: light-e-beam-in 700ms cubic-bezier(0.33, 1, 0.68, 1) 300ms both, light-e-beam-breathe 2600ms ease-in-out 1000ms infinite alternate;
  }
  .dialog[data-done="sent"] .contact__done .h3 { animation: done-text 600ms var(--ease-out) 500ms both; }
  .dialog[data-done="sent"] .done__body { animation: done-text 600ms var(--ease-out) 620ms both; }
}
/* The continuing light of the "Thank you" scene: swell to full size, then breathe between full size and a
   smaller, softer state. The swell ends where the breath starts, so there is no jump. */
@keyframes light-e-body-in { 0% { opacity: 0; transform: scale(0.32); } 14% { opacity: 0.9; } 100% { opacity: 0.9; transform: scale(1); } }
@keyframes light-e-streak-in { 0% { opacity: 0; transform: scaleX(0.32); } 14% { opacity: 1; } 100% { opacity: 1; transform: scaleX(1); } }
@keyframes light-e-beam-in { 0% { opacity: 0; transform: scaleY(0.32); } 14% { opacity: 1; } 100% { opacity: 1; transform: scaleY(1); } }
@keyframes light-e-body-breathe { from { opacity: 0.9; transform: scale(1); } to { opacity: 0.7; transform: scale(0.86); } }
@keyframes light-e-streak-breathe { from { opacity: 1; transform: scaleX(1); } to { opacity: 0.75; transform: scaleX(0.82); } }
@keyframes light-e-beam-breathe { from { opacity: 1; transform: scaleY(1); } to { opacity: 0.75; transform: scaleY(0.82); } }
/* As in the hero: the light enters through the seam and widens into the diamond. */
@keyframes done-light { from { clip-path: inset(0 49.5%); } to { clip-path: inset(0 31%); } }
@keyframes done-text { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--color-line); padding-block: var(--space-7) var(--space-8); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-7);
}
.foot__home { display: inline-flex; align-items: center; min-height: 44px; line-height: 0; }
.foot__logo { height: 28px; width: auto; }
.foot__item { display: inline-flex; align-items: center; min-height: 44px; }
.foot__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); color: var(--color-muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.foot__meta a { color: var(--color-muted); display: inline-flex; align-items: center; min-height: 44px; }
.foot__meta a:hover { color: var(--color-ink); }

/* ---------- 404 ---------- */
.nf {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-block: 7rem 4.5rem;
  background: var(--color-ink);
  color: var(--color-ground);
}
.nf__inner { display: grid; gap: var(--space-6); }
.nf__mark { width: clamp(96px, 16vw, 160px); }
.nf__title { max-width: 12ch; }
.nf .lead { color: var(--color-fog); }
.nf a.btn { justify-self: start; }

/* Reduced motion: no movement. The reveal hidden states above apply only with motion allowed,
   so every figure shows its final state. Colour and opacity transitions stay, because they
   explain state and do not move anything. A press shows by colour, not by scale. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .syzygy__body, .syzygy__axis, .syzygy__dot, .invite__light { transition: none; }
  .btn:active { transform: none; background-color: var(--color-accent); color: var(--color-ink); }
}
