/* ==========================================================================
   A5 Brew — site styles
   --------------------------------------------------------------------------
   1. Brand tokens   (the ONLY place hex values live)
   2. Fonts
   3. Base
   4. Layout         container, sections
   5. Components     button, eyebrow, section heading, page hero,
                     placeholder, [CONFIRM] marker
   6. Header + mobile nav
   7. Footer
   8. Motion

   Tailwind utilities read these tokens through js/tailwind-theme.js, so
   classes like bg-brand-black or text-warm-600 work in the markup.

   Everything below the tokens sits in the "components" cascade layer.
   That keeps it above Tailwind's reset and below Tailwind utilities, so a
   utility class in the markup always wins over a rule in this file.
   ========================================================================== */

@layer theme, base, components, utilities;


/* 1. Brand tokens ==========================================================
   Contrast notes are measured WCAG ratios. AA needs 4.5:1 for body text,
   3:1 for large text (24px+, or 18.5px+ bold) and UI components.         */
:root {
  /* Brand — from the official logo pack. Do not add new brand colours. */
  --a5-gold: #a6763c;      /* 3.98:1 on white → headings 24px+, buttons, icons, rules. Never small text on light. 4.78:1 on black. */
  --a5-gold-ink: #7d5829;  /* 6.36:1 on white → small gold-toned text on light backgrounds */
  --a5-black: #101010;     /* primary text, dark sections, footer */
  --a5-white: #ffffff;

  /* Warm neutrals — derived, keep them warm so they don't fight the gold */
  --a5-warm-50: #faf8f5;   /* alternate section background */
  --a5-warm-100: #ece7e0;  /* borders, dividers, card fills; text on dark (15.5:1) */
  --a5-warm-500: #8b8178;  /* muted text on DARK only (4.99:1 on black). Fails on light (3.81:1) → decorative only there */
  --a5-warm-600: #6b625a;  /* muted text on light (5.97:1 white, 5.63:1 warm-50) */
  --a5-warm-800: #3a3733;  /* secondary text on light (11.8:1), raised surfaces on dark */

  /* Type */
  --a5-font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --a5-font-body: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape */
  --a5-radius: 0.75rem;     /* 12px — buttons, inputs */
  --a5-radius-lg: 1rem;     /* 16px — cards, image blocks */
  --a5-shadow-soft: 0 1px 2px color-mix(in srgb, var(--a5-black) 5%, transparent),
                    0 12px 32px -12px color-mix(in srgb, var(--a5-black) 18%, transparent);

  /* Layout */
  --a5-header-h: 4.5rem;    /* 72px; 80px from 1024px up */
}

@media (min-width: 1024px) {
  :root { --a5-header-h: 5rem; }
}


/* 2. Fonts =================================================================
   Self-hosted latin subsets from Google Fonts (SIL Open Font License,
   licence files in /fonts). Preloaded in each page's <head>.            */
@font-face {
  font-family: "Archivo Black";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-black-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


@layer components {

  /* 3. Base ================================================================ */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--a5-header-h) + 1rem);
  }

  body {
    margin: 0;
    background-color: var(--a5-white);
    color: var(--a5-black);
    font-family: var(--a5-font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  ::selection {
    background-color: var(--a5-gold);
    color: var(--a5-black);
  }

  /* One focus style everywhere. Gold clears 3:1 on white, warm-50 and black. */
  :focus-visible {
    outline: 3px solid var(--a5-gold);
    outline-offset: 3px;
  }

  /* <main tabindex="-1"> receives focus from the skip link; it is not a control. */
  main:focus {
    outline: none;
  }

  /* Archivo Black has a single weight. Pin it to 400 so browsers never fake a bold. */
  .display {
    font-family: var(--a5-font-display);
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: -0.01em;
  }

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

  .skip-link {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1.125rem;
    border-radius: var(--a5-radius);
    background-color: var(--a5-black);
    color: var(--a5-white);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
  }

  .skip-link:focus {
    transform: none;
  }

  /* Gold accent inside a heading. Large text only (see token notes). */
  .hl {
    color: var(--a5-gold);
  }


  /* 4. Layout ============================================================== */

  /* Container: 16px gutter on phones, 1280px max width. */
  .container-site {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
  }

  @media (min-width: 640px) {
    .container-site { padding-inline: 1.5rem; }
  }

  @media (min-width: 1024px) {
    .container-site { padding-inline: 2rem; }
  }

  .section {
    padding-block: 4rem;
  }

  @media (min-width: 768px) {
    .section { padding-block: 6rem; }
  }

  .section--alt {
    background-color: var(--a5-warm-50);
  }

  .section--dark {
    background-color: var(--a5-black);
    color: var(--a5-white);
  }

  /* Gold band: everything on it is brand-black (4.78:1), including focus rings. */
  .section--gold {
    background-color: var(--a5-gold);
    color: var(--a5-black);
  }

  .section--gold :focus-visible {
    outline-color: var(--a5-black);
  }

  .section--gold .btn--secondary {
    border-color: var(--a5-black);
  }

  .section--gold .btn--secondary:hover {
    background-color: color-mix(in srgb, var(--a5-black) 8%, transparent);
  }


  /* 5. Components ========================================================== */

  /* --- Button -------------------------------------------------------------
     .btn + one colour variant + optional size.
     Primary: gold with brand-black text (4.78:1).                          */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 1.375rem;
    border: 2px solid transparent;
    border-radius: var(--a5-radius);
    font-family: var(--a5-font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
  }

  .btn--primary {
    background-color: var(--a5-gold);
    color: var(--a5-black);
  }

  .btn--primary:hover {
    background-color: color-mix(in srgb, var(--a5-gold) 80%, var(--a5-white));
  }

  /* Outline button for light backgrounds */
  .btn--secondary {
    border-color: color-mix(in srgb, var(--a5-black) 22%, transparent);
    background-color: transparent;
    color: var(--a5-black);
  }

  .btn--secondary:hover {
    border-color: var(--a5-black);
    background-color: var(--a5-warm-50);
  }

  /* Outline button for dark backgrounds */
  .btn--on-dark {
    border-color: color-mix(in srgb, var(--a5-white) 35%, transparent);
    background-color: transparent;
    color: var(--a5-white);
  }

  .btn--on-dark:hover {
    border-color: var(--a5-white);
    background-color: color-mix(in srgb, var(--a5-white) 8%, transparent);
  }

  /* Solid dark button, for use on gold or light backgrounds */
  .btn--dark {
    background-color: var(--a5-black);
    color: var(--a5-white);
  }

  .btn--dark:hover {
    background-color: var(--a5-warm-800);
  }

  .btn--sm {
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }

  .btn--lg {
    min-height: 3.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1.0625rem;
  }

  .btn--block {
    width: 100%;
  }

  /* --- Eyebrow: small label above a heading ------------------------------ */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    margin: 0 0 1rem;
    color: var(--a5-gold-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background-color: var(--a5-gold);
  }

  /* On dark, gold itself passes for small text (4.78:1). */
  .page-hero .eyebrow,
  .section--dark .eyebrow,
  .section-heading--on-dark .eyebrow {
    color: var(--a5-gold);
  }

  /* --- Section heading: eyebrow + H2 + lede ------------------------------ */
  .section-heading {
    max-width: 44rem;
    margin-bottom: 2.5rem;
  }

  @media (min-width: 768px) {
    .section-heading { margin-bottom: 3.5rem; }
  }

  .section-heading--center {
    margin-inline: auto;
    text-align: center;
  }

  .section-heading__title {
    margin: 0;
    color: var(--a5-black);
    font-family: var(--a5-font-display);
    font-weight: 400;
    font-synthesis: none;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  .section-heading__lede {
    margin: 1rem 0 0;
    color: var(--a5-warm-800);
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .section-heading--on-dark .section-heading__title,
  .section--dark .section-heading__title {
    color: var(--a5-white);
  }

  .section-heading--on-dark .section-heading__lede,
  .section--dark .section-heading__lede {
    color: var(--a5-warm-100);
  }

  .section--gold .eyebrow,
  .section--gold .section-heading__lede {
    color: var(--a5-black);
  }

  .section--gold .eyebrow::before {
    background-color: var(--a5-black);
  }

  /* --- Feature card: icon + short heading + one or two lines --------------- */
  .feature-card {
    padding: 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
  }

  .feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--a5-radius);
    background-color: color-mix(in srgb, var(--a5-gold) 14%, transparent);
    color: var(--a5-gold-ink);
  }

  .feature-card__icon svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  .feature-card__title {
    margin: 1rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .feature-card__text {
    margin: 0.5rem 0 0;
    color: var(--a5-warm-800);
  }

  .section--dark .feature-card {
    border-color: color-mix(in srgb, var(--a5-white) 14%, transparent);
    background-color: color-mix(in srgb, var(--a5-white) 5%, transparent);
  }

  .section--dark .feature-card__icon {
    background-color: color-mix(in srgb, var(--a5-gold) 22%, transparent);
    color: var(--a5-gold);
  }

  .section--dark .feature-card__text {
    color: var(--a5-warm-100);
  }

  /* --- Machine section: photo card + name, key facts and spec table -------- */
  .machine {
    display: grid;
    gap: 2.5rem;
  }

  @media (min-width: 1024px) {
    .machine {
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      align-items: start;
      gap: 4rem;
    }

    .machine--flip {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .machine--flip .machine__figure {
      order: 2;
    }

    /* Photo stays in view while the spec table scrolls past */
    .machine__figure {
      position: sticky;
      top: calc(var(--a5-header-h) + 2rem);
    }
  }

  .machine__figure {
    display: grid;
    place-items: center;
    margin: 0;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-warm-50);
  }

  .section--alt .machine__figure {
    background-color: var(--a5-white);
  }

  .machine__figure img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 20rem;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px color-mix(in srgb, var(--a5-black) 20%, transparent));
  }

  @media (min-width: 768px) {
    .machine__figure img { height: 26rem; }
  }

  .machine__name {
    margin: 0;
  }

  .machine__model {
    margin: 0.5rem 0 0;
    color: var(--a5-warm-600);
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .machine__lede {
    max-width: 38rem;
    margin: 1rem 0 0;
    color: var(--a5-warm-800);
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .machine__facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 1.75rem 0 0;
  }

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

  .machine__facts > div {
    padding: 1rem 1.125rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius);
    background-color: var(--a5-warm-50);
  }

  .section--alt .machine__facts > div {
    background-color: var(--a5-white);
  }

  .machine__facts dt {
    color: var(--a5-warm-600);
    font-size: 0.8125rem;
    font-weight: 600;
  }

  .machine__facts dd {
    margin: 0.25rem 0 0;
    color: var(--a5-black);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .machine__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  /* --- Spec table ---------------------------------------------------------- */
  .spec-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
  }

  .spec-table caption {
    padding-bottom: 0.75rem;
    color: var(--a5-black);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: left;
  }

  .spec-table th,
  .spec-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--a5-warm-500) 35%, transparent);
    text-align: left;
    vertical-align: top;
  }

  .spec-table tr:first-child th,
  .spec-table tr:first-child td {
    border-top: 1px solid color-mix(in srgb, var(--a5-warm-500) 35%, transparent);
  }

  .spec-table th {
    width: 40%;
    padding-right: 1rem;
    color: var(--a5-warm-800);
    font-weight: 600;
  }

  .spec-note {
    margin: 0.75rem 0 0;
    color: var(--a5-warm-600);
    font-size: 0.8125rem;
  }

  .machine__placeholder {
    display: grid;
    place-items: center;
    width: 11rem;
    height: 20rem;
    padding: 1rem;
    border: 2px dashed var(--a5-warm-500);
    border-radius: var(--a5-radius);
    color: var(--a5-warm-800);
    font-size: 0.875rem;
    text-align: center;
  }

  @media (min-width: 768px) {
    .machine__placeholder { height: 26rem; }
  }

  /* --- Hero with a side card (the $0 receipt) ------------------------------ */
  .page-hero__grid {
    display: grid;
    gap: 2.5rem;
  }

  @media (min-width: 1024px) {
    .page-hero__grid {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
      align-items: center;
      gap: 4rem;
    }
  }

  .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--a5-warm-100);
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .trust-row svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--a5-gold);
  }

  /* --- $0 receipt card ----------------------------------------------------- */
  .receipt {
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
    color: var(--a5-black);
    box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--a5-black) 70%, transparent);
  }

  @media (min-width: 1024px) {
    .receipt { justify-self: end; }
  }

  .receipt__table {
    width: 100%;
    border-collapse: collapse;
  }

  .receipt__title {
    padding-bottom: 0.75rem;
    color: var(--a5-gold-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
  }

  .receipt__table th,
  .receipt__table td {
    padding: 0.625rem 0;
    border-bottom: 1px dashed color-mix(in srgb, var(--a5-warm-500) 50%, transparent);
    font-size: 1rem;
  }

  .receipt__table th {
    font-weight: 500;
    text-align: left;
  }

  .receipt__table td {
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }

  .receipt__table tfoot th,
  .receipt__table tfoot td {
    padding-top: 1rem;
    border-bottom: 0;
    vertical-align: bottom;
  }

  .receipt__table tfoot th {
    font-size: 1.125rem;
    font-weight: 700;
  }

  .receipt__table .receipt__total {
    font-family: var(--a5-font-display);
    font-size: clamp(2.75rem, 2rem + 2.5vw, 3.75rem);
    font-synthesis: none;
    font-weight: 400;
    line-height: 1;
  }

  /* --- Tick list ------------------------------------------------------------ */
  .ticks {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ticks li {
    display: flex;
    gap: 0.75rem;
  }

  .ticks svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    color: var(--a5-gold-ink);
  }

  .receipt__note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 2px solid var(--a5-gold);
    color: var(--a5-warm-800);
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  /* --- Payment options: two cards side by side ----------------------------- */
  .pay-options {
    display: grid;
    gap: 1.25rem;
  }

  @media (min-width: 768px) {
    .pay-options {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 1.5rem;
    }
  }

  .pay-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-top: 4px solid var(--a5-gold);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
    box-shadow: var(--a5-shadow-soft);
  }

  @media (min-width: 1024px) {
    .pay-card { padding: 2rem; }
  }

  .pay-card__tag {
    align-self: flex-start;
    margin: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: var(--a5-black);
    color: var(--a5-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .pay-card__title {
    margin: 1rem 0 0;
    font-family: var(--a5-font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-synthesis: none;
    font-weight: 400;
    line-height: 1.1;
  }

  .pay-card__sub {
    margin: 0.375rem 0 0;
    color: var(--a5-gold-ink);
    font-size: 1.0625rem;
    font-weight: 700;
  }

  .pay-card__text {
    margin: 1rem 0 0;
    color: var(--a5-warm-800);
  }

  .pay-card__facts {
    margin: 1.5rem 0 0;
  }

  .pay-card__facts > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--a5-warm-100);
  }

  .pay-card__facts dt {
    color: var(--a5-warm-600);
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .pay-card__facts dd {
    margin: 0;
    font-weight: 700;
  }

  .pay-card__note {
    margin: auto 0 0;
    padding-top: 1.25rem;
    color: var(--a5-warm-600);
    font-size: 0.875rem;
  }

  .pay-options__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-top: 2rem;
  }

  .pay-options__footer p {
    margin: 0;
    color: var(--a5-warm-800);
  }

  /* --- Coffee-run cost: example + calculator ------------------------------- */
  .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
  }

  .chips li {
    padding: 0.375rem 0.875rem;
    border: 1px solid color-mix(in srgb, var(--a5-warm-500) 40%, transparent);
    border-radius: 999px;
    background-color: var(--a5-white);
    font-size: 0.875rem;
    font-weight: 600;
  }

  .example-callout {
    margin: 2rem 0 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--a5-gold);
    border-radius: 0 var(--a5-radius) var(--a5-radius) 0;
    background-color: var(--a5-white);
    font-size: 1.0625rem;
  }

  .example-callout strong {
    color: var(--a5-gold-ink);
  }

  .calc {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
  }

  @media (min-width: 1024px) {
    .calc {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 2.5rem;
      padding: 2rem;
    }
  }

  .calc__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .calc__intro {
    margin: 0.375rem 0 1.25rem;
    color: var(--a5-warm-800);
  }

  .calc__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .field {
    display: grid;
    gap: 0.375rem;
    align-content: start;
  }

  .field label {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .field input {
    width: 100%;
    min-height: 3rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--a5-warm-500); /* 3.81:1 on white, clears 3:1 for inputs */
    border-radius: var(--a5-radius);
    background-color: var(--a5-white);
    color: var(--a5-black);
    font: inherit;
    font-size: 1.0625rem;
  }

  .field input:focus-visible {
    border-color: var(--a5-black);
    outline-offset: 1px;
  }

  .calc__results {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    margin: 0;
    padding: 1.5rem;
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-black);
    color: var(--a5-white);
  }

  .calc__results dt {
    color: var(--a5-warm-100);
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .calc__results dd {
    margin: 0.25rem 0 0;
    font-family: var(--a5-font-display);
    font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
    font-synthesis: none;
    line-height: 1.1;
  }

  .calc__results .calc__big dd {
    color: var(--a5-gold); /* 4.78:1 on black */
    font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  }

  .calc__note {
    margin: 0;
    color: var(--a5-warm-500); /* 4.99:1 on black */
    font-size: 0.875rem;
    line-height: 1.5;
  }

  /* --- Numbered steps ------------------------------------------------------ */
  .steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

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

  .step {
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
  }

  .step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background-color: var(--a5-gold);
    color: var(--a5-black);
    font-family: var(--a5-font-display);
    font-size: 1.25rem;
  }

  .step__title {
    margin: 1rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .step__text {
    margin: 0.5rem 0 0;
    color: var(--a5-warm-800);
  }

  .section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 2rem;
    color: var(--a5-gold-ink);
    font-weight: 700;
    text-decoration: none;
  }

  .section-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .section-link svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* --- Model cards (home + machines page) ---------------------------------- */
  .model-cards {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

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

  .model-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
  }

  .model-card__media {
    display: grid;
    place-items: center;
    height: 16rem;
    padding: 1.25rem;
    overflow: hidden;
    background-color: var(--a5-warm-50);
  }

  .model-card__media img {
    width: auto;
    max-width: 100%;
    height: 13.5rem;
    object-fit: contain;
    filter: drop-shadow(0 12px 16px color-mix(in srgb, var(--a5-black) 20%, transparent));
  }

  .model-card__placeholder {
    display: grid;
    place-items: center;
    width: 8rem;
    height: 13.5rem;
    padding: 0.5rem;
    border: 2px dashed var(--a5-warm-500);
    border-radius: var(--a5-radius);
    color: var(--a5-warm-800);
    font-size: 0.8125rem;
    text-align: center;
  }

  .model-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: var(--a5-black);
    color: var(--a5-white);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .model-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1.25rem 1.5rem 1.5rem;
  }

  .model-card__fit {
    margin: 0;
    color: var(--a5-gold-ink);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .model-card__name {
    margin: 0;
    font-family: var(--a5-font-display);
    font-size: 1.75rem;
    font-synthesis: none;
    font-weight: 400;
    line-height: 1.1;
  }

  .model-card__line {
    margin: 0;
    color: var(--a5-warm-800);
  }

  .model-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.75rem;
    color: var(--a5-gold-ink);
    font-weight: 700;
    text-decoration: none;
  }

  .model-card__link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .model-card__link svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  /* --- "Your brand on the machine" illustration ---------------------------- */
  .split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
  }

  @media (min-width: 1024px) {
    .split {
      grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
      gap: 4rem;
    }

    .split--even {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  .brand-mock {
    justify-self: center;
    width: min(100%, 16rem);
    margin: 0;
  }

  .brand-mock__device {
    padding: 0.875rem;
    border-radius: 1.5rem;
    background-color: var(--a5-warm-800);
    box-shadow: var(--a5-shadow-soft);
  }

  .brand-mock__screen {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    aspect-ratio: 3 / 4;
    padding: 1.25rem;
    border-radius: 0.875rem;
    background-color: var(--a5-black);
  }

  .brand-mock__logo {
    display: grid;
    place-items: center;
    height: 5rem;
    border: 2px dashed var(--a5-gold);
    border-radius: 0.5rem;
    color: var(--a5-gold); /* 4.78:1 on black */
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .brand-mock__line {
    height: 0.5rem;
    border-radius: 999px;
    background-color: var(--a5-warm-800);
  }

  .brand-mock__line--short {
    width: 60%;
  }

  .brand-mock__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: auto;
  }

  .brand-mock__tiles span {
    aspect-ratio: 1;
    border-radius: 0.375rem;
    background-color: var(--a5-warm-800);
  }

  .brand-mock figcaption {
    margin-top: 0.75rem;
    color: var(--a5-warm-600);
    font-size: 0.8125rem;
    text-align: center;
  }

  /* --- Drink tiles with illustrated cups ----------------------------------- */
  .drinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

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

  @media (min-width: 1024px) {
    .drinks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  .drink {
    padding: 1.5rem 1rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
    text-align: center;
  }

  .drink > svg {
    display: block;
    width: 4.5rem;
    height: 5rem;
    margin: 0 auto;
  }

  .drink__name {
    margin: 0.875rem 0 0;
    font-size: 1.0625rem;
    font-weight: 700;
  }

  .drink__text {
    margin: 0.25rem 0 0;
    color: var(--a5-warm-800);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .cup-glass { fill: none; stroke: var(--a5-warm-500); stroke-width: 1.5; }
  .cup-coffee { fill: var(--a5-black); }
  .cup-crema { fill: var(--a5-gold); }
  .cup-milk { fill: var(--a5-warm-100); }
  .cup-foam { fill: var(--a5-warm-50); }
  .cup-choc { fill: var(--a5-warm-800); }
  .cup-water { fill: color-mix(in srgb, var(--a5-warm-100) 55%, transparent); }
  .cup-tea { fill: color-mix(in srgb, var(--a5-gold) 70%, var(--a5-white)); }

  /* --- Topic blocks (How it works details) ---------------------------------- */
  .topics {
    display: grid;
    gap: 2rem 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

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

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

  .topic {
    padding-top: 1.25rem;
    border-top: 2px solid var(--a5-gold);
  }

  .topic__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .topic p {
    margin: 0.5rem 0 0;
    color: var(--a5-warm-800);
  }

  /* --- Info card with label/value rows -------------------------------------- */
  .info-card {
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
    box-shadow: var(--a5-shadow-soft);
  }

  .info-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
  }

  .facts {
    margin: 0;
  }

  .facts > div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--a5-warm-100);
  }

  .facts dt {
    color: var(--a5-warm-600);
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .facts dd {
    margin: 0;
    font-weight: 600;
  }

  /* --- Data table (scrolls sideways on small screens) ------------------------ */
  .table-scroll {
    overflow-x: auto;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
  }

  .data-table {
    width: 100%;
    min-width: 26rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
  }

  .data-table caption {
    padding: 1.25rem 1.25rem 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: left;
  }

  .data-table th,
  .data-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--a5-warm-100);
    text-align: left;
    vertical-align: top;
  }

  .data-table thead th {
    color: var(--a5-warm-600);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .data-table tbody th {
    font-weight: 700;
    white-space: nowrap;
  }

  /* --- Brand panel (About): logo on dark with the brand glow --------------- */
  .brand-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 1.75rem;
    padding: 3rem 1.5rem;
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-black);
    color: var(--a5-white);
    text-align: center;
  }

  .brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(
      ellipse 80% 70% at 50% 0%,
      color-mix(in srgb, var(--a5-gold) 30%, transparent),
      transparent 70%
    );
  }

  .brand-panel img {
    display: block;
    width: 10rem;
    height: auto;
  }

  .brand-panel__facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .brand-panel__facts li {
    padding: 0.375rem 0.875rem;
    border: 1px solid color-mix(in srgb, var(--a5-white) 25%, transparent);
    border-radius: 999px;
    color: var(--a5-warm-100);
    font-size: 0.875rem;
    font-weight: 600;
  }

  /* --- Photo placeholder at a fixed aspect ratio ---------------------------- */
  .photo-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 26rem;
    padding: 1.5rem;
    border: 2px dashed var(--a5-warm-500);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-warm-50);
    color: var(--a5-warm-800);
    text-align: center;
  }

  /* --- Form page layout: short column + wider form column ------------------- */
  .split--form {
    align-items: start;
  }

  @media (min-width: 1024px) {
    .split--form {
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
  }

  .form-card {
    padding: 1.75rem 1.25rem;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-white);
    box-shadow: var(--a5-shadow-soft);
  }

  @media (min-width: 640px) {
    .form-card { padding: 2.25rem 2rem; }
  }

  .form-card__title {
    margin: 0;
    font-family: var(--a5-font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-synthesis: none;
    font-weight: 400;
    line-height: 1.15;
  }

  .form-card__intro {
    margin: 0.5rem 0 1.75rem;
    color: var(--a5-warm-800);
  }

  /* --- Numbered mini steps (free trial page) ------------------------------- */
  .mini-steps {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mini-steps li {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .mini-steps h3 {
    margin: 0.375rem 0 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .mini-steps p {
    margin: 0.25rem 0 0;
    color: var(--a5-warm-800);
  }

  /* --- Lead forms ------------------------------------------------------------
     Errors use gold-ink text (6.36:1), a "!" badge and a thicker border, so
     they never rely on colour alone. No red: it isn't in the brand palette. */
  .lead-form {
    display: grid;
    gap: 1.25rem;
  }

  .lead-form__grid {
    display: grid;
    gap: 1.25rem;
  }

  @media (min-width: 640px) {
    .lead-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field--full { grid-column: 1 / -1; }
  }

  .lead-form__hp {
    display: none !important;
  }

  .lead-form__note {
    margin: 0;
    color: var(--a5-warm-600);
    font-size: 0.875rem;
  }

  .field__req {
    color: var(--a5-gold-ink);
  }

  .field select,
  .field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--a5-warm-500);
    border-radius: var(--a5-radius);
    background-color: var(--a5-white);
    color: var(--a5-black);
    font: inherit;
    font-size: 1.0625rem;
  }

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

  .field select {
    padding-right: 2.75rem;
    appearance: none;
    cursor: pointer;
  }

  .select-wrap {
    position: relative;
  }

  .select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.125rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid var(--a5-warm-800);
    border-bottom: 2px solid var(--a5-warm-800);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }

  .field select:focus-visible,
  .field textarea:focus-visible {
    border-color: var(--a5-black);
    outline-offset: 1px;
  }

  .field [aria-invalid="true"] {
    border-width: 2px;
    border-color: var(--a5-gold-ink);
  }

  .field__error {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    color: var(--a5-gold-ink);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
  }

  .field__error[hidden] {
    display: none;
  }

  .field__error::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 999px;
    background-color: var(--a5-gold-ink);
    color: var(--a5-white);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
  }

  .choice-group {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .choice-group legend {
    margin-bottom: 0.375rem;
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .choice-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
  }

  .choice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    cursor: pointer;
  }

  .choice input,
  .consent input {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--a5-gold-ink);
    cursor: pointer;
  }

  .consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    cursor: pointer;
  }

  .consent input {
    margin-top: 0.125rem;
  }

  .field .consent {
    font-weight: 400;
  }

  .consent a,
  .lead-form__success a,
  .prose a {
    color: var(--a5-gold-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .lead-form__status {
    margin: 0;
    font-weight: 600;
  }

  .lead-form__status:empty {
    display: none;
  }

  .lead-form__status[data-state="error"] {
    padding: 0.875rem 1rem;
    border-left: 4px solid var(--a5-gold-ink);
    border-radius: 0 var(--a5-radius) var(--a5-radius) 0;
    background-color: var(--a5-warm-50);
    color: var(--a5-black);
  }

  .lead-form .btn[disabled] {
    opacity: 0.75;
    cursor: progress;
  }

  .lead-form__success {
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--a5-warm-100);
    border-top: 4px solid var(--a5-gold);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-warm-50);
  }

  .lead-form__success:focus {
    outline: none;
  }

  .lead-form__success h3 {
    margin: 0;
    font-family: var(--a5-font-display);
    font-size: 1.625rem;
    font-synthesis: none;
    font-weight: 400;
    line-height: 1.15;
  }

  .lead-form__success p {
    margin: 0.75rem 0 0;
    color: var(--a5-warm-800);
  }

  /* --- Long-form text (privacy policy) ------------------------------------- */
  .prose {
    max-width: 46rem;
    color: var(--a5-warm-800);
    font-size: 1.0625rem;
    line-height: 1.7;
  }

  .prose h2 {
    margin: 2.5rem 0 0.75rem;
    color: var(--a5-black);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .prose h2:first-child {
    margin-top: 0;
  }

  .prose p,
  .prose ul {
    margin: 0 0 1rem;
  }

  .prose ul {
    padding-left: 1.25rem;
    list-style: disc;
  }

  .prose li + li {
    margin-top: 0.375rem;
  }

  /* --- FAQ (native <details>, works without JavaScript) -------------------- */
  .faq {
    display: grid;
    gap: 0.75rem;
    max-width: 52rem;
  }

  .faq__group {
    margin: 2.5rem 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
  }

  .faq__group:first-child {
    margin-top: 0;
  }

  .faq__item {
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius);
    background-color: var(--a5-white);
  }

  .faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    border-radius: var(--a5-radius);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
  }

  .faq__q::-webkit-details-marker {
    display: none;
  }

  .faq__q::after {
    content: "+";
    flex-shrink: 0;
    color: var(--a5-gold-ink);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .faq__item[open] > .faq__q::after {
    transform: rotate(45deg);
  }

  .faq__a {
    padding: 0 1.25rem 1.25rem;
    color: var(--a5-warm-800);
  }

  .faq__a p {
    margin: 0;
  }

  .faq__a p + p {
    margin-top: 0.75rem;
  }

  /* --- Page hero: dark band with one gold glow --------------------------- */
  .page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--a5-black);
    color: var(--a5-white);
  }

  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(
      ellipse 70% 80% at 90% -10%,
      color-mix(in srgb, var(--a5-gold) 30%, transparent),
      transparent 70%
    );
  }

  .page-hero__inner {
    padding-block: 3.5rem 4rem;
  }

  @media (min-width: 768px) {
    .page-hero__inner { padding-block: 5rem 5.5rem; }
  }

  .page-hero__title {
    max-width: 22ch;
    margin: 0;
    font-family: var(--a5-font-display);
    font-weight: 400;
    font-synthesis: none;
    font-size: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
    line-height: 1.06;
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  .page-hero__lede {
    max-width: 40rem;
    margin: 1.25rem 0 0;
    color: var(--a5-warm-100);
    font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    line-height: 1.6;
  }

  .page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .page-hero__note {
    margin: 1.5rem 0 0;
    color: var(--a5-warm-100);
    font-size: 0.9375rem;
  }

  .page-hero__note a {
    color: var(--a5-white);
    font-weight: 600;
    text-underline-offset: 3px;
  }

  /* Home: bigger and roomier */
  .page-hero--home::before {
    background-image: radial-gradient(
      ellipse 75% 90% at 88% -5%,
      color-mix(in srgb, var(--a5-gold) 34%, transparent),
      transparent 70%
    );
  }

  .page-hero--home .page-hero__inner {
    padding-block: 4.5rem 5rem;
  }

  @media (min-width: 768px) {
    .page-hero--home .page-hero__inner { padding-block: 7rem 7.5rem; }
  }

  .page-hero--home .page-hero__title {
    max-width: 18ch;
    font-size: clamp(2.375rem, 1.5rem + 4vw, 4.25rem);
    line-height: 1.04;
  }

  /* Light variant for legal pages */
  .page-hero--light {
    background-color: var(--a5-warm-50);
    color: var(--a5-black);
    border-bottom: 1px solid var(--a5-warm-100);
  }

  .page-hero--light::before {
    content: none;
  }

  .page-hero--light .page-hero__lede {
    color: var(--a5-warm-800);
  }

  .page-hero--light .eyebrow {
    color: var(--a5-gold-ink);
  }

  /* --- Placeholder block (until real content/photos exist) --------------- */
  .placeholder {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem;
    border: 2px dashed var(--a5-warm-500);
    border-radius: var(--a5-radius-lg);
    background-color: var(--a5-warm-50);
    color: var(--a5-warm-800);
    text-align: center;
  }

  .placeholder > * {
    margin: 0;
    max-width: 42rem;
  }

  .placeholder__tag {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background-color: var(--a5-warm-100);
    color: var(--a5-gold-ink);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .placeholder__title {
    color: var(--a5-black);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
  }

  /* --- [CONFIRM] marker ----------------------------------------------------
     Wrap anything the owner must supply:  <mark class="confirm">[CONFIRM: …]</mark>
     Search the project for "CONFIRM" before launch — none may remain.     */
  .confirm {
    padding: 0.05em 0.35em;
    border-radius: 0.3em;
    outline: 1px dashed currentColor;
    outline-offset: -1px;
    background-color: color-mix(in srgb, var(--a5-gold) 22%, transparent);
    color: inherit;
    font-weight: 600;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }


  /* 6. Header + mobile nav ================================================= */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--a5-white);
    border-bottom: 1px solid var(--a5-warm-100);
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--a5-header-h);
  }

  .site-header__logo {
    display: inline-flex;
    flex-shrink: 0;
    border-radius: 0.5rem;
  }

  .site-header__logo img {
    display: block;
    width: 52px;
    height: auto;
  }

  @media (min-width: 1024px) {
    .site-header__logo img { width: 64px; }
  }

  .site-nav {
    display: none;
    margin-inline-start: auto;
  }

  @media (min-width: 1024px) {
    .site-nav { display: block; }
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: 0.75rem;
    border-radius: 0.5rem;
    color: var(--a5-black);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
  }

  .site-nav a:hover {
    color: var(--a5-gold-ink);
  }

  .site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    bottom: 0.375rem;
    left: 0.75rem;
    height: 2px;
    border-radius: 2px;
    background-color: var(--a5-gold);
  }

  .site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-inline-start: auto;
  }

  @media (min-width: 1024px) {
    .site-header__actions {
      gap: 1rem;
      margin-inline-start: 1rem;
    }
  }

  .site-header__phone {
    display: none;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    color: var(--a5-black);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-header__phone:hover {
    color: var(--a5-gold-ink);
  }

  .site-header__phone svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--a5-gold);
  }

  @media (min-width: 1280px) {
    .site-header__phone { display: inline-flex; }
  }

  /* Short CTA label on phones, full label from 640px */
  .site-header__cta-long { display: none; }

  @media (min-width: 640px) {
    .site-header__cta-short { display: none; }
    .site-header__cta-long { display: inline; }
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--a5-warm-100);
    border-radius: var(--a5-radius);
    background-color: var(--a5-white);
    color: var(--a5-black);
    cursor: pointer;
  }

  .menu-toggle:hover {
    border-color: var(--a5-warm-500);
  }

  .menu-toggle svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  @media (min-width: 1024px) {
    .menu-toggle { display: none; }
  }

  /* Mobile nav: a native modal <dialog>. The browser makes the rest of the
     page inert (focus stays inside) and closes it on Escape.              */
  .mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 24rem);
    max-width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background-color: var(--a5-black);
    color: var(--a5-white);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav::backdrop {
    background-color: rgba(16, 16, 16, 0.6); /* fallback for browsers without custom properties on ::backdrop */
    background-color: color-mix(in srgb, var(--a5-black) 60%, transparent);
  }

  /* Stop the page behind from scrolling while the menu is open */
  html:has(.mobile-nav[open]) {
    overflow: hidden;
  }

  .mobile-nav__panel {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0 1.25rem 2rem;
  }

  .mobile-nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--a5-header-h);
    flex-shrink: 0;
  }

  .mobile-nav__top img {
    display: block;
    width: 52px;
    height: auto;
  }

  .mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--a5-white) 25%, transparent);
    border-radius: var(--a5-radius);
    background-color: transparent;
    color: var(--a5-white);
    cursor: pointer;
  }

  .mobile-nav__close:hover {
    border-color: var(--a5-white);
  }

  .mobile-nav__close svg {
    width: 1.375rem;
    height: 1.375rem;
  }

  .mobile-nav__list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid color-mix(in srgb, var(--a5-white) 12%, transparent);
  }

  .mobile-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    padding-block: 0.5rem;
    border-bottom: 1px solid color-mix(in srgb, var(--a5-white) 12%, transparent);
    color: var(--a5-white);
    font-size: 1.1875rem;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-nav__list a:hover,
  .mobile-nav__list a[aria-current="page"] {
    color: var(--a5-gold);
  }

  .mobile-nav__list svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--a5-warm-500);
  }

  .mobile-nav__cta {
    margin-top: 2rem;
  }

  .mobile-nav__contact {
    display: grid;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--a5-warm-500);
    font-size: 0.9375rem;
  }

  .mobile-nav__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.75rem;
    color: var(--a5-warm-100);
    text-decoration: none;
  }

  .mobile-nav__contact svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--a5-gold);
  }


  /* 7. Footer ============================================================== */
  .site-footer {
    background-color: var(--a5-black);
    color: var(--a5-warm-100);
    font-size: 0.9375rem;
  }

  .site-footer a {
    color: var(--a5-warm-100);
    text-decoration: none;
  }

  .site-footer a:hover {
    color: var(--a5-white);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 3.5rem 3rem;
  }

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

  @media (min-width: 1024px) {
    .site-footer__grid {
      grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.8fr)) minmax(0, 1.2fr);
      gap: 3rem;
      padding-block: 4.5rem 3.5rem;
    }
    .site-footer__brand { grid-column: auto; }
  }

  .site-footer__logo {
    display: inline-flex;
    border-radius: 0.5rem;
  }

  .site-footer__logo img {
    display: block;
    width: 104px;
    height: auto;
  }

  .site-footer__blurb {
    max-width: 26rem;
    margin: 1.25rem 0 1.5rem;
    line-height: 1.6;
  }

  .site-footer .btn--primary,
  .site-footer .btn--primary:hover {
    color: var(--a5-black);
    text-decoration: none;
  }

  .site-footer__heading {
    margin: 0 0 1rem;
    color: var(--a5-gold);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .site-footer__links,
  .site-footer__contact {
    display: grid;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
  }

  .site-footer__contact li,
  .site-footer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 2.25rem;
  }

  .site-footer__contact svg {
    width: 1.0625rem;
    height: 1.0625rem;
    flex-shrink: 0;
    color: var(--a5-gold);
  }

  .site-footer__area {
    padding-block: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--a5-white) 12%, transparent);
  }

  .site-footer__area p {
    margin: 0 0 0.75rem;
  }

  .site-footer__areas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-footer__areas li:not(:last-child)::after {
    content: "·";
    margin-inline: 0.625rem;
    color: var(--a5-warm-500);
  }

  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.5rem 2rem;
    border-top: 1px solid color-mix(in srgb, var(--a5-white) 12%, transparent);
    color: var(--a5-warm-500);
    font-size: 0.875rem;
  }

  .site-footer__bottom p {
    margin: 0;
  }


  /* 8. Motion ============================================================== */
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }

    .mobile-nav[open] { animation: a5-slide-in 0.25s ease-out; }
    .mobile-nav[open]::backdrop { animation: a5-fade-in 0.25s ease-out; }
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

  @keyframes a5-slide-in {
    from { transform: translateX(100%); }
    to { transform: none; }
  }

  @keyframes a5-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
