/* ============================================================================
   Platinum Prestige Detailing — site.css
   Hand-written. No Tailwind, no build step, no preprocessor.

   Design direction: "Cold Metal, Deep Water".
   Black + platinum silver, with deep marine blue as a real third surface so the
   blue in the logo has somewhere to live. Playfair Display for display type,
   Inter for everything else.
   ========================================================================= */

@layer tokens, base, layout, components, utilities;

/* ---------------------------------------------------------------- tokens -- */
@layer tokens {
  :root {
    /* ink — the page and its raised surfaces */
    --ink-900: #000000;
    --ink-850: #05060a;
    --ink-800: #0a0c10;
    --ink-700: #101319;
    --abyss:   #000812;
    --abyss-2: #001322;

    /* platinum.
       The ramp shipped by Base44 was non-monotonic — platinum-500 (#c0c0c0) was
       LIGHTER than platinum-400 (#adb5bd), which is why body copy and muted copy
       had inverted contrast. Text greys are now a strictly monotonic --pt-* ramp;
       --pt-500 is reserved as "the metal" and is never used for text. */
    --pt-900: #16181c;
    --pt-800: #2a2d33;
    --pt-700: #4a4e55;
    --pt-600: #6c7178;   /* decorative only — 3.6:1, never text */
    --pt-400: #8f949c;   /* muted text — 6.5:1. This is the floor. */
    --pt-300: #b9bcc2;   /* body text — 10.9:1 */
    --pt-200: #d8dade;
    --pt-100: #f2f3f5;
    --pt-050: #ffffff;

    --pt-500: #c0c0c0;   /* THE platinum. Specular accent: rules, edges, icons. */

    /* brass. #d4af37 read too lemon against cool platinum.
       Permitted in exactly three places, forever: review stars, the rule under a
       "moment" eyebrow, and the nav-link hover underline.
       Rule: brass never exceeds ~1% of any viewport. It is an inlay, not a theme. */
    --brass: #c9a227;

    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-strong: rgba(255, 255, 255, 0.16);
    --glass: rgba(10, 12, 16, 0.62);

    /* type */
    --f-display: "Playfair Display", ui-serif, Georgia, serif;
    --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --step--1: clamp(0.8125rem, 0.79rem + 0.11vw, 0.875rem);
    --step-0:  clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
    --step-1:  clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
    --step-2:  clamp(1.375rem, 1.24rem + 0.6vw, 1.75rem);
    --step-3:  clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem);
    --step-4:  clamp(2.25rem, 1.8rem + 2.1vw, 3.75rem);
    --step-5:  clamp(2.75rem, 1.9rem + 3.8vw, 5.5rem);

    /* rhythm.
       Was clamp(4.5rem, 3rem + 7vw, 9rem) — 144px top AND bottom, i.e. 288px of
       pure padding per section. Across the 9–11 sections of a service page that
       alone was ~2,900px of scroll, independent of any content. Tightened. */
    --section-y: clamp(3rem, 2.25rem + 4vw, 5.5rem);
    --section-y-lg: calc(var(--section-y) * 1.4);
    --section-y-sm: calc(var(--section-y) * 0.6);
    --gutter: clamp(1.25rem, 0.8rem + 2vw, 2rem);
    --wrap: 76rem;
    --wrap-narrow: 44rem;

    --r-md: 0.875rem;
    --r-lg: 1.25rem;
    --r-xl: 1.75rem;
    --r-pill: 999px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-1: 180ms;
    --dur-2: 360ms;
    --dur-3: 700ms;

    --header-h: 4.75rem;
  }
}

/* ------------------------------------------------------------------ base -- */
@layer base {
  @font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-var.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Playfair Display";
    src: url("/assets/fonts/playfair-var.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
  }

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

  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
  }
  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  body {
    background: var(--ink-900);
    color: var(--pt-300);
    font-family: var(--f-body);
    font-size: var(--step-0);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  /* Grain. Large near-black fields band badly on cheap panels; a 2% noise overlay
     is the cheapest possible fix and reads as "expensive" for free. */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.022;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }

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

  /* `display: contents` makes <picture> vanish from layout so the <img> inside it
     sizes against the real parent. Without this, an <img height:100%> wrapped in a
     <picture> resolves 100% against the picture's *auto* height and collapses to
     its intrinsic aspect ratio — which silently letterboxes every full-bleed hero
     and every object-fit:cover tile on the site. */
  picture { display: contents; }

  a { color: inherit; text-decoration: none; }

  h1, h2, h3, h4 {
    color: var(--pt-050);
    text-wrap: balance;
    font-weight: 600;
  }

  /* Playfair is used ONLY at h1/h2 scale. At 20px on black a serif stops reading
     as luxury and starts reading as a wedding invitation — so h3 and below are Inter. */
  h1 {
    font-family: var(--f-display);
    font-size: var(--step-5);
    line-height: 0.98;
    letter-spacing: -0.02em;
  }
  h2 {
    font-family: var(--f-display);
    font-size: var(--step-4);
    line-height: 1.06;
    letter-spacing: -0.015em;
  }
  h3 {
    font-family: var(--f-body);
    font-size: var(--step-2);
    line-height: 1.25;
    letter-spacing: -0.011em;
  }
  h4 {
    font-family: var(--f-body);
    font-size: var(--step-1);
    line-height: 1.35;
    letter-spacing: -0.008em;
  }

  p { max-width: 68ch; }

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

  ::selection { background: var(--pt-500); color: var(--ink-900); }

  @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;
    }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero__img { animation: none !important; transform: none !important; }
  }
}

/* ---------------------------------------------------------------- layout -- */
@layer layout {
  .wrap {
    width: min(var(--wrap), 100% - var(--gutter) * 2);
    margin-inline: auto;
  }
  .wrap--narrow { width: min(var(--wrap-narrow), 100% - var(--gutter) * 2); }

  .section { padding-block: var(--section-y); position: relative; }
  .section--tall { padding-block: var(--section-y-lg); }
  .section--tight { padding-block: var(--section-y-sm); }

  /* Three surfaces, alternated. The old site was one flat black tunnel. */
  .section--abyss {
    background: radial-gradient(120% 80% at 50% 0%, var(--abyss-2), var(--ink-900) 62%);
  }
  .section--plate {
    background: var(--ink-800);
    border-block: 1px solid var(--hairline);
  }

  .section__head {
    margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 3rem);
    max-width: 46rem;
  }
  .section__head--center {
    margin-inline: auto;
    text-align: center;
  }
  .section__head--center p { margin-inline: auto; }
  .section__head p { margin-top: 1.125rem; color: var(--pt-400); font-size: var(--step-1); }

  /* minmax(0, 1fr), never plain 1fr. A bare `1fr` track has an implicit minimum of
     min-content, so one long unbreakable string — an email address, a product name
     — forces its column wider than the track and blows the whole grid out past the
     viewport. This was causing real horizontal scroll on mobile. */
  .grid { display: grid; gap: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
  .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .stack > * + * { margin-top: 1.125rem; }
  .stack-lg > * + * { margin-top: 2rem; }

  .cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    align-items: center;
  }
}

/* ------------------------------------------------------------ components -- */
@layer components {

  /* -- eyebrow ------------------------------------------------------------ */
  /* The single strongest luxury signal available. The old site used it once. */
  .eyebrow {
    display: inline-block;
    font-family: var(--f-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pt-500);
    margin-bottom: 1.25rem;
  }
  .eyebrow--moment::after {
    content: "";
    display: block;
    width: 1.5rem;
    height: 1px;
    margin-top: 0.75rem;
    background: var(--brass);
  }
  .section__head--center .eyebrow--moment::after { margin-inline: auto; }

  /* Signature motion: a hairline that draws itself under the section head. */
  .section__head h2 { position: relative; }
  .section__head--rule h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1.25rem;
    height: 1px;
    width: 0;
    background: var(--pt-500);
    transition: width var(--dur-3) var(--ease) 120ms;
  }
  .section__head--center.section__head--rule h2::after { left: 50%; transform: translateX(-50%); }
  .section__head--rule.is-in h2::after,
  .is-in .section__head--rule h2::after { width: 4rem; }

  /* -- buttons ------------------------------------------------------------ */
  .btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: var(--r-pill);
    font-family: var(--f-body);
    font-size: var(--step-0);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
      border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
  }
  .btn svg { width: 1.125rem; height: 1.125rem; flex: none; }

  /* `.btn.btn--primary`, not `.btn--primary`.
     A single-class selector is specificity (0,1,0), which LOSES to any container
     rule like `.mobilenav a` or `.prose a` (0,1,1). That is exactly what happened:
     inside the mobile menu the button rendered silver text on a silver pill —
     all but invisible. Doubling the class makes the button's own colours win
     wherever it is dropped. */
  .btn.btn--primary {
    background: var(--pt-500);
    color: var(--ink-900);
  }
  /* Specular sweep. Replaces the old blurry `box-shadow` halo — this reads as
     light travelling across polished metal, which is literally what is being sold. */
  .btn--primary::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    transform: skewX(-18deg);
    transition: left 600ms var(--ease);
    pointer-events: none;
  }
  .btn--primary:hover {
    background: var(--pt-050);
    box-shadow: 0 0 0 1px var(--pt-500), 0 10px 34px -10px rgba(192, 192, 192, 0.45);
  }
  .btn--primary:hover::after { left: 115%; }

  .btn.btn--ghost {
    background: transparent;
    color: var(--pt-200);
    border-color: var(--pt-700);
  }
  .btn.btn--ghost:hover {
    color: var(--ink-900);
    background: var(--pt-200);
    border-color: var(--pt-200);
  }

  .btn--sm { padding: 0.6875rem 1.25rem; font-size: var(--step--1); }

  /* -- cards -------------------------------------------------------------- */
  /* Replaces `.glass`. On a flat-black section a backdrop-filter is producing no
     visible effect while costing a compositor layer on every card — so real glass
     is reserved for elements that actually overlap imagery (.is-glass). */
  .card {
    position: relative;
    display: block;
    padding: 2rem;
    border-radius: var(--r-lg);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 40%),
      var(--ink-800);
    border: 1px solid var(--hairline);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
      0 24px 48px -24px rgba(0, 0, 0, 0.8);
    transition: transform var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  }
  /* A 1px platinum gradient edge — light catching a machined bevel. */
  .card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
      rgba(192, 192, 192, 0.55), rgba(192, 192, 192, 0) 35%,
      rgba(192, 192, 192, 0) 65%, rgba(192, 192, 192, 0.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0.45;
    transition: opacity var(--dur-2) var(--ease);
    pointer-events: none;
  }
  a.card:hover, a.card:focus-visible { transform: translateY(-2px); }
  a.card:hover::before, a.card:focus-visible::before { opacity: 1; }

  .card.is-glass {
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(120%);
  }
  @supports not (backdrop-filter: blur(1px)) {
    .card.is-glass { background: var(--ink-800); }
  }

  .card__icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--pt-400);
    margin-bottom: 1.25rem;
    transition: color var(--dur-1) var(--ease);
  }
  a.card:hover .card__icon { color: var(--pt-050); }

  .card__title { margin-bottom: 0.75rem; }
  .card__body { color: var(--pt-400); }

  .card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--pt-300);
  }
  .card__more svg { width: 1rem; height: 1rem; transition: transform var(--dur-1) var(--ease); }
  a.card:hover .card__more svg { transform: translateX(0.375rem); }

  /* panel — the big CTA blocks */
  .panel {
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 3vw, 4rem);
    text-align: center;
    background:
      radial-gradient(90% 120% at 50% 0%, rgba(0, 19, 34, 0.9), transparent 70%),
      var(--ink-800);
    border: 1px solid var(--hairline);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  }
  .panel h2 { margin-bottom: 1.25rem; }
  .panel p { margin: 0 auto 2rem; color: var(--pt-400); font-size: var(--step-1); }

  /* Inline links inside a card or panel. Without this they inherit the body colour
     and are invisible as links — the one real gap in the original vocabulary. */
  .card p a,
  .panel p a,
  .card li a,
  .panel li a {
    color: var(--pt-100);
    text-decoration: underline;
    text-decoration-color: var(--pt-700);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  }
  .card p a:hover,
  .panel p a:hover,
  .card li a:hover,
  .panel li a:hover { color: var(--pt-050); text-decoration-color: var(--pt-500); }

  /* Prose inside a card. The original Base44 pages wrapped every content section in
     a glass card and laid them out two-up; rebuilding them as bare full-width prose
     made the pages roughly twice as long to scroll. `class="card prose"` restores
     the boxed treatment, and `.grid--2` puts them side by side. */
  .card.prose {
    padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  }
  .card.prose > :first-child { margin-top: 0; }
  .card.prose h2,
  .card.prose h3 { margin-top: 1.75rem; }
  .card.prose h2 { font-size: var(--step-2); }
  .card.prose h3 { font-size: var(--step-1); }
  .card.prose p,
  .card.prose li { max-width: none; }
  .card.prose > * + * { margin-top: 1rem; }

  /* Cards in a grid stretch to the tallest sibling, so two-up prose boxes line up. */
  .grid > .card { height: 100%; }

  /* -- stat (the About page's "15+ Years" / "500+ Yachts" figures) ---------- */
  .stat { text-align: center; }
  .stat__num {
    display: block;
    font-family: var(--f-display);
    font-size: var(--step-3);
    line-height: 1;
    color: var(--pt-050);
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.625rem;
  }
  .stat__label {
    display: block;
    font-size: var(--step--1);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pt-400);
  }

  /* -- media card (image + caption) --------------------------------------- */
  .tile {
    display: block;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-800);
  }
  .tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-3) var(--ease);
  }
  .tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
    pointer-events: none;
  }
  a.tile:hover img { transform: scale(1.05); }

  .tile__label {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.375rem;
    z-index: 2;
  }
  .tile__label h3 { font-size: var(--step-2); }
  .tile__label p { font-size: var(--step--1); color: var(--pt-400); margin-top: 0.25rem; }

  /* -- header / nav -------------------------------------------------------- */
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
    border-bottom: 1px solid transparent;
  }
  .site-header.is-stuck {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(16px) saturate(130%);
    border-bottom-color: var(--hairline);
  }
  .site-header > .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .brand { display: flex; align-items: center; gap: 0.75rem; flex: none; }
  .brand img { width: 2.75rem; height: auto; }
  .brand__text { display: flex; flex-direction: column; }
  .brand__name {
    font-family: var(--f-display);
    font-size: 1.1875rem;
    line-height: 1.1;
    color: var(--pt-050);
    white-space: nowrap;
  }
  .brand__sub {
    font-size: 0.5625rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--pt-500);
    line-height: 1;
    margin-top: 0.1875rem;
    white-space: nowrap;
  }
  @media (max-width: 24rem) { .brand__text { display: none; } }

  .nav { display: none; }
  @media (min-width: 64rem) {
    .nav { display: flex; align-items: center; gap: 0.375rem; }
  }

  .nav__link,
  .nav__drop > summary {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.5rem 0.8125rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pt-300);
    cursor: pointer;
    list-style: none;
    border-radius: var(--r-md);
    transition: color var(--dur-1) var(--ease);
  }
  .nav__drop > summary::-webkit-details-marker { display: none; }
  .nav__link:hover,
  .nav__drop > summary:hover,
  .nav__drop[open] > summary { color: var(--pt-050); }

  /* the one brass underline */
  .nav__link::after,
  .nav__drop > summary::after {
    content: "";
    position: absolute;
    left: 0.8125rem;
    right: 0.8125rem;
    bottom: 0.25rem;
    height: 1px;
    background: var(--brass);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease);
  }
  .nav__link:hover::after,
  .nav__drop > summary:hover::after { transform: scaleX(1); }

  /* Active section. The chrome markup is byte-identical on all 46 pages; the only
     per-page difference is <body data-section="…">, which is what lets
     sync-chrome.mjs do a dumb region-replace with no risk of clobbering state. */
  [data-section="services"] .nav__link[data-nav="services"],
  [data-section="services"] .nav__drop[data-nav="services"] > summary,
  [data-section="areas"] .nav__drop[data-nav="areas"] > summary,
  [data-section="blog"] .nav__link[data-nav="blog"],
  [data-section="about"] .nav__link[data-nav="about"],
  [data-section="contact"] .nav__link[data-nav="contact"] { color: var(--pt-050); }

  [data-section="services"] .nav__drop[data-nav="services"] > summary::after,
  [data-section="areas"] .nav__drop[data-nav="areas"] > summary::after,
  [data-section="blog"] .nav__link[data-nav="blog"]::after,
  [data-section="about"] .nav__link[data-nav="about"]::after,
  [data-section="contact"] .nav__link[data-nav="contact"]::after { transform: scaleX(1); }

  .nav__chev { width: 0.875rem; height: 0.875rem; transition: transform var(--dur-1) var(--ease); }
  .nav__drop[open] .nav__chev { transform: rotate(180deg); }

  .nav__menu {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    min-width: 16rem;
    padding: 0.5rem;
    border-radius: var(--r-lg);
    background: rgba(8, 10, 14, 0.94);
    backdrop-filter: blur(20px);
    border: 1px solid var(--hairline);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    list-style: none;
    margin: 0;
  }
  .nav__drop { position: relative; }
  .nav__menu a {
    display: block;
    padding: 0.5625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9063rem;
    color: var(--pt-400);
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  }
  .nav__menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--pt-050); }
  .nav__menu li + li { margin-top: 1px; }
  .nav__menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 0.375rem 0.25rem; }

  .nav__cta { display: none; }
  @media (min-width: 64rem) { .nav__cta { display: inline-flex; margin-left: 0.75rem; } }

  /* mobile */
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid var(--hairline);
    color: var(--pt-200);
    cursor: pointer;
  }
  .nav__toggle svg { width: 1.25rem; height: 1.25rem; }
  .nav__toggle .icon-x { display: none; }
  .nav__toggle[aria-expanded="true"] .icon-menu { display: none; }
  .nav__toggle[aria-expanded="true"] .icon-x { display: block; }
  @media (min-width: 64rem) { .nav__toggle { display: none; } }

  .mobilenav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    overflow-y: auto;
    padding: 1.5rem var(--gutter) 3rem;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
  }
  .mobilenav[hidden] { display: none; }
  @media (min-width: 64rem) { .mobilenav { display: none !important; } }

  .mobilenav a { display: block; padding: 0.875rem 0; font-size: var(--step-1); color: var(--pt-200); }
  .mobilenav > ul { list-style: none; padding: 0; margin: 0; }
  .mobilenav > ul > li + li { border-top: 1px solid var(--hairline); }
  .mobilenav .nav__drop > summary {
    padding: 0.875rem 0;
    font-size: var(--step-1);
    justify-content: space-between;
    border-radius: 0;
  }
  .mobilenav .nav__drop > summary::after { content: none; }
  .mobilenav .nav__menu {
    position: static;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0 0 0.75rem 0.75rem;
  }
  .mobilenav .nav__menu a { padding: 0.5rem 0; font-size: var(--step-0); color: var(--pt-400); }
  .mobilenav .btn { width: 100%; justify-content: center; margin-top: 1.75rem; }

  /* -- hero ---------------------------------------------------------------- */
  .hero {
    position: relative;
    min-height: 40rem;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .hero--page {
    height: auto;
    min-height: 0;
    padding-block: calc(var(--header-h) + var(--section-y)) var(--section-y);
  }

  .hero__media { position: absolute; inset: 0; z-index: 0; }
  .hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenburns 16s var(--ease) forwards;
  }
  /* 16s, not the original 1.5s — at 1.5s it's a zoom-whoosh, not a Ken Burns.
     transform is compositor-only, so this does not delay the LCP paint. */
  @keyframes kenburns {
    from { transform: scale(1.06); }
    to   { transform: scale(1) translateX(-1%); }
  }

  /* Two-layer scrim: a directional wash for headline contrast, plus a vignette.
     The old single flat gradient greyed out the whole photograph. */
  .hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(70% 55% at 50% 42%, transparent, rgba(0, 0, 0, 0.55)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 38%, rgba(0, 4, 10, 0.94) 100%);
  }

  /* No `width: 100%` here — .hero__inner also carries .wrap, and this rule lives in
     the higher-priority `components` layer, so it would override .wrap's
     gutter-aware `width: min(--wrap, 100% - gutter*2)` and bleed the headline off
     the left edge. */
  .hero__inner { position: relative; z-index: 2; }
  .hero h1 { max-width: 18ch; }
  .hero__sub {
    margin-top: 1.5rem;
    font-size: var(--step-1);
    color: var(--pt-300);
    max-width: 44ch;
  }
  .hero__sub a { color: var(--pt-100); text-decoration: underline; text-underline-offset: 3px; }
  .hero__sub a:hover { color: var(--pt-050); }
  .hero__actions { margin-top: 2.25rem; }

  /* Centred on mobile, left-aligned from 1024px. A centred five-line headline is
     the loudest "this is a template" tell there is. */
  .hero__inner { text-align: center; }
  .hero h1, .hero__sub { margin-inline: auto; }
  .hero .hero__actions { justify-content: center; }
  @media (min-width: 64rem) {
    .hero__inner { text-align: left; }
    .hero h1, .hero__sub { margin-inline: 0; }
    .hero .hero__actions { justify-content: flex-start; }
  }

  @media (prefers-reduced-motion: no-preference) {
    .hero__inner > * {
      animation: rise 700ms var(--ease) backwards;
    }
    .hero__inner > *:nth-child(1) { animation-delay: 80ms; }
    .hero__inner > *:nth-child(2) { animation-delay: 160ms; }
    .hero__inner > *:nth-child(3) { animation-delay: 240ms; }
    .hero__inner > *:nth-child(4) { animation-delay: 320ms; }

    /* The <h1> is the LCP element. An element at opacity:0 is NOT eligible to be
       LCP, so fading the headline in postponed the LCP timestamp by the entire
       animation — measured at +790ms, which alone pushed the homepage from ~2.1s
       to 2.88s and out of Google's 2.5s budget. Slide it, never fade it.
       Transform-only animation costs nothing: it's compositor-side and the element
       is painted (and therefore LCP-eligible) from the first frame. */
    .hero__inner > h1 {
      animation-name: rise-slide;
      animation-delay: 0ms;
    }
  }
  @keyframes rise {
    from { opacity: 0; transform: translate3d(0, 20px, 0); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes rise-slide {
    from { transform: translate3d(0, 18px, 0); }
    to   { transform: none; }
  }

  /* -- trust strip --------------------------------------------------------- */
  .trust {
    border-block: 1px solid var(--hairline);
    background: var(--ink-850);
  }
  .trust ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem clamp(1.25rem, 3vw, 3rem);
    list-style: none;
    margin: 0;
    padding: 1.125rem 0;
  }
  .trust li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--pt-400);
    white-space: nowrap;
  }
  .trust svg { width: 1rem; height: 1rem; color: var(--pt-500); flex: none; }
  .trust a { color: var(--pt-200); font-variant-numeric: tabular-nums; }
  .trust a:hover { color: var(--pt-050); }

  /* -- rail (horizontal scrollers) ----------------------------------------- */
  .rail { position: relative; }
  .rail__track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .rail__track::-webkit-scrollbar { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    .rail__track { scroll-behavior: smooth; }
  }
  .rail__track > * { scroll-snap-align: start; flex: none; }

  /* Two rows scrolling sideways, as the original had it — but at 3:2 rather than
     the original's 1:1, which cropped 4:3 boat photos square and cut the boats in
     half. Same shape, correct crop. */
  .rail--gallery .rail__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(62vw, 21rem);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
  }
  .rail--gallery .tile {
    width: 100%;
    aspect-ratio: 3 / 2;
  }
  .rail--gallery .tile::after { content: none; }

  .rail--video .vfacade,
  .rail--video .vplayer { width: 15rem; aspect-ratio: 9 / 16; flex: none; }
  .rail--video .vplayer {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-800);
    border: 1px solid var(--hairline);
    scroll-snap-align: start;
  }
  .rail--video .vplayer wistia-player { width: 100%; height: 100%; }

  .rail__nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
  }
  .rail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.875rem;
    height: 2.875rem;
    border-radius: var(--r-pill);
    background: var(--ink-800);
    border: 1px solid var(--hairline);
    color: var(--pt-300);
    cursor: pointer;
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
      opacity var(--dur-1) var(--ease);
  }
  .rail__btn svg { width: 1.25rem; height: 1.25rem; }
  .rail__btn:hover:not(:disabled) { background: var(--pt-500); color: var(--ink-900); }
  .rail__btn:disabled { opacity: 0.3; cursor: default; }

  /* -- video facade -------------------------------------------------------- */
  /* Wistia's player.js currently loads on all 45 pages and instantiates 7 players
     on the homepage. This defers all of it until an actual click. */
  .vfacade {
    position: relative;
    display: block;
    padding: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink-800);
    cursor: pointer;
  }
  .vfacade img { width: 100%; height: 100%; object-fit: cover; }
  .vfacade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%);
  }
  .vfacade__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    translate: -50% -50%;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0.9375rem 0.875rem 0.9375rem 1.0625rem;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--pt-050);
    transition: background var(--dur-1) var(--ease), scale var(--dur-1) var(--ease);
  }
  .vfacade:hover .vfacade__play { background: var(--pt-500); color: var(--ink-900); scale: 1.08; }
  .vfacade wistia-player { width: 100%; height: 100%; }

  /* -- compare (before/after) ---------------------------------------------- */
  .compare {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    touch-action: none;
    background: var(--ink-800);
  }
  @media (min-width: 40rem) { .compare { aspect-ratio: 3 / 2; } }

  .compare__layer { position: absolute; inset: 0; }
  .compare__layer img { width: 100%; height: 100%; object-fit: cover; }
  /* Both layers share identical geometry. The original applied
     `rotate(-45deg) scale(1.4)` to the "after" and nothing to the "before" —
     two unrelated photos passed off as one transformation. Never again. */
  .compare__before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }

  .compare__range {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: col-resize;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
  }
  .compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 3rem; height: 100%; }
  .compare__range::-moz-range-thumb { width: 3rem; height: 100%; border: 0; opacity: 0; }
  .compare__range:focus-visible ~ .compare__handle {
    outline: 2px solid var(--pt-500);
    outline-offset: 3px;
  }

  .compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    left: var(--pos, 50%);
    width: 2px;
    background: var(--pt-050);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
    pointer-events: none;
    border-radius: 2px;
  }
  .compare__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 3rem;
    height: 3rem;
    border-radius: var(--r-pill);
    background: var(--pt-050);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  }
  .compare__grip {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    translate: -50% -50%;
    display: flex;
    color: var(--ink-900);
    pointer-events: none;
  }
  .compare__grip svg { width: 1rem; height: 1rem; }

  .compare__tag {
    position: absolute;
    top: 1rem;
    z-index: 2;
    padding: 0.4375rem 0.9375rem;
    border-radius: var(--r-pill);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    pointer-events: none;
  }
  .compare__tag--before {
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--pt-100);
    border: 1px solid var(--hairline-strong);
  }
  .compare__tag--after {
    right: 1rem;
    background: rgba(192, 192, 192, 0.92);
    color: var(--ink-900);
  }
  .compare__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 2.5rem 1.5rem 1.25rem;
    text-align: center;
    font-family: var(--f-display);
    font-size: var(--step-1);
    color: var(--pt-050);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    pointer-events: none;
  }

  /* -- FAQ ----------------------------------------------------------------- */
  /* <details>/<summary>: free keyboard + SR semantics, works with JS off, and the
     answer text is in the DOM unconditionally so FAQPage schema matches what's
     actually rendered. */
  .faq { border-radius: var(--r-lg); border: 1px solid var(--hairline); background: var(--ink-800); }
  .faq + .faq { margin-top: 0.875rem; }
  .faq > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    color: var(--pt-050);
    font-family: var(--f-body);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.35;
    border-radius: var(--r-lg);
  }
  .faq > summary::-webkit-details-marker { display: none; }
  .faq > summary:hover { background: rgba(255, 255, 255, 0.03); }
  .faq__chev {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    color: var(--pt-500);
    transition: transform var(--dur-2) var(--ease);
  }
  .faq[open] .faq__chev { transform: rotate(180deg); }

  /* grid-template-rows 0fr -> 1fr animates height with no JS measuring */
  .faq__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--dur-2) var(--ease);
  }
  .faq[open] .faq__body { grid-template-rows: 1fr; }
  .faq__body > div { overflow: hidden; }
  .faq__body p { padding: 0 1.5rem 1.5rem; color: var(--pt-400); max-width: none; }

  /* -- reviews ------------------------------------------------------------- */
  .review { display: flex; flex-direction: column; }
  .review__stars { display: flex; gap: 0.1875rem; margin-bottom: 1.125rem; }
  .review__stars svg { width: 1.0625rem; height: 1.0625rem; color: var(--brass); }
  .review__text { color: var(--pt-300); flex: 1; max-width: none; }
  .review__by {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hairline);
  }
  .review__name { color: var(--pt-050); font-weight: 600; }
  .review__meta { font-size: var(--step--1); color: var(--pt-400); margin-top: 0.125rem; }

  /* -- feature list -------------------------------------------------------- */
  .feature { display: flex; gap: 1rem; }
  .feature svg { width: 1.375rem; height: 1.375rem; color: var(--pt-500); flex: none; margin-top: 0.25rem; }
  .feature h3 { font-size: var(--step-1); margin-bottom: 0.375rem; }
  .feature p { color: var(--pt-400); }

  /* -- breadcrumb ---------------------------------------------------------- */
  .breadcrumb { padding-top: calc(var(--header-h) + 1.25rem); }
  .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--step--1);
    color: var(--pt-600);
  }
  .breadcrumb a { color: var(--pt-400); }
  .breadcrumb a:hover { color: var(--pt-050); }
  .breadcrumb li[aria-current] { color: var(--pt-200); }
  .breadcrumb svg { width: 0.75rem; height: 0.75rem; }

  /* -- prose (blog + long-form service copy) -------------------------------- */
  .prose > * + * { margin-top: 1.375rem; }
  .prose h2 { margin-top: 3.25rem; font-size: var(--step-3); }
  .prose h3 { margin-top: 2.5rem; }
  .prose p, .prose li { color: var(--pt-300); }
  .prose a {
    color: var(--pt-100);
    text-decoration: underline;
    text-decoration-color: var(--pt-700);
    text-underline-offset: 3px;
  }
  .prose a:hover { text-decoration-color: var(--pt-500); }
  .prose ul, .prose ol { padding-left: 1.25rem; }
  .prose li + li { margin-top: 0.5rem; }
  .prose li::marker { color: var(--pt-500); }
  .prose img { border-radius: var(--r-lg); margin-block: 2.5rem; }
  .prose figure { margin-block: 2.5rem; }
  .prose figcaption {
    margin-top: 0.75rem;
    font-size: var(--step--1);
    color: var(--pt-400);
    text-align: center;
  }
  .prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--step--1);
  }
  .prose th, .prose td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--hairline);
  }
  .prose th { color: var(--pt-050); font-weight: 600; }
  .prose td { color: var(--pt-300); }

  .prose-scroll { overflow-x: auto; }

  /* -- pills (town/area links) --------------------------------------------- */
  .pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline);
    background: var(--ink-800);
    font-size: var(--step--1);
    color: var(--pt-300);
    transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
      background var(--dur-1) var(--ease);
  }
  a.pill:hover {
    border-color: var(--pt-500);
    color: var(--pt-050);
    background: var(--ink-700);
  }

  /* -- footer -------------------------------------------------------------- */
  .site-footer {
    background: var(--ink-850);
    border-top: 1px solid var(--hairline);
    padding-block: var(--section-y-sm) 2rem;
  }
  .site-footer__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }
  @media (min-width: 40rem) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 64rem) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

  .site-footer h2 {
    font-family: var(--f-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pt-500);
    margin-bottom: 1.25rem;
  }
  .site-footer ul { list-style: none; margin: 0; padding: 0; }
  .site-footer li + li { margin-top: 0.625rem; }
  .site-footer a { font-size: var(--step--1); color: var(--pt-400); }
  .site-footer a:hover { color: var(--pt-050); }
  .site-footer p { font-size: var(--step--1); color: var(--pt-400); }

  .site-footer__contact li { display: flex; gap: 0.625rem; align-items: flex-start; }
  .site-footer__contact svg { width: 1rem; height: 1rem; color: var(--pt-500); flex: none; margin-top: 0.3125rem; }
  .site-footer__contact a { font-variant-numeric: tabular-nums; }

  .social { display: flex; gap: 0.625rem; margin-top: 1.5rem; }
  .social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--hairline);
    color: var(--pt-400);
    transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  }
  .social a:hover { border-color: var(--pt-500); color: var(--pt-050); }
  .social svg { width: 1.0625rem; height: 1.0625rem; }

  .site-footer__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--hairline);
    font-size: var(--step--1);
    color: var(--pt-600);
  }
  .site-footer__bar nav { display: flex; gap: 1.5rem; }

  /* -- 404 ----------------------------------------------------------------- */
  .notfound {
    min-height: 70svh;
    display: flex;
    align-items: center;
    text-align: center;
  }
}

/* ------------------------------------------------------------- utilities -- */
@layer utilities {
  .center { text-align: center; }
  .center p { margin-inline: auto; }

  .muted { color: var(--pt-400); }
  .lead { font-size: var(--step-1); color: var(--pt-300); }

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

  .mt-0 { margin-top: 0; }
  .mt-6 { margin-top: 1.5rem; }
  .mt-8 { margin-top: 2rem; }
  .mt-12 { margin-top: 3rem; }

  .aspect-16-9 { aspect-ratio: 16 / 9; }
  .aspect-3-2  { aspect-ratio: 3 / 2; }
  .aspect-4-5  { aspect-ratio: 4 / 5; }
  .aspect-1-1  { aspect-ratio: 1 / 1; }

  /* Scroll reveal. Scoped under html:not(.no-js) so that if JS fails or is
     disabled, nothing is ever left invisible. */
  html:not(.no-js) [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    /* stagger capped at 300ms — the original `delay: index * 0.1` meant the 16th
       gallery tile waited 1.6s, long after it had been scrolled past */
    --reveal-delay: min(calc(var(--i, 0) * 60ms), 300ms);
    transition:
      opacity var(--dur-3) var(--ease) var(--reveal-delay),
      transform var(--dur-3) var(--ease) var(--reveal-delay);
  }
  html:not(.no-js) [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-md);
    background: var(--pt-050);
    color: var(--ink-900);
    font-weight: 600;
    transform: translateY(-150%);
    transition: transform var(--dur-1) var(--ease);
  }
  .skip-link:focus { transform: none; }
}

/* ============================================================================
   MOBILE
   Verified against WebKit (the engine iOS Safari actually runs), not just
   Chromium — several of these were invisible in Chromium testing.
   ========================================================================= */
@layer components {

  /* Long words (email addresses, product names) must wrap rather than force a
     track wider than the screen. Belt-and-braces with the minmax(0,1fr) above. */
  p, li, h1, h2, h3, h4, .card, .prose { overflow-wrap: break-word; }

  /* The mobile panel was see-through: the hero headline read straight through it.
     backdrop-filter is unreliable over a fixed full-bleed layer, so use a solid
     surface and treat the blur as progressive enhancement only. */
  .mobilenav {
    background: var(--ink-900);
    backdrop-filter: none;
  }

  /* `.mobilenav a { display: block }` (specificity 0,1,1) was beating
     `.btn { display: inline-flex }` (0,1,0), so the CTA inside the menu lost its
     flex layout entirely — label jammed left, arrow wrapped to its own line. */
  .mobilenav .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 1.75rem;
  }
  .mobilenav .btn svg { flex: none; }

  @media (max-width: 63.99rem) {
    /* Tap targets. Apple's HIG minimum is 44x44; several nav, footer and pill
       links were landing at 16-22px tall. Inline links inside prose are exempt —
       they're part of a sentence and shouldn't be padded out. */
    .site-footer a,
    .breadcrumb a,
    .mobilenav .nav__menu a {
      display: inline-flex;
      align-items: center;
      min-height: 44px;
    }
    .site-footer li + li { margin-top: 0; }
    .site-footer__contact li { align-items: center; }
    .site-footer__contact svg { margin-top: 0; }

    .pill { min-height: 44px; padding-inline: 1.125rem; }

    .brand { min-height: 44px; }

    /* .btn--sm rendered at 37px and the social icons at 38px — under the 44px
       minimum. Inline links inside a sentence are deliberately NOT padded out;
       they're part of the prose and the guideline doesn't apply to them. */
    .btn--sm { min-height: 44px; }
    .social a { width: 44px; height: 44px; }

    .rail__btn { width: 3.25rem; height: 3.25rem; }

    /* 9px was genuinely unreadable on a phone. */
    .brand__sub { font-size: 0.625rem; }

    /* 11px uppercase at 0.18em tracking is legible on desktop but thin on a
       phone at arm's length. */
    .eyebrow { font-size: 0.75rem; }

    /* The hero headline was eating the entire first screen on a 390px phone. */
    .hero h1 { max-width: none; }
    .hero__sub { font-size: var(--step-0); }

    /* Cards were nearly as tall as the viewport from padding alone. */
    .card { padding: 1.5rem; }
    .panel { padding: 2.25rem 1.25rem; }
  }

  /* iOS honours env(safe-area-inset-*) on notched devices; without this the
     footer and fixed header can sit under the home indicator / notch. */
  @supports (padding: env(safe-area-inset-bottom)) {
    .site-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
    .site-header > .wrap,
    .mobilenav {
      padding-left: max(var(--gutter), env(safe-area-inset-left));
      padding-right: max(var(--gutter), env(safe-area-inset-right));
    }
  }
}
