/* ARRE: coming-soon page styles. Vanilla CSS, no framework.

   Retheme by editing tokens only. Every colour is written once, in the :root block. Components use var(--...) only.

   Palette (Rohan, 2026-10-13: "apply mint green theme"): mint paper, deep green-black ink, one accent, deep mint,
   worn as glass. Light theme only.
   Contrast (WCAG, measured): ink on mint 14.9:1, secondary ink 6.8:1, accent on mint 6.7:1, text on the
   accent 7.0:1 (4.9:1 at the lighter top of the glass).

   Sizes are fluid: clamp() on the width, capped by svh where the fold matters. Never vh. Body text never below
   16px, nothing below 12px, every tap target at least 44px. */

/* Fonts (Rohan, 2026-10-13: pairing A of review/type-options.png). Both SIL OFL 1.1, no Reserved Font Name,
   self-hosted with their licences in site/fonts/ (sources and checksums: review/fonts/SOURCES.md).
   Sprat Condensed Light (Collletttivo, Ethan Nakache) for the headline: long, sharp serifs like a drafting pen.
   Ysabeau Office (Christian Thalmann) for body and labels: a sans on Garamond's bones; set at 17px, it runs small.
   One weight of Sprat is declared for 300 to 500, so nothing is ever synthesised in bold. */
@font-face { font-family: "Sprat"; src: url("../fonts/sprat/Sprat-CondensedLight.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("../fonts/ysabeau-office/ysabeau-office-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Ysabeau Office"; src: url("../fonts/ysabeau-office/ysabeau-office-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;

  /* ---------- colour ---------- */
  --page: #eef6f1;             /* mint paper: page background and theme-color (index.html first paint uses the same value) */
  --surface: #f8fcfa;          /* solid fills: reduced transparency, buttons that sit on glass */
  --ink: #10231c;              /* deep green-black text, 14.9:1 on --page */
  --ink-2: #3f5a50;            /* secondary text, 6.8:1 on --page */
  --accent: #1b6149;               /* deep mint: the button, focus ring, selection, lit stage */
  --accent-ink: #1b6149;           /* the accent as text on the page */
  --on-accent: #f4fbf7;            /* text on the accent */
  --accent-rgb: 27, 97, 73;        /* for tints: rgba(var(--accent-rgb), alpha) */
  --accent-hi-rgb: 42, 122, 94;    /* lighter: the top of the glass button */
  --accent-lo-rgb: 18, 71, 52;     /* deeper: the foot of the glass button and its shadow */
  --rule: rgba(16, 35, 28, .1);
  --veil-on-light: rgba(16, 35, 28, .06);
  --mask-ink: #000;            /* masks read alpha only */
  --shadow-1: 0 1px 2px rgba(16, 35, 28, .06), 0 10px 30px rgba(16, 35, 28, .08);

  /* the floor (js/plan3d.js reads every --fp-* token; values copied from Trinity, the front door in maroon) */
  --paper: var(--page);        /* the drawing is on the page itself */
  --fp-paper: var(--paper);
  --fp-ink: #10231c;
  --fp-plaster: #f1f6f3;
  --fp-cap: #4a5a54;           /* wall tops: the plan's ink, carried into 3D */
  --fp-oak: #c9a67f;
  --fp-stone: #dbe4df;
  --fp-concrete: #d1ccc4;
  --fp-deck: #b88b66;
  --fp-paver: #dfd8cd;
  --fp-coping: #ebe6de;
  --fp-water: #7fbcc4;
  --fp-glass: #c4dbe2;
  --fp-lawn: #b8c7a2;
  --fp-shade: #2a2520;         /* contact shadows */
  --fp-walnut: #6e4c37;
  --fp-white: #f6f3ee;
  --fp-linen: #f1ebe0;
  --fp-cream: #e6dccb;
  --fp-sand: #d3c3aa;
  --fp-sage: #9fb08e;
  --fp-clay: #c4846a;
  --fp-slate: #7c8c9f;
  --fp-charcoal: #3a3531;
  --fp-black: #1f1c1a;
  --fp-oxblood: var(--accent);
  /* clinic pieces (new for ARRE): teal upholstery, steel, lit screens, velvet and blush in the lobby, curtains, IV bags */
  --fp-teal: #4e7f83;
  --fp-steel: #b9bfc4;
  --fp-screen: #9fd6cf;
  --fp-velvet: #55685a;
  --fp-blush: #d8b3a7;
  --fp-curtain: #bdd5d2;
  --fp-iv: #e8f1f2;
  --fp-terracotta: #b8724f;
  --fp-aqua: #a7d2d6;
  --fp-mirror: #cdd8dc;
  --fp-leaf: #86a26f;
  --fp-leaf2: #9bb583;
  --fp-leaf3: #6f8d5d;
  --fp-bark: #7a5c45;
  --fp-bulb: #ffd3a0;
  --fp-sun: #fff0da;
  --fp-sky: #eef3fb;
  --fp-bounce: #eadcc8;
  --fp-env: #d9d3c9;
  --fp-label-font: var(--caps);
  --fp-caption-font: var(--sans);

  /* glass recipes (technique after Write-with-Nature's CSS glass, re-expressed; no file from it is used) */
  --glass-blur: blur(16px) saturate(160%);
  --glass-panel: rgba(248, 252, 250, .5);
  --glass-panel-blur: blur(28px) saturate(150%);
  --glass-panel-light: inset 0 1px 22px -8px rgba(255, 255, 255, .85), inset 0 -26px 40px -34px rgba(var(--accent-rgb), .12), 0 1px 2px rgba(16, 35, 28, .05), 0 22px 54px -26px rgba(16, 35, 28, .24);
  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, .1) 34%, transparent 58%);
  --glass-accent: linear-gradient(180deg, rgba(var(--accent-hi-rgb), .94) 0%, rgba(var(--accent-rgb), .96) 55%, rgba(var(--accent-lo-rgb), .98) 100%);
  --glass-accent-hover: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  --glass-accent-light: inset 1px 1px 4px rgba(255, 255, 255, .34), inset -1px -1px 3px rgba(var(--accent-lo-rgb), .5), 0 1px 2px rgba(var(--accent-lo-rgb), .22), 0 10px 24px rgba(var(--accent-lo-rgb), .26);
  --glass-gloss: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 48%, transparent 52%);
  --glass-clear: rgba(var(--accent-rgb), .06);
  --glass-clear-hover: rgba(var(--accent-rgb), .12);
  --glass-clear-light: inset 1px 1px 4px rgba(255, 255, 255, .85), inset -1px -1px 3px rgba(var(--accent-lo-rgb), .1), 0 1px 2px rgba(var(--accent-lo-rgb), .08), 0 4px 12px rgba(var(--accent-lo-rgb), .08);

  /* aurora: soft colour fields behind the page (maroon blush, rose, sand, mist, clay) */
  --aurora-1: rgba(var(--accent-rgb), .13);
  --aurora-2: rgba(150, 215, 188, .32);
  --aurora-3: rgba(204, 236, 220, .42);
  --aurora-4: rgba(168, 212, 224, .26);
  --aurora-5: rgba(214, 240, 222, .36);

  /* lite mode fills (no blur) */
  --lite-light: rgba(248, 252, 250, .95);

  /* ---------- type ---------- */
  --display: "Sprat", "Iowan Old Style", Georgia, serif;
  --caps: "Ysabeau Office", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Ysabeau Office", "Avenir Next", "Segoe UI", sans-serif;
  --step-hero:    clamp(2.375rem, min(1.4rem + 4vi, 9svh), 5.25rem);   /* bigger (Rohan): the headline carries the page */
  --step-lead:    clamp(1.0625rem, 1.01rem + .24vi, 1.1875rem);
  --step-body:    1.0625rem;   /* 17px: Ysabeau's letters run small */
  --step-label:   clamp(.8125rem, .78rem + .12vi, .9375rem);
  --step-caption: clamp(.8125rem, .79rem + .1vi, .875rem);

  /* ---------- space ---------- */
  --gutter: clamp(1rem, 3.6vi, 3.75rem);
  --shell: min(100%, 1440px);
  --radius: clamp(18px, 1.8vi, 26px);
  --section: clamp(4.5rem, 10vi, 9rem);
  --nav-h: 0px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-synthesis: none; }
html, body { margin: 0; background: var(--page); color: var(--ink); }
body { min-height: 100svh; display: flex; flex-direction: column; font: 400 var(--step-body)/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
main:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 400; top: 12px; left: 12px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--page); text-decoration: none; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.label { margin: 0; font: 500 var(--step-label)/1.3 var(--caps); letter-spacing: .24em; text-indent: .24em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- buttons ----------
   .btn--accent: the one solid action, maroon glass. .btn--clear: a quiet action, clear glass.
   Feedback on press, at once; hover deepens the tint only with a real pointer. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 1.5rem;
  border: 0; border-radius: 999px; background: none; color: inherit; font: 500 var(--step-body)/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .12s ease-out;
}
.btn:active { transform: scale(.97); }
.btn--accent { position: relative; isolation: isolate; background: var(--glass-accent); color: var(--on-accent); box-shadow: var(--glass-accent-light); }
.btn--accent::before, .btn--accent::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.btn--accent::before { background: var(--glass-accent-hover); opacity: 0; transition: opacity .15s ease; }
.btn--accent::after { background: var(--glass-gloss); }
.btn--clear { background: var(--glass-clear); color: var(--accent-ink); box-shadow: var(--glass-clear-light); }
@media (hover: hover) and (pointer: fine) {
  .btn--accent:hover::before { opacity: 1; }
  .btn--clear:hover { background: var(--glass-clear-hover); }
}

/* ---------- frosted glass panel: one recipe; nothing translucent goes inside it ---------- */
.glass-panel {
  position: relative; isolation: isolate;
  background: var(--glass-panel); -webkit-backdrop-filter: var(--glass-panel-blur); backdrop-filter: var(--glass-panel-blur);
  box-shadow: var(--glass-panel-light);
}
.glass-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--glass-sheen); pointer-events: none; }
.glass-panel .btn--clear { background: var(--surface); }

/* ---------- aurora: soft colour fields behind the page; sticky inside main, drifting with scroll only ---------- */
main { position: relative; isolation: isolate; flex: 1; }
.aurora {
  position: sticky; top: 0; z-index: 0; height: 100lvh; margin-bottom: -100lvh; overflow: hidden; pointer-events: none;
}
.aurora i { position: absolute; display: block; border-radius: 50%; }
.js .aurora i { will-change: transform; }
.aurora i:nth-child(1) { width: 78svmax; height: 78svmax; left: -22svmax; top: 18%; background: radial-gradient(closest-side, var(--aurora-2), transparent); }
.aurora i:nth-child(2) { width: 64svmax; height: 64svmax; right: -18svmax; top: -8%; background: radial-gradient(closest-side, var(--aurora-1), transparent); }
.aurora i:nth-child(3) { width: 70svmax; height: 70svmax; left: 22%; bottom: -34svmax; background: radial-gradient(closest-side, var(--aurora-3), transparent); }
.aurora i:nth-child(4) { width: 56svmax; height: 56svmax; right: 4%; top: 36%; background: radial-gradient(closest-side, var(--aurora-4), transparent); }
.aurora i:nth-child(5) { width: 46svmax; height: 46svmax; left: 30%; top: 2%; background: radial-gradient(closest-side, var(--aurora-5), transparent); }

/* ---------- screen one's backdrop: a misty forest through a fogged window, with morning dew (Rohan's reference)
   Painted once by scripts/dew_backdrop.py into a still image (no stock, no AI), so it costs nothing to show or scroll.
   A breath of denser mist sits behind the words; measured on the real pixels, the headline is 8.6:1, the sentence
   5.1:1 (in full ink), the label 4.6:1 and the Scroll cue 6.8:1. The foot fades into the page colour. */
.intro { background: var(--page) url("../assets/dew-1200.webp") center bottom / cover no-repeat; }
@media (min-width: 48rem), (min-resolution: 2dppx) and (min-width: 30rem) { .intro { background-image: url("../assets/dew-2400.webp"); } }

/* ---------- intro: screen one. The logo slot is held empty until the brand is chosen ---------- */
.intro {
  position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
  padding: calc(env(safe-area-inset-top) + clamp(1.5rem, 5svh, 3.5rem)) max(var(--gutter), env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + clamp(1rem, 3svh, 2rem)) max(var(--gutter), env(safe-area-inset-left));
}
.intro__logo { align-self: end; height: clamp(40px, 7svh, 72px); margin-bottom: clamp(1.5rem, 5svh, 3rem); }
.intro__inner { display: grid; justify-items: center; gap: clamp(.9rem, 2.4svh, 1.5rem); text-align: center; }
.intro__title { margin: 0; max-width: 18ch; font: 500 var(--step-hero)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.intro__lead { margin: 0; max-width: 38ch; font: 400 clamp(1.1875rem, 1.02rem + .7vi, 1.625rem)/1.5 var(--sans); color: var(--ink); text-wrap: balance; }
.intro__cue {
  align-self: end; display: inline-grid; justify-items: center; gap: .15rem; min-width: 44px; min-height: 44px; padding: .5rem 1rem;
  color: var(--ink); text-decoration: none; font: 500 var(--step-caption)/1 var(--caps); letter-spacing: .2em; text-indent: .2em; text-transform: uppercase;
  border-radius: 999px; -webkit-tap-highlight-color: transparent;
}
.intro__cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { .intro__cue:hover { color: var(--ink); } }

/* ---------- contact: one glass card, a short form that opens the visitor's email app ---------- */
.contact { position: relative; z-index: 1; display: grid; justify-items: center; padding: clamp(3rem, 8svh, 6rem) max(var(--gutter), env(safe-area-inset-right)) 1rem max(var(--gutter), env(safe-area-inset-left)); }
.contact__card { position: relative; isolation: isolate; width: min(100%, 36rem); display: grid; gap: .9rem; padding: clamp(1.25rem, 4vi, 2.25rem); border-radius: 28px; }
.contact__title { margin: 0; font: 500 clamp(1.75rem, 1.4rem + 1.6vi, 2.5rem)/1.15 var(--display); }
.contact__note, .contact__how, .contact__status, .contact__address { margin: 0; font: 400 var(--step-caption)/1.5 var(--sans); color: var(--ink-2); }
.contact__note { font-weight: 500; }
.contact__status:empty { display: none; }
.contact__form { display: grid; gap: .85rem; }
.field { display: grid; gap: .35rem; }
.field__label { font: 500 var(--step-label)/1.3 var(--sans); color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field__input {
  width: 100%; min-height: 44px; padding: .65rem .85rem; border: 1px solid var(--rule); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: 400 var(--step-body)/1.4 var(--sans);
}
.field__input--area { min-height: 8.5rem; resize: vertical; }
.field__input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.contact__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.contact__actions .btn { min-height: 44px; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 1; display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 2.5rem max(var(--gutter), env(safe-area-inset-right)) calc(1.25rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left)); }
.footer__fine { margin: 0; max-width: 62ch; font: 400 var(--step-caption)/1.5 var(--sans); color: var(--ink-2); }

/* ---------- lite mode (weak or software GPU): no blur, solid-enough fills ---------- */
html[data-quality="lite"] .glass-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lite-light); }

/* ---------- user settings ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
  .skip { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .glass-panel::after { display: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .btn--accent { background: var(--accent); }
  .btn--accent::before, .btn--accent::after { display: none; }
  .btn--clear { background: var(--surface); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #26392f; }
  .glass-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
}
@media (forced-colors: active) {
  .btn, .stage { outline: 1px solid ButtonText; outline-offset: -1px; }
}
