/* ==========================================================================
   West Custom Auto — main.css
   Graphite / electric blue. Hand-authored, no framework.
   Layers: reset → tokens → base → layout → components → sections → motion → utilities
   ========================================================================== */

@layer reset, tokens, base, layout, components, sections, motion, utilities;

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
}

/* ==========================================================================
   RESET
   ========================================================================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { min-height: 100svh; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  ul, ol { list-style: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; overflow-wrap: break-word; }
  p { overflow-wrap: break-word; }
  address { font-style: normal; }
}

/* ==========================================================================
   TOKENS
   ========================================================================== */
@layer tokens {
  :root {
    color-scheme: dark;

    /* Reds. --accent carries white text (4.8:1); --accent-ink is red text on
       black (6:1); --accent-bright is decorative only. */
    --chrome: #050506;
    --accent: #e11d2e;
    --accent-ink: #ff4a5a;
    --accent-bright: #ff2a3c;
    --accent-2: #ff4a5a;
    --accent-deep: #9f1220;
    --accent-glow: rgba(225, 29, 46, 0.38);
    --accent-soft: rgba(225, 29, 46, 0.12);
    --blue-deep: var(--chrome);       /* legacy name, kept so nothing dangles */
    --blue-strip: #121214;

    /* Black page surfaces. Outlines carry the structure, not fills. */
    --bg: #0b0b0c;
    --bg-2: #121214;
    --surface: #151517;
    --surface-2: #1c1c1f;
    --surface-3: #242428;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.17);
    --line-accent: rgba(225, 29, 46, 0.42);
    --text: #f5f5f6;
    --text-2: rgba(245, 245, 246, 0.74);
    --text-3: rgba(245, 245, 246, 0.56);

    --success: #34d399;
    --danger: #ff5c5c;
    --whatsapp: #25d366;
    --gold: #fbbc04;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.55), 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 70px -20px rgba(0, 0, 0, 0.85);

    /* Type */
    --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --fs-hero: clamp(3rem, 1.2rem + 7.6vw, 7.75rem);
    --fs-h1: clamp(2.5rem, 1.2rem + 5vw, 5.75rem);
    --fs-h2: clamp(2rem, 1rem + 3.4vw, 4.25rem);
    --fs-h3: clamp(1.375rem, 1rem + 1.2vw, 2rem);
    --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-mono: 0.75rem;

    /* Space */
    --pad: clamp(1.25rem, 4vw, 4rem);
    --container: 1440px;
    --section: clamp(5rem, 10vw, 10rem);
    --gap: clamp(1.5rem, 3vw, 3rem);

    /* Shape */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.2s;
    --dur: 0.5s;
    --dur-slow: 0.9s;

    --nav-h: 5.5rem;
  }
}


  /* Sections declare their own ground; components keep reading the same tokens. */
  [data-surface="deep"] {
    --bg: var(--chrome);
    --bg-2: #0b0b0c;
    --surface: #111113;
    --surface-2: #18181b;
    --surface-3: #202024;
    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.18);
  }
  /* The "accent" band: charcoal ground held between two red hairlines. */
  [data-surface="accent"] {
    --bg: #121214;
    --bg-2: #18181b;
    --surface: #1a1a1d;
    --surface-2: #222226;
    --line: rgba(255, 255, 255, 0.10);
    --line-2: rgba(255, 255, 255, 0.18);
    border-top: 1px solid var(--line-accent);
    border-bottom: 1px solid var(--line-accent);
  }
  /* The one solid red block on the site. */
  .cta-band[data-surface="accent"] {
    --bg: var(--accent);
    --bg-2: var(--accent-deep);
    --surface: rgba(255, 255, 255, 0.10);
    --surface-2: rgba(255, 255, 255, 0.16);
    --line: rgba(255, 255, 255, 0.22);
    --line-2: rgba(255, 255, 255, 0.4);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.92);
    --text-3: rgba(255, 255, 255, 0.86);
    --accent-ink: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.16);
    border: 0;
  }
  .cta-band[data-surface="accent"] .btn--primary { --btn-bg: #ffffff; --btn-fg: var(--accent-deep); --btn-fill: #ffd0d4; }
  .cta-band[data-surface="accent"] .btn--ghost { border-color: rgba(255, 255, 255, 0.55); --btn-fill: #ffffff; }
  .cta-band[data-surface="accent"] .btn--ghost:hover { color: var(--accent-deep); }
  [data-surface="paper"] { --bg: var(--bg-2); --surface: #151517; }
  [data-surface] { background: var(--bg); color: var(--text); }

/* ==========================================================================
   BASE
   ========================================================================== */
@layer base {
  html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    scroll-behavior: auto;
  }
  body {
    font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 400;
    font-stretch: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    background: var(--bg);
  }

  /* Grain — atmosphere, cheap: static fixed layer, low opacity, no blend */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  ::selection { background: var(--accent); color: #fff; }

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

  /* Lenis */
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
  .lenis.lenis-stopped { overflow: hidden; }

  /* Custom cursor active → hide native */
  html.has-cursor, html.has-cursor * { cursor: none !important; }

  /* Typography */
  .display {
    font-stretch: 112%;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.96;
    text-wrap: balance;
  }
  .h1 { font-size: var(--fs-h1); }
  .h2 { font-size: var(--fs-h2); }
  .h3 {
    font-size: var(--fs-h3);
    font-stretch: 106%;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.12;
    text-wrap: balance;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85em;
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  /* The leading rule read as a dash, so the label now stands on its own. */
  .eyebrow { color: var(--accent-ink); }
  .lead {
    font-size: var(--fs-lead);
    line-height: 1.5;
    color: var(--text-2);
    max-width: 36em;
    text-wrap: pretty;
  }
  .accent { color: var(--accent-ink); }
  .muted { color: var(--text-2); }
  .mono {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  /* SplitText masks: let descenders breathe inside the clipped line wrappers */
  [data-split] > div, [data-intro-split] > div {
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
  }
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
@layer layout {
  .container {
    width: min(100% - (var(--pad) * 2), var(--container));
    margin-inline: auto;
  }
  .section { padding-block: var(--section); position: relative; }
  .section--tight { padding-block: calc(var(--section) * 0.6); }
  .section--line { border-top: 1px solid var(--line); }

  .section__head {
    display: grid;
    gap: 1.5rem;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
    align-items: end;
  }
  .section__head .lead { max-width: 30em; }
  @media (min-width: 900px) {
    .section__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--gap); }
    .section__head > :last-child:not(:first-child) { justify-self: end; padding-bottom: 0.4em; }
  }
  .section__head .eyebrow { margin-bottom: 1.25rem; }

  .grid { display: grid; gap: var(--gap); }
  .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)); }
  @media (max-width: 899px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 599px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
@layer components {

  /* ---------- Buttons ---------- */
  .btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--text);
    --btn-fill: var(--surface-3);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    padding: 0 1.5rem 0 1.65rem;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    white-space: nowrap;
    isolation: isolate;
    overflow: hidden;
    transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    will-change: transform;
  }
  .btn::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: var(--btn-fill);
    transform: translateY(102%);
    transition: transform 0.55s var(--ease-out);
  }
  .btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
  .btn:active { transform: scale(0.98); }
  .btn__arrow { width: 1.05em; height: 1.05em; flex: none; transition: transform 0.55s var(--ease-out); }
  .btn:hover .btn__arrow--ne { transform: translate(3px, -3px); }
  .btn:hover .btn__arrow--e { transform: translateX(4px); }

  .btn--primary { --btn-bg: var(--accent); --btn-fg: #fff; --btn-fill: var(--accent-2); }
  .btn--ghost { --btn-bg: transparent; --btn-fill: var(--accent); border-color: var(--accent); color: var(--text); }
  .btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; border-color: var(--accent); }
  .btn--whatsapp { --btn-bg: transparent; --btn-fill: var(--whatsapp); border-color: var(--line-2); }
  .btn--whatsapp:hover, .btn--whatsapp:focus-visible { color: #ffffff; border-color: var(--whatsapp); }
  .btn--whatsapp .btn__icon { width: 1.15em; height: 1.15em; color: var(--whatsapp); transition: color var(--dur); }
  .btn--whatsapp:hover .btn__icon { color: #ffffff; }
  .btn--sm { min-height: 2.75rem; padding: 0 1.15rem 0 1.25rem; font-size: 0.875rem; }
  .btn--lg { min-height: 3.75rem; padding: 0 1.9rem 0 2.1rem; font-size: 1.05rem; }
  .btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

  .link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
  }
  .link-arrow svg { width: 1em; height: 1em; transition: transform 0.5s var(--ease-out); }
  .link-arrow:hover svg { transform: translate(3px, -3px); }
  .link-arrow::after {
    content: "";
    position: absolute;
    left: 0; bottom: -3px;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
  }
  .link-arrow:hover::after { transform: scaleX(1); transform-origin: left; }

  /* ---------- Logo ---------- */
  .logo { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); }
  .logo__mark { width: 2rem; height: 2rem; flex: none; }
  .logo__text { display: grid; line-height: 1; }
  .logo__word {
    font-stretch: 115%;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  .logo__sub {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-top: 0.3rem;
  }

  /* ---------- Nav ---------- */
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding-block: 1.35rem;
    transition: transform 0.7s var(--ease-out), padding 0.45s var(--ease-out), background-color 0.45s, border-color 0.45s;
    border-bottom: 1px solid transparent;
  }
  .nav { background: var(--chrome); }
  .nav.is-scrolled {
    padding-block: 0.8rem;
    border-color: var(--line-accent);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  }
  .nav.is-hidden { transform: translateY(-100%); }
  .nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .nav__links { display: flex; gap: 2.25rem; }
  .nav__link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    padding-block: 0.3rem;
    transition: color var(--dur-fast);
  }
  .nav__link:hover, .nav__link[aria-current="page"] { color: var(--text); }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out);
  }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
  .nav__right { display: flex; align-items: center; gap: 1.5rem; }
  .nav__phone {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--dur-fast);
  }
  .nav__phone:hover { color: var(--text); }
  .nav__phone svg { width: 0.9rem; height: 0.9rem; color: var(--accent); }
  .nav__burger {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    position: relative;
  }
  .nav__burger span {
    position: absolute;
    left: 13px; width: 18px; height: 1.5px;
    background: var(--text);
    transition: transform 0.45s var(--ease-out), opacity 0.3s;
  }
  .nav__burger span:nth-child(1) { transform: translateY(-4px); }
  .nav__burger span:nth-child(2) { transform: translateY(4px); }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }
  @media (max-width: 1100px) { .nav__phone { display: none; } }
  @media (max-width: 899px) {
    .nav__links { display: none; }
    .nav__burger { display: inline-flex; }
    .nav__right { gap: 0.75rem; }
  }
  @media (max-width: 480px) { .nav__cta { display: none; } }

  /* ---------- Mobile menu ---------- */
  .menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: var(--bg);
    display: grid;
    grid-template-rows: 1fr auto;
    padding: calc(var(--nav-h) + 1rem) var(--pad) 2rem;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    overflow: hidden;
  }
  .menu.is-open { visibility: visible; }
  .menu__links { display: grid; align-content: center; }
  .menu__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-block: 0.35em;
    border-bottom: 1px solid var(--line);
    font-size: clamp(2.5rem, 11vw, 4.75rem);
  }
  .menu__link small {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    color: var(--text-3);
  }
  .menu__meta {
    display: grid;
    gap: 1rem;
    padding-top: 1.5rem;
  }
  .menu__meta > a { color: var(--text-2); }  /* direct child only — must not clobber .btn */
  .menu__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

  /* ---------- Loader / curtain ---------- */
  .loader {
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: var(--blue-deep);
    color: #fff;
    display: grid;
    place-items: center;
    /* No-JS safety: leave regardless after 2.4s. main.js cancels this by adding html.js */
    animation: loader-fallback 0.6s 2.4s var(--ease-in-out) forwards;
  }
  html.js .loader { animation: none; }
  .loader__inner { display: grid; gap: 1.25rem; justify-items: center; }
  .loader__wordmark {
    font-stretch: 115%;
    font-weight: 700;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
  }
  .loader__line { width: 140px; height: 1px; background: rgba(255,255,255,.18); overflow: hidden; }
  .loader__line i {
    display: block;
    height: 100%;
    background: var(--accent-bright);
    transform-origin: left;
    transform: scaleX(0);
    animation: loader-line 1.1s var(--ease-out) forwards;
  }
  @keyframes loader-line { to { transform: scaleX(1); } }
  @keyframes loader-fallback { to { transform: translateY(-101%); visibility: hidden; } }

  .curtain {
    position: fixed;
    inset: 0;
    z-index: 9700;
    background: var(--blue-deep);
    transform: translateY(101%);
    pointer-events: none;
  }

  /* ---------- Cursor ---------- */
  .cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 9500;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    translate: -50% -50%;
    pointer-events: none;
    display: none;
    opacity: 0;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, opacity 0.3s;
  }
  @media (pointer: fine) { html.has-cursor .cursor { display: block; } }
  .cursor.is-on { opacity: 1; }
  .cursor.is-hover { width: 40px; height: 40px; background: var(--accent-soft); border: 1px solid var(--accent); }
  .cursor.is-drag { width: 76px; height: 76px; background: var(--accent); }
  .cursor.is-hidden { opacity: 0; }
  .cursor__label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transition: opacity 0.25s;
  }
  .cursor.is-drag .cursor__label { opacity: 1; }

  /* ---------- Skip link ---------- */
  .skip-link {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 600;
    transform: translateY(-200%);
  }
  .skip-link:focus { transform: none; }

  /* ---------- Compare (before / after) ---------- */
  .compare {
    --pos: 50;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface);
    user-select: none;
    -webkit-user-select: none;
    isolation: isolate;
  }
  .compare__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .compare__img--after { clip-path: inset(0 0 0 calc(var(--pos) * 1%)); }
  .compare__handle {
    position: absolute;
    top: 0; bottom: 0;
    left: calc(var(--pos) * 1%);
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 22px 3px var(--accent-glow);
    transform: translateX(-50%);
    pointer-events: none;
  }
  .compare__grip {
    position: absolute;
    top: 50%; left: 50%;
    translate: -50% -50%;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--accent);
    display: grid;
    place-items: center;
    color: var(--text);
  }
  .compare__grip svg { width: 22px; height: 22px; }
  /* These overlay photography in both light and dark sections, so they keep a
     fixed dark chip instead of following the surrounding surface tokens. */
  .compare__label {
    position: absolute;
    top: 1rem;
    padding: 0.45em 0.75em;
    border-radius: var(--r-sm);
    background: rgba(0, 0, 0, 0.74);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    pointer-events: none;
  }
  .compare__label--before { left: 1rem; }
  .compare__label--after { right: 1rem; color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }
  .compare__range {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
    z-index: 2;
  }
  .compare__range:focus-visible ~ .compare__handle { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent), 0 0 22px 3px var(--accent-glow); }
  .compare--cinema { aspect-ratio: 16 / 9; border-radius: var(--r-xl); }
  @media (max-width: 899px) { .compare--cinema { aspect-ratio: 4 / 3; border-radius: var(--r-lg); } }


  /* ---------- Compare: touch ergonomics ----------
     Fingers are far less precise than a cursor, so the handle grows, gains a
     visible track, and takes a wider invisible grab area on coarse pointers. */
  @media (pointer: coarse) {
    .compare__grip { width: 64px; height: 64px; border-width: 2px; }
    .compare__grip svg { width: 28px; height: 28px; }
    .compare__handle { width: 3px; }
    .compare__grip::after {
      content: "";
      position: absolute;
      inset: -22px;
      border-radius: 50%;
    }
    .compare__label { font-size: 0.62rem; padding: 0.4em 0.6em; top: 0.75rem; }
    .compare__label--before { left: 0.75rem; }
    .compare__label--after { right: 0.75rem; }
  }
  /* Persistent affordance so it reads as draggable without a hover state. */
  .compare__hint {
    position: absolute;
    left: 50%;
    bottom: 0.9rem;
    translate: -50% 0;
    z-index: 3;
    display: none;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4em 0.8em;
    border-radius: var(--r-pill);
    background: rgba(0, 0, 0, 0.74);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
  }
  @media (pointer: coarse) { .compare__hint { display: inline-flex; } }
  .compare.is-touched .compare__hint { opacity: 0; }
  .compare__hint svg { width: 0.95em; height: 0.95em; }

  /* ---------- Ticker ---------- */
  .ticker {
    border-block: 1px solid var(--line);
    overflow: hidden;
    padding-block: 1.05rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .ticker__track {
    display: flex;
    width: max-content;
    animation: ticker 48s linear infinite;
  }
  .ticker:hover .ticker__track { animation-play-state: paused; }
  .ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 1.75rem;
    padding-right: 1.75rem;
    white-space: nowrap;
  }
  .ticker__item::after {
    content: "";
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
  }
  @keyframes ticker { to { transform: translateX(-50%); } }

  /* ---------- Stats ---------- */
  .stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line-accent);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-2);
  }
  .stat { padding: clamp(1.5rem, 2.5vw, 2.5rem); border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .stat__value {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-stretch: 112%;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: flex-start;
    gap: 0.05em;
  }
  .stat__value sup { font-size: 0.42em; color: var(--accent); line-height: 1; margin-top: 0.15em; }
  .stat__label { color: var(--text-2); margin-top: 0.75rem; font-size: 0.92rem; line-height: 1.4; }
  @media (max-width: 899px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  }

  /* ---------- Chips ---------- */
  .chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.15rem;
    min-height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    color: var(--text-2);
    transition: border-color var(--dur), color var(--dur), background-color var(--dur);
  }
  .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .chip:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

  /* ---------- Stars ---------- */
  .stars { display: inline-flex; gap: 0.15em; color: var(--gold); }
  .stars svg { width: 1.05em; height: 1.05em; }

  /* ---------- Cards ---------- */
  .card {
    background: var(--bg-2);
    border: 1px solid var(--line-accent);
    border-radius: var(--r-lg);
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
  }

  /* ---------- Tag ---------- */
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.35em 0.7em;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--line-2);
    color: var(--text-3);
  }
  .tag--warn { color: #8a5a00; border-color: rgba(138, 90, 0, 0.35); }

  /* ---------- Floating WhatsApp ---------- */
  .fab {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 52px;
    padding: 0.75rem 1.15rem 0.75rem 0.9rem;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, var(--surface-2) 90%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    transform: translateY(160%);
    transition: transform 0.7s var(--ease-out), border-color var(--dur), background-color var(--dur);
  }
  .fab.is-visible { transform: none; }
  .fab { border-color: var(--line-accent); }
  .fab:hover { border-color: var(--whatsapp); }
  .fab svg { width: 24px; height: 24px; color: var(--whatsapp); flex: none; }
  .fab__pulse {
    position: absolute;
    left: 0.9rem; top: 50%;
    width: 24px; height: 24px;
    margin-top: -12px;
    border-radius: 50%;
    border: 1px solid var(--whatsapp);
    animation: fab-pulse 2.4s var(--ease-out) infinite;
    pointer-events: none;
  }
  @keyframes fab-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }
  @media (max-width: 599px) {
    .fab { padding: 0.8rem; width: 52px; justify-content: center; }
    .fab span { display: none; }
    .fab__pulse { left: 50%; margin-left: -12px; }
  }

  /* ---------- Forms ---------- */
  .form { display: grid; gap: 1.35rem; position: relative; }
  .form__row { display: grid; gap: 1.35rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 599px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
  .field { display: grid; gap: 0.55rem; position: relative; }
  .field__label { font-size: 0.875rem; font-weight: 500; color: var(--text-2); display: flex; justify-content: space-between; }
  .field__label b { color: var(--accent-ink); font-weight: 500; }
  .field__label small { color: var(--text-3); font-weight: 400; }
  .field__input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.9rem 1.05rem;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    color: var(--text);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
  }
  .field__input:hover { border-color: var(--line-2); }
  .field__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--bg-2); }
  .field__input::placeholder { color: var(--text-3); }
  textarea.field__input { min-height: 9.5rem; resize: vertical; line-height: 1.55; }
  select.field__input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23edf1f7' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
  }
  select.field__input option { background: var(--surface-2); color: var(--text); }
  .field.is-invalid .field__input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.12); }
  .field__error { font-size: 0.8rem; color: var(--danger); display: none; }
  .field.is-invalid .field__error { display: block; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

  .upload {
    position: relative;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-md);
    padding: 1.5rem;
    text-align: center;
    color: var(--text-2);
    background: var(--surface);
    transition: border-color var(--dur-fast), background-color var(--dur-fast);
  }
  .upload:hover, .upload.is-drag { border-color: var(--accent); background: var(--accent-soft); }
  .upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .upload__icon { width: 1.75rem; height: 1.75rem; color: var(--accent); margin: 0 auto 0.65rem; }
  .upload__text { font-size: 0.92rem; }
  .upload__text b { color: var(--text); font-weight: 600; }
  .upload__hint { font-size: 0.78rem; color: var(--text-3); margin-top: 0.3rem; }
  .upload__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
  .upload__grid:empty { display: none; }
  .upload__thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .upload__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .upload__remove {
    position: absolute;
    top: 0.35rem; right: 0.35rem;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(12, 14, 18, 0.8);
    color: #fff;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
  }
  .upload__remove svg { width: 14px; height: 14px; }
  .upload__size {
    position: absolute;
    left: 0.35rem; bottom: 0.35rem;
    padding: 0.2em 0.45em;
    border-radius: 4px;
    background: rgba(12, 14, 18, 0.8);
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    color: var(--text-2);
  }

  .check { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }
  .check input { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; }
  .check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
  .check a:hover { text-decoration-color: var(--accent); }

  .form__foot { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
  .form__note { font-size: 0.82rem; color: var(--text-3); }
  .form__status {
    display: none;
    padding: 1rem 1.2rem;
    border-radius: var(--r-md);
    border: 1px solid rgba(198, 40, 40, 0.35);
    background: rgba(198, 40, 40, 0.07);
    color: #a01c1c;
    font-size: 0.95rem;
  }
  .form__status.is-visible { display: block; }
  .form__success {
    display: none;
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(15, 122, 79, 0.32);
    background: rgba(15, 122, 79, 0.06);
    border-radius: var(--r-lg);
  }
  .form__success .h3 { margin-block: 1rem 0.75rem; }
  .form__success svg { width: 2.25rem; height: 2.25rem; color: var(--success); }
  .form.is-sent > :not(.form__success) { display: none; }
  .form.is-sent .form__success { display: block; }

  /* ---------- Details list ---------- */
  .details { display: grid; }
  .detail {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.25rem;
    border-top: 1px solid var(--line);
  }
  .detail:last-child { border-bottom: 1px solid var(--line); }
  .detail dt {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    padding-top: 0.25rem;
  }
  .detail dd a { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color var(--dur-fast); }
  .detail dd a:hover { border-color: var(--accent); }
  .hours { display: grid; gap: 0.35rem; max-width: 22rem; }
  .hours div { display: flex; justify-content: space-between; gap: 1rem; }
  .hours .closed { color: var(--text-3); }
  .hours .today { color: var(--accent-2); }

  /* ---------- Map ---------- */
  .map {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .map iframe {
    width: 100%; height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9) brightness(0.9);
  }
  .map__facade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 40px 40px;
  }
  .map__facade::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 60%);
  }
  .map__facade-inner { position: relative; display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem; }
  .map__pin { width: 2.5rem; height: 2.5rem; color: var(--accent); }
  .map.is-loaded .map__facade { display: none; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
@layer sections {

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding-top: calc(var(--nav-h) + 3vw);
    overflow: clip;
    isolation: isolate;
  }
  .hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  .hero__lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: clamp(56px, 7vw, 120px) clamp(56px, 7vw, 120px);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, #000 20%, transparent 80%);
  }
  .hero__glow {
    position: absolute;
    width: 62vw; height: 62vw;
    max-width: 900px; max-height: 900px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(225, 29, 46, 0.20), rgba(225, 29, 46, 0.06) 45%, transparent 72%);
    filter: blur(30px);
    top: -22vw; right: -14vw;
    will-change: transform;
    animation: glow-drift 18s ease-in-out infinite alternate;
  }
  .hero__glow--2 {
    width: 40vw; height: 40vw;
    top: auto; bottom: 10%; left: -18vw; right: auto;
    background: radial-gradient(closest-side, rgba(225, 29, 46, 0.13), transparent 70%);
    animation-duration: 24s;
    animation-delay: -8s;
  }
  @keyframes glow-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6vw, 5vw, 0) scale(1.08); }
  }
  .hero__content { display: grid; align-content: end; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
  .hero__eyebrow { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
  .hero__title {
    font-size: var(--fs-hero);
    font-stretch: 114%;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.94;
    text-wrap: balance;
    max-width: 14ch;
  }
  .hero__title em { font-style: normal; color: var(--accent-ink); }
  .hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--gap);
    align-items: end;
  }
  .hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
  .hero__spec {
    display: grid;
    outline: 1px solid var(--line-accent);
    outline-offset: 3px;
    gap: 0.9rem;
    justify-self: end;
    width: min(100%, 22rem);
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
  }
  .hero__spec-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .hero__spec-row + .hero__spec-row { padding-top: 0.9rem; border-top: 1px solid var(--line); }
  .hero__spec-row .mono { color: var(--text-3); }
  .hero__spec-row strong { font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
  .live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--accent-soft); flex: none; }
  .live--inline { margin-right: 0.55em; vertical-align: middle; }
  .live--closed { background: var(--text-3); box-shadow: none; }
  .hero__visual { position: relative; }
  .hero__visual .compare { box-shadow: var(--shadow-lg); }
  .hero__caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1rem 0;
    color: var(--text-3);
  }
  .hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-3);
  }
  .hero__scroll i {
    display: block;
    width: 1px; height: 2.5rem;
    background: var(--line-2);
    position: relative;
    overflow: hidden;
  }
  .hero__scroll i::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform-origin: top;
    animation: scroll-hint 2.2s var(--ease-in-out) infinite;
  }
  @keyframes scroll-hint {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }
  @media (max-width: 899px) {
    .hero__row { grid-template-columns: minmax(0, 1fr); }
    .hero__spec { justify-self: start; }
    .hero__title { max-width: none; }
  }


  /* The landing hero sits on white; the inner page-heroes keep the deep ground,
     so the dark-only treatments are scoped rather than global. */
  [data-surface="deep"] .hero__glow {
    background: radial-gradient(closest-side, rgba(255, 42, 60, 0.30), rgba(225, 29, 46, 0.10) 45%, transparent 72%);
  }
  [data-surface="deep"] .hero__glow--2 {
    background: radial-gradient(closest-side, rgba(255, 42, 60, 0.16), transparent 70%);
  }
  [data-surface="deep"] .hero__spec {
    background: rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: none;
  }


  /* ---------- Hero with workshop photography ----------
     The premises shot is bright and busy, so a deep scrim carries the type.
     It is weighted to the left, where the headline sits, and lightens toward
     the right so the building and signage stay readable. */
  .hero--photo .hero__bg { overflow: hidden; }
  .hero__photo {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero/workshop-exterior.webp");
    background-size: cover;
    background-position: 52% 38%;
    background-repeat: no-repeat;
    transform: scale(1.04);
  }
  .hero__scrim {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(97deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.80) 40%,
        rgba(0, 0, 0, 0.52) 68%,
        rgba(0, 0, 0, 0.28) 100%),
      linear-gradient(180deg,
        rgba(0, 0, 0, 0.42) 0%,
        rgba(0, 0, 0, 0.00) 40%,
        rgba(0, 0, 0, 0.38) 100%);
  }
  @media (max-width: 899px) {
    /* Portrait crops the photo hard, so lean on the scrim rather than the view. */
    .hero__photo { background-position: 58% 46%; }
    .hero__scrim {
      background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.82) 45%, rgba(0, 0, 0, 0.93) 100%);
    }
  }
  /* The panel sits over photography here, so it needs more body than on a flat ground. */
  .hero--photo .hero__spec {
    background: rgba(0, 0, 0, 0.62);
    border-color: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    backdrop-filter: blur(14px) saturate(120%);
  }

  /* ---------- Services (editorial rows + floating media) ---------- */
  .services { position: relative; }
  .service-rows { position: relative; }
  .service-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1.05fr) minmax(0, 0.95fr) 3rem;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    align-items: start;
    padding-block: clamp(1.75rem, 3vw, 2.75rem);
    border-top: 1px solid var(--line);
    color: var(--text);
    transition: padding 0.5s var(--ease-out);
  }
  .service-row:last-child { border-bottom: 1px solid var(--line); }
  .service-row:first-child { border-top-color: var(--line-accent); }
  .service-row::after {
    content: "";
    position: absolute;
    left: 0; top: -1px;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s var(--ease-out);
  }
  .service-row:hover::after, .service-row:focus-within::after { transform: scaleX(1); }
  .service-row__num {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    color: var(--text-3);
    padding-top: 0.6em;
  }
  .service-row__title {
    font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
    font-stretch: 110%;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    transition: transform 0.6s var(--ease-out), color 0.3s;
  }
  .service-row:hover .service-row__title { transform: translateX(0.35rem); }
  .service-row__desc { color: var(--text-2); margin-top: 0.9rem; max-width: 30em; font-size: 0.98rem; }
  .service-row__list { display: flex; flex-wrap: wrap; gap: 0.5rem 0.65rem; padding-top: 0.5em; }
  .service-row__list li {
    font-size: 0.85rem;
    color: var(--text-2);
    padding: 0.4em 0.75em;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    transition: border-color var(--dur), color var(--dur);
  }
  .service-row:hover .service-row__list li { border-color: var(--line-2); color: var(--text); }
  .service-row__arrow {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--text);
    justify-self: end;
    transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform 0.6s var(--ease-out);
  }
  .service-row__arrow svg { width: 1.1rem; height: 1.1rem; transition: transform 0.6s var(--ease-out); }
  .service-row:hover .service-row__arrow { background: var(--accent); border-color: var(--accent); color: #fff; }
  .service-row:hover .service-row__arrow svg { transform: translate(2px, -2px); }
  .services__media {
    position: absolute;
    top: 0; left: 0;
    z-index: 20;
    outline: 1px solid var(--line-accent);
    outline-offset: 2px;
    width: clamp(260px, 24vw, 400px);
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line-2);
    display: none;
  }
  @media (min-width: 1000px) and (pointer: fine) { .services__media { display: block; } }
  .services__media img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
  }
  .services__media img.is-active { opacity: 1; }
  .services__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
    color: var(--text-2);
  }
  @media (max-width: 899px) {
    .service-row { grid-template-columns: 3rem minmax(0, 1fr) 2.75rem; }
    .service-row__list { grid-column: 2 / -1; }
    .service-row__arrow { width: 2.75rem; height: 2.75rem; }
  }
  @media (max-width: 599px) {
    .service-row { grid-template-columns: minmax(0, 1fr) 2.75rem; }
    .service-row__num { grid-column: 1; padding-top: 0; }
    .service-row__arrow { grid-row: 1 / span 2; grid-column: 2; }
    .service-row__list { grid-column: 1 / -1; }
  }

  /* ---------- Work (horizontal, pinned on desktop) ---------- */
  .work { overflow: clip; }
  .work__head { padding-bottom: clamp(2rem, 4vw, 3rem); }
  .work__pin { position: relative; display: grid; align-content: center; gap: 2rem; }
  @media (min-width: 900px) { .work__pin { height: 100svh; } }
  .work__track {
    display: flex;
    gap: clamp(1.25rem, 2vw, 2rem);
    width: max-content;
    padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2));
    will-change: transform;
  }
  .work-card { flex: none; width: clamp(320px, 38vw, 580px); }
  .work-card .compare { aspect-ratio: 4 / 3; }
  .work-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
  }
  .work-card__title { margin-top: 0.4rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
  .work-card--end {
    display: grid;
    align-content: center;
    gap: 1.25rem;
    padding: clamp(2rem, 3vw, 3rem);
    border: 1px dashed var(--line-accent);
    border-radius: var(--r-lg);
    width: clamp(280px, 26vw, 400px);
    aspect-ratio: 4 / 3;
  }
  .work__progress {
    height: 1px;
    background: var(--line);
    width: min(100% - (var(--pad) * 2), var(--container));
    margin-inline: auto;
    overflow: hidden;
  }
  .work__progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
  @media (max-width: 899px) {
    /* A horizontal carousel fought the compare slider for the same swipe, so on
       touch the cards stack and a sideways drag can only mean the slider. */
    .work__track {
      width: auto;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: clamp(2rem, 6vw, 3rem);
      overflow: visible;
      padding-inline: var(--pad);
    }
    .work-card { width: auto; }
    .work-card--end { width: auto; aspect-ratio: auto; padding: 2rem 1.5rem; }
    .work__progress { display: none; }
  }

  /* ---------- Process ---------- */
  .process__grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
  .process__line { position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line); }
  .process__line i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
  .step { position: relative; padding-top: 2.25rem; }
  .step::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
  }
  .step__num { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; color: var(--accent-ink); }
  .step__title { margin-top: 0.75rem; font-size: 1.35rem; }
  .step__text { color: var(--text-2); margin-top: 0.75rem; font-size: 0.98rem; }
  @media (max-width: 899px) {
    .process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process__line { display: none; }
  }
  @media (max-width: 599px) { .process__grid { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- Why ---------- */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line-accent);
    border-radius: var(--r-lg);
    overflow: hidden;
  }
  .why-card {
    background: var(--bg);
    padding: clamp(1.75rem, 2.5vw, 2.5rem);
    min-height: 17rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    transition: background-color 0.5s var(--ease-out);
    position: relative;
    overflow: hidden;
  }
  .why-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--accent-soft), transparent);
    opacity: 0;
    transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
    transform: scale(0.6);
    pointer-events: none;
  }
  .why-card:hover { background: var(--bg-2); }
  .why-card:hover::after { opacity: 1; transform: scale(1); }
  .why-card__icon { width: 2.25rem; height: 2.25rem; color: var(--accent); }
  .why-card__title { font-size: 1.3rem; }
  .why-card__text { color: var(--text-2); margin-top: 0.6rem; font-size: 0.95rem; }
  @media (max-width: 899px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 599px) { .why-grid { grid-template-columns: minmax(0, 1fr); } .why-card { min-height: 0; gap: 1.25rem; } }

  /* ---------- Reviews ---------- */
  .reviews__summary { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
  .reviews__score {
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-stretch: 114%;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.9;
    font-variant-numeric: tabular-nums;
  }
  .reviews__meta { display: grid; gap: 0.5rem; }
  .reviews__meta .stars { font-size: 1.25rem; }
  /* One long review + two short ones. A 3-up equal grid would either stretch the
     short cards over dead space or clip the long one, so the longest is featured. */
  .review-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 1.25rem; align-items: start; }
  .review-card--feature { grid-row: span 2; }
  .review-card--feature .review-card__text { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }
  .review-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-2);
    transition: border-color var(--dur), transform 0.6s var(--ease-out);
  }
  .review-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
  .review-card__text { font-size: 1.08rem; line-height: 1.5; text-wrap: pretty; }
  .review-card__lead { display: block; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
  .review-card__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: auto; padding-top: 0.25rem; }
  .review-card__who { display: grid; gap: 0.3rem; min-width: 0; }
  .review-card__name { font-weight: 600; font-size: 0.95rem; }
  .review-card__badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: var(--text-3); }
  .review-card__guide { width: 0.95em; height: 0.95em; color: var(--accent); flex: none; }
  .review-card__src { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
  @media (max-width: 899px) {
    .review-grid { grid-template-columns: minmax(0, 1fr); }
    .review-card--feature { grid-row: auto; }
  }


  /* ---------- Google review cards ----------
     Colours here are Google's own (#dadce0 rule, #202124 name, #70757a meta,
     #3c4043 body, #fbbc04 stars) on purpose: the card should read as a Google
     review, so it deliberately does NOT inherit the surrounding surface tokens. */
  .g-reviews { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 1.15rem; align-items: start; }
  .g-review {
    background: #ffffff;
    border: 1px solid #dadce0;
    outline: 1px solid var(--line-accent);
    outline-offset: 3px;
    border-radius: 12px;
    padding: clamp(1.15rem, 2vw, 1.6rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .g-review:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .g-review--feature { grid-row: span 2; }
  .g-review__top { display: flex; align-items: center; gap: 0.8rem; }
  .g-review__avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1;
  }
  .g-review__who { display: grid; gap: 0.12rem; min-width: 0; }
  .g-review__name { font-size: 0.95rem; font-weight: 600; color: #202124; letter-spacing: -0.005em; }
  .g-review__sub { font-size: 0.78rem; color: #70757a; display: inline-flex; align-items: center; gap: 0.35rem; }
  .g-review__guide { width: 0.95em; height: 0.95em; color: #1a73e8; flex: none; }
  .g-review__g { margin-left: auto; width: 20px; height: 20px; flex: none; align-self: flex-start; }
  .g-review__rating { display: flex; align-items: center; gap: 0.65rem; }
  .g-review__rating .stars { color: #fbbc04; font-size: 1.05rem; }
  .g-review__date { font-size: 0.78rem; color: #70757a; }
  .g-review__text { font-size: 0.95rem; line-height: 1.6; color: #3c4043; text-wrap: pretty; }
  .g-review--feature .g-review__text { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem); }
  .g-review__lead { display: block; font-weight: 600; color: #202124; margin-bottom: 0.4rem; }
  @media (max-width: 899px) {
    .g-reviews { grid-template-columns: minmax(0, 1fr); }
    .g-review--feature { grid-row: auto; }
  }

  .g-summary { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); flex-wrap: wrap; }
  .g-summary__score { font-size: clamp(3.25rem, 6vw, 5rem); font-stretch: 114%; font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
  .g-summary__meta { display: grid; gap: 0.45rem; }
  .g-summary__meta .stars { font-size: 1.3rem; }
  .g-summary__on { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; color: var(--text-2); }
  .g-summary__on svg { width: 1.05rem; height: 1.05rem; flex: none; }

  /* ---------- Areas ---------- */
  .areas__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
  .areas__map { position: relative; }
  .areas__map svg { width: 100%; height: auto; }
  .areas__map .ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
  .areas__map .ring--dash { stroke-dasharray: 2 6; stroke: var(--line); }
  .areas__map .spoke { stroke: var(--line); stroke-width: 1; }
  .areas__map .town { fill: var(--text); }
  .areas__map .town-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--text-2); }
  .areas__map .home { fill: var(--accent); }
  .areas__map .home-pulse { fill: none; stroke: var(--accent); stroke-width: 1; transform-origin: 300px 300px; animation: map-pulse 3s var(--ease-out) infinite; }
  .areas__map .sweep {
    fill: url(#sweepGrad);
    transform-origin: 300px 300px;
    animation: map-sweep 9s linear infinite;
    opacity: 0.9;
  }
  @keyframes map-pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(6); opacity: 0; } }
  @keyframes map-sweep { to { transform: rotate(360deg); } }
  .areas__list { display: grid; gap: 2rem; }
  @media (max-width: 899px) { .areas__grid { grid-template-columns: minmax(0, 1fr); } .areas__map { max-width: 520px; margin-inline: auto; } }

  /* ---------- CTA band ---------- */
  .cta-band {
    position: relative;
    padding-block: clamp(6rem, 12vw, 11rem);
    overflow: clip;
    isolation: isolate;
  }
  .cta-band__glow {
    position: absolute;
    left: 50%; bottom: -40%;
    width: 80vw; height: 60vw;
    max-width: 1200px;
    translate: -50% 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
  }
  .cta-band__inner { display: grid; gap: 2.5rem; }
  .cta-band__title { font-size: var(--fs-h1); max-width: 14ch; }
  .cta-band__row { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; }
  .cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
  .cta-band__phone {
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: 0.04em;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
  }
  .cta-band__phone svg { width: 1.1em; height: 1.1em; color: var(--accent); }
  .cta-band__phone small { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

  /* ---------- Footer ---------- */
  .footer { border-top: 0; padding-block: clamp(3rem, 6vw, 5rem) 1.5rem; overflow: clip; }
  .footer__grid { display: grid; grid-template-columns: 1.6fr 0.8fr 1fr 1.3fr; gap: var(--gap); }
  .footer__brand p { color: var(--text-2); margin-top: 1.25rem; max-width: 28em; font-size: 0.95rem; }
  .footer__col h4 {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.1rem;
  }
  .footer__col a, .footer__col address { display: block; color: var(--text-2); padding-block: 0.28rem; font-size: 0.95rem; transition: color var(--dur-fast); }
  .footer__col a:hover { color: var(--text); }
  .footer__hours { display: grid; gap: 0.2rem; margin-top: 0.6rem; font-size: 0.9rem; color: var(--text-2); }
  .footer__hours div { display: flex; justify-content: space-between; gap: 1rem; }
  .footer__big {
    font-size: clamp(3.5rem, 12.5vw, 13rem);
    font-stretch: 118%;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.82;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.06);
    margin-top: clamp(3rem, 6vw, 5rem);
    white-space: nowrap;
    user-select: none;
  }
  .footer__legal {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    font-size: 0.78rem;
    color: var(--text-3);
    line-height: 1.5;
  }
  .footer__legal a { color: var(--text-3); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
  .footer__legal a:hover { color: var(--text-2); }
  @media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
  @media (max-width: 599px) { .footer__grid { grid-template-columns: 1fr; } }

  /* ---------- Page hero (inner pages) ---------- */
  .page-hero {
    position: relative;
    padding-top: calc(var(--nav-h) + 6vw);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    overflow: clip;
    isolation: isolate;
  }
  .page-hero__title { font-size: var(--fs-h1); max-width: 16ch; margin-top: 1.5rem; }
  /* Top-aligned: the lead sits directly under the headline rather than being
     pushed down to bottom-align against a taller spec panel. */
  .page-hero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--gap); align-items: start; margin-top: 2rem; }
  .page-hero__row .hero__spec { justify-self: end; }
  @media (max-width: 899px) { .page-hero__row { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- About: story ---------- */
  .story { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: var(--gap); align-items: start; }
  .story__pull {
    font-size: clamp(1.5rem, 1rem + 1.7vw, 2.5rem);
    font-stretch: 106%;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-wrap: balance;
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }
  .story__pull em { font-style: normal; color: var(--accent); }
  .story__body { color: var(--text-2); font-size: 1.08rem; line-height: 1.7; }
  .story__body p + p { margin-top: 1.35rem; }
  .story__body strong { color: var(--text); font-weight: 600; }
  .story__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
  .fact { padding: 1.25rem; border: 1px solid var(--line-accent); border-radius: var(--r-md); background: var(--bg-2); }
  .fact__label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
  .fact__value { margin-top: 0.4rem; font-weight: 600; color: var(--text); font-size: 1rem; }
  @media (max-width: 899px) { .story { grid-template-columns: minmax(0, 1fr); } .story__pull { position: static; } }

  /* ---------- About: gallery ---------- */
  .gallery-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); max-width: 60rem; margin-inline: auto; }
  .gallery-grid figure {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--surface);
    grid-column: span 12;
    border: 1px solid var(--line-accent);
  }
  .gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
  .gallery-grid figcaption {
    position: absolute;
    left: 1rem; bottom: 1rem;
    padding: 0.45em 0.75em;
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-2);
  }
  @media (min-width: 700px) {
    .gallery-grid .g-wide { grid-column: span 12; aspect-ratio: 21 / 9; }
    .gallery-grid .g-half { grid-column: span 6; aspect-ratio: 3 / 2; }
  }
  @media (max-width: 699px) { .gallery-grid figure { aspect-ratio: 4 / 3; } }


  /* ---------- Gallery hover ----------
     GSAP owns each image's `transform` for the parallax, so the zoom uses the
     independent `scale` property instead and the two compose cleanly. */
  .gallery-grid figure {
    isolation: isolate;
    transition: transform 0.75s var(--ease-out), box-shadow 0.75s var(--ease-out);
  }
  .gallery-grid figure img { transform: scale(1.01); transition: transform 1.1s var(--ease-out), filter 0.7s var(--ease-out); will-change: transform; }
  .gallery-grid figure::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 42%);
    opacity: 0.85;
    transition: opacity 0.7s var(--ease-out);
  }
  /* Gradient hairline ring, drawn with a mask so only the 1px edge paints. */
  .gallery-grid figure::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(135deg, var(--accent-bright), rgba(255, 255, 255, 0.85) 38%, var(--accent-bright) 72%, rgba(255, 255, 255, 0.5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  @media (hover: hover) {
    .gallery-grid figure:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.42); }
    .gallery-grid figure:hover::after { opacity: 1; }
    .gallery-grid figure:hover::before { opacity: 1; }
    .gallery-grid figure:hover img { transform: scale(1.085); filter: saturate(1.06); }
    .gallery-grid figure:hover figcaption { border-color: var(--accent-bright); color: var(--text); transform: translateY(-2px); }
  }
  .gallery-grid figcaption { z-index: 5; transition: transform 0.6s var(--ease-out), border-color 0.6s, color 0.6s; }
  @media (prefers-reduced-motion: reduce) {
    .gallery-grid figure, .gallery-grid figure img, .gallery-grid figcaption { transition: none; }
    .gallery-grid figure:hover { transform: none; }
    .gallery-grid figure:hover img { transform: scale(1.01); }
  }

  /* ---------- About: values ---------- */
  .values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
  .value { padding: 2rem 1.5rem 2rem 0; border-right: 1px solid var(--line); margin-right: 1.5rem; }
  .value:last-child { border-right: 0; margin-right: 0; }
  .value__num { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.14em; color: var(--accent-ink); }
  .value__title { margin-top: 1.25rem; font-size: 1.3rem; }
  .value__text { margin-top: 0.75rem; color: var(--text-2); font-size: 0.95rem; }
  @media (max-width: 899px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value:nth-child(2) { border-right: 0; } .value { border-bottom: 1px solid var(--line); } .value:nth-last-child(-n + 2) { border-bottom: 0; } }
  @media (max-width: 599px) { .values { grid-template-columns: minmax(0, 1fr); } .value { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); } .value:last-child { border-bottom: 0; } }

  /* ---------- About: team ---------- */
  .team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
  .team--noimage { align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
  .team--noimage .team__list { margin-top: 0; gap: 1.1rem; }
  .team--noimage .team__list li { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
  .team--noimage .team__list li:last-child { border-bottom: 0; padding-bottom: 0; }
  .team__media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface); }
  .team__media img { width: 100%; height: 100%; object-fit: cover; }
  .team__body .lead { margin-top: 1.25rem; }
  .team__list { margin-top: 2rem; display: grid; gap: 0.85rem; }
  .team__list li { display: flex; gap: 0.9rem; align-items: flex-start; color: var(--text-2); }
  .team__list svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex: none; margin-top: 0.15rem; }
  @media (max-width: 899px) { .team { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- Contact ---------- */
  .contact__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .contact__aside { display: grid; gap: 2.5rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .contact__quick { display: grid; gap: 0.75rem; }
  .quick {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line-accent);
    border-radius: var(--r-md);
    background: var(--bg-2);
    transition: border-color var(--dur), background-color var(--dur), transform 0.5s var(--ease-out);
  }
  .quick:hover { border-color: var(--accent); background: var(--surface); transform: translateX(4px); }
  .quick__icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
  .quick__icon svg { width: 1.15rem; height: 1.15rem; }
  .quick__icon--wa { background: rgba(37, 211, 102, 0.12); color: var(--whatsapp); }
  .quick__body { display: grid; gap: 0.1rem; min-width: 0; }
  .quick__label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
  .quick__value { font-weight: 600; color: var(--text); }
  .quick__arrow { margin-left: auto; width: 1rem; height: 1rem; color: var(--text-3); flex: none; }
  @media (max-width: 899px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .contact__aside { position: static; } }

  /* ---------- Legal / prose ---------- */
  .prose { max-width: 42em; color: var(--text-2); font-size: 1.02rem; line-height: 1.7; }
  .prose h2 { color: var(--text); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; }
  .prose p + p { margin-top: 1rem; }
  .prose ul { list-style: disc; padding-left: 1.25rem; margin-top: 0.75rem; }
  .prose li + li { margin-top: 0.35rem; }
  .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
  .prose a:hover { text-decoration-color: var(--accent); }

  /* ---------- 404 ---------- */
  .notfound { min-height: 100svh; display: grid; align-content: center; padding-top: var(--nav-h); position: relative; overflow: clip; isolation: isolate; }
  .notfound__code { font-size: clamp(6rem, 25vw, 22rem); font-stretch: 118%; font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; color: rgba(255, 255, 255, 0.13); }
}

/* ==========================================================================
   MOTION
   ========================================================================== */
@layer motion {
  @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;
    }
    .ticker__track { animation: none; transform: none; }
    .hero__glow { animation: none; }
    .loader { display: none; }
    .fab { transform: none; }
    .areas__map .sweep, .areas__map .home-pulse { animation: none; }
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .mt-1 { margin-top: 0.5rem; }
  .mt-2 { margin-top: 1rem; }
  .mt-3 { margin-top: 1.5rem; }
  .mt-4 { margin-top: 2rem; }
  .mt-6 { margin-top: 3rem; }
  .flow > * + * { margin-top: 1rem; }
  .text-center { text-align: center; }
  .nowrap { white-space: nowrap; }
}
