/*
 * starter.css: the starter's pieces, a sample of one look (the header, the home hero, the footer, the inner pages, the
 * contact page). Delete it, or a part, when the Site's own site.css draws that piece: without it the Site still
 * works and reads, plainly. Its mechanics are not here: the phone menu's and the dropdowns' (kit.css, the data
 * attributes of src/kit/nav.php's helpers), the form's (kit.css).
 */

@layer site {
  /* ---------------------------------------------------------------- header */
  /* Header: a floating pill of glass (the paper's) that stays on top */
  /* Exactly --nav-h tall, so the negative margin below takes back all of it (no strip above the hero) */
  .site-header {
    position: sticky; inset-block-start: 0; z-index: 50; box-sizing: border-box;
    block-size: var(--nav-h); padding-block: 0.75rem; pointer-events: none;
    /* it overlays the first section, whose top padding makes room for it (a section with first: true) */
    margin-block-end: calc(-1 * var(--nav-h));
  }
  /* --pill-inset is the gap around everything inside the pill, the same above, below and at the
     ends: the buttons and links fill the height that is left, so their rounded ends sit
     concentric with the pill's (the pill --radius-tray, what is in it --radius-tray-inner). The logo, which has no
     round end, keeps a wider start. */
  .site-header { --pill-inset: var(--inset-rim); }
  .nav-pill {
    pointer-events: auto;
    display: flex; align-items: stretch; gap: var(--space-s);
    inline-size: min(100% - 2 * var(--gutter) + 1rem, var(--wrapper) + 1rem); margin-inline: auto;
    block-size: 100%; padding: var(--pill-inset); padding-inline-start: 1.5rem;
    border: 1px solid var(--c-line); border-radius: var(--radius-tray);
    background: var(--nav-scrolled-bg); color: var(--c-text);
    box-shadow: var(--shadow-nav);
  }
  @supports (backdrop-filter: blur(1px)) {
    .nav-pill { background: var(--nav-bg); backdrop-filter: blur(12px) saturate(1.4); }
  }
  .brand { display: inline-flex; align-items: center; align-self: center; color: inherit; text-decoration: none; flex: none; }
  /* The Site's logo (public/assets/logo.svg, the Zendor „z” mark until the owner's own) at the height of the pill's text */
  .brand .logo { block-size: 1.75rem; inline-size: auto; }
  .nav-links { display: flex; gap: 0.25rem; margin-inline-start: auto; padding: 0; list-style: none; }
  .nav-links > li { display: flex; }
  .nav-links > li > a {
    display: flex; align-items: center; block-size: 100%; padding: 0 1rem; border-radius: var(--radius-tray-inner);
    color: var(--c-text-muted); text-decoration: none; font-weight: 400; font-size: var(--step--1);
    transition: background-color var(--dur-base), color var(--dur-base);
  }
  .nav-links > li > a:hover { background: var(--c-surface-2); color: var(--c-text); }
  .nav-links > li > a[aria-current="page"] { color: var(--c-text); background: var(--c-surface-2); }
  /* A parent with pages under it: its link and the chevron make one pill, lit as a whole */
  .nav-sub { anchor-name: --nav-sub; anchor-scope: --nav-sub; border-radius: var(--radius-tray-inner); transition: background-color var(--dur-base); }
  .nav-sub > a { padding-inline-end: 0.3rem !important; background: transparent !important; }
  .nav-sub:hover, .nav-sub:has(.nav-panel:popover-open) { background: var(--c-surface-2); }
  .nav-sub.is-within, .nav-sub:has(> a[aria-current="page"]) { background: var(--c-surface-2); }
  .nav-sub:is(:hover, .is-within, :has(> a[aria-current="page"]), :has(.nav-panel:popover-open)) > a { color: var(--c-text); }
  .nav-sub-toggle {
    display: inline-grid; place-items: center; padding: 0 0.75rem 0 0.3rem; border: 0; border-radius: 0 var(--radius-tray-inner) var(--radius-tray-inner) 0;
    background: transparent; color: var(--c-text-muted); cursor: pointer; transition: color var(--dur-base);
  }
  .nav-sub-toggle .icon { inline-size: 1rem; block-size: 1rem; transition: rotate var(--dur-base) var(--ease-out); }
  .nav-sub:is(:hover, .is-within, :has(.nav-panel:popover-open)) .nav-sub-toggle { color: var(--c-text); }
  .nav-sub:has(.nav-panel:popover-open) .nav-sub-toggle .icon { rotate: 180deg; }

  /* The dropdown panels (popovers in the top layer, so nothing clips them), placed under their
     trigger with anchor positioning; site.js places them where that is missing */
  .nav-panel {
    position: fixed; inset: auto; margin: 0; padding: var(--inset-rim); min-inline-size: 17rem;
    position-anchor: --nav-sub; top: calc(anchor(bottom) + 0.7rem); left: anchor(center); translate: -50% 0;
    border: 1px solid var(--c-line); border-radius: var(--radius-card);
    background: var(--dropdown-bg); color: var(--c-text);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-panel);
  }
  .nav-panel-end { position-anchor: --nav-lang; left: auto; right: anchor(right); translate: none; min-inline-size: 12rem; }
  .nav-panel ul { display: grid; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
  .nav-panel a {
    display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.75rem; border-radius: var(--radius-card-rim);
    color: var(--c-text); text-decoration: none; transition: background-color var(--dur-fast);
  }
  .nav-panel a:hover, .nav-panel a:focus-visible { background: var(--c-surface-2); outline: none; }
  /* the keyboard's focus also gets a ring */
  .nav-panel a:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
  .nav-panel a[aria-current] { background: var(--c-surface-2); }
  .nav-panel strong { display: block; font-size: var(--step--1); font-weight: 600; color: var(--c-text); }
  .nav-panel small { display: block; font-size: var(--step--2); color: var(--c-text-muted); }
  .nav-panel-icon { display: grid; place-items: center; flex: none; inline-size: 2.4rem; block-size: 2.4rem; border-radius: var(--radius-field);
    border: 1px solid var(--c-line); background: var(--c-bg); color: var(--c-text); }
  .lang-options a { font-weight: 400; font-size: var(--step--1); }
  .lang-options a[aria-current]::after { content: "✓"; margin-inline-start: auto; color: var(--c-text); }


  .nav-actions { display: flex; align-items: stretch; gap: var(--pill-inset); }
  /* The header's buttons fill the pill's inner height: shadcn's lg, 2.5rem */
  .nav-actions .button { min-block-size: 0; block-size: 100%; padding-block: 0; padding-inline: 1.5rem; border-radius: var(--radius-tray-inner); }
  .nav-actions .nav-phone { padding-inline: 1rem; }
  .nav-phone { --b-bg: transparent; --b-fg: var(--c-text); --b-line: var(--c-line); }
  .nav-phone:hover { --b-bg: var(--c-surface-2); }
  /* The language button: the current flag only, round like the pill's other round buttons */
  /* Its width is the pill's inner height, written out: Safari gives a stretched flex item no width
     from aspect-ratio (the header's 0.75rem above and below, the pill's inset and border) */
  .nav-lang-wrap { display: flex; flex: none; inline-size: calc(var(--nav-h) - 1.5rem - 2 * var(--pill-inset) - 2px); anchor-name: --nav-lang; anchor-scope: --nav-lang; }
  .nav-lang {
    display: inline-grid; place-items: center; inline-size: 100%; block-size: 100%; padding: 0; cursor: pointer;
    border: 1px solid var(--c-line); border-radius: 50%; background: transparent;
    transition: background-color var(--dur-base), border-color var(--dur-base);
  }
  .nav-lang:hover, .nav-lang-wrap:has(.nav-panel:popover-open) .nav-lang { background: var(--c-surface-2); border-color: var(--c-line-strong); }
  .menu-button {
    display: none; align-items: center; justify-content: center; block-size: 100%; aspect-ratio: 1;
    border: 0; border-radius: 50%; background: var(--c-surface-2); color: var(--c-text); cursor: pointer;
  }
  /* Where the room runs short the phone button keeps only its icon; below 66rem the links go into the phone menu */
  @media (max-width: 84rem) and (min-width: 66.01rem) {
    .nav-phone .label { display: none; }
    .nav-phone { aspect-ratio: 1; padding: 0 !important; }
  }
  @media (max-width: 66rem) {
    .nav-links, .nav-actions .nav-quote { display: none; }
    .nav-actions { margin-inline-start: auto; }
    .menu-button { display: inline-flex; }
  }
  @media (max-width: 30rem) {
    .nav-phone .label { display: none; }
    .nav-phone { aspect-ratio: 1; padding: 0 !important; }
  }

  /* Phone menu: a full-screen sheet over the blurred page. Its top row has the pill's exact geometry,
     so the logo stays put and the close button takes the menu button's place. The header has
     pointer-events: none (it only frames the pill); the sheet takes them back, or no link answers. */
  .menu-sheet {
    position: fixed; inset: 0; inline-size: 100%; block-size: 100dvh; max-inline-size: none; max-block-size: none;
    margin: 0; padding: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; pointer-events: auto;
    flex-direction: column;
    background: var(--menu-bg); color: var(--c-text);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  }
  .menu-sheet:popover-open { display: flex; }
  .menu-sheet::backdrop { background: transparent; }
  .menu-top { box-sizing: border-box; flex: none; block-size: var(--nav-h); padding-block: 0.75rem; }
  .menu-top-row {
    display: flex; align-items: stretch; justify-content: space-between; block-size: 100%;
    inline-size: min(100% - 2 * var(--gutter) + 1rem, var(--wrapper) + 1rem); margin-inline: auto;
    padding: calc(var(--pill-inset) + 1px); padding-inline-start: calc(1.5rem + 1px);
  }
  .menu-close {
    display: inline-flex; align-items: center; justify-content: center; block-size: 100%; aspect-ratio: 1;
    border: 0; border-radius: 50%; background: var(--c-surface-2); color: var(--c-text); cursor: pointer;
  }
  .menu-body {
    flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-l);
    padding: var(--space-l) var(--gutter) calc(var(--space-m) + env(safe-area-inset-bottom));
  }
  .menu-links { display: grid; padding: 0; list-style: none; }
  .menu-links a {
    display: flex; justify-content: space-between; align-items: center; padding-block: 0.85rem;
    border-block-end: 1px solid var(--c-line);
    color: var(--c-text); text-decoration: none; font-family: var(--font-display);
    font-size: var(--type-h3-size); font-weight: var(--type-h3-weight); letter-spacing: var(--type-h3-tracking); line-height: var(--type-h3-leading);
  }
  .menu-links a .icon { inline-size: 1.25rem; block-size: 1.25rem; color: var(--c-text-muted); }
  .menu-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
  /* A parent page in the phone menu: its link, a chevron, and its pages in an accordion under it */
  .menu-sub-row { display: flex; align-items: stretch; border-block-end: 1px solid var(--c-line); }
  .menu-sub-row a { flex: 1; border-block-end: 0 !important; }
  .menu-sub-toggle {
    display: grid; place-items: center; inline-size: 3rem; flex: none; border: 0; background: transparent; color: var(--c-text-muted); cursor: pointer;
  }
  .menu-sub-toggle .icon { inline-size: 1.5rem; block-size: 1.5rem; transition: rotate var(--dur-medium) var(--ease-out); }
  .menu-sub[data-open] .menu-sub-toggle .icon { rotate: 180deg; }
  .menu-sub-list { display: grid; grid-template-rows: 1fr; }
  .menu-sub-list > ul { min-block-size: 0; overflow: hidden; padding: 0; list-style: none; }
  .menu-sub.is-collapsible:not([data-open]) .menu-sub-list { grid-template-rows: 0fr; visibility: hidden; }
  .menu-sub-list a { padding-inline-start: 1.25rem; font-size: var(--type-lead-size) !important; color: var(--c-text-muted) !important; }
  .menu-sub-list a[aria-current] { color: var(--c-text) !important; }
  .menu-links a[aria-current="page"] .icon { color: inherit; }
  .menu-actions { display: grid; gap: 0.6rem; }
  .menu-langs { margin-block-end: var(--space-s); }

  /* Footer always at the bottom (body is a three-row grid) */
  .site-footer { padding-block: 0 var(--space-m); overflow: clip; }

  .flash { padding-block: calc(var(--nav-h) + 1rem) 0; }
  .flash + * { padding-block-start: var(--space-l); }

  /* ---------------------------------------------------------------- home hero */
  /* The home hero: the headline and lead over a grey gradient (the shader variant draws line waves over it, moving;
     still under reduced motion), the actions and the facts under it */
  .hero {
    position: relative; isolation: isolate; overflow: clip;
    min-block-size: min(92svh, 56rem);
    display: grid; grid-template-rows: 1fr auto;
    padding-block: calc(var(--nav-h) + var(--space-2xl)) 0;
  }
  .hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, var(--c-surface), var(--c-bg) 85%);
  }
  .hero-bg::after {
    /* grain: hides banding in the gradient and the shader; it fades out with them, so the hero ends in the page's
       ground with no edge */
    content: ""; position: absolute; inset: 0; opacity: 0.12; mix-blend-mode: multiply; pointer-events: none;
    mask-image: linear-gradient(to bottom, var(--mask) 55%, transparent 85%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }
  /* the shader fades out at its foot into the page's ground */
  .hero-shader { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; opacity: 0; transition: opacity var(--dur-intro) var(--ease-ui);
    mask-image: linear-gradient(to bottom, var(--mask) 55%, transparent); }
  .hero-shader.is-ready { opacity: 1; }
  /* The line waves over the grain (which would darken the lines under the text: the grain shows only while the canvas
     fades in and where it fades out), and the muted text a step darker (theme.css --shader-text-muted) */
  .hero.is-shader { --c-text-muted: var(--shader-text-muted); }
  .hero.is-shader .hero-shader { z-index: 1; }
  .hero-inner {
    display: grid; gap: var(--space-xl); align-items: center;
    grid-template-columns: minmax(0, 1fr);
  }
  @media (min-width: 60rem) {
    .hero:is(.is-photo, .is-shader) .hero-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); }
  }
  /* The three variants (content/site.php brand 'hero'): shader (the canvas over the gradient, the copy alone),
     photo (the gradient, the two photos beside the copy), type (the copy alone on the plain ground) */
  .hero.is-type .hero-bg { background: var(--c-bg); }
  .hero-copy { display: grid; gap: var(--space-m); justify-items: start; }
  /* Below 60rem the line waves would run through the copy: a soft ground of the page's colour sits behind it */
  @media (max-width: 59.99rem) {
    .hero.is-shader .hero-copy { position: relative; isolation: isolate; }
    .hero.is-shader .hero-copy::before {
      content: ""; position: absolute; inset: calc(var(--space-m) * -1) calc(var(--gutter) * -1); z-index: -1; pointer-events: none;
      background: radial-gradient(ellipse closest-side at 50% 50%, color-mix(in oklch, var(--c-bg) 94%, transparent) 55%, transparent);
    }
  }
  /* The headline: the display role (.display, hero-home.php), and its measure */
  .hero-title { max-inline-size: 18ch; }
  .hero-line { display: block; }
  .hero-line > span { display: block; }
  /* The lead: the lead role (.lead, hero-home.php), and its measure */
  .hero-lead { max-inline-size: 44ch; }
  .hero-actions { gap: var(--space-xs); }
  .hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-s); font-size: var(--step--1); }
  .hero-meta a { display: inline-flex; align-items: center; gap: 0.4em; color: var(--c-text-muted); text-decoration: none; }
  .hero-meta a:hover { color: var(--c-text); text-decoration: underline; }

  /* The shader variant's one photo beside the copy (the image placeholder until the Site has it) */
  .hero-figure { --ratio: 4 / 3; box-shadow: var(--shadow-photo); }
  @media (min-width: 60rem) { .hero-figure { --ratio: 1 / 1; } }
  .hero-media { max-inline-size: 34rem; justify-self: center; inline-size: 100%; }
  .hero-photo { --ratio: 4 / 4.6; --focus: 50% 35%; box-shadow: var(--shadow-photo); }

  .hero-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    margin-block-start: var(--space-2xl); border-block-start: 1px solid var(--c-line);
  }
  .hero-facts p {
    display: flex; align-items: center; gap: 0.7rem; padding-block: var(--space-s); max-inline-size: none;
    font-size: var(--step--1); color: var(--c-text-muted);
  }
  .hero-facts p + p { border-inline-start: 1px solid var(--c-line); padding-inline-start: var(--space-s); }
  @media (max-width: 47.9rem) { .hero-facts p + p { border-inline-start: 0; padding-inline-start: 0; border-block-start: 1px solid var(--c-line); } }
  .hero-facts strong { color: var(--c-text); font-weight: 600; }
  .hero-facts .icon { color: var(--c-text); inline-size: 1.25rem; block-size: 1.25rem; }


  /* ---------------------------------------------------------------- footer */
  /* The footer and the bands above it are parted by their padding, never a line */
  /* The contact band: a card, its words beside a photo (the image placeholder until the Site has it) */
  .footer-cta-band { padding-block-start: var(--space-2xl); }
  /* minmax(0, 1fr): a long word never widens the column past the screen */
  .footer-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-l); align-items: center; }
  @media (min-width: 48rem) { .footer-cta { --card-pad: var(--space-l); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .footer-cta-copy { display: grid; gap: var(--space-m); justify-items: start; }
  /* The photo sits in the card's padding: its corner is concentric with the card's (--radius-card-inner), its image
     placeholder's too */
  .footer-cta-photo, .footer-cta-photo > .image-placeholder { border-radius: var(--radius-card-inner); }
  .footer-cta-title {
    font-family: var(--font-display); font-size: var(--type-h2-size); font-weight: var(--type-h2-weight); letter-spacing: var(--type-h2-tracking); line-height: var(--type-h2-leading);
    max-inline-size: 24ch; text-wrap: balance;
  }
  .footer-cta-title em { font-style: normal; color: var(--c-text-muted); }
  /* Four columns of one kind: a label head over a ruled line, then rows of one size and rhythm */
  .footer-main {
    display: grid; gap: var(--space-l) var(--space-m); padding-block: var(--space-2xl) var(--space-xl);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  }
  @media (min-width: 62rem) { .footer-main { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
  .footer-about { display: grid; gap: var(--space-s); align-content: start; justify-items: start; }
  .footer-pitch {
    font-family: var(--font-display); font-size: var(--type-h3-size); font-weight: var(--type-h3-weight); letter-spacing: var(--type-h3-tracking); line-height: var(--type-h3-leading);
    color: var(--c-text); max-inline-size: 22ch;
  }
  .footer-pitch em { font-style: normal; color: var(--c-text-muted); }
  .footer-kind { color: var(--c-text-muted); font-size: var(--step--1); max-inline-size: 30ch; }
  .footer-social {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem 0.5rem 0.7rem;
    border: 1px solid var(--c-line); border-radius: var(--radius-control); color: var(--c-text); text-decoration: none;
    font-weight: 400; font-size: var(--step--1); transition: background-color var(--dur-base), border-color var(--dur-base);
  }
  .footer-social:hover { background: var(--c-surface-2); border-color: var(--c-line-strong); }
  .footer-col { display: grid; align-content: start; gap: var(--space-s); }
  .footer-head {
    padding-block-start: var(--space-xs); border-block-start: 1px solid var(--c-line);
    font-family: var(--font-label); font-size: var(--type-label-size); font-weight: var(--type-label-weight); letter-spacing: var(--type-label-tracking); line-height: var(--type-label-leading); color: var(--c-text);
  }
  .footer-list, .footer-hours { display: grid; gap: 0.7rem; margin: 0; padding: 0; list-style: none; }
  .footer-list a {
    display: inline-flex; align-items: center; gap: 0.6rem; color: var(--c-text-muted); text-decoration: none;
    font-size: var(--step--1); line-height: 1.3; transition: color var(--dur-base);
  }
  .footer-list a:hover, .footer-list a[aria-current] { color: var(--c-text); }
  @media (max-width: 40rem) {
    .footer-list { gap: 0; }
    .footer-list a, .footer-social, .lang-list a { min-block-size: 2.75rem; }
    /* stacked buttons take one width, and each is a full touch target */
    :is(.hero-actions, .visit .cluster, .footer-cta .cluster, .faq-head .cluster) > .button { flex: 1 1 100%; justify-content: center; }
  }
  .footer-list .icon { inline-size: 1rem; block-size: 1rem; color: var(--c-text-muted); transition: color var(--dur-base); }
  .footer-list a:hover .icon { color: var(--c-text); }
  @media (max-width: 40rem) { .footer-pages { grid-template-columns: 1fr 1fr; } }
  .footer-hours div { display: flex; justify-content: space-between; gap: var(--space-s); font-size: var(--step--1); line-height: 1.3; color: var(--c-text-muted); }
  .footer-hours dd { margin: 0; color: var(--c-text); font-variant-numeric: tabular-nums; }
  /* The Site's name, large: one line across the wrapper, centred (the owner, 2026-11-12), in the text's colour. Its
     size follows the name's length (--name-chars, footer.php: its width in lowercase letters, a capital counting 1.5):
     Inter 600 at this tracking is about 0.42 em a lowercase letter and 0.65 em a capital, so a name in capitals or in
     lowercase fills about the same share of the wrapper; one that is still too long wraps between words (balanced),
     never inside one. */
  .footer-name-wrap { container-type: inline-size; padding-block: var(--space-m) var(--space-s); }
  .footer-name {
    max-inline-size: none; margin: 0; text-align: center; text-wrap: balance;
    font-family: var(--font-display); font-weight: var(--heading-weight); line-height: calc(var(--heading-leading) - 0.25); letter-spacing: calc(var(--heading-tracking) * 1.8); color: var(--c-text);
    font-size: min(16rem, 100cqi * 2 / var(--name-chars));
  }
  .footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-xs) var(--space-m);
    padding-block-start: var(--space-s); border-block-start: 1px solid var(--c-line);
    font-family: var(--font-label); font-size: var(--step--2); color: var(--c-text-muted);
  }
  .footer-bottom p:first-child { margin-inline-end: auto; }
  .footer-top { display: inline-flex; align-items: center; gap: 0.4em; color: var(--c-text-muted); text-decoration: none; }
  .footer-top:hover { color: var(--c-text); }
  .footer-top .icon { inline-size: 1em; block-size: 1em; }

  /* ---------------------------------------------------------------- inner pages */
  /* An inner page's head: the eyebrow, the page's h1 (the base's, no style of its own) and a lead */
  .page-hero {
    position: relative; isolation: isolate;
    padding-block: calc(var(--nav-h) + var(--space-2xl)) var(--space-2xl);
  }
  .page-hero-inner { display: grid; gap: var(--space-m); justify-items: start; }
  /* With a picture or a drawing: copy on the left, the media on the right (under it on a phone) */
  .page-hero-grid { display: grid; gap: var(--space-xl); align-items: center; }
  @media (min-width: 60rem) { .page-hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
  .page-hero-drawing { display: grid; place-items: center; aspect-ratio: var(--photo-ratio); color: var(--c-text-muted); border: 1px solid var(--c-line); border-radius: var(--radius-media); }
  .page-hero-drawing svg { inline-size: 55%; block-size: auto; aspect-ratio: 1; fill: none; stroke: currentColor; stroke-width: 1.2; }
  .page-hero h1 { max-inline-size: 16ch; }
  .page-hero .lead { color: var(--c-text-muted); }

  /* contact page */
  .contact-hero-grid { display: grid; gap: var(--space-xl); align-items: end; }
  @media (min-width: 62rem) { .contact-hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
  .contact-cards { display: grid; gap: var(--space-xs); padding: 0; list-style: none; }
  .contact-card {
    display: flex; gap: var(--space-s); align-items: start; transition: background-color var(--dur-base), border-color var(--dur-base);
  }
  .contact-card:hover { --card-line: var(--c-line-strong); }
  .contact-card-icon { display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; flex: none; border-radius: 50%; background: var(--c-mark); color: var(--c-on-mark); }
  .contact-card-icon .icon { inline-size: 1.1rem; block-size: 1.1rem; }
  .contact-card-label { margin-block-end: 0.3rem; font-family: var(--font-label); font-size: var(--type-label-size); font-weight: var(--type-label-weight); letter-spacing: var(--type-label-tracking); line-height: var(--type-label-leading); color: var(--c-text-muted); }
  .contact-card-main {
    display: flex; align-items: center; gap: 0.4em; color: var(--c-text); text-decoration: none;
    font-family: var(--font-display); font-weight: var(--heading-weight); font-size: var(--step-1); line-height: var(--heading-leading); letter-spacing: calc(var(--heading-tracking) * 0.4);
  }
  .contact-card-main .icon { inline-size: 0.8em; block-size: 0.8em; color: var(--c-text-muted); }
  .contact-card-main:hover { text-decoration: underline; }
  .contact-card-main.is-second { margin-block-start: 0.2rem; font-family: var(--font-text); font-weight: 400; font-size: var(--step-0); color: var(--c-text-muted); }
  .contact-card-note { margin-block-start: 0.35rem; font-size: var(--step--1); color: var(--c-text-muted); }
  .contact-grid { display: grid; gap: var(--space-xl); align-items: start; }
  @media (min-width: 62rem) {
    .contact-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
    .contact-intro { position: sticky; inset-block-start: calc(var(--nav-h) + var(--space-m)); }
  }
  /* when the answer comes, one line instead of numbered steps */
  .contact-reply { display: flex; gap: var(--space-2xs); align-items: start; color: var(--c-text-muted); font-size: var(--step--1); line-height: 1.43; }
  .contact-reply .icon { inline-size: 1rem; block-size: 1rem; margin-block-start: 0.125rem; color: var(--c-text); }

  .quote-card { --card-pad: var(--space-l); }
  @media (max-width: 30rem) { .quote-card { --card-pad: var(--space-s); } }
  .quote-card h2 { font-size: var(--type-h3-size); font-weight: var(--type-h3-weight); letter-spacing: var(--type-h3-tracking); line-height: var(--type-h3-leading); }
  .quote-form { display: grid; gap: var(--space-m); overflow-anchor: none; }
  .quote-form .notice { max-inline-size: none; }
  .quote-form .two { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
  .quote-form .submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); }
  .quote-form .htmx-indicator { font-family: var(--font-label); font-size: var(--step--1); }
  .form-note, .form-privacy { color: var(--c-text-muted); font-size: var(--step--1); }
  .quote-sent { display: grid; gap: var(--space-s); justify-items: start; padding: var(--space-l); background: var(--c-surface);
    border: var(--border-w) solid var(--c-line); border-radius: var(--radius-card); }
  .quote-sent h2 { font-size: var(--type-h3-size); font-weight: var(--type-h3-weight); letter-spacing: var(--type-h3-tracking); line-height: var(--type-h3-leading); }
  .quote-sent .icon { inline-size: 2.5rem; block-size: 2.5rem; color: var(--c-on-mark); background: var(--c-mark); border-radius: 50%; padding: 0.5rem; }
  /* 404 and plain pages */
  .plain { padding-block: calc(var(--nav-h) + var(--space-2xl)) var(--space-2xl); }

  .not-found .page-hero-inner { min-block-size: 50svh; align-content: center; }

  /* ---------------------------------------------------------------- languages (footer) */
  .lang-list { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; list-style: none; }
  .lang-list a {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.95rem 0.4rem 0.45rem;
    border: 1px solid var(--c-line-strong); border-radius: var(--radius-control); color: var(--c-text); text-decoration: none;
    font-weight: 600; font-size: var(--step--1); transition: background-color var(--dur-base), border-color var(--dur-base);
  }
  .lang-list a:hover { background: var(--c-surface-2); }
  .lang-list a[aria-current] { border-color: var(--c-text); background: var(--c-surface-2); }
  .lang-list .flag { inline-size: 1.4rem; block-size: 1.4rem; }
  .testimonial-gloss { font-size: var(--step--1); color: var(--c-text-muted); }
  .tag-lang { margin-inline-start: 0.3rem; background: color-mix(in oklch, var(--accent) 12%, transparent); color: var(--accent); }
}

/* The header's motion (kit.css's motion layer: under reduced motion nothing of it moves) */
@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    /* The phone menu's links and buttons rise in after the page fades into the menu; closing, they drop away fast. */
    html:active-view-transition-type(menu) {
      .menu-links { view-transition-name: menu-links; }
      .menu-actions { view-transition-name: menu-actions; }
      &::view-transition-group(menu-links), &::view-transition-group(menu-actions) { animation: none; }
      &::view-transition-new(menu-links) { animation: menu-in var(--dur-move-l) var(--ease-out) both; }
      &::view-transition-new(menu-actions) { animation: menu-in var(--dur-move-l) var(--stagger) var(--ease-out) both; }
      &::view-transition-old(menu-links), &::view-transition-old(menu-actions) { animation: menu-out var(--dur-fast) var(--ease-out) both; }
    }
    @keyframes menu-in { from { opacity: 0; translate: 0 var(--rise); } }
    @keyframes menu-out { to { opacity: 0; translate: 0 calc(-1 * var(--rise-s)); } }

    /* The dropdown panels fade and drop in; the phone menu's accordion opens to its height (grid rows: every browser) */
    .nav-panel { transition: opacity var(--dur-fast) var(--ease-ui), translate var(--dur-base) var(--ease-out), display var(--dur-base) allow-discrete, overlay var(--dur-base) allow-discrete; }
    .nav-panel:not(:popover-open) { opacity: 0; translate: -50% calc(-1 * var(--rise-s)); }
    @starting-style { .nav-panel:popover-open { opacity: 0; translate: -50% calc(-1 * var(--rise-s)); } }
    .nav-panel-end:not(:popover-open) { translate: 0 calc(-1 * var(--rise-s)); }
    @starting-style { .nav-panel-end:popover-open { opacity: 0; translate: 0 calc(-1 * var(--rise-s)); } }
    .menu-sub-list { transition: grid-template-rows var(--dur-move) var(--ease-out), visibility var(--dur-move); }
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-sub-toggle .icon, .menu-sub-toggle .icon, .hero-shader { transition: none; }
  }
}
