/* ==========================================================================
   Champagne Coastal
   One stylesheet. Tokens, then layout, then components.
   Nothing below the token block hardcodes a color.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  color-scheme: light;

  /* The four the client supplied. Sampled against the artwork: the logo
     wordmark measures #e4b4a2, the deck emerald #0c4236, the one-pager
     ground #f0f0e4 — so these are accurate to the brand as drawn. */
  --emerald:        #0d4537;
  --blush:          #e5b9a5;
  --cream:          #eeeee3;
  --champagne:      #e5d3a3;

  /* Derived. Blush and champagne are gorgeous on emerald and unusable as
     text on cream — 1.52:1 and 1.27:1. These are the darkened variants that
     carry text on a light ground. Measured on --cream:
       --blush-ink      4.84:1   passes AA for body text
       --champagne-ink  4.83:1   passes AA for body text
       --blush-deep     3.23:1   large display type only, never body */
  --emerald-deep:   #093026;
  --emerald-mid:    #1a5c4a;
  --blush-deep:     #b3745c;
  --blush-ink:      #7d4630;
  --champagne-ink:  #7d6427;

  --cream-soft:     #f6f5ee;
  --blush-soft:     #f8e7de;
  /* The deck's actual blush ground, sampled off its slides. The first pass
     used #f7e9e1, which sits 1.02:1 against cream — so what was meant to be a
     three-ground rhythm rendered as green / not-green. This is 1.25:1 and
     actually reads as a third colour. --blush-ink was darkened to 7d4630 to
     keep small caps above 4.5:1 on it (5.14:1). */
  --blush-wash:     #efcfc0;
  --ink:            #23231f;
  --ink-muted:      #5a5a50;
  --ink-muted-warm: #4d4a44;   /* the same weight of grey, on the blush ground */
  --rule:           color-mix(in srgb, var(--ink) 14%, transparent);
  /* --rule is decorative, at about 1.3:1. Anything that is the only visible
     edge of an active control uses this instead — measured 3.1:1 on cream. */
  --field-edge:     color-mix(in srgb, var(--ink) 45%, transparent);

  /* Per-section accent. Every component downstream reads these two, so
     recoloring a whole section is a one-word edit on the section tag. */
  --accent:         var(--champagne-ink);
  --accent-bright:  var(--champagne);

  /* Ground + text for the current section. */
  --ground:         var(--cream);
  --ground-soft:    var(--cream-soft);
  --text:           var(--ink);
  --text-muted:     var(--ink-muted);
  --hairline:       var(--rule);

  --font-display: "EB Garamond", "Cochin", Cochin, Garamond, "Times New Roman", serif;
  --font-ui: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid scale — no font-size media queries anywhere in this file.
     Checked at 1440px and 390px; the display step is deliberately capped
     below the top of the scale so the hero headline holds three lines in a
     half-width column instead of swamping the page. */
  /* The floor matters more than the ceiling: 390px and 320px both sit on it,
     and this step carries the add-on explanations, which are the only text
     saying what each paid upgrade actually is. */
  --step--2: clamp(.8rem, .78rem + .08vw, .86rem);
  --step--1: clamp(.82rem, .80rem + .10vw, .90rem);
  --step-0:  clamp(1rem, .96rem + .20vw, 1.12rem);
  --step-1:  clamp(1.16rem, 1.10rem + .30vw, 1.36rem);
  --step-2:  clamp(1.38rem, 1.27rem + .52vw, 1.72rem);
  --step-3:  clamp(1.66rem, 1.48rem + .84vw, 2.20rem);
  --step-4:  clamp(1.98rem, 1.70rem + 1.30vw, 2.82rem);
  --step-5:  clamp(2.36rem, 1.94rem + 1.94vw, 3.60rem);

  --measure: 62ch;
  --gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  --pad-x: clamp(1.25rem, .5rem + 3vw, 4rem);
  --section-y: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --radius: 3px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--emerald-deep) 5%, transparent),
              0 8px 28px -12px color-mix(in srgb, var(--emerald-deep) 18%, transparent);
}

/* --- 2. Reset ----------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Without this, tabbing backwards scrolls the focused control to top:0 —
     underneath the sticky header, where it vanishes. Also stops anchor jumps
     landing with the section heading behind the bar. */
  scroll-padding-top: 5.5rem;
}

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* belt and braces; nothing should overflow */
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.012em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; list-style: none; }
/* dd carries a 40px inline-start margin from the UA sheet, which is why every
   stat label hung to the right of its own number. */
dl, dd { margin: 0; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  z-index: 100; padding: .7rem 1.2rem;
  background: var(--emerald); color: var(--cream);
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --- 3. Accent themes --------------------------------------------------- */

[data-accent="champagne"] { --accent: var(--champagne-ink); --accent-bright: var(--champagne); }
[data-accent="blush"]     { --accent: var(--blush-ink);     --accent-bright: var(--blush); }

/* Grounds. Each sets its own text colors so contrast can never drift. */
[data-ground="cream"] { --ground: var(--cream); --ground-soft: var(--cream-soft);
  --text: var(--ink); --text-muted: var(--ink-muted); --hairline: var(--rule); }

[data-ground="blush"] { --ground: var(--blush-wash); --ground-soft: var(--blush-soft);
  --text: var(--ink); --text-muted: var(--ink-muted-warm); --hairline: color-mix(in srgb, var(--blush-ink) 26%, transparent); }

[data-ground="emerald"] {
  --ground: var(--emerald); --ground-soft: var(--emerald-mid);
  --text: var(--cream); --text-muted: color-mix(in srgb, var(--cream) 78%, transparent);
  --hairline: color-mix(in srgb, var(--cream) 22%, transparent);
  --accent: var(--champagne); --accent-bright: var(--champagne);
}

[data-ground] { background: var(--ground); color: var(--text); }

/* --- 4. Layout ---------------------------------------------------------- */

.section { padding-block: var(--section-y); position: relative; }

.container {
  width: min(100% - var(--pad-x) * 2, 1180px);
  margin-inline: auto;
}
.container--narrow { width: min(100% - var(--pad-x) * 2, 780px); }
.container--wide   { width: min(100% - var(--pad-x) * 2, 1340px); }

.stack > * + * { margin-top: var(--flow, 1.1rem); }

.split {
  display: grid;
  gap: var(--gap);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 62rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left  { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 40rem)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem)  { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
                             .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* --- 5. Type components ------------------------------------------------- */

.eyebrow {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2rem; height: 1px; flex: none;
  background: currentColor; opacity: .55;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 2rem; height: 1px; flex: none;
  background: currentColor; opacity: .55;
}

.display   { font-size: var(--step-5); }
.title     { font-size: var(--step-4); }
.subtitle  { font-size: var(--step-3); }
.heading   { font-size: var(--step-2); }

.lede {
  font-size: var(--step-1);
  line-height: 1.58;
  color: var(--text-muted);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }

.muted { color: var(--text-muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lede { margin-inline: auto; }

.fine {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--text-muted);
}

.pullquote {
  margin: 0;
  font-size: var(--step-3);
  font-style: italic;
  line-height: 1.34;
  color: var(--accent-bright);
  border-left: 2px solid currentColor;
  padding-left: clamp(1rem, 2vw, 2rem);
  max-width: 34ch;
}
.pullquote p { margin: 0; }

/* --- 6. Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85em 1.7em;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: .13em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--emerald); color: var(--cream); border-color: var(--emerald);
}
.btn--primary:hover { background: var(--emerald-deep); border-color: var(--emerald-deep); }

.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn--ghost:hover { background: var(--text); color: var(--ground); }

[data-ground="emerald"] .btn--primary {
  background: var(--champagne); color: var(--emerald-deep); border-color: var(--champagne);
}
[data-ground="emerald"] .btn--primary:hover { background: var(--cream); border-color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row--center { justify-content: center; }

/* --- 7. Header ---------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* The horizontal lockup, not the stacked badge: at header size the stacked
   wordmark is unreadable, COASTAL especially. See tools/make-logo.py. */
.brand img { height: clamp(38px, 3.8vw, 52px); width: auto; }

.nav { display: none; }
@media (min-width: 56rem) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
}
.nav a:not(.btn) {
  font-family: var(--font-ui);
  font-size: var(--step--1);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
}
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--champagne-ink); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 1px solid var(--rule); border-radius: 999px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 56rem) { .nav-toggle { display: none; } }

.nav-panel { display: none; border-top: 1px solid var(--rule); background: var(--cream); }
.nav-panel[data-open="true"] { display: block; }
@media (min-width: 56rem) { .nav-panel { display: none !important; } }
.nav-panel ul { padding: .5rem 0 1.2rem; }
.nav-panel a {
  display: block; padding: .75rem var(--pad-x);
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}

/* When JS is off the toggle cannot work, so show the links inline instead —
   but not inside a sticky header, where six stacked links pin 358px to the top
   of a 844px phone screen for the whole page. */
.no-js .nav-toggle { display: none; }
.no-js .nav-panel { display: block; }
.no-js .site-header { position: static; }

/* Without JS the summary cannot update, so it must not show a stale one. The
   options and their prices all still render and read correctly. */
.no-js .summary-out,
.no-js .summary-out + .fine { display: none; }
.no-js .selections__nojs { display: block; }
.selections__nojs { display: none; font-family: var(--font-ui); font-size: var(--step--1); }

/* --- 8. Hero ------------------------------------------------------------ */

.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 6rem) var(--section-y); }
.hero__art { position: relative; }
/* Two pieces, overlapped and tilted, the way the deck presents its work. */
.hero__art--pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; align-items: center; }
.hero__art--pair img { width: 100%; max-width: 260px; }
.hero__art--pair img:first-child { transform: rotate(-4deg); z-index: 1; justify-self: end; }
.hero__art--pair img:last-child  { transform: rotate(3deg) translateY(14px); margin-left: -18%; }

.hero__art img { width: min(100%, 460px); margin-inline: auto; filter: drop-shadow(0 24px 48px color-mix(in srgb, var(--emerald-deep) 16%, transparent)); }

/* auto-fit rather than a fixed 3, because a label like "Logistics for you"
   cannot wrap inside a 78px column and pushes the page sideways at 320px.
   Below roughly 400px this becomes two columns, then one. */
.stats {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
  margin-top: 2.4rem; padding-top: 2rem;
  border-top: 1px solid var(--hairline);
}
.stats__value {
  display: block;
  font-size: var(--step-2);
  color: var(--accent);
  line-height: 1.1;
}
.stats__label {
  display: block; margin: .3rem 0 0;
  font-family: var(--font-ui); font-size: var(--step--2);
  letter-spacing: .11em; text-transform: uppercase; color: var(--text-muted);
  overflow-wrap: break-word;
}

/* --- 9. Texture --------------------------------------------------------- */

.textured { position: relative; isolation: isolate; }
.textured::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/texture-contour.svg") center / cover no-repeat;
  opacity: .9; pointer-events: none;
}

/* --- 10. Cards and steps ------------------------------------------------ */

.card {
  background: var(--ground-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  height: 100%;
}
.card h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.card p { color: var(--text-muted); font-size: var(--step--1); font-family: var(--font-ui); line-height: 1.66; }

/* Numbered steps. The number is positioned, not a grid or flex child —
   a grid <li> splits inline content into separate items and the trailing
   text drops into the marker column. */
.steps { counter-reset: step; }

/* A 4-up process grid leaves about 30 characters per line once the number
   gutter is taken out, which rags badly. Two-by-two gives the copy a proper
   measure and evens the rows. */
@media (min-width: 62rem) { .steps.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step {
  position: relative;
  padding-left: clamp(3.2rem, 2.4rem + 2vw, 4.4rem);
  padding-block: .2rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.1em;
  font-size: var(--step-3);
  line-height: 1;
  /* --accent-bright is champagne, which is 1.27:1 on cream — the numbers were
     effectively invisible on both light sections. The bright variant is only
     right where the ground is dark. */
  color: var(--accent);
}
.step h3 { font-size: var(--step-1); margin-bottom: .45rem; }
.step p { color: var(--text-muted); font-size: var(--step--1); font-family: var(--font-ui); line-height: 1.66; }
/* The icon sits with the heading, not stranded in the number gutter. */
.step__icon {
  width: 32px; height: 32px; margin-bottom: .8rem;
}

/* Repeated inline three times on the partnership page. */
.step__kicker {
  color: var(--accent); letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .5rem;
}
/* A framed content image, matching the gallery's treatment. */
.framed { border: 1px solid var(--hairline); border-radius: 2px; }
.split--top { align-items: start; }

/* --- 11. Tiles (occasions, partner audiences) --------------------------- */

.tile {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  background: var(--ground-soft);
  background: color-mix(in srgb, var(--ground-soft) 55%, transparent);
  height: 100%;
}
.tile__icon { width: 40px; height: 40px; margin-bottom: .9rem; }
.tile h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.tile p { color: var(--text-muted); font-size: var(--step--1); font-family: var(--font-ui); line-height: 1.66; }

/* --- 12. Lists ---------------------------------------------------------- */

.ticks li {
  position: relative;
  padding-left: 1.9rem;
  font-family: var(--font-ui);
  font-size: var(--step--1);
  line-height: 1.62;
}
.ticks li + li { margin-top: .6rem; }
.ticks li::before {
  position: absolute; left: 0; top: .06em;
  width: 1.15rem; text-align: center;
  color: var(--accent);
  font-size: 1em;
}
.ticks li::before { content: "\2713"; }

.rule-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .8rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-ui);
  font-size: var(--step--1);
}
.rule-list li:first-child { border-top: 1px solid var(--hairline); }
.rule-list b { font-weight: 400; color: var(--accent); white-space: nowrap; }

/* --- 13. Gallery -------------------------------------------------------- */

.gallery {
  display: grid;
  gap: clamp(.75rem, .4rem + 1vw, 1.4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Three across, not five: nine items divide by three exactly, and at three
   the images render slightly above their 413px native width instead of at
   61% of it. The partners page overrides this back to five, where the strip
   really is five items. */
@media (min-width: 72rem) { .gallery--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .gallery--strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Five into two columns orphans the fifth; show a clean 2x2 instead. */
@media (max-width: 47.99rem) { .gallery--strip figure:nth-child(5) { display: none; } }

.gallery figure { margin: 0; }
.gallery img {
  width: 100%; aspect-ratio: 381 / 526; object-fit: cover;
  background: var(--ground-soft);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}

/* --- 14. Big numbers ---------------------------------------------------- */

.numbers { display: grid; gap: var(--gap); grid-template-columns: 1fr; text-align: center; }
@media (min-width: 48rem) { .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.numbers dd { overflow-wrap: break-word; }
.numbers > div { padding-block: 1rem; }
.numbers dt { font-size: var(--step-5); line-height: 1; color: var(--accent); }
.numbers dt.is-glyph { font-size: calc(var(--step-5) * 1.75); }
.numbers dd {
  margin: .7rem 0 0; font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .06em; color: var(--text-muted);
}

/* --- 15. The commission builder ----------------------------------------- */

/* One column. The options are a menu with prices beside them, and the summary
   of what has been picked sits directly underneath, in the same section. */
.builder { display: block; }

.foundation + .builder__group,
.builder__group + .builder__group { margin-top: 2.2rem; }
.builder__group h3 {
  font-size: var(--step-1); margin-bottom: .3rem;
}
.builder__group > p { margin-bottom: 1rem; }

.foundation {
  background: var(--ground-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2rem);
}
.foundation__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1rem; margin-bottom: 1.1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--hairline);
}
.foundation__price { font-size: var(--step-3); color: var(--accent); line-height: 1; }
.foundation__price small {
  display: block; font-family: var(--font-ui); font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
  margin-top: .35rem;
}

/* Option rows: a real checkbox/radio kept accessible, styled by its label. */
.option { position: relative; }
.option input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.option__body {
  display: grid; grid-template-columns: 1.15rem 1fr auto; gap: .1rem .85rem;
  align-items: start;
  padding: .85rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ground-soft);
  transition: border-color .16s ease, background-color .16s ease;
}
.option__body::before {
  content: ""; grid-row: 1 / span 2;
  width: 1.15rem; height: 1.15rem; margin-top: .18rem;
  border: 1px solid var(--accent); border-radius: 3px;
  background: transparent;
}
.option--radio .option__body::before { border-radius: 50%; }
.option input:checked + .option__body { border-color: var(--accent); background: color-mix(in srgb, var(--accent-bright) 16%, var(--ground-soft)); }
.option input:checked + .option__body::before { background: var(--accent); box-shadow: inset 0 0 0 3px var(--ground-soft); }
.option input:focus-visible + .option__body { outline: 2px solid var(--accent); outline-offset: 2px; }
.option input:hover + .option__body { border-color: var(--accent); }

.option__name { font-family: var(--font-ui); font-size: var(--step-0); line-height: 1.4; }
.option__price {
  grid-column: 3; grid-row: 1;
  font-family: var(--font-ui); font-size: var(--step--1); color: var(--accent); white-space: nowrap;
}
.option__note {
  grid-column: 2 / 4;
  font-family: var(--font-ui); font-size: var(--step--2); color: var(--text-muted);
  line-height: 1.55; margin-top: .2rem;
}
.option-list { display: grid; gap: .55rem; }
@media (max-width: 30rem) {
  .option__body { grid-template-columns: 1.15rem 1fr; }
  .option__price { grid-column: 2; grid-row: 2; }
  .option__note  { grid-column: 2; grid-row: 3; }
}
.option-list--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.option-list--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Swatches for the included background and frame choices. */
/* A wrapping flex row of seven differently sized pills breaks into ragged
   blocks — 2+2+2+1 at 390px, worse at 320. A grid keeps the rows even and
   lets every pill reach the 44px minimum target height. */
.swatch-row {
  display: grid; gap: .55rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.swatch__body {
  display: flex; align-items: center; gap: .55rem;
  width: 100%; min-height: 44px;
  padding: .5rem .85rem .5rem .6rem;
  border: 1px solid var(--field-edge); border-radius: 999px;
  font-family: var(--font-ui); font-size: var(--step--1);
  transition: border-color .16s ease, background-color .16s ease;
}
/* The seven backgrounds are materials, not colours — two embossed leather
   grains and two woods among them — so a flat fill misrepresents all of them,
   and the two pale ones (White Ostrich, Cream & Gold Gator) came out 1.18:1
   apart and 1.02:1 against the card they sit on. Each chip now carries a hint
   of its grain over its colour, and a firm edge so the pale ones still read.
   These are indicative only; real swatch photographs would be better. */
.swatch__chip {
  width: 1.35rem; height: 1.35rem; border-radius: 50%; flex: none;
  border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
  background-color: var(--chip, var(--cream-soft));
  background-repeat: repeat;
}
.swatch__chip[data-grain="ostrich"] {
  background-image: radial-gradient(circle at 50% 50%,
    color-mix(in srgb, var(--ink) 26%, transparent) 0 22%, transparent 24%);
  background-size: 5px 5px;
}
.swatch__chip[data-grain="gator"] {
  background-image:
    repeating-linear-gradient(45deg, color-mix(in srgb, var(--ink) 20%, transparent) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--ink) 20%, transparent) 0 1px, transparent 1px 5px);
}
.swatch__chip[data-grain="wood"] {
  background-image: repeating-linear-gradient(96deg,
    color-mix(in srgb, var(--ink) 22%, transparent) 0 1px, transparent 1px 4px);
}
.swatch input:checked + .swatch__body { border-color: var(--accent); background: color-mix(in srgb, var(--accent-bright) 18%, transparent); }
.swatch input:focus-visible + .swatch__body { outline: 2px solid var(--accent); outline-offset: 2px; }

/* What has been chosen, summarised under the choices. */
.selections {
  margin-top: 2.4rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ground-soft);
  padding: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  box-shadow: var(--shadow);
}
.selections h3 {
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .9rem;
}
.selections .fine { margin-top: .6rem; }

/* The summary itself: readonly, and there to be copied. */
.summary-out {
  width: 100%; resize: vertical;
  min-height: clamp(11rem, 8rem + 22vw, 14rem);
  field-sizing: content;              /* grows with the selection, where supported */
  padding: .8rem .9rem;
  font-family: var(--font-ui); font-size: var(--step--1); line-height: 1.6;
  background: var(--ground);
  border: 1px solid var(--field-edge); border-radius: var(--radius);
}

.contact-aside { position: sticky; top: 5.5rem; }
@media (max-width: 61.99rem) { .contact-aside { position: static; } }

/* --- 16. Form slots ----------------------------------------------------- */

/* The Brevo forms are pasted in as raw HTML, so they inherit these. */
.form-slot {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--ground-soft);
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
}
.form-slot h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.form-slot > p { margin-bottom: 1.4rem; }

/* Anything Brevo drops inside picks up the site's field styling. */
.form-slot :where(input[type="text"], input[type="email"], input[type="tel"],
                  input[type="date"], select, textarea) {
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-ui); font-size: var(--step-0);
  background: var(--ground);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.form-slot :where(input, select, textarea):focus-visible { border-color: var(--accent); }
.form-slot label {
  display: block; margin-bottom: .35rem;
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .04em; color: var(--text-muted);
}
.form-slot :where(button, input[type="submit"]) {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.7em; margin-top: .4rem;
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .13em; text-transform: uppercase;
  background: var(--emerald); color: var(--cream);
  border: 1px solid var(--emerald); border-radius: 999px; cursor: pointer;
}
.field + .field { margin-top: 1rem; }
.field-row > .field + .field { margin-top: 0; }   /* siblings in a grid, not a stack */
.field-row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Newsletter sits in a narrower band. */
.newsletter { display: grid; gap: var(--gap); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .newsletter { grid-template-columns: 1fr 1fr; } }

/* --- 17. Placeholders --------------------------------------------------- */

/* --- 18. Partner teaser band -------------------------------------------- */

.audience-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  margin-block: 1.6rem;
}
.audience-strip li {
  padding: .45em 1.1em;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .06em;
}

/* --- 19. Footer --------------------------------------------------------- */

.site-footer { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 2rem; }
.site-footer__top {
  display: grid; gap: var(--gap); grid-template-columns: 1fr;
  padding-bottom: 2rem; border-bottom: 1px solid var(--hairline);
}
@media (min-width: 56rem) { .site-footer__top { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer img { height: 52px; width: auto; }
.site-footer h2 {
  font-family: var(--font-ui); font-size: var(--step--1);
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .9rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links li + li, .site-footer address li + li { margin-top: 0; }
.footer-links a, .site-footer address a, .site-footer__bottom a,
address.fine a { display: inline-block; padding-block: .55rem; }
.footer-links li, .site-footer address li {
  font-family: var(--font-ui); font-size: var(--step--1);
}
.site-footer address { font-style: normal; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  padding-top: 1.6rem;
  font-family: var(--font-ui); font-size: var(--step--2);
  color: var(--text-muted);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }

/* --- 20. Motion --------------------------------------------------------- */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

@media (forced-colors: active) {
  /* The real inputs are opacity:0, so the UA cannot draw its own control, and
     box-shadow — which draws the tick — is forced off. Restore the signal. */
  .option input:checked + .option__body::before {
    background: Highlight; forced-color-adjust: none;
  }
  .option input:checked + .option__body { outline: 2px solid Highlight; outline-offset: 1px; }
  .swatch input:checked + .swatch__body { outline: 3px solid Highlight; outline-offset: 2px; }
  .swatch__chip { forced-color-adjust: none; }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- 21. Brevo -----------------------------------------------------------

   Brevo's "raw HTML" embed is not a bare form. It ships its own stylesheet
   (sibforms.com/forms/end-form/build/sib-styles.css), its own Roboto webfont,
   its own JS, and an inline style attribute on nearly every element. Inline
   styles beat everything except !important, so the overrides below use it
   deliberately and only where an inline style has to be beaten.

   Keep this block in sync with the pasted markup. Two things to know if the
   form is ever regenerated in Brevo:

     * every rule here hangs off .form-slot--brevo. Re-paste without that
       wrapper class and all of this silently stops applying.
     * the !important declarations that remain each beat a specific inline
       style, and say which in a trailing comment. Anything without one does
       not need it.
   -------------------------------------------------------------------------- */

/* The Brevo card is the card — do not wrap it in a second one. */
.form-slot--brevo {
  padding: 0;
  border: 0;
  background: none;
}

.form-slot--brevo .sib-form {
  padding: 0;
  background: transparent !important;   /* beats an inline background-color */
  text-align: left !important;          /* beats an inline text-align */
}

.form-slot--brevo #sib-form-container { max-width: none; }

.form-slot--brevo #sib-container {
  max-width: none !important;               /* inline max-width */
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  background-color: var(--emerald) !important;
  border-color: color-mix(in srgb, var(--champagne) 45%, transparent) !important;
  border-radius: var(--radius) !important;
  text-align: left !important;
}

/* Brevo asks for Garamond by name; the site self-hosts EB Garamond, which
   would not match that family name. Point everything at the site's stacks. */
.form-slot--brevo .sib-form-block,
.form-slot--brevo .sib-form-block p,
.form-slot--brevo .sib-form__declaration div {
  font-family: var(--font-display) !important;
  color: var(--cream) !important;
}

.form-slot--brevo .entry__label,
.form-slot--brevo .entry__specification,
.form-slot--brevo .sib-form__declaration p {
  font-family: var(--font-ui) !important;
}

.form-slot--brevo .entry__label {
  font-size: var(--step--1) !important;     /* inline font-size */
  font-weight: 400 !important;              /* inline font-weight */
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--champagne) !important;       /* inline color */
  margin-bottom: .45rem;
}

.form-slot--brevo .entry__specification,
.form-slot--brevo .sib-form__declaration p {
  font-size: var(--step--2) !important;
  color: color-mix(in srgb, var(--cream) 72%, transparent) !important;
  line-height: 1.55;
}

.form-slot--brevo .sib-form__declaration {
  padding: .9rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 18%, transparent);
}

/* #EMAIL carries no inline style at all, so none of this needs !important —
   this selector already out-specifies anything Brevo's stylesheet ships. */
.form-slot--brevo input.input {
  width: 100%;
  padding: .75rem .9rem;
  font-family: var(--font-ui);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: var(--radius);
}
.form-slot--brevo :where(input, button, a):focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 2px;
}

.form-slot--brevo .sib-form-block__button {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  width: auto;
  padding: .85em 1.9em;
  font-family: var(--font-ui) !important;   /* inline font-family */
  font-size: var(--step--1) !important;     /* inline font-size */
  font-weight: 400 !important;              /* inline font-weight */
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--emerald-deep) !important;
  background-color: var(--champagne) !important;
  border-radius: 999px !important;
  transition: background-color .18s ease, transform .18s ease;
}
.form-slot--brevo .sib-form-block__button:hover {
  background-color: var(--cream) !important;
  transform: translateY(-1px);
}

.form-slot--brevo .entry__choice span[style] { color: var(--cream) !important; }
.form-slot--brevo .entry__choice p { margin: 0; }

/* Error and success panels are hidden by Brevo until they fire; when they do,
   keep them inside the card's own width. */
.form-slot--brevo .sib-form-message-panel { max-width: none !important; }

/* The newsletter band puts the copy beside the form, so the form's own
   heading is redundant there. It is removed from the markup rather than
   hidden — see partials/brevo-newsletter.html. */

/* Brevo's own stylesheet sizes and hides these glyphs. It is fetched from
   sibforms.com, so if that request is slow, blocked by a network policy, or
   simply down, the raw SVGs render at their intrinsic 512px and shove the page
   sideways — measured at 320, 360 and 390px. Size them here so the layout
   never depends on a third-party stylesheet arriving. */
.form-slot--brevo svg { max-width: 100%; }
.form-slot--brevo .sib-hide-loader-icon { display: none; }
.form-slot--brevo .sib-notification__icon { width: 20px; height: 20px; flex: none; }
.form-slot--brevo .sib-form-block__button svg { width: 1em; height: 1em; flex: none; }

/* Same reasoning for the opt-in checkbox: Brevo replaces the native control
   with a styled span. Without their stylesheet the real checkbox is invisible
   and the span is a 0×0 nothing, which makes a required field unusable. */
.form-slot--brevo .entry__choice label {
  display: flex; align-items: flex-start; gap: .6rem; cursor: pointer;
}
.form-slot--brevo .input_replaced {
  position: static; width: 1.05rem; height: 1.05rem; margin: .25rem 0 0;
  opacity: 1; flex: none; accent-color: var(--champagne);
}

/* Once Brevo's stylesheet does arrive, two of its rules fight ours. It paints
   a replacement checkbox beside the native one we restored above, and it pads
   the two empty error labels — which our own .form-slot label rule has already
   forced to display:block — into pink bars across the card. */
.form-slot--brevo .checkbox { display: none !important; }
.form-slot--brevo .entry__error:empty { display: none !important; }

/* Brevo sets the placeholder from an ID selector in their head snippet, at
   3.17:1 on our cream field. */
.form-slot--brevo input.input::placeholder { color: var(--ink-muted) !important; }

/* Brevo's spam honeypot. Their stylesheet hides it; ours must too, or it
   renders as an inviting empty box under the button and a visitor who fills
   it in gets silently rejected as a bot. */
.form-slot--brevo .input--hidden { display: none !important; }

/* Not yet written, and not shipping as something that looks like a live link.
   Both are now mandatory: the Brevo embed loads a third-party stylesheet and
   script and collects email addresses. */
.pending {
  border-bottom: 1px dashed currentColor;
  opacity: .7;
}
.pending::after {
  content: " — to be written";
  font-style: italic;
}

/* --- 22. Arch-masked media ----------------------------------------------

   The one device the partnership deck uses on nearly every photograph: a
   full semicircle top with a fine gold rule and a mat around the image. It
   is the most recognisable thing in the client's own material and the site
   had nothing like it.
   -------------------------------------------------------------------------- */

.media--arch {
  --arch-mat: var(--ground-soft);
  position: relative;
  padding: 8px;
  background: var(--arch-mat);
  border: 1px solid var(--accent);
  border-radius: 999px 999px 4px 4px;
}
.media--arch img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;      /* faces sit high in a portrait crop */
  border-radius: 999px 999px 2px 2px;
  display: block;
}
.media--arch figcaption {
  margin-top: .9rem;
  font-family: var(--font-ui); font-size: var(--step--1);
  color: var(--text-muted); text-align: center;
}

/* The portrait slot, while it is still empty. Keeps the arch's exact shape
   so dropping the photograph in changes nothing but the contents. */
.media--arch.is-empty {
  display: grid; place-content: center; text-align: center;
  aspect-ratio: 3 / 4;
  border-style: dashed; border-width: 2px;
  border-color: var(--blush-deep);
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 10px,
    color-mix(in srgb, var(--blush) 26%, transparent) 10px,
    color-mix(in srgb, var(--blush) 26%, transparent) 20px);
  padding: clamp(1.2rem, 1rem + 1vw, 1.8rem);
}
[data-ground="emerald"] .media--arch.is-empty { border-color: var(--champagne); }
.form-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }