/* ==========================================================================
   Kinora — The Art of Lifelong Matchmaking
   Single stylesheet. No framework, no build step.
   Order: tokens · base · layout · type · components · forms · responsive
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ivory:       #FAF7F2;
  --ivory-deep:  #F2ECE3;
  --ink:         #1F1B16;
  --ink-soft:    #5A5148;
  --brass:       #A67C52;
  --brass-deep:  #8A6440;
  --line:        rgba(31, 27, 22, .12);
  --line-soft:   rgba(31, 27, 22, .07);
  --wash:        rgba(166, 124, 82, .05);

  --shadow-sm: 0 2px 10px rgba(31, 27, 22, .05), 0 12px 28px rgba(31, 27, 22, .05);
  --shadow-md: 0 14px 40px rgba(31, 27, 22, .10);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --maxw:   1120px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4.5rem, 11vw, 9rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Paper grain. A fixed, non-interactive overlay so the ivory reads as stock
   rather than a flat fill. Static — it survives reduced-motion untouched. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Keep real content above the grain. */
.site-header, main, .site-footer, .skip-link { position: relative; z-index: 2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--ink); }

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

::selection { background: rgba(166, 124, 82, .22); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--ivory);
  padding: .75rem 1.25rem;
  z-index: 100;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.skip-link:focus { left: .5rem; top: .5rem; color: var(--ivory); }

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

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--band {
  background: var(--ivory-deep);
  background-image:
    radial-gradient(80% 60% at 18% 0%, var(--wash), transparent 70%),
    radial-gradient(70% 70% at 92% 100%, rgba(31, 27, 22, .035), transparent 70%);
}

/* Hairline that fades out at both ends, rather than stopping abruptly. */
.section--rule {
  border-top: 0;
  background-image: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 0;
}

.measure { max-width: var(--measure); }
.center { margin-inline: auto; text-align: center; }
.center .measure { margin-inline: auto; }

/* --- Type ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 1.5rem;
}

.display {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.08;
}

/* Inner pages lead with a smaller headline so the content starts sooner. */
.display--sm { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.12; }

.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.25; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }

.serif-italic { font-family: var(--font-display); font-style: italic; font-size: 1.1em; }

/* Ornament — the ⚬ glyph from the brand mark */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: var(--brass);
  font-size: 1rem;
  line-height: 1;
  margin-block: clamp(2.5rem, 6vw, 4rem);
  user-select: none;
}
.ornament::before,
.ornament::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 9vw, 5rem);
  background: linear-gradient(90deg, transparent, var(--brass));
  opacity: .55;
}
.ornament::after { background: linear-gradient(90deg, var(--brass), transparent); }

/* The diamond itself. */
.ornament > span,
.ornament-mark {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--brass);
  transform: rotate(45deg);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: clamp(2.5rem, 5vw, 4rem);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2rem;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--ivory);
  cursor: pointer;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
/* Sweep fills from the left on hover. Sits behind the label via z-index. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brass-deep);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }

.btn:hover,
.btn:focus-visible { border-color: var(--brass-deep); color: var(--ivory); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn--ghost { background: transparent; color: var(--brass-deep); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--brass); color: var(--ivory); }

.link-quiet {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: .35rem;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.link-quiet:hover,
.link-quiet:focus-visible { color: var(--ink); border-color: transparent; }

/* A brass underline that grows in over the resting hairline. */
.link-quiet {
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: color .35s var(--ease), border-color .35s var(--ease), background-size .45s var(--ease);
}
.link-quiet:hover,
.link-quiet:focus-visible { background-size: 100% 1px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.center .actions { justify-content: center; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px rgba(31, 27, 22, .045);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  transition: padding-block .4s var(--ease);
}
.site-header.is-scrolled .site-header__inner { padding-block: .95rem; }


.wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
  /* letter-spacing adds trailing space; pull it back so the mark optically aligns */
  margin-right: -.34em;
}
.wordmark:hover { color: var(--brass-deep); }
.wordmark { transition: color .3s var(--ease); }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); }

.nav a {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  /* Underline grows outward from the centre. */
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 1px;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.nav a:not(.btn):hover,
.nav a:not(.btn):focus-visible { color: var(--ink); background-size: 100% 1px; }

/* The current page carries no ornament — it is simply darker and heavier.
   Both weights are already in the font request, so this costs nothing.
   The Apply button is excluded: it is already the loudest thing in the nav,
   and tinting its label ink would put dark text on the brass fill. */
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* The Apply button is a button, not a text link — no underline. */
.nav a.btn { background-image: none; padding-bottom: .8rem; font-weight: 500; }

.nav .btn { padding: .8rem 1.5rem; color: var(--ivory); }

/* Mobile nav toggle. Hidden until site.js marks the header with [data-nav];
   with JS off the nav simply wraps to a second row and stays usable. */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .55rem;
  background: none;
  border: 0;
  padding: .5rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-toggle:hover { color: var(--ink); }
.nav-toggle__bars {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  padding-block: clamp(5rem, 13vw, 10rem) clamp(4rem, 10vw, 7rem);
  position: relative;
}

/* A soft glow behind the hero so the page opens with some light in it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 55% at 72% 32%, var(--wash), transparent 70%);
}

/* Staggered entrance. animation-fill-mode: backwards holds the from-state
   during the delay, so nothing is hidden when animations do not run. */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero .eyebrow,
.hero .display,
.hero .lede,
.hero .actions {
  animation: rise .85s var(--ease) backwards;
}
.hero .eyebrow { animation-delay: .05s; }
.hero .display { animation-delay: .18s; }
.hero .lede    { animation-delay: .34s; }
.hero .actions { animation-delay: .48s; }
.hero--inner { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }

.hero .display { max-width: 16ch; }
.hero--inner .display { max-width: 22ch; }
.hero .lede { max-width: 54ch; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

/* Interlocking arcs — the visual argument of the brand. */
.hero-art { width: 100%; height: auto; overflow: visible; }
.hero-art .arc {
  fill: none;
  stroke: var(--brass);
  stroke-linecap: round;
  stroke-width: 1;
  opacity: .75;
  --len: 500;          /* 2 * pi * 78, rounded up */
}
/* The outer ring is a whisper — it frames without competing. */
.hero-art .arc--frame { --len: 950; stroke-width: .75; opacity: .3; }
.hero-art .dot { fill: var(--brass); opacity: .75; }
.hero-art .halo { fill: rgba(166, 124, 82, .06); }

/* Draw-on-reveal. Keyed off .is-visible, which js/site.js already sets, and
   only ever active under .reveal-ready — so no JS means simply drawn. */
.reveal-ready .hero-art .arc {
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.reveal-ready .hero-art .dot,
.reveal-ready .hero-art .halo { opacity: 0; }

.reveal-ready .reveal.is-visible .hero-art .arc {
  animation: draw 1.9s var(--ease) forwards;
}
.reveal-ready .reveal.is-visible .hero-art .dot,
.reveal-ready .reveal.is-visible .hero-art .halo {
  animation: fade-in .9s var(--ease) 1.15s forwards;
}
.hero-art .arc--b { animation-delay: .35s !important; }

@keyframes draw    { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: .75; } }

/* --- Living artwork ------------------------------------------------------- */
/* Rotation only reads because each ring carries an orbit marker; a bare
   circle is rotationally symmetric and spinning it shows nothing. */
/* Every rotation group pivots on its own ring's centre. */
.ha-turn, .ha-drift { transform-box: view-box; }
.ha-ring--a .ha-turn,
.ha-ring--a .ha-drift { transform-origin: 160px 240px; }
.ha-ring--b .ha-turn,
.ha-ring--b .ha-drift { transform-origin: 240px 240px; }
.ha-halo { transform-box: view-box; transform-origin: 200px 240px; }

/* Idle: two slow drifts at deliberately mismatched periods, so the
   composition never settles into a visible repeat. */
.ha-drift { animation: drift 84s linear infinite; }
.ha-ring--b .ha-drift { animation-duration: 104s; animation-direction: reverse; }
.ha-halo  { animation: breathe 9s ease-in-out infinite alternate; }
.ha-pulse { animation: pulse 6s ease-in-out infinite alternate; }

@keyframes drift   { to { transform: rotate(360deg); } }
@keyframes breathe { to { transform: scale(1.04); } }
@keyframes pulse   { from { opacity: .8; } to { opacity: 1; } }

/* Stop the ambient motion once the artwork leaves the viewport. */
.hero-art.is-paused .ha-drift,
.hero-art.is-paused .ha-halo,
.hero-art.is-paused .ha-pulse { animation-play-state: paused; }

/* Hover: the rings ease toward each other and the glow warms. */
@media (hover: hover) {
  .ha-ring { transition: transform .9s var(--ease); }
  .hero-art:hover .ha-ring--a { transform: translateX(7px); }
  .hero-art:hover .ha-ring--b { transform: translateX(-7px); }
  .halo { transition: fill .9s var(--ease); }
  .hero-art:hover .halo { fill: rgba(166, 124, 82, .1); }
}

/* Click: draw apart while counter-turning, then settle back interlocked.
   Nested transforms compose, so this rides on top of any hover offset. */
.hero-art.is-kicked .ha-burst { animation: burst 1.4s var(--ease); }
.hero-art.is-kicked .ha-turn  { animation: turn 1.4s var(--ease); }
.hero-art.is-kicked .ha-ring--b .ha-burst { animation-name: burst-b; }
.hero-art.is-kicked .ha-ring--b .ha-turn  { animation-name: turn-b; }

@keyframes burst {
  0%   { transform: translateX(0); }
  38%  { transform: translateX(-16px); }
  100% { transform: translateX(0); }
}
@keyframes burst-b {
  0%   { transform: translateX(0); }
  38%  { transform: translateX(16px); }
  100% { transform: translateX(0); }
}
@keyframes turn   { to { transform: rotate(180deg); } }
@keyframes turn-b { to { transform: rotate(-180deg); } }

/* Reduced motion. The global rule below sets animation-duration to .01ms,
   which on an *infinite* rotation means a blur, not a stop — so these must
   be switched off by name, at a specificity that beats the universal rule. */
@media (prefers-reduced-motion: reduce) {
  .hero-art .ha-drift,
  .hero-art .ha-halo,
  .hero-art .ha-pulse,
  .hero-art .ha-burst,
  .hero-art .ha-turn {
    animation: none !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
  }
  .hero-art:hover .ha-ring--a,
  .hero-art:hover .ha-ring--b { transform: none !important; }
}

/* --- Two-column prose ----------------------------------------------------- */
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}

/* --- Cards / pillars ------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.pillar {
  border-top: 1px solid var(--brass);
  padding: 1.5rem 1.25rem 1.5rem 0;
  transition: transform .45s var(--ease);
}
.pillar h3 { margin-bottom: .75rem; }
.pillar p { color: var(--ink-soft); margin: 0; }

.pillar__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 1.15rem;
  color: var(--brass);
  opacity: .8;
  fill: none;
  stroke: currentColor;
  stroke-width: .9;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transition: opacity .45s var(--ease);
}
@media (hover: hover) {
  .pillar:hover { transform: translateY(-3px); }
  .pillar:hover .pillar__icon { opacity: 1; }
}

/* --- Numbered steps ------------------------------------------------------- */
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; }

.steps { position: relative; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

/* Vertical rail threading the numbers. Stops short on the last step. */
.step::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-soft);
}
.step:first-child::before { top: 40%; }
.step:last-child::before  { bottom: 60%; }

.step__num {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brass);
  line-height: 1.2;
  padding-left: 1.9rem;
}

/* The marker sitting on the rail. The rail is at left:1.1rem, so the dot's
   left edge is 1.1rem minus half its own width to centre it on the line. */
.step__num::before {
  content: "";
  position: absolute;
  left: calc(1.1rem - 3.5px);
  top: .62em;
  width: 7px;
  height: 7px;
  background: var(--ivory);
  border: 1px solid var(--brass);
  border-radius: 50%;
}
.section--band .step__num::before { background: var(--ivory-deep); }
.step h3 { margin-bottom: .6rem; }
.step p { color: var(--ink-soft); max-width: var(--measure); }

.step__note {
  margin-top: 1rem;
  font-size: .92rem;
  color: var(--ink-soft);
  border-left: 1px solid var(--brass);
  padding-left: 1rem;
}
.step__note strong { color: var(--ink); font-weight: 500; }

/* --- Checklist ------------------------------------------------------------ */
.list-plain { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.list-plain li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.list-plain li::before {
  content: "⚬";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brass);
}
.list-plain li:last-child { margin-bottom: 0; }

/* --- Pull quote ----------------------------------------------------------- */
.quote { position: relative; }
.quote::before {
  content: "\201C";
  position: absolute;
  top: -.42em;
  left: -.52em;
  font-size: 3.2em;
  line-height: 1;
  color: var(--brass);
  opacity: .22;
  pointer-events: none;
}

.quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.3;
  font-style: italic;
  max-width: 26ch;
}

/* --- Accordion ------------------------------------------------------------ */
.qa { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }

.qa details { border-bottom: 1px solid var(--line); }

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  transition: color .3s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--brass-deep); }
/* A rotating cross rather than a swapped glyph. */
.qa summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: .45em;
  background:
    linear-gradient(var(--brass), var(--brass)) center / 100% 1px no-repeat,
    linear-gradient(var(--brass), var(--brass)) center / 1px 100% no-repeat;
  transition: transform .4s var(--ease);
}
.qa details[open] summary::after { transform: rotate(135deg); }

/* Height animation without JS: the existing wrapper div is the grid child. */
.qa details > div {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--ink-soft);
  max-width: var(--measure);
  transition: grid-template-rows .4s var(--ease);
}
.qa details[open] > div { grid-template-rows: 1fr; }
.qa details > div > * { overflow: hidden; }
.qa details[open] > div { padding-bottom: 1.6rem; }

/* --- Form ----------------------------------------------------------------- */
.form { margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 42rem; }

.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
.fieldset legend {
  padding: 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 1.75rem;
}

.field { margin-bottom: 1.75rem; }

.field label {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  margin-bottom: .5rem;
}
.field .optional { color: var(--ink-soft); font-weight: 400; }

.field .hint {
  display: block;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: .65rem;
  line-height: 1.6;
}

.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .85rem 1rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input:hover,
.field textarea:hover { border-color: rgba(31, 27, 22, .28); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 0 0 3px rgba(166, 124, 82, .12), var(--shadow-sm);
}

/* Label picks up the accent while its control has focus. */
.field:focus-within label { color: var(--brass-deep); }
.field label { transition: color .3s var(--ease); }
.field textarea { min-height: 8.5rem; resize: vertical; }

/* Bottom-aligned so the inputs line up even when one field carries a hint. */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  align-items: end;
}

.error {
  display: none;
  font-size: .88rem;
  color: #A03A28;
  margin-top: .5rem;
}
.field.has-error input,
.field.has-error textarea { border-color: #A03A28; }
.field.has-error .error { display: block; }

.field--check { display: flex; align-items: flex-start; gap: .85rem; }
.field--check input {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  margin-top: .35rem;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  -webkit-appearance: checkbox;
  appearance: checkbox;
  accent-color: var(--brass);
}
.field--check label { font-weight: 400; font-size: .95rem; color: var(--ink-soft); margin: 0; }
.field--check .error { margin-left: 0; }

/* Honeypot — off-screen rather than display:none so bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin-top: 1.5rem;
  font-size: .95rem;
  color: #A03A28;
}
.form__status:empty { margin-top: 0; }

.form__footnote { margin-top: 1.5rem; font-size: .88rem; color: var(--ink-soft); }

.confirmation {
  border: 1px solid var(--brass);
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--ivory-deep);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 42rem;
}
.confirmation h2 { margin-bottom: 1rem; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--ivory);
  background-image: radial-gradient(70% 100% at 50% 100%, var(--wash), transparent 70%);
}



.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
}

.site-footer .wordmark { font-size: 1.2rem; display: inline-block; margin-bottom: .9rem; }
.site-footer__tagline { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); margin: 0; }

.footer-nav { display: flex; flex-direction: column; gap: .7rem; }
.footer-nav a {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.footer-nav a:hover { color: var(--ink); }

.site-footer__legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}

/* --- Scroll reveal -------------------------------------------------------- */
/* Elements start visible; site.js adds .reveal-ready only when it can animate,
   so a JS-disabled or errored page never hides its content. */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { display: none; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .cols-2, .split, .field-row { grid-template-columns: 1fr; }
  .split { gap: 1rem; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .step__num { font-size: 1.2rem; }
  .hero .display { max-width: none; }

  /* Nav collapses. Without JS it wraps to a second row; with JS it becomes
     a dropdown driven by [data-nav] on the header. */
  .site-header__inner { flex-wrap: wrap; }

  .nav {
    flex-wrap: wrap;
    gap: 1.25rem;
    width: 100%;
    padding-bottom: .35rem;
  }

  .site-header[data-nav] .nav-toggle { display: inline-flex; }

  .site-header[data-nav] .nav {
    position: absolute;
    right: 0;
    top: calc(100% - .35rem);
    width: auto;
    min-width: 13rem;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0;
    background: var(--ivory);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-header[data-nav="closed"] .nav { display: none; }

  .site-header[data-nav] .nav a { padding: .85rem 1.5rem; }
  .site-header[data-nav] .nav .btn { margin: .5rem 1.5rem .75rem; justify-content: center; }
}

@media (max-width: 480px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions .link-quiet { text-align: center; }
}

@media print {
  .site-header, .site-footer, .actions { display: none; }
}
