/* ==========================================================================
   ClaraMente — brand.css
   The single styling surface for the website. Nothing here loads from a
   network: type is self-hosted, every asset path is relative.

   Contains: tokens, type scale, header, nav, language switcher, footer,
   hero, sections, buttons, cards, service rows, steps, price table,
   callouts, FAQ, badges, mascot placement, skip link, forms, placeholders,
   focus states, reduced motion, print.

   Palette is locked (BRAND-FACTS.md). Clay is an accent only: it is used for
   rules, markers and focus rings — never for text and never as a fill.
   ========================================================================== */

@import url("assets/fonts.css");

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

:root {
  /* Colour — locked */
  --teal: #0B4F4A;
  --teal-lt: #12706A;
  --clay: #C4623F;      /* accent only: rules, markers. Not text, not fill. */
  --clay-dk: #A34E2F;   /* text-safe clay accent (5.69:1 on white) */
  --sand: #EFE7DA;
  --ink: #1B1D1F;
  --grey: #5C5F63;
  --line: #D8D2C6;
  --white: #fff;

  /* Type families */
  --font-head: 'Manrope', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* Type scale — fluid, base 17px mobile / 18.5px desktop */
  --fs-base: 1.0625rem;            /* 17px */
  --fs-sm: 0.9375rem;              /* 15px */
  --fs-xs: 0.875rem;               /* 14px */
  --fs-2xs: 0.8125rem;             /* 13px */
  --fs-h3: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(1.5rem, 1.3rem + 1.05vw, 2.125rem);
  --fs-h1: clamp(2.05rem, 1.45rem + 2.6vw, 3.5rem);
  --fs-lede: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);

  /* Spacing scale: 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.375rem, 4vw, 2rem);   /* 22px mobile */
  --measure: 68ch;                        /* 55–75 characters per line */
  --header-h: 4.5rem;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(27, 29, 31, 0.06);
  --shadow-md: 0 6px 18px rgba(27, 29, 31, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 160ms;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--white);
}

[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

main { display: block; }

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

figure { margin: 0; }

/* Focus: visible on light and dark surfaces, never removed. */
:focus-visible {
  outline: 3px solid var(--clay-dk);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On teal surfaces the clay ring loses contrast; switch to sand. */
.hero :focus-visible,
.site-footer :focus-visible,
.brand--inv:focus-visible {
  outline-color: var(--sand);
}

::selection {
  background: var(--sand);
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, .h1,
h2, .h2,
h3, .h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-head);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1, .h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--teal);
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

.lede {
  margin: 0 0 1.25em;
  font-size: var(--fs-lede);
  line-height: 1.5;
  font-weight: 400;
  color: var(--grey);
  max-width: 42ch;
  text-wrap: pretty;
}

.eyebrow {
  margin: 0 0 0.85em;
  font-family: var(--font-head);
  font-size: 0.75rem;          /* 12px */
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-dk);       /* 4.64:1 on sand, 5.69:1 on white */
}

/* Rich text coming out of the content JSON. */
.prose {
  max-width: var(--measure);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.15em;
}

.prose li::marker {
  color: var(--clay);
  font-weight: 600;
}

.prose strong { font-weight: 600; }

.prose a {
  color: var(--teal);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.06em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 1.15em;
  border-left: 3px solid var(--clay);
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--teal);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--sand);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
}

/* Generic links outside .prose (body copy, footer handled separately). */
a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.06em;
  transition: color var(--dur) var(--ease);
}

a:hover { color: var(--teal-lt); }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  /* 52px mobile → 112px desktop; measured 52 / 61 / 82 / 112 at 360/768/1024/1440 */
  padding-block: clamp(3.25rem, 8vw, 7rem);
}

.section--sand { background: var(--sand); }

.section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }

.section > .wrap > .h2 + .lede { margin-top: 0.5em; }

/* Optional interior grid for two-column section bodies. */
.section__cols {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
}

@media (min-width: 900px) {
  .section__cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .section__cols--wide { grid-template-columns: 1.1fr 0.9fr; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--teal);
  color: var(--white);
  padding-block: clamp(2.75rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
}

.hero .h1,
.hero h1 { color: var(--white); }

.hero .h1 { margin-bottom: 0.5em; }

.hero .eyebrow { color: var(--sand); }

.hero .lede {
  color: rgba(255, 255, 255, 0.88);   /* ≈6.5:1 on teal */
  max-width: 44ch;
  margin-bottom: 1.75em;
}

.hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__note {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
}

/* --------------------------------------------------------------------------
   6. Header, navigation, language switcher
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }
}

.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-block: 0.55rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
}

.brand img,
.brand svg {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand span { white-space: nowrap; }

.brand:hover { color: var(--teal); }

.brand--inv { color: var(--white); }
.brand--inv:hover { color: var(--sand); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.35rem;
  order: 3;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .nav {
    order: 0;
    width: auto;
    margin-left: auto;
    gap: 0.25rem 0.55rem;
  }
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-family: inherit;   /* the mobile menu toggle is a <button> */
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__link:hover {
  color: var(--teal);
  background: var(--sand);
}

.nav__link[aria-current="page"] {
  color: var(--teal);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--clay);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: auto;
}

@media (min-width: 900px) {
  .lang-switch { margin-left: 0.5rem; }
}

.lang-switch__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: var(--fs-xs);        /* 14px — grey on white 6.4:1 */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
}

.lang-switch__link:hover {
  color: var(--teal);
  background: var(--sand);
}

.lang-switch__link[aria-current="true"] {
  color: var(--teal);
  background: var(--sand);
  font-weight: 700;
  text-decoration: none;
}

.lang-switch__link + .lang-switch__link { border-left: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   7. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--teal);
  color: rgba(255, 255, 255, 0.86);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.site-footer .h3,
.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
}

.site-footer__col p { margin-bottom: 0.9em; }

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.site-footer a {
  color: var(--sand);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

.site-footer a:hover { color: var(--white); }

.site-footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.76);
}

.site-footer__legal p { margin: 0; }

.site-footer__legal strong { color: var(--white); font-weight: 600; }

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--teal-lt);
  border-color: var(--teal-lt);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.btn--ghost:hover {
  background: var(--sand);
  color: var(--teal);
}

/* Inverted buttons on teal surfaces. */
.hero .btn--primary,
.site-footer .btn--primary {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--teal);
}

.hero .btn--primary:hover,
.site-footer .btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
}

.hero .btn--ghost,
.site-footer .btn--ghost {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.hero .btn--ghost:hover,
.site-footer .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.card > :last-child { margin-bottom: 0; }

.card .h3 { margin-bottom: 0.45em; }

.card p {
  color: var(--grey);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.card a { font-weight: 500; }

/* --------------------------------------------------------------------------
   10. Service rows
   -------------------------------------------------------------------------- */

.service-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 1.25rem;
  row-gap: 0.15rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.service-row__name {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  min-width: 0;
  letter-spacing: -0.005em;
}

.service-row__fee {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--teal);
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.service-row__desc {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--grey);
}

/* Fee not set by the owner — "A consultar" / "On request" / "Sa consultation". */
.is-onrequest {
  color: var(--grey);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   11. Steps
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
}

.step {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.15rem, 2.5vw, 1.6rem);
  min-width: 0;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--teal);
}

.step .h3,
.step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.35em;
}

.step p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   12. Price table
   -------------------------------------------------------------------------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 1rem;
}

.price-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.75rem;
  font-size: var(--fs-xs);
  color: var(--grey);
}

.price-table th {
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 2px solid var(--teal);
  font-family: var(--font-head);
  font-size: var(--fs-2xs);       /* 13px, grey on white 6.4:1 */
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  vertical-align: bottom;
}

.price-table td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.price-table th:last-child,
.price-table td:last-child {
  width: min(38%, 9rem);
  text-align: right;
  white-space: nowrap;
}

.price-table__fee {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.price-table__fee.is-onrequest { white-space: normal; }

/* Group header row inside a long price table. */
.price-table__group th,
.price-table th.price-table__group {
  padding-top: 1.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--teal);
}

.price-table tbody:first-of-type .price-table__group th { padding-top: 0.75rem; }

/* --------------------------------------------------------------------------
   13. Callouts
   -------------------------------------------------------------------------- */

.callout {
  margin-block: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--sand);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
  max-width: var(--measure);
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

.callout p { margin-bottom: 0.7em; }

/* Warn: different fill, heavier border and a bold label so it still reads
   as different in greyscale. */
.callout--warn {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--clay-dk);
}

.section--sand .callout { background: var(--white); }
.section--sand .callout--warn { background: var(--white); }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq {
  margin: 0;
  border-top: 1px solid var(--line);
  max-width: var(--measure);
}

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

.faq__item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::marker { content: ""; }

.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
  transition: transform var(--dur) var(--ease);
}

.faq__item[open] summary::after {
  content: "\2013";   /* en dash */
}

.faq__item summary:hover { color: var(--teal); }

.faq__a {
  padding: 0 0 1.25rem;
  max-width: 62ch;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--ink);
}

.faq__a > :first-child { margin-top: 0; }
.faq__a > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Badges
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--sand);
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.75rem;          /* 12px, teal on sand 7.67:1 */
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section--sand .badge,
.hero .badge {
  background: var(--white);
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   16. Mascot
   -------------------------------------------------------------------------- */

.mascot {
  display: block;
  width: clamp(96px, 22vw, 200px);
  max-width: 100%;
  height: auto;
  min-width: 96px;            /* digital minimum */
  margin: 0;
}

.mascot--hero {
  width: clamp(96px, 26vw, 240px);
}

.mascot--sm { width: 96px; }

.mascot--md { width: clamp(96px, 18vw, 140px); }

.mascot figcaption {
  margin-top: 0.6rem;
  font-size: var(--fs-xs);
  color: var(--grey);
  text-align: center;
}

/* --------------------------------------------------------------------------
   17. Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  transform: translateY(-120%);
  padding: 0.75rem 1.25rem;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--white);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   18. Forms (contact page) — §4 requires a form, §5 names no form classes,
   so these are the only sanctioned additions.
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.15rem;
  max-width: 34rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.field__label {
  font-family: var(--font-head);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}

.field__hint {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--grey);
}

.input,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--grey);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;        /* 17px — under 16px iOS zooms the form */
  line-height: 1.4;
}

.textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder { color: var(--grey); opacity: 1; }

.input:hover,
.textarea:hover { border-color: var(--ink); }

.input:focus-visible,
.textarea:focus-visible { border-color: var(--teal); }

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--clay-dk); border-width: 2px; }

.form__consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.form__consent input {
  width: 1.5rem;          /* 24px — WCAG 2.5.8 minimum target */
  height: 1.5rem;
  margin: 0.1rem 0 0;
  accent-color: var(--teal);
}

.form__status {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink);
}

.form__status:empty { display: none; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   19. Placeholders (SPEC §8 launch blockers)
   -------------------------------------------------------------------------- */

[data-placeholder="true"] {
  text-decoration: underline dashed var(--clay-dk);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

/* Visible marker only outside production. Build sets data-env on <html>. */
html[data-env="dev"] [data-placeholder="true"]::after {
  content: " \00B7 placeholder";
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay-dk);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */

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

.stack > * + * { margin-top: var(--space-4); }

/* --------------------------------------------------------------------------
   21. Larger screens
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {
  :root { --fs-base: 1.15625rem; }   /* 18.5px */
}

/* --------------------------------------------------------------------------
   22. Reduced motion
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   23. Forced colours
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .card,
  .callout,
  .step,
  .faq__item,
  .service-row,
  .input,
  .textarea,
  .btn { border: 1px solid CanvasText; }

  .faq__item summary::after { color: CanvasText; }
}

/* --------------------------------------------------------------------------
   24. Print — must survive a photocopier
   -------------------------------------------------------------------------- */

@media print {
  :root { --fs-base: 11pt; }

  body { color: #000; background: #fff; }

  .site-header,
  .site-footer,
  .skip-link,
  .lang-switch,
  .nav,
  .btn,
  .hero__media { display: none !important; }

  .hero,
  .section--sand,
  .site-footer { background: #fff !important; color: #000 !important; }

  .h1, .h2, .h3, h1, h2, h3, .hero .h1, .hero .lede { color: #000 !important; }

  .card, .callout, .step { box-shadow: none; border: 1px solid #000; }

  a { color: #000; text-decoration: underline; }
  a[href^="/"]::after { content: " (" attr(href) ")"; font-size: 9pt; }

  .section { padding-block: 1.5rem; }
  .price-table { font-size: 9pt; }
}

/* ==========================================================================
   VISUAL LAYER v2 — depth, hierarchy, warmth
   Appended layer: overrides the flat v1 surface without touching markup.
   Rules: palette stays locked. Clay is never body text and never a fill.
   Gradients stay inside the teal family; the only warm glow is a tint of
   clay at ≤22% used as light, never as a surface colour.
   ========================================================================== */

/* --------------------------------------------------------------------------
   V2.0 — tokens
   -------------------------------------------------------------------------- */
:root {
  --teal-deep: #083B37;
  --teal-soft: rgba(11, 79, 74, 0.06);
  --teal-ring: rgba(11, 79, 74, 0.14);

  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(27, 29, 31, 0.05), 0 2px 6px rgba(27, 29, 31, 0.04);
  --shadow-md: 0 2px 4px rgba(27, 29, 31, 0.04), 0 12px 28px -12px rgba(11, 79, 74, 0.20);
  --shadow-lg: 0 4px 10px rgba(27, 29, 31, 0.05), 0 28px 56px -20px rgba(11, 79, 74, 0.30);
  --shadow-cta: 0 8px 20px -8px rgba(11, 79, 74, 0.45);

  --fs-h1: clamp(2.3rem, 1.5rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.65rem, 1.32rem + 1.4vw, 2.45rem);
  --fs-h3: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);

  --dur: 200ms;
}

/* Form controls are the one place a UA font leaks in. Kill it. */
button,
input,
select,
textarea,
optgroup,
code,
kbd,
samp,
pre {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

::selection { background: var(--teal); color: var(--white); }

/* --------------------------------------------------------------------------
   V2.1 — typography: tighter, larger, more confident
   -------------------------------------------------------------------------- */
.h1, h1 {
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}
.h2, h2 {
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.h3, h3 { letter-spacing: -0.012em; line-height: 1.25; }

.lede { color: var(--grey); text-wrap: pretty; }

/* Eyebrow becomes a labelled marker, not a whisper. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-dk);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
  flex: none;
}
.hero .eyebrow { color: var(--sand); }
.hero .eyebrow::before { background: var(--clay); }

/* --------------------------------------------------------------------------
   V2.2 — header: glass, not a flat bar
   -------------------------------------------------------------------------- */
.site-header {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(216, 210, 198, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 24px -18px rgba(11, 79, 74, 0.5);
}

.nav__link {
  position: relative;
  border-radius: 8px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link:hover { background: var(--teal-soft); }

.lang-switch {
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}
.lang-switch__link {
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.6rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch__link:hover { background: var(--teal-soft); }
.lang-switch__link[aria-current="true"],
.lang-switch__link[aria-current="page"] {
  background: var(--teal);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   V2.3 — hero: layered light instead of a flat rectangle
   -------------------------------------------------------------------------- */
.hero {
  min-height: min(640px, 82vh);
  display: flex;
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(18, 112, 106, 0.92) 0%, rgba(18, 112, 106, 0) 62%),
    radial-gradient(880px 520px at 6% 108%, rgba(196, 98, 63, 0.26) 0%, rgba(196, 98, 63, 0) 66%),
    linear-gradient(158deg, #0C5550 0%, #0B4F4A 46%, #073B37 100%);
  isolation: isolate;
}

/* fine dot texture — reads as print grain, adds depth without an image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 85%);
  mask-image: linear-gradient(160deg, #000 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 85%);
  pointer-events: none;
  z-index: -1;
}

.hero__inner { grid-template-columns: 1.08fr 0.92fr; }

.hero .h1 {
  max-width: 17ch;
  margin-bottom: 0.55em;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.90);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
}

.hero__actions { gap: 0.85rem; margin-top: 0.25rem; }

/* the mascot becomes a lit object, not a pasted sticker */
.hero__media { position: relative; }
.hero__media::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 231, 218, 0.30) 0%, rgba(239, 231, 218, 0) 68%);
  filter: blur(6px);
  z-index: 0;
}
.hero__media .mascot,
.hero__media img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 34px rgba(4, 30, 28, 0.45));
  max-height: 420px;
  width: auto;
}

/* --------------------------------------------------------------------------
   V2.4 — buttons: weight and press
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9688rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-cta);
}
.btn--primary:hover { background: var(--teal-lt); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(11, 79, 74, 0.5); }
.btn--primary:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* on the dark hero the primary flips to sand for maximum separation */
.hero .btn--primary {
  background: var(--sand);
  color: var(--teal-deep);
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55);
}
.hero .btn--primary:hover { background: #fff; color: var(--teal-deep); transform: translateY(-2px); }

.btn--ghost {
  border-color: var(--line);
  color: var(--teal);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--teal); background: var(--teal-soft); transform: translateY(-2px); }

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   V2.5 — sections: rhythm, not repetition
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.25rem, 6vw, 5.5rem); }

.section--sand {
  background:
    radial-gradient(900px 420px at 50% -20%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%),
    var(--sand);
  border-block: 1px solid rgba(216, 210, 198, 0.9);
}

.section > .wrap > .h2:first-child,
.section > .wrap > h2:first-child { margin-top: 0; }

.section .h2 + .lede { max-width: 62ch; margin-bottom: 2.25rem; }

/* --------------------------------------------------------------------------
   V2.6 — cards: elevation + lift
   -------------------------------------------------------------------------- */
.card-grid { gap: clamp(1rem, 1.8vw, 1.5rem); }

.card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FDFCFA 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2vw, 1.85rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-lt) 55%, var(--clay) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 79, 74, 0.22);
  }
  .card:hover::after { opacity: 1; }
}

.card .h3 a { color: inherit; text-decoration: none; }
.card .h3 a:hover { color: var(--teal); }

/* --------------------------------------------------------------------------
   V2.7 — badges, steps, price table, callouts, FAQ
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid var(--teal-ring);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.steps { position: relative; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
@media (hover: hover) {
  .step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
}

.price-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
}
.price-table th {
  background: linear-gradient(180deg, #0E5B55 0%, var(--teal) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
}
.price-table tbody tr:nth-child(even) { background: rgba(239, 231, 218, 0.35); }
.price-table tbody tr { transition: background-color var(--dur) var(--ease); }
.price-table tbody tr:hover { background: var(--teal-soft); }

.callout {
  border-left: 4px solid var(--clay);
  background: linear-gradient(90deg, rgba(196, 98, 63, 0.07) 0%, rgba(196, 98, 63, 0.015) 60%, transparent 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem;
}
.callout--warn {
  border-left-color: #B4472A;
  background: linear-gradient(90deg, rgba(180, 71, 42, 0.10) 0%, rgba(180, 71, 42, 0.02) 65%, transparent 100%);
}

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); padding-block: 0.35rem; }
.faq summary {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-block: 0.9rem;
  transition: color var(--dur) var(--ease);
}
.faq summary:hover { color: var(--teal); }

/* --------------------------------------------------------------------------
   V2.8 — footer: grounded, not an afterthought
   -------------------------------------------------------------------------- */
.site-footer {
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(18, 112, 106, 0.55) 0%, rgba(18, 112, 106, 0) 70%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: rgba(255, 255, 255, 0.82);
  border-top: 3px solid var(--clay);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.site-footer a { color: var(--sand); text-decoration-color: rgba(239, 231, 218, 0.35); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--clay); }

/* --------------------------------------------------------------------------
   V2.9 — links, focus, motion
   -------------------------------------------------------------------------- */
.prose a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(11, 79, 74, 0.35);
  transition: text-decoration-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.prose a:hover { color: var(--teal-lt); text-decoration-color: var(--clay); }

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

@media (prefers-reduced-motion: no-preference) {
  .hero__media .mascot,
  .hero__media img {
    animation: cm-float 9s var(--ease) infinite;
  }
  .section > .wrap {
    animation: cm-rise 620ms var(--ease) both;
  }
  .section:nth-of-type(2) > .wrap { animation-delay: 60ms; }
  .section:nth-of-type(3) > .wrap { animation-delay: 110ms; }
  .section:nth-of-type(4) > .wrap { animation-delay: 160ms; }
}
@keyframes cm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes cm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   V2.10 — responsive corrections
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: clamp(2.75rem, 9vw, 4rem); }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero .h1 { max-width: none; }
  .hero__media { order: -1; }
  .hero__media .mascot,
  .hero__media img { max-height: 240px; }
  .hero__media::before { width: 60%; }
}

@media (max-width: 560px) {
  .hero .btn { width: 100%; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .card { border-radius: var(--radius); }
}

/* --------------------------------------------------------------------------
   V2.11 — utility corrections
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }
option, optgroup { font-family: inherit; }

/* Heroes without a mascot get a large soft brand watermark instead of an
   empty right half. Decorative only: hidden from AT, ignores pointer events. */
.hero:not(:has(.hero__media)) { position: relative; }
.hero:not(:has(.hero__media))::after {
  content: "";
  position: absolute;
  right: max(-80px, -6vw);
  bottom: -70px;
  width: min(460px, 40vw);
  aspect-ratio: 1 / 1.12;
  background: url("/assets/mascot-hero.svg") center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 900px) {
  .hero:not(:has(.hero__media))::after { width: 240px; right: -70px; bottom: -50px; opacity: 0.10; }
}

/* --------------------------------------------------------------------------
   V3 — vertical rhythm
   Sections were spaced by whatever each block's own margin happened to be:
   23px under a heading, 36px before a grid, 9px before a step list and 0px
   between two .prose blocks (they butted together). One flow value now drives
   every sibling gap; only a heading and the lede under it sit closer.

   Note: the doubled class names (.section.section / .wrap.wrap) are a
   specificity guard — they have to beat the V2 overrides above, which were
   written as .section .h2 + .lede.
   -------------------------------------------------------------------------- */
:root {
  --flow: clamp(1.25rem, 1.7vw, 1.75rem);   /* 20px mobile -> 28px desktop */
  --flow-tight: 0.75rem;                    /* heading -> its own lede */
}

.section.section > .wrap.wrap > * { margin-top: 0; margin-bottom: 0; }
.section.section > .wrap.wrap > * + * { margin-top: var(--flow); }

/* A heading and the sentence that explains it are one unit. */
.section.section > .wrap.wrap > .h1 + .lede,
.section.section > .wrap.wrap > .h2 + .lede,
.section.section > .wrap.wrap > h2 + .lede,
.section.section > .wrap.wrap > h2 + .prose,
.section.section > .wrap.wrap > .h2 + .prose { margin-top: var(--flow-tight); }

/* Eyebrow sits on the heading, not on the block above it. */
.section.section > .wrap.wrap > .eyebrow + .h1,
.section.section > .wrap.wrap > .eyebrow + .h2,
.section.section > .wrap.wrap > .eyebrow + h2 { margin-top: 0.4rem; }

/* Inside a prose block every child is spaced the same way, so a paragraph, a
   list and a subheading all breathe by the same amount. */
.prose.prose > * { margin-top: 0; margin-bottom: 0; }
.prose.prose > * + * { margin-top: 0.95em; }
/* A prose block that opens with a subheading must not push itself away from the
   block above it — that was the 62px phantom gap on the contact page. */
.prose.prose > :first-child { margin-top: 0; }
.prose.prose > :last-child { margin-bottom: 0; }
.prose.prose > h2,
.prose.prose > h3 { margin-top: 1.6em; margin-bottom: 0.45em; }
.prose.prose > ul,
.prose.prose > ol { padding-left: 1.35em; }
.prose.prose li + li { margin-top: 0.35em; }

/* Two adjacent prose blocks are a real gap, not a paragraph break. */
.prose.prose + .prose { margin-top: var(--flow); }

/* The mascot SVG animates itself; the wrapper float fought it and made the
   figure drift 10px on its own. */
.hero__media img[src$="-anim.svg"] { animation: none; }
