@layer reset, foundation, layout, components, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
  img, svg { display: block; max-width: 100%; }
  .about-photo { width: 320px; max-width: 100%; height: auto; margin-inline: auto; }
  button, input, select, textarea { font: inherit; }
  a { color: inherit; }
}

@layer foundation {
  :root {
    --wrap: 76rem;
    --reading: 47rem;
    --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    --step--1: clamp(.83rem, .8rem + .12vw, .92rem);
    --step-0: clamp(1rem, .95rem + .2vw, 1.12rem);
    --step-1: clamp(1.2rem, 1.07rem + .5vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.28rem + .9vw, 2.12rem);
    --step-3: clamp(2rem, 1.55rem + 1.8vw, 3.25rem);
    --step-4: clamp(2.8rem, 1.95rem + 3.3vw, 5.45rem);
    --space-1: .35rem;
    --space-2: .65rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.25rem;
    --space-6: 3.5rem;
    --space-7: 5rem;
    --space-8: 7rem;
    --radius-sm: .5rem;
    --radius: 1rem;
    --radius-lg: 1.75rem;
    --shadow-sm: 0 1px 0 rgb(20 25 25 / .08), 0 10px 24px rgb(20 25 25 / .06);
    --shadow: 0 2px 0 rgb(20 25 25 / .08), 0 24px 60px rgb(20 25 25 / .11);
  }

  html { background: var(--paper); color: var(--ink); }

  body {
    min-width: 18rem;
    background:
      radial-gradient(circle at 8% 3%, var(--glow) 0, transparent 27rem),
      var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--step-0);
    line-height: 1.62;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3 {
    color: var(--heading);
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.04;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  h1 { font-size: var(--step-4); }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-2); }

  p, li { text-wrap: pretty; }

  strong { font-weight: 700; }

  ::selection { background: var(--selection); color: var(--heading); }

  :focus-visible {
    outline: .2rem solid var(--focus);
    outline-offset: .2rem;
  }

  a { text-underline-offset: .18em; text-decoration-thickness: .08em; }
  a:hover { text-decoration-thickness: .14em; }
}

@layer layout {
  .wrap {
    width: min(calc(100% - 4rem), var(--wrap));
    margin-inline: auto;
  }

  .reading { max-width: var(--reading); }

  .section { padding-block: var(--space-7); }
  .section--tight { padding-block: var(--space-6); }
  .section--rule { border-top: 1px solid var(--rule); }
  .section--ink { background: var(--heading); color: var(--on-dark); }
  .section--ink h2, .section--ink h3 { color: var(--on-dark); }
  .section--tint { background: var(--tint); }
  .section--paper { background: var(--paper-strong); }

  .stack > * + * { margin-block-start: var(--space-3); }
  .stack--tight > * + * { margin-block-start: var(--space-2); }
  .stack--loose > * + * { margin-block-start: var(--space-5); }

  .cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }

  .grid-2, .grid-3, .grid-4 { display: grid; gap: var(--space-4); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .split {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
    gap: clamp(2.5rem, 6vw, 7rem);
    align-items: center;
  }

  .sidebar-layout {
    display: grid;
    grid-template-columns: minmax(13rem, .33fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .sidebar-layout__aside { position: sticky; top: 7rem; }
}

@layer components {
  .skip-link {
    position: fixed;
    z-index: 100;
    inset: .75rem auto auto .75rem;
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--heading);
    color: var(--on-dark);
    transform: translateY(-180%);
  }
  .skip-link:focus { transform: translateY(0); }

  .preview-banner {
    border-bottom: 1px solid color-mix(in srgb, var(--accent), transparent 72%);
    background: var(--preview);
    color: var(--heading);
    font-size: var(--step--1);
  }
  .preview-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.35rem;
    text-align: center;
  }
  .preview-dot {
    width: .52rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--accent), transparent 78%);
  }

  .site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--rule), transparent 20%);
    background: color-mix(in srgb, var(--paper), transparent 8%);
    backdrop-filter: blur(18px) saturate(115%);
  }
  .site-header__inner {
    display: flex;
    min-height: 5.35rem;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--heading);
    text-decoration: none;
  }
  .brand-mark { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }
  .brand__words { display: grid; line-height: 1.06; }
  .brand__words strong { font-family: var(--serif); font-size: 1.06rem; letter-spacing: .015em; }
  .brand__words span { margin-top: .22rem; color: var(--muted); font-size: .74rem; letter-spacing: .05em; }

  .mark-paper { fill: var(--paper-strong); stroke: var(--heading); stroke-width: 2; }
  .mark-paper-back { fill: var(--tint); }
  .mark-line, .mark-fold, .mark-bridge { fill: none; stroke: var(--heading); stroke-linecap: round; stroke-width: 2; }
  .mark-seal { fill: var(--accent); stroke: var(--paper-strong); stroke-width: 2; }

  .desktop-nav { display: flex; align-items: center; gap: clamp(.75rem, 1.6vw, 1.5rem); }
  .desktop-nav a {
    position: relative;
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 650;
    text-decoration: none;
  }
  .desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -.42rem;
    left: 0;
    height: 2px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
  }
  .desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--heading); }
  .desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .desktop-nav .header-language-link {
    padding-left: clamp(.75rem, 1.4vw, 1.2rem);
    border-left: 1px solid var(--rule);
    color: var(--heading);
  }
  .desktop-nav .header-language-link::after { left: clamp(.75rem, 1.4vw, 1.2rem); }

  .mobile-nav { display: none; position: relative; }
  .mobile-nav summary {
    padding: .55rem .8rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--step--1);
    font-weight: 700;
    list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav {
    position: absolute;
    right: 0;
    width: min(19rem, calc(100vw - 2rem));
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }
  .mobile-nav nav a { display: block; padding: .72rem .8rem; border-radius: .55rem; text-decoration: none; }
  .mobile-nav nav a:hover, .mobile-nav nav a[aria-current="page"] { background: var(--tint); color: var(--heading); }
  .mobile-nav nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
  .mobile-nav .header-language-link {
    margin-top: .35rem;
    padding-top: 1rem;
    border-radius: 0 0 .55rem .55rem;
    box-shadow: inset 0 1px var(--rule);
    color: var(--link);
    font-weight: 750;
  }

  .hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(1.75rem, 3vw, 3.5rem);
  }
  .hero::before {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 3.5rem 3.5rem;
    content: "";
    mask-image: linear-gradient(90deg, transparent, #000 52%, #000);
    pointer-events: none;
  }
  .hero__inner { position: relative; }
  .hero h1 { max-width: 17ch; font-size: clamp(2.65rem, 1.95rem + 2.05vw, 4.25rem); }
  .hero__lede { max-width: 39rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; }
  .hero__value { max-width: 39rem; font-size: var(--step-0); font-weight: 650; line-height: 1.45; }
  .hero .stack--loose > * + * { margin-block-start: clamp(1rem, 2.5vw, 1.5rem); }
  .hero .stack--loose > .hero__value { margin-block-start: .65rem; }
  .hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: var(--space-4); }
  .hero-service-areas { align-self: center; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-strong); box-shadow: var(--shadow); }
  .hero-service-areas h2 { font-size: var(--step-1); line-height: 1.25; }
  .service-areas__list { margin-block: 1rem; padding-left: 1.15em; }
  .service-areas__list li + li { margin-top: .55rem; }
  .service-areas__note { color: var(--muted); font-size: var(--step--1); }
  .service-areas__note a { font-weight: 700; }
  .service-card__allowance { margin-top: .5rem; color: var(--muted); }
  .price-summary__allowance { display: block; font-size: var(--step--1); color: var(--muted); }
  .home-pricing { grid-column: 1 / -1; }
  .price-summary { max-width: 42rem; margin-top: 1.25rem; }
  .price-summary__list { margin: .6rem 0; }
  .price-summary__list > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .3rem; border-bottom: 1px solid var(--rule); }
  .price-summary__list dd { margin: 0; color: var(--heading); font-weight: 800; white-space: nowrap; }
  .price-summary__note { font-size: var(--step--1); }
  .trust-strip { max-width: 52rem; margin-top: 1rem; color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
  .page-services .page-hero { padding-block: clamp(2rem, 5vw, 4rem); }
  .page-enquire .page-hero { padding-block: 2rem; }
  .metric span { font-size: var(--step-0); }
  .hero__note { max-width: 36rem; color: var(--muted); font-size: var(--step--1); }

  @media (min-width: 721px) {
    .theme-fr.page-home .hero {
      padding-block: clamp(1.75rem, 2.75vw, 3.25rem);
    }
    .theme-fr.page-home .hero h1 {
      max-width: 22ch;
      font-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.9rem);
    }
    .theme-fr.page-home .hero .stack--loose > * + * { margin-block-start: .75rem; }
    .theme-fr.page-home .hero .stack--loose > .hero__value { margin-block-start: .45rem; }
  }

  .eyebrow {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: var(--space-4);
    color: var(--accent-strong);
    font-size: var(--step--1);
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
  }
  .eyebrow::before { width: 2.2rem; height: 1px; background: currentColor; content: ""; }

  .button {
    display: inline-flex;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--accent);
    color: var(--button-text);
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  }
  .button:hover { box-shadow: 0 .65rem 1.8rem color-mix(in srgb, var(--accent), transparent 72%); transform: translateY(-2px); }
  .button--ghost { border-color: var(--rule-strong); background: transparent; color: var(--heading); }
  .button--ghost:hover { background: var(--paper-strong); box-shadow: var(--shadow-sm); }
  .button--light { background: var(--on-dark); color: var(--heading); }
  .button[aria-disabled="true"], button:disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .62; transform: none; }

  .letter-stage {
    position: relative;
    min-height: 31rem;
    isolation: isolate;
  }
  .letter-stage::before, .letter-stage::after {
    position: absolute;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    content: "";
    inset: 8% 8% 8% 8%;
    transform: rotate(-5deg);
  }
  .letter-stage::after { inset: 13% 2% 3% 15%; transform: rotate(4deg); }
  .letter-card {
    position: absolute;
    z-index: 2;
    inset: 7% 9% 8% 3%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }
  .letter-card__top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 1.2rem; }
  .letter-card__top span { color: var(--muted); font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .letter-card__title { max-width: 11ch; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.6rem); line-height: .98; }
  .letter-card__lines { display: grid; gap: .7rem; }
  .letter-card__lines span { display: block; height: .42rem; border-radius: 1rem; background: var(--rule); }
  .letter-card__lines span:nth-child(2) { width: 82%; }
  .letter-card__lines span:nth-child(3) { width: 64%; }
  .letter-card__seal { position: absolute; right: 12%; bottom: 10%; width: 4.4rem; aspect-ratio: 1; border: .42rem double var(--paper-strong); border-radius: 50%; background: var(--accent); box-shadow: 0 .35rem 1rem rgb(0 0 0 / .13); }

  .section-heading { display: grid; gap: var(--space-3); max-width: 50rem; margin-bottom: var(--space-6); }
  .section-heading p { max-width: 42rem; color: var(--muted); font-size: var(--step-1); }
  .section-heading--center { margin-inline: auto; text-align: center; }
  .section-heading--center .eyebrow { justify-content: center; }

  .card {
    padding: clamp(1.35rem, 3vw, 2.15rem);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--paper-strong);
    box-shadow: var(--shadow-sm);
  }
  .card h3 { margin-bottom: .7rem; font-size: var(--step-2); }
  .card p { color: var(--muted); }
  .card--flat { box-shadow: none; }
  .card--accent { border-top: .3rem solid var(--accent); }

  .home-problems { align-items: stretch; }
  .home-problem { min-height: 100%; }
  .home-problems__bridge { max-width: 52rem; margin-top: var(--space-5); font-size: var(--step-1); }
  .home-problems__link { display: inline-block; margin-top: var(--space-3); color: var(--link); font-weight: 750; }

  .home-step { position: relative; padding-top: 4.9rem; }
  .home-step__number {
    position: absolute;
    top: 1.25rem;
    left: clamp(1.35rem, 3vw, 2.15rem);
    display: grid;
    width: 2.65rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    color: var(--accent-strong);
    font-family: var(--serif);
    font-size: 1.1rem;
  }
  .home-assurance { align-items: start; }
  .home-assurance > * { min-width: 0; }
  .home-assurance .button { max-width: 100%; text-align: center; }
  .service-card { position: relative; display: flex; min-height: 0; flex-direction: column; }
  .grid-4 .service-card h2 { overflow-wrap: normal; font-size: clamp(2rem, 1.55rem + 1.1vw, 2.4rem); }
  .service-card__number { color: var(--accent-strong); font-family: var(--serif); font-size: var(--step-1); font-style: italic; }
  .service-card__price { margin-block: .4rem .8rem; color: var(--heading); font-family: var(--serif); font-size: var(--step-3); line-height: 1; }
  .service-card__price small { color: var(--muted); font-family: var(--sans); font-size: var(--step--1); font-weight: 600; }
  .service-card ul { margin-bottom: 1.25rem; padding-left: 1.15rem; color: var(--muted); }
  .service-card footer { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--rule); color: var(--heading); font-size: var(--step--1); font-weight: 700; }
  .service-card--featured { border-color: var(--accent); background: var(--featured); transform: translateY(-.45rem); }
  .service-card__badge { display: inline-flex; width: fit-content; margin-bottom: .7rem; padding: .28rem .6rem; border-radius: 999px; background: var(--accent); color: var(--button-text); font-size: .82rem; font-weight: 800; letter-spacing: .025em; }

  .steps { counter-reset: step; display: grid; gap: 0; }
  .step { position: relative; display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-5); border-top: 1px solid var(--rule); }
  .step::before {
    counter-increment: step;
    display: grid;
    width: 3.2rem;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    color: var(--accent-strong);
    content: counter(step, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 1.2rem;
  }
  .step h3 { font-size: var(--step-1); }
  .step p { margin-top: .45rem; color: var(--muted); }

  .boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--rule); border-radius: var(--radius-lg); }
  .boundary-panel { padding: clamp(1.5rem, 4vw, 3.2rem); background: var(--paper-strong); }
  .boundary-panel + .boundary-panel { border-left: 1px solid var(--rule); background: var(--tint); }
  .boundary-panel ul { display: grid; gap: .75rem; margin-top: var(--space-4); padding: 0; list-style: none; }
  .boundary-panel li { position: relative; padding-left: 1.7rem; }
  .boundary-panel li::before { position: absolute; left: 0; color: var(--accent-strong); content: "✓"; font-weight: 900; }
  .boundary-panel--no li::before { content: "—"; }

  .quote {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-left: .3rem solid var(--accent);
    background: var(--paper-strong);
    box-shadow: var(--shadow-sm);
  }
  .quote blockquote { color: var(--heading); font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; }
  .quote figcaption { margin-top: var(--space-4); color: var(--muted); font-size: var(--step--1); }

  .sample-card { overflow: hidden; padding: 0; }
  .sample-card__head { padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--rule); background: var(--tint); }
  .sample-card__head h3 { margin: 0; }
  .sample-card__body { padding: 1.5rem; }
  .sample-card__body p + p, .sample-flow__box p + p { margin-top: 1em; }
  .sample-label { display: inline-block; margin-bottom: .85rem; color: var(--accent-strong); font-size: .86rem; font-weight: 800; letter-spacing: .015em; line-height: 1.4; }
  .sample-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: .8rem; align-items: center; margin-top: 1rem; }
  .sample-flow__box { min-height: 7.5rem; padding: 1rem; border: 1px solid var(--rule); border-radius: .7rem; background: var(--paper); color: var(--muted); font-size: var(--step--1); }
  .sample-flow__arrow { color: var(--accent-strong); font-size: 1.5rem; }

  .faq-list { border-top: 1px solid var(--rule); }
  .faq-list details { border-bottom: 1px solid var(--rule); }
  .faq-list summary { display: flex; min-height: 4.6rem; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; color: var(--heading); font-family: var(--serif); font-size: var(--step-1); font-weight: 600; list-style: none; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after { flex: 0 0 auto; color: var(--accent-strong); content: "+"; font-family: var(--sans); font-size: 1.6rem; font-weight: 400; }
  .faq-list details[open] summary::after { content: "−"; }
  .faq-list details > div { max-width: 45rem; padding: 0 2rem 1.5rem 0; color: var(--muted); }
  .faq-list details > div > * + * { margin-top: .8rem; }

  .page-hero { padding-block: clamp(3.7rem, 8vw, 7rem); border-bottom: 1px solid var(--rule); }
  .page-hero h1 { max-width: 14ch; }
  .theme-en.page-about .page-hero h1 { max-width: none; font-size: var(--step-3); }
  .theme-fr.page-about .page-hero h1 { max-width: 20ch; font-size: var(--step-3); }
  .page-hero__lede { max-width: 42rem; margin-top: var(--space-4); color: var(--muted); font-size: var(--step-1); }
  .page-hero__meta { display: flex; flex-wrap: wrap; gap: .65rem 1.3rem; margin-top: var(--space-5); color: var(--muted); font-size: var(--step--1); }
  .page-hero__meta span { display: inline-flex; align-items: center; gap: .45rem; }
  .page-hero__meta span::before { width: .42rem; aspect-ratio: 1; border-radius: 50%; background: var(--accent); content: ""; }
  .page-about .about-hero { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }
  .about-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .about-hero .about-photo { margin: 0; }
  .about-hero__line { display: block; }
  .about-hero__quals { display: grid; gap: .6rem; max-width: 34rem; margin-top: var(--space-4); font-size: var(--step-0); line-height: 1.4; }
  .about-hero__quals span { display: flex; align-items: flex-start; }
  .about-hero__quals span::before { flex: none; margin-top: .5em; }
  .page-about .page-hero + .section { padding-block-start: clamp(2.25rem, 4.5vw, 3.5rem); }
  .about-split { align-items: start; }

  .prose { max-width: var(--reading); }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { margin-top: 1.8em; font-size: var(--step-2); }
  .prose h3 { margin-top: 1.55em; font-size: var(--step-1); }
  .prose ul, .prose ol { padding-left: 1.35rem; }
  .prose li + li { margin-top: .45rem; }
  .prose a { color: var(--link); }
  .prose blockquote { padding: 1.25rem 1.5rem; border-left: .3rem solid var(--accent); background: var(--tint); }

  .contents-card { padding: 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper-strong); }
  .contents-card strong { display: block; margin-bottom: .7rem; color: var(--heading); font-family: var(--serif); font-size: 1.2rem; }
  .contents-card nav { display: grid; gap: .55rem; }
  .contents-card a { color: var(--link); font-size: var(--step--1); font-weight: 650; text-decoration: underline; }
  .contents-card a:hover { color: var(--heading); text-decoration-thickness: .14em; }

  .boundary-route { grid-column: 1 / -1; padding: 1rem 1.4rem; border-top: 1px solid var(--rule); background: var(--paper-strong); }
  .boundary-route a { color: var(--link); font-weight: 750; text-decoration: underline; }

  .complaints-layout { grid-template-areas: "procedure contact"; }
  .complaints-procedure { grid-area: procedure; }
  .complaints-contact { grid-area: contact; }

  .notice {
    padding: 1.2rem 1.35rem;
    border: 1px solid var(--notice-border);
    border-radius: var(--radius-sm);
    background: var(--notice);
    color: var(--heading);
  }
  .notice strong { display: block; margin-bottom: .2rem; }
  .notice--private { border-left: .35rem solid var(--accent); }

  .launch-field {
    padding: .55rem .7rem;
    border: 1px dashed var(--accent-strong);
    border-radius: .45rem;
    background: var(--preview);
    color: var(--heading) !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem !important;
    overflow-wrap: anywhere;
  }

  .form-preview { padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--paper-strong); box-shadow: var(--shadow); }
  .enquiry-layout { display: grid; grid-template-columns: minmax(17rem, .78fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .enquiry-boundaries { box-shadow: none; }
  .enquiry-boundaries h3 { margin-bottom: .7rem; }
  .enquiry-boundaries ul { margin-bottom: .8rem; }
  .enquiry-boundaries a { color: var(--link); font-weight: 750; }
  .intake-form { min-width: 0; }
  .intake-form > .notice { margin-bottom: var(--space-4); }
  .preview-fields { min-width: 0; padding: 0; border: 0; }
  .intake-form[data-private-preview] {
    border: 2px dashed var(--accent-strong);
    background: var(--preview);
    box-shadow: none;
  }
  .intake-form[data-private-preview] .preview-fields { opacity: .72; }
  .intake-form[data-private-preview] .preview-fields :is(input, select, textarea, button) { cursor: not-allowed; }
  .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
  .field { display: grid; gap: .4rem; }
  .field--wide { grid-column: 1 / -1; }
  .field label, .field legend { color: var(--heading); font-weight: 700; }
  .field small { color: var(--muted); }
  .field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
    width: 100%;
    min-height: 3.2rem;
    padding: .72rem .8rem;
    border: 1px solid var(--rule-strong);
    border-radius: .55rem;
    background: var(--paper);
    color: var(--ink);
  }
  .field textarea { min-height: 8rem; resize: vertical; }
  .field select { overflow: hidden; text-overflow: ellipsis; } /* WebKit: keep a long chosen option inside the select at 390px (the native list still shows every full label) */
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: .2rem solid color-mix(in srgb, var(--focus), transparent 35%); outline-offset: 1px; }
  .checkbox-field { grid-template-columns: 1.25rem minmax(0, 1fr); align-items: start; gap: .7rem; }
  .radio-option { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
  .radio-option input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: var(--accent); }
  .format-recipient-step { padding: 0; border: 0; }
  .format-recipient-step > .form-grid { margin-top: .75rem; }
  .enquiry-details { margin-top: 2rem; }
  .enquiry-details > summary { cursor: pointer; font-weight: 700; }
  .enquiry-details .stack { margin-top: 1.25rem; }
  .checkbox-field input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin: .25rem 0 0;
    padding: 0;
    accent-color: var(--accent);
  }
  fieldset.field { padding: 0; border: 0; }
  .field-help { color: var(--muted); font-size: var(--step--1); }
  .message-choice { padding-top: .3rem !important; }
  .message-choice > legend { font-family: var(--serif); font-size: var(--step-1); }
  .message-choice__options { display: grid; gap: 1.1rem; margin-top: .85rem; }
  .written-option { display: grid; gap: .4rem; }
  .choice-divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: var(--step--1); font-weight: 800; text-transform: uppercase; }
  .choice-divider::before, .choice-divider::after { height: 1px; flex: 1; background: var(--rule); content: ""; }
  .voice-recorder { display: grid; gap: .75rem; padding: 1.15rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--tint); }
  .voice-recorder .recorder-heading { font-size: var(--step-1); }
  .voice-recorder > p { color: var(--muted); font-size: var(--step--1); }
  .recorder-controls, .recorder-review__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
  .recorder-timer { min-width: 8.5rem; color: var(--heading); font-variant-numeric: tabular-nums; font-weight: 800; }
  .recorder-review { display: grid; gap: .85rem; }
  .recorder-review audio { width: 100%; min-height: 3.2rem; }
  .recorder-status, .recorder-fallback { color: var(--heading) !important; font-weight: 650; }
  .honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
  .choice-list { display: grid; gap: .65rem; }
  .choice { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: .65rem; align-items: start; }
  .choice input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--accent); }
  .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
  .form-actions p { max-width: 34rem; color: var(--muted); font-size: var(--step--1); }
  .form-result { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--notice-border); border-radius: var(--radius-sm); background: var(--notice); color: var(--heading); font-weight: 700; }
  .form-result[data-kind="success"] { border-color: var(--accent); background: var(--tint); }
  .form-result[data-kind="working"] { border-style: dashed; }
  .enquiry-contact { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--tint); }
  .enquiry-contact h2 { font-size: var(--step-1); }
  .enquiry-contact p, .enquiry-contact .button, .enquiry-contact__fallback { margin-top: .85rem; }
  .enquiry-contact { overflow-wrap: anywhere; }
  .enquiry-contact__fallback { font-size: var(--step--1); }
  .enquiry-contact dt { margin-top: .65rem; font-weight: 700; }
  .enquiry-contact dd { margin-left: 0; }
  .enquiry-contact dd span { user-select: all; }
  .enquiry-contact__copy { display: block; margin-top: .35rem; padding: .4rem .75rem; font: inherit; cursor: pointer; }

  .metric { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
  .metric strong { display: block; color: var(--heading); font-family: var(--serif); font-size: var(--step-2); }
  .metric span { color: var(--muted); font-size: var(--step--1); }

  .cta-panel { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); border-radius: var(--radius-lg); background: var(--heading); color: var(--on-dark); }
  .cta-panel::after { position: absolute; right: -5rem; bottom: -7rem; width: 22rem; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--on-dark), transparent 75%); border-radius: 50%; box-shadow: 0 0 0 3rem color-mix(in srgb, var(--on-dark), transparent 94%), 0 0 0 6rem color-mix(in srgb, var(--on-dark), transparent 96%); content: ""; }
  .cta-panel > * { position: relative; z-index: 1; }
  .cta-panel h2 { max-width: 13ch; color: var(--on-dark); }
  .cta-panel p { max-width: 40rem; margin-top: var(--space-3); color: color-mix(in srgb, var(--on-dark), transparent 20%); font-size: var(--step-1); }
  .cta-panel .button--ghost { border-color: color-mix(in srgb, var(--on-dark), transparent 40%); color: var(--on-dark); transition: transform .16s ease, box-shadow .16s ease; }
  .cta-panel .button--ghost:hover { background: var(--on-dark); color: var(--heading); }

  main [id] { scroll-margin-top: 7rem; }

  .site-footer { padding-top: var(--space-7); border-top: 1px solid var(--rule); background: var(--footer); }
  .site-footer__grid { display: grid; grid-template-columns: 1.25fr .9fr 1fr; gap: clamp(2rem, 5vw, 5rem); padding-bottom: var(--space-6); }
  .footer-brand { display: flex; align-items: flex-start; gap: .9rem; }
  .footer-brand .brand-mark { width: 3rem; }
  .footer-brand strong { color: var(--heading); font-family: var(--serif); font-size: 1.25rem; }
  .footer-brand p { max-width: 22rem; margin-top: .45rem; color: var(--muted); font-size: var(--step--1); }
  .footer-links { display: grid; align-content: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; }
  .footer-links a { color: var(--muted); font-size: var(--step--1); text-decoration: none; }
  .footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--heading); text-decoration: underline; }
  .footer-facts { display: grid; align-content: start; gap: .9rem; color: var(--muted); font-size: var(--step--1); }
  .footer-facts strong { color: var(--heading); }
  .language-link { width: fit-content; color: var(--link); font-weight: 700; }
  .site-footer__base { display: flex; min-height: 4.25rem; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .78rem; }

  .status-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .62rem; border-radius: 999px; background: var(--tint); color: var(--accent-strong); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
  .status-pill::before { width: .42rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; content: ""; }

  .rule-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
  .rule-table th, .rule-table td { padding: .9rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
  .rule-table th { color: var(--heading); font-weight: 750; }
  .rule-table tbody tr:hover { background: var(--tint); }
}

@layer utilities {
  .muted { color: var(--muted); }
  .accent { color: var(--accent-strong); }
  .serif { font-family: var(--serif); }
  .small { font-size: var(--step--1); }
  .text-center { text-align: center; }
  .max-compact { max-width: 32rem; }
  .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
}

@media (max-width: 80rem) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 67rem) and (max-width: 70rem) {
  html:lang(fr) .desktop-nav { gap: .75rem; }
}

/* Batch 2: the sixth French menu item (business page) still fits on one line at the narrowest desktop width. */
@media (min-width: 67rem) and (max-width: 75rem) {
  html:lang(fr) .desktop-nav { gap: .55rem; }
  html:lang(fr) .desktop-nav a { white-space: nowrap; }
}

@media (max-width: 67rem) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 49rem) {
  :root { --space-7: 4rem; --space-8: 5rem; }
  .preview-banner__inner { flex-wrap: wrap; gap: .2rem .5rem; padding-block: .35rem; line-height: 1.35; }
  .site-header__inner { min-height: 4.65rem; }
  .brand__words span { display: none; }
  .hero { padding-block: 2rem 3.5rem; }
  .hero h1 { font-size: 2.35rem; line-height: 1; }
  .hero__lede { font-size: 1.08rem; line-height: 1.5; }
  .hero__value { font-size: .98rem; line-height: 1.4; }
  .hero .stack--loose > * + * { margin-block-start: .9rem; }
  .split, .sidebar-layout, .enquiry-layout { grid-template-columns: 1fr; }
  .about-hero__grid { grid-template-columns: 1fr; }
  .about-hero .about-photo { margin-inline: auto; }
  .about-hero__line { display: inline; }
  .sidebar-layout__aside { position: static; }
  .letter-stage { min-height: 24rem; }
  .hero::before { mask-image: linear-gradient(transparent, #000); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .home-problem, .service-card { width: 100%; min-height: 0; align-self: start; }
  .service-card--featured { transform: none; }
  .boundary-grid { grid-template-columns: 1fr; }
  .boundary-panel + .boundary-panel { border-top: 1px solid var(--rule); border-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .sample-flow { grid-template-columns: 1fr; }
  .sample-flow__arrow { transform: rotate(90deg); text-align: center; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .complaints-layout { grid-template-areas: "contact" "procedure"; }
  .site-footer__base { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 1rem; }
}

@media (max-width: 56rem) {
  .wrap { width: min(calc(100% - 3rem), var(--wrap)); }
}

@media (max-width: 34rem) {
  .wrap { width: min(calc(100% - 3rem), var(--wrap)); }
  .wrap.home-assurance { width: min(calc(100% - 3rem), var(--reading)); }
  .hero h1, .page-hero h1 { max-width: none; }
  .brand-mark { width: 2.35rem; height: 2.35rem; }
  .brand__words strong { font-size: .95rem; }
  .letter-card { inset: 6% 4% 6% 2%; }
  .step { grid-template-columns: 3.4rem minmax(0, 1fr); gap: .8rem; }
  .step::before { width: 2.7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__inner, .page-hero .wrap { animation: settle .55s ease-out both; }
  .letter-stage { animation: settle .7s .08s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: translateY(0); } }
}

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

@media (forced-colors: active) {
  :focus-visible { outline: 3px solid CanvasText; }
  .preview-dot, .mark-seal, .status-pill::before { forced-color-adjust: none; }
  .button { border-color: ButtonText; }
}

@media print {
  .preview-banner, .site-header, .site-footer, .hero__actions, .button { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .page-hero { padding-block: 1.2rem; }
  .card, .quote, .form-preview { box-shadow: none; break-inside: avoid; }
  a { text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
