/* Contact: paper. The folded-paper still from the About chapter stands
   full-bleed behind the page and stays while the visitor scrolls; the home
   page's refractive chevron stands on it in its own slot (hero-scene.js, the
   compact contract: it turns with the scroll, nothing else). The letter is
   one pane of frosted lilac glass laid over the paper: letterhead, a dashed
   crease, then the writing area. On send the written area lifts off the
   glass as a sheet and folds in thirds, then in half, into a letter that
   stays parked above the thank-you; contact.js drives it on physics.js
   (hinged plates, springs, light from the face normals). Tokens are the
   brand four plus alpha derivations of navy; no new hue. Reading text never
   transforms: the fold is a decorative sheet, the form has already left the
   document. */
body.contact-page {
  --contact-lilac: #D6D4ED;
  --contact-navy: #0A1628;
  --contact-forest: #1B3A32;
  --contact-olive: #BDB414;
  --contact-muted: rgb(10 22 40 / 82%);
  --contact-rule: rgb(10 22 40 / 26%);
  --contact-crease: rgb(10 22 40 / 42%);
  /* Control boundaries hold 3:1 on the frosted lilac. */
  --contact-control: rgb(10 22 40 / 70%);
  --contact-glass: rgb(214 212 237 / 84%);
  --contact-glass-edge: rgb(255 255 255 / 64%);
  /* The lifted sheet is the pane's own glass: lilac at the tone the pane
     takes over the paper behind it (lilac with ~10% navy on a desktop,
     where forest shows through; warmer on a phone, where olive does), so a
     sheet over the pane, and a stack of them, reads as the same material. */
  --contact-film: rgb(192 193 215 / 72%);
  --contact-nav: var(--work-nav-height, 64px);
  --contact-gutter: clamp(20px, 4.2vw, 60px);
  --contact-pad: clamp(24px, 3.4vw, 56px);
  --contact-pane: 640px;
  --contact-art-x: 44%;
  --contact-ease: cubic-bezier(.16, 1, .3, 1);
  margin: 0;
  background: var(--contact-lilac);
  color: var(--contact-navy);
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.012em;
}
.contact-page *, .contact-page *::before, .contact-page *::after { box-sizing: border-box; }
.contact-page main { margin: 0; padding: 0; outline: none; }
.contact-page :where(h1, h2, p, fieldset, legend) { margin: 0; color: inherit; }

/* ---- The stage: paper behind, glass object on it, the letter in front ---- */
.contact-stage {
  position: relative;
  isolation: isolate;
  background: var(--contact-forest);
}
/* The art is one screen tall and sticky under the bar; the letter is laid
   over it with a negative top margin. The art keeps its own margin box, so
   when the stage ends the whole frame rises with it and leaves under the bar
   as one piece: the footer never slides across the object. */
.contact-stage-art {
  position: sticky;
  top: var(--contact-nav);
  z-index: 0;
  height: calc(100svh - var(--contact-nav));
  overflow: hidden;
  pointer-events: none;
}
.contact-stage-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--contact-art-x) 50%;
}
/* The object's slot is the clear column beside the pane. */
.contact-stage-glass {
  position: absolute;
  top: 8%;
  right: var(--contact-gutter);
  left: calc(var(--contact-gutter) + var(--contact-pane) + 24px);
  height: 84%;
}
.contact-stage-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
[data-contact-glass="on"] .contact-stage-glass[data-hero-scene="ready"] .contact-stage-canvas { opacity: 1; }
[data-contact-glass="off"] .contact-stage-canvas,
.contact-stage-glass[data-hero-scene="fallback"] .contact-stage-canvas { visibility: hidden; }

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, var(--contact-pane)) minmax(0, 1fr);
  margin-top: calc(-100svh + var(--contact-nav));
  padding: clamp(40px, 6svh, 72px) var(--contact-gutter) clamp(72px, 9vw, 128px);
}

/* ---- The letter: one pane of frosted glass ---- */
.contact-paper {
  grid-column: 1;
  position: relative;
  min-width: 0;
  color: var(--contact-navy);
  background: linear-gradient(118deg, rgb(255 255 255 / 22%), rgb(255 255 255 / 0%) 46%), var(--contact-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--contact-glass-edge);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    inset 1px 0 0 rgb(255 255 255 / 40%),
    inset 0 -1px 0 rgb(10 22 40 / 10%),
    0 40px 70px -44px rgb(10 22 40 / 60%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .contact-paper { background: rgb(214 212 237 / 94%); }
}
@media (prefers-reduced-transparency: reduce) {
  .contact-paper { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(214 212 237 / 96%); }
}
.contact-opening {
  position: relative;
  padding: var(--contact-pad) var(--contact-pad) clamp(28px, 3.4vw, 44px);
}
/* The crease: a fine dashed line between letterhead and writing area. */
.contact-opening::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--contact-crease) 0 7px, transparent 7px 13px);
}
.contact-eyebrow {
  margin: 0 0 clamp(26px, 3vw, 38px);
  font: 400 12px/1.5 Inter, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-title {
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(60px, 7.6vw, 112px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.contact-lede {
  max-width: 34ch;
  margin: clamp(34px, 3.6vw, 52px) 0 0;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.45;
  letter-spacing: -.018em;
  text-wrap: pretty;
}

/* The writing area holds three pages in one cell: the form, the folding
   sheet and the thank-you. Only one is in the document at a time. The status
   line and the closing lines live outside the cell, so they survive the swap. */
.contact-sheet {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  scroll-margin-top: calc(var(--contact-nav) + 16px);
}
.contact-written { grid-area: 1 / 1; min-width: 0; }
.contact-written[hidden], .contact-sent[hidden], .contact-fold[hidden], .contact-form[hidden], .contact-foot[hidden] { display: none; }
.contact-form {
  display: grid;
  gap: clamp(26px, 3vw, 38px);
  padding: clamp(28px, 3.4vw, 44px) var(--contact-pad) 0;
}
.contact-fields {
  display: grid;
  gap: clamp(26px, 3vw, 38px);
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Fields are lines on the paper: a label above, the written text, a rule. */
.contact-field { position: relative; min-width: 0; }
.contact-label,
.contact-topics > legend {
  display: block;
  padding: 0;
  margin: 0 0 4px;
  font: 600 15px/1.4 Inter, sans-serif;
  letter-spacing: -.008em;
  color: var(--contact-navy);
}
.contact-input,
.contact-textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 0 11px;
  border: 0;
  border-bottom: 1px solid var(--contact-control);
  border-radius: 0;
  background: transparent;
  color: var(--contact-navy);
  font: 400 18px/1.4 Inter, sans-serif;
  letter-spacing: -.012em;
  appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-field[data-field="name"] .contact-input { max-width: 34ch; }
.contact-field[data-field="email"] .contact-input { max-width: 40ch; }
/* The message field grows with its text instead of showing a resize grip. */
.contact-textarea {
  min-height: 168px;
  max-height: 60svh;
  overflow: auto;
  resize: none;
  field-sizing: content;
  line-height: 1.5;
}
.contact-input:hover,
.contact-textarea:hover { border-bottom-color: rgb(10 22 40 / 80%); }
.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-bottom-color: var(--contact-navy);
  box-shadow: 0 1px 0 0 var(--contact-navy);
}
.contact-input:focus-visible,
.contact-textarea:focus-visible,
.contact-submit:focus-visible,
.contact-again:focus-visible,
.contact-sent-link:focus-visible,
.contact-privacy a:focus-visible,
.contact-status a:focus-visible,
.contact-aside-note a:focus-visible,
.contact-noscript a:focus-visible,
.contact-sent-title:focus-visible {
  outline: 3px solid var(--contact-navy);
  outline-offset: 4px;
}
.contact-input:-webkit-autofill,
.contact-textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--contact-navy);
  box-shadow: 0 0 0 1000px #e2e1f1 inset;
}
.contact-field[data-invalid] :is(.contact-input, .contact-textarea) {
  border-bottom: 2px solid var(--contact-navy);
  padding-bottom: 10px;
}
.contact-field-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.contact-hint,
.contact-counter {
  margin: 0;
  font: 400 15px/1.5 Inter, sans-serif;
  color: var(--contact-muted);
}
.contact-counter { white-space: nowrap; font-variant-numeric: tabular-nums; }
.contact-counter[data-near="true"] { color: var(--contact-navy); font-weight: 600; }
.contact-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.contact-form-note {
  margin: 0;
  font: 400 15px/1.5 Inter, sans-serif;
  color: var(--contact-muted);
}
.contact-form-note + .contact-field { margin-top: -8px; }

/* Error summary: one place that lists every problem and links to it. It is
   focused on submit, so it needs no live role. */
.contact-error-summary {
  padding: 18px 20px 12px;
  border: 1px solid var(--contact-navy);
  scroll-margin-top: calc(var(--contact-nav) + 24px);
}
.contact-error-summary[hidden] { display: none; }
.contact-error-summary:focus { outline: none; }
.contact-error-summary:focus-visible { outline: 3px solid var(--contact-navy); outline-offset: 4px; }
.contact-error-summary-title {
  margin: 0 0 6px;
  font: 600 18px/1.3 Inter, sans-serif;
  letter-spacing: -.015em;
}
.contact-error-summary-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-error-summary-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--contact-navy);
  font: 400 15px/1.45 Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.contact-error-summary-list a:hover { text-decoration-thickness: 2px; }
.contact-error-summary-list a:focus-visible { outline: 3px solid var(--contact-navy); outline-offset: 0; }
.contact-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font: 600 15px/1.45 Inter, sans-serif;
  letter-spacing: -.008em;
  color: var(--contact-navy);
}
.contact-error[hidden] { display: none; }
.contact-error::before {
  /* A small folded corner marks the line that needs attention. Text, not
     colour, carries the meaning; this is a monochrome navy triangle. */
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  background: var(--contact-navy);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Topic: four ruled lines, each with a round mark whose corner folds over
   in olive when chosen. Arrow keys move the choice natively. */
.contact-topics {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.contact-topic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 46ch;
  margin-top: 6px;
  border-top: 1px solid var(--contact-rule);
}
.contact-topic {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 0;
  border-bottom: 1px solid var(--contact-rule);
  color: var(--contact-navy);
  font: 400 16px/1.35 Inter, sans-serif;
  letter-spacing: -.012em;
  cursor: pointer;
  user-select: none;
}
.contact-topic-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.contact-topic-mark {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  color: var(--contact-control);
  transition: color .18s ease;
}
.contact-topic-mark .mark-sheet {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: fill .22s var(--contact-ease), stroke .18s ease;
}
.contact-topic-mark .mark-fold {
  fill: var(--contact-olive);
  transform: scale(0);
  transform-origin: 10px 10px;
  transition: transform .26s var(--contact-ease);
}
.contact-topic-text { position: relative; }
.contact-topic:hover .contact-topic-mark { color: var(--contact-navy); }
.contact-topic:focus-within {
  outline: 3px solid var(--contact-navy);
  outline-offset: 2px;
}
.contact-topic-input:checked ~ .contact-topic-mark { color: var(--contact-navy); }
.contact-topic-input:checked ~ .contact-topic-mark .mark-sheet { fill: var(--contact-navy); }
.contact-topic-input:checked ~ .contact-topic-mark .mark-fold { transform: scale(1); }
.contact-topic-input:checked ~ .contact-topic-text { font-weight: 600; letter-spacing: -.018em; }
.contact-topics[data-invalid] .contact-topic-grid { border-top-color: var(--contact-navy); }
.contact-topics[data-invalid] .contact-topic { border-bottom-color: var(--contact-navy); }

/* The human check (Cloudflare Turnstile) renders into a reserved row above
   the action, so the page never shifts when it arrives. Its light theme sits
   on the frosted pane; the frame is Cloudflare's and keeps its own focus
   order. */
.contact-check { min-height: 65px; min-width: 0; }
.contact-check[hidden] { display: none; }
.contact-turnstile { min-height: 65px; }
.contact-turnstile iframe { display: block; }
/* Below 374px the pane's writing width is under the 300px frame, so the
   compact widget is rendered; its taller row is reserved so nothing shifts. */
@media (max-width: 373px) {
  .contact-check, .contact-turnstile { min-height: 140px; }
}

/* Actions. The Send capsule is the site's navy action. While a message is on
   its way the capsule says so and turns forest; it is never disabled while it
   has focus. */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  padding-top: 2px;
}
.contact-submit,
.contact-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  max-width: 100%;
  margin: 0;
  padding: 13px 26px;
  border: 1px solid var(--contact-navy);
  border-radius: 999px;
  background: var(--contact-navy);
  color: var(--contact-lilac);
  font: 400 15px/1.4 Inter, sans-serif;
  letter-spacing: -.008em;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.contact-submit:hover,
.contact-again:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-submit[aria-disabled="true"],
.contact-submit:disabled {
  cursor: progress;
  background: var(--contact-forest);
  border-color: var(--contact-forest);
  text-decoration: none;
}
.contact-submit .link-icon { flex: 0 0 auto; width: 18px; height: 18px; }
/* The status line is always in the document, so assistive technology hears
   every change; it only takes room when it has something to say. */
.contact-status {
  grid-row: 2;
  min-width: 0;
  margin: 0;
  padding: 14px var(--contact-pad) 0;
  font: 400 15px/1.5 Inter, sans-serif;
  color: var(--contact-navy);
}
.contact-status:empty { padding-top: 0; }
.contact-sheet[data-state="sent"] .contact-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.contact-status a,
.contact-privacy a,
.contact-aside-note a,
.contact-noscript a,
.contact-sent-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.contact-status a:hover,
.contact-privacy a:hover,
.contact-aside-note a:hover,
.contact-sent-link:hover { text-decoration-thickness: 2px; }
.contact-foot { grid-row: 3; min-width: 0; }
.contact-privacy {
  margin: 0;
  padding: clamp(22px, 2.6vw, 30px) var(--contact-pad) 0;
  font: 400 15px/1.5 Inter, sans-serif;
  color: var(--contact-muted);
}
.contact-privacy a {
  display: inline-block;
  padding: 11px 0;
  margin: -11px 0;
  color: var(--contact-navy);
}
.contact-noscript {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--contact-rule);
  font: 400 15px/1.5 Inter, sans-serif;
}
/* Honeypot: off screen for people, present for scripts. Never display:none. */
.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* The quiet alternative closes the written page. */
.contact-aside-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin: clamp(18px, 2vw, 26px) 0 0;
  padding: clamp(18px, 2vw, 26px) var(--contact-pad) clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--contact-rule);
  font: 400 15px/1.5 Inter, sans-serif;
  color: var(--contact-navy);
}
.contact-aside-note a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: inherit;
}
.contact-aside-note .footer-icon { flex: 0 0 auto; width: 17px; height: 17px; }

/* ---- Sent: the sheet folds into a letter, the thank-you follows ---- */
.contact-sent {
  grid-area: 1 / 1;
  display: grid;
  align-content: start;
  min-width: 0;
}
/* The fold is drawn by contact.js on physics.js: every part below is
   decorative (the layer is aria-hidden) and is placed by a matrix3d and an
   opacity that the physics writes each frame. These rules are the material
   and the resting state only; nothing here transitions. */
.contact-fold {
  position: relative;
  width: 100%;
  pointer-events: none;
}
/* The camera: perspective and its origin are set in pixels by the owner, so
   the view never moves when the layer shrinks to the parked letter. */
.contact-fold-sheet {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
}
.contact-fold-piece,
.contact-fold-ground,
.contact-fold-cast {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
}
.contact-fold-piece[data-shown="false"],
.contact-fold-ground[data-shown="false"] { display: none; }
/* A piece of the sheet: a flat plate, its layers composed inside it. */
.contact-fold-piece { overflow: hidden; }
/* The material, in sheet coordinates so the pieces tile into one pane: the
   letter's own frosted lilac and sheen, with glass edges on the sheet's
   outer border only (the piece clips the rest), never on a crease. */
.contact-fold-film,
.contact-fold-print {
  position: absolute;
  top: 0;
  left: 0;
}
.contact-fold-film {
  background:
    linear-gradient(118deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 0%) 46%),
    var(--contact-film);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 72%),
    inset 1px 0 0 rgb(255 255 255 / 42%),
    inset 0 -1px 0 rgb(10 22 40 / 12%),
    inset -1px 0 0 rgb(10 22 40 / 8%);
  opacity: 0;
}
/* Light: navy where a face turns from the key light, white where it turns
   toward it; the owner sets which and how much from the face normal. */
.contact-fold-tone {
  position: absolute;
  inset: 0;
  background: var(--contact-navy);
  opacity: 0;
}
.contact-fold-tone[data-tone="shine"] { background: #fff; }
/* The olive inner fold, as on the home ribbon: it shows on the side of a
   turned leaf that faced the glass, deepest at the hinge. */
.contact-fold-liner {
  position: absolute;
  opacity: 0;
  --liner: linear-gradient(var(--liner-to), rgb(189 180 20 / 95%) 0, rgb(189 180 20 / 80%) 2px, rgb(189 180 20 / 34%) 30%, rgb(189 180 20 / 0%));
  background: var(--liner);
}
.contact-fold-liner[data-edge="top"] { --liner-to: to bottom; top: 0; left: 0; right: 0; height: min(9%, 22px); }
.contact-fold-liner[data-edge="bottom"] { --liner-to: to top; bottom: 0; left: 0; right: 0; height: min(9%, 22px); }
.contact-fold-liner[data-edge="right"] { --liner-to: to left; top: 0; right: 0; bottom: 0; width: min(9%, 22px); }
/* A crease is a fine dashed line, the same as the letterhead's, and only a
   panel that has turned carries one. */
.contact-fold-crease {
  position: absolute;
  opacity: 0;
  background: repeating-linear-gradient(90deg, var(--contact-crease) 0 7px, transparent 7px 13px);
}
.contact-fold-crease[data-edge="top"] { top: 3px; left: 0; right: 0; height: 1px; }
.contact-fold-crease[data-edge="bottom"] { bottom: 3px; left: 0; right: 0; height: 1px; }
.contact-fold-crease[data-edge="right"] {
  top: 0;
  bottom: 0;
  right: 3px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--contact-crease) 0 7px, transparent 7px 13px);
}
/* Shadows. On the glass: one soft, rasterised-once rectangle per layer,
   projected along the key light; layers add up as stacked film does. On the
   sheet: a turning panel's contact shadow, darkest at the hinge. */
.contact-fold-ground {
  background: var(--contact-navy);
  border-radius: 10px;
  box-shadow: 0 0 26px 13px var(--contact-navy);
  opacity: 0;
}
.contact-fold-cast {
  background: linear-gradient(to bottom, rgb(10 22 40 / 52%), rgb(10 22 40 / 22%) 45%, rgb(10 22 40 / 0%));
  opacity: 0;
}

.contact-sent-copy {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: clamp(22px, 2.8vw, 36px) var(--contact-pad) clamp(28px, 3.4vw, 48px);
  animation: contact-copy-in .4s ease both;
}
.contact-sent-copy[hidden] { display: none; }
@keyframes contact-copy-in { from { opacity: 0; } to { opacity: 1; } }
.contact-sent-title {
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
/* A keyboard visitor sees the ring on the focused heading; focus set by the
   script after a pointer send shows nothing odd. */
.contact-sent-title:focus:not(:focus-visible) { outline: none; }
.contact-sent-text strong { font-weight: 600; overflow-wrap: anywhere; }
.contact-sent-text {
  max-width: 46ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  text-wrap: pretty;
}
.contact-sent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 10px;
}
.contact-sent-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 15px/1.4 Inter, sans-serif;
}

/* ---- Reflow ---- */
@media (min-width: 992px) {
  /* The title keeps its two lines; the second carries the full stop. */
  .contact-title { max-width: 6ch; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  body.contact-page { --contact-pane: 520px; }
  .contact-stage-glass { top: 12%; height: 76%; }
}
/* Between 1200 and 1799px the pane's edge would otherwise meet the olive
   plane's edge; the picture sits a little to the right so a forest strip
   separates them. */
@media (min-width: 1200px) and (max-width: 1799px) {
  body.contact-page { --contact-art-x: 35%; }
}
@media (max-width: 991px) {
  body.contact-page { --contact-nav: var(--work-nav-height, 56px); --contact-pad: clamp(20px, 5vw, 36px); --contact-art-x: 61%; --contact-film: rgb(205 203 218 / 72%); }
  /* The object stands over the lilac gap in the first screen; the letter
     begins beneath it and rises over the paper as the visitor scrolls. */
  .contact-stage-glass { left: 0; right: 0; top: 0; height: 54%; }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 46svh;
    padding-bottom: 72px;
  }
  /* Over the brighter paper the glass is a touch denser, so it never reads beige. */
  .contact-paper { background: linear-gradient(118deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 0%) 46%), rgb(214 212 237 / 88%); }
  .contact-title { font-size: clamp(52px, 13.5vw, 88px); line-height: .94; }
  .contact-lede { max-width: 40ch; }
  .contact-form, .contact-fields { gap: 26px; }
}
@media (max-width: 599px) {
  body.contact-page { --contact-gutter: 16px; }
  .contact-layout { padding-top: 44svh; padding-bottom: 56px; }
  .contact-eyebrow { margin-bottom: 24px; }
  .contact-lede { font-size: 17px; }
  .contact-input, .contact-textarea { font-size: 17px; }
  .contact-topic { min-height: 50px; font-size: 15px; }
  .contact-field-foot { flex-wrap: wrap; gap: 4px 16px; }
  .contact-actions { gap: 14px; }
  .contact-submit, .contact-again { width: 100%; }
  .contact-sent-title { font-size: clamp(28px, 8.6vw, 36px); }
  .contact-sent-actions { flex-direction: column; align-items: stretch; }
  .contact-sent-link { justify-content: center; }
}
@media (max-width: 359px) {
  .contact-title { font-size: 46px; }
}
@media (min-width: 1800px) {
  body.contact-page { --contact-pane: 700px; --contact-art-x: 48%; }
}
@media (max-height: 600px) and (min-width: 992px) {
  .contact-layout { padding-top: 28px; }
}

/* ---- Forced colors: marks, chosen state and glyphs use system colors ---- */
@media (forced-colors: active) {
  .contact-paper { background: Canvas; border-color: CanvasText; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .contact-opening::after { background: CanvasText; }
  .contact-input, .contact-textarea { border-bottom-color: CanvasText; }
  .contact-topic-mark { forced-color-adjust: none; color: CanvasText; }
  .contact-topic-mark .mark-sheet { fill: Canvas; stroke: CanvasText; }
  .contact-topic-input:checked ~ .contact-topic-mark .mark-sheet { fill: Highlight; stroke: Highlight; }
  .contact-topic-mark .mark-fold { fill: HighlightText; }
  .contact-topic:focus-within { outline-color: Highlight; }
  .contact-error::before { background: CanvasText; }
  .contact-error-summary { border-color: CanvasText; }
  /* Shadows and tones are dropped in forced colors; a real border keeps the
     folded letter's leaves visible. */
  .contact-fold-piece { background: Canvas; border: 1px solid CanvasText; }
  .contact-fold-film, .contact-fold-print, .contact-fold-tone, .contact-fold-liner, .contact-fold-ground, .contact-fold-cast { display: none; }
  .contact-fold-crease { forced-color-adjust: none; background: CanvasText; }
  .contact-submit[aria-disabled="true"] { border-color: GrayText; color: GrayText; }
}

/* Stillness: the state changes instantly, nothing transforms. */
@media (prefers-reduced-motion: reduce) {
  .contact-page *, .contact-page *::before, .contact-page *::after {
    transition: none !important;
    animation: none !important;
  }
}
html.no-motion .contact-page *, html.no-motion .contact-page *::before, html.no-motion .contact-page *::after {
  transition: none !important;
  animation: none !important;
}
