/* ==========================================================================
   Callegari — construction & design Site Builder template.

   HOW THE COLOURS WORK
   The whole palette comes from three base variables — --brand (PRIMARY),
   --accent (ACCENT) and --ink-deep (DARK) — set by the SITE THEME block in
   components.js. Every other shade is derived here with color-mix(), so
   changing those three lines re-colours the entire site.

   Everything below lives in a cascade layer. Unlayered CSS always beats
   layered CSS, so the SITE THEME injected by components.js wins no matter
   which file loads first, and a <style> block a page adds on top wins too.
   ========================================================================== */

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

@font-face { font-family: "Playfair Display"; src: url("fonts/playfair-display.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---- Reset ---------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
  img, svg, video, iframe { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  app-header, app-footer, app-cta { display: contents; }
  app-social { display: block; }
  [hidden] { display: none !important; }
}

/* ---- Tokens --------------------------------------------------------------- */
@layer tokens {
  :root {
    color-scheme: light;
    /* Fallback base colours — the SITE THEME in components.js overrides these. */
    --brand: #1f3745;
    --accent: #e6b127;
    --ink-deep: #142935;

    --accent-strong: color-mix(in oklab, var(--accent) 78%, #000);
    --accent-tint: color-mix(in oklab, var(--accent) 15%, transparent);
    --accent-glow: color-mix(in oklab, var(--accent) 40%, transparent);
    --brand-strong: color-mix(in oklab, var(--brand) 80%, #000);
    --dark: var(--ink-deep);
    --dark-2: color-mix(in oklab, var(--ink-deep) 82%, #000);
    --ink: var(--ink-deep);
    --text: color-mix(in oklab, var(--ink-deep) 72%, #fff);
    --muted: color-mix(in oklab, var(--ink-deep) 48%, #fff);
    --light: color-mix(in oklab, var(--brand) 10%, #fff);
    --light-2: color-mix(in oklab, var(--brand) 4%, #fff);
    --line: color-mix(in oklab, var(--brand) 13%, #fff);
    --line-strong: color-mix(in oklab, var(--brand) 24%, #fff);
    --on-dark: #fff;
    --on-dark-soft: color-mix(in oklab, #fff 74%, var(--ink-deep));
    --veil: color-mix(in oklab, var(--ink-deep) 62%, transparent);
    /* Text ON a brand / accent fill. Browsers with relative colours pick black or white by lightness. */
    --on-brand: #fff;
    --on-accent: var(--ink-deep);

    --radius: 15px;
    --radius-lg: 20px;
    --shadow: 0 14px 40px color-mix(in oklab, var(--ink-deep) 10%, transparent);
    --shadow-lg: 0 24px 60px color-mix(in oklab, var(--ink-deep) 20%, transparent);
    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --header-h: 90px;
    --ease: cubic-bezier(.22, .61, .36, 1);
  }
  @supports (color: oklch(from red l c h)) {
    :root {
      --on-brand: oklch(from var(--brand) clamp(0, (0.66 - l) * 100, 1) 0 0);
      --on-accent: oklch(from var(--accent) clamp(0, (0.66 - l) * 100, 1) 0 0);
    }
  }
}

/* ---- Base ----------------------------------------------------------------- */
@layer base {
  body { font: 400 16px/1.75 var(--font-body); color: var(--text); background: #fff; overflow-x: hidden; }
  h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; font-weight: 400; }
  p { margin-bottom: 1em; }
  ::selection { background: var(--accent); color: var(--on-accent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  i[data-i] { display: inline-flex; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
  i[data-i] > svg { width: 100%; height: 100%; }
  .skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: 8px 16px; border-radius: 8px; }
  .skip-link:focus { left: 8px; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hp { display: none !important; }
}

/* ---- Layout --------------------------------------------------------------- */
@layer layout {
  .container { width: min(1200px, 100% - 40px); margin-inline: auto; }
  .section { padding: 110px 0; }
  .section--light { background: var(--light); }
  .section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
  .section-head p { margin: 16px 0 0; }
  .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .actions { display: flex; flex-wrap: wrap; gap: 12px; }
  @media (max-width: 991px) { .section { padding: 84px 0; } .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }
}

/* ---- Components ----------------------------------------------------------- */
@layer components {
  .eyebrow { display: inline-block; font-family: var(--font-head); font-size: 16px; letter-spacing: 2px; color: var(--accent-strong); margin-bottom: 12px; }
  .section-title { font-size: clamp(30px, 3.4vw, 44px); }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border: 0; border-radius: var(--radius);
    background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; line-height: 1.2;
    transition: background .25s, transform .25s, box-shadow .25s;
  }
  .btn:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 10px 24px var(--accent-glow); }
  .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
  .btn-navy { background: var(--brand); color: var(--on-brand); }
  .btn-navy:hover { background: var(--brand-strong); box-shadow: 0 10px 24px var(--shadow-ink, rgba(0, 0, 0, .25)); }
  .btn-outline { background: transparent; color: inherit; border: 1.5px solid currentColor; }
  .btn-outline:hover { background: rgba(255, 255, 255, .15); box-shadow: none; }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { background: var(--light); box-shadow: none; }
  .btn-ghost:disabled { visibility: hidden; }
  .btn-ghost-light { background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .35); }
  .btn i[data-i] { font-size: 18px; transition: transform .25s; }
  .btn:hover i[data-i="arrow-right"] { transform: translateX(3px); }
  .icon-btn { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-size: 20px; transition: background .25s, opacity .25s, transform .25s; }
  .icon-btn:hover:not(:disabled) { background: var(--accent); color: var(--on-accent); transform: translateY(-2px); }
  .icon-btn:disabled { opacity: .35; cursor: default; }
  .slider-nav { display: flex; gap: 12px; }
  .check-list { list-style: none; padding: 0; margin: 6px 0 30px; display: grid; gap: 12px; }
  .check-list li { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 600; }
  .check-list i[data-i] { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-strong); }
  .chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid var(--line); border-radius: 40px; background: #fff; font-weight: 600; color: var(--ink); font-size: 15px; transition: border-color .25s, background .25s, color .25s; }
  .chip i[data-i] { font-size: 18px; color: var(--accent-strong); }
  .chip:hover { border-color: var(--accent); }
  .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
  .chip[aria-pressed="true"] i[data-i] { color: var(--accent); }
  .feature-icon { width: 56px; height: 56px; padding: 15px; border-radius: 14px; margin-bottom: 18px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); transition: background .35s, color .35s, transform .5s var(--ease); }
  .feature-icon i[data-i] { width: 26px; height: 26px; }
  .socials { display: flex; flex-wrap: wrap; gap: 12px; }
  .social-link { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); color: var(--on-dark); font-size: 16px; transition: background .25s, border-color .25s, color .25s, transform .25s; }
  .social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-2px); }

  /* header */
  .site-header { position: absolute; inset: 0 0 auto 0; z-index: 60; transition: background .3s, box-shadow .3s; }
  .site-header.is-stuck { position: fixed; background: var(--dark); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); animation: header-in .45s var(--ease); }
  .header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
  .site-header.is-stuck .header-inner { height: 76px; }
  .brand { display: flex; align-items: center; gap: 12px; color: var(--on-dark); flex: none; }
  .brand__mark { width: 40px; height: 40px; color: var(--accent); }
  .brand__mark svg { width: 100%; height: 100%; }
  .brand__name { font-weight: 600; font-size: 20px; letter-spacing: .5px; text-transform: uppercase; line-height: 1.1; }
  .main-nav { margin-left: auto; display: flex; gap: 28px; }
  .main-nav a { position: relative; color: var(--on-dark); font-size: 16px; padding: 6px 0; transition: color .2s; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }
  .main-nav a[aria-current="page"]::after, .main-nav a:hover::after { transform: scaleX(1); }
  .header-cta { padding: 12px 24px; font-size: 16px; }
  .menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: transparent; color: var(--on-dark); font-size: 22px; place-items: center; }

  /* forms */
  .quote-card { background: #fff; color: var(--text); border-radius: var(--radius-lg); padding: 34px 32px 30px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--accent); }
  .quote-card.is-flash { animation: card-flash 1.4s var(--ease); }
  .quote-card h2 { font-size: 28px; font-weight: 600; }
  .quote-card > p { margin: 8px 0 22px; font-size: 15px; }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid .full { grid-column: 1 / -1; }
  .field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--light-2); color: var(--ink); font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; }
  .field textarea { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; }
  .field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; }
  .field input::placeholder, .field textarea::placeholder { color: var(--muted); }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-tint); }
  .field label:not(.sr-only) { display: block; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 6px; }
  .quote-plan { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-tint); color: var(--ink); font-size: 14px; line-height: 1.4; }
  .quote-plan > i[data-i] { color: var(--accent-strong); font-size: 18px; }
  .quote-plan button { margin-left: auto; border: 0; background: none; color: var(--ink); font-size: 16px; padding: 4px; display: grid; }
  .quote-card .btn, .contact-form .btn { width: 100%; margin-top: 4px; }
  .form-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); }
  .form-note i[data-i] { color: var(--accent-strong); }
  .form-status { margin: 10px 0 0; font-size: 14px; min-height: 1.4em; }
  .form-status.is-ok { color: #166534; }
  .form-status.is-err { color: #b91c1c; }
  .form-success { text-align: center; padding: 26px 6px; }
  .form-success .check { width: 68px; height: 68px; padding: 19px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 30px; animation: pop .5s var(--ease); }
  .form-success h3 { font-size: 26px; margin-bottom: 8px; }

  /* cards & carousels */
  .track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 4px 24px; margin: -6px -4px 0; }
  .track::-webkit-scrollbar { display: none; }
  .track > * { scroll-snap-align: start; flex: none; }
  .service-card { display: flex; flex-direction: column; background: linear-gradient(180deg, #fff 0%, var(--light-2) 100%); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
  .track > .service-card { width: calc((100% - 24px) / 2); }
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-top-color: var(--accent); }
  .service-media { position: relative; margin: 14px 14px 0; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--light); }
  .service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
  .service-card:hover .service-media img { transform: scale(1.07); }
  .service-num { position: absolute; left: 12px; bottom: 12px; padding: 4px 12px; border-radius: 30px; background: var(--veil); color: var(--on-dark); font-size: 13px; letter-spacing: 1px; }
  .service-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
  .service-body h3 { font-size: 22px; margin-bottom: 10px; }
  .service-body p { font-size: 15px; line-height: 1.7; }
  .read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent-strong); font-weight: 600; font-size: 15px; }
  .read-more i[data-i] { transition: transform .25s; }
  .service-card:hover .read-more i[data-i] { transform: translateX(4px); }
  .review-card { width: calc((100% - 48px) / 3); position: relative; display: flex; flex-direction: column; padding: 44px 30px 30px; margin-top: 26px; border-radius: var(--radius-lg); background: #fff; border-bottom: 3px solid var(--brand); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s; }
  .review-card:hover { transform: translateY(-6px); border-bottom-color: var(--accent); }
  .quote-badge { position: absolute; top: -26px; left: 30px; width: 54px; height: 54px; padding: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px var(--accent-glow); }
  .review-card blockquote { margin: 8px 0 22px; font-size: 16px; line-height: 1.75; }
  .review-card cite { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-style: normal; font-family: var(--font-head); font-size: 18px; color: var(--ink); }
  .dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
  .dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 10px; background: var(--line-strong); transition: width .3s var(--ease), background .3s; }
  .dot.is-active { width: 30px; background: var(--accent); }
  .value-card { padding: 38px 32px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); border-bottom: 3px solid var(--brand); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
  .value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-bottom-color: var(--accent); }
  .value-card .feature-icon { color: var(--accent-strong); }
  .value-card h3 { font-size: 24px; margin-bottom: 10px; }
  .value-card p { margin: 0; }
  .call-card { position: relative; overflow: hidden; padding: 34px; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark-soft); }
  .call-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 40px solid var(--accent-tint); }
  .call-card h3 { color: var(--on-dark); font-size: 24px; margin-bottom: 6px; }
  .phone-big { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--on-dark); font-size: 22px; font-weight: 600; }
  .phone-big .ring { width: 54px; height: 54px; padding: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); animation: ring 2.4s ease-in-out infinite; }
  .call-card .alt { font-size: 14px; margin: 14px 0 0; }
  .call-card .alt a { color: var(--accent); }
  .call-card .socials { margin-top: 20px; }
  .accordion { display: grid; gap: 14px; }
  .acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .3s, border-color .3s; }
  .acc-item.is-open { border-color: transparent; box-shadow: var(--shadow); }
  .acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border: 0; background: none; text-align: left; font-family: var(--font-head); font-size: 19px; color: var(--ink); }
  .acc-icon { width: 36px; height: 36px; padding: 9px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--light); color: var(--ink); transition: transform .35s var(--ease), background .35s, color .35s; }
  .acc-icon svg { width: 100%; height: 100%; }
  .acc-item.is-open .acc-icon { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
  .acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
  .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
  .acc-panel > div { overflow: hidden; }
  .acc-panel p { margin: 0; padding: 0 24px 22px; font-size: 15px; }
  .lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 30px; background: rgba(0, 0, 0, .9); animation: fade .3s ease; }
  .lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
  .lb-figure img { max-height: calc(100vh - 140px); max-width: 100%; object-fit: contain; border-radius: 12px; animation: fade .35s ease; }
  .lb-figure figcaption { color: #fff; font-family: var(--font-head); font-size: 19px; text-align: center; }
  .lb-figure figcaption small { display: block; font-family: var(--font-body); color: rgba(255, 255, 255, .6); font-size: 14px; }
  .lb-btn { width: 54px; height: 54px; padding: 15px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; transition: background .25s, border-color .25s; }
  .lb-btn svg { width: 100%; height: 100%; }
  .lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  .lb-close { position: absolute; top: 20px; right: 20px; }

  /* footer, quick bar, back to top */
  .site-footer { position: relative; background: var(--dark); color: var(--on-dark-soft); padding-top: 90px; overflow: hidden; }
  .footer-bg { position: absolute; inset: 0; background: url("images/footer-bg.jpg") center bottom / cover no-repeat; opacity: .12; pointer-events: none; }
  .site-footer .container { position: relative; }
  .footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.15fr; gap: 40px; padding-bottom: 60px; }
  .site-footer h3 { color: var(--on-dark); font-size: 22px; margin-bottom: 22px; }
  .footer-about p { margin: 18px 0 24px; font-size: 15px; }
  .footer-links, .contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
  .footer-links a { display: inline-flex; align-items: center; gap: 10px; transition: color .2s, transform .2s; }
  .footer-links i[data-i] { color: var(--accent); font-size: 14px; }
  .footer-links a:hover { color: var(--accent); transform: translateX(4px); }
  .contact-list li { display: flex; gap: 12px; align-items: flex-start; }
  .contact-list i[data-i] { color: var(--accent); font-size: 18px; margin-top: 4px; }
  .contact-list a { overflow-wrap: anywhere; }
  .contact-list a:hover { color: var(--accent); }
  .site-footer .social-link { width: 38px; height: 38px; border-color: var(--muted); font-size: 15px; }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 30px; padding: 26px 84px 26px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
  .footer-bottom p { margin: 0; }
  .footer-bottom a { color: var(--accent); font-weight: 600; }
  .footer-bottom a:hover { text-decoration: underline; }
  .mobile-bar { display: none; }
  .to-top { position: fixed; right: 26px; bottom: 26px; z-index: 50; width: 54px; height: 54px; padding: 16px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 26px var(--accent-glow); opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .3s, transform .3s, visibility .3s, background .25s; }
  .to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
  .to-top:hover { background: var(--brand); color: var(--on-brand); }

  @media (max-width: 1100px) { .main-nav { gap: 20px; } .header-cta { display: none; } }
  @media (max-width: 991px) {
    :root { --header-h: 76px; }
    .menu-toggle { display: grid; }
    .main-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--dark); padding: 10px 20px 24px; box-shadow: 0 20px 30px rgba(0, 0, 0, .25); clip-path: inset(0 0 100% 0); transition: clip-path .4s var(--ease); visibility: hidden; }
    .nav-open .main-nav { clip-path: inset(0 0 0 0); visibility: visible; }
    .nav-open .site-header { background: var(--dark); }
    .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .main-nav a::after { display: none; }
    .review-card { width: calc((100% - 24px) / 2); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 767px) {
    body { padding-bottom: 72px; }
    .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--dark); box-shadow: 0 -8px 24px rgba(0, 0, 0, .2); }
    .mobile-bar .btn { flex: 1; padding: 12px 14px; font-size: 16px; }
    .to-top { bottom: 90px; right: 16px; }
    .lightbox { grid-template-columns: 1fr; padding: 70px 12px 20px; }
    .lb-prev, .lb-next { position: absolute; bottom: 24px; }
    .lb-prev { left: calc(50% - 64px); }
    .lb-next { right: calc(50% - 64px); }
    .lb-figure img { max-height: calc(100vh - 220px); }
  }
  @media (max-width: 639px) {
    .track > .service-card { width: 86%; }
    .review-card { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .quote-card { padding: 28px 20px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 26px 0; }
  }
}

/* ---- Sections ------------------------------------------------------------- */
@layer sections {
  /* hero (home) and page banner (inner pages): image layer + tint clipped together */
  .hero { position: relative; isolation: isolate; color: var(--on-dark); min-height: min(100vh, 960px); display: flex; align-items: center; padding: calc(var(--header-h) + 60px) 0 110px; background: var(--dark); }
  .hero-media, .banner-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
  .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1.8s ease-in-out, transform 9s linear; }
  .hero-slide.is-active { opacity: 1; transform: scale(1.12); }
  .hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in oklab, var(--ink-deep) 55%, transparent) 0%, transparent 100%), linear-gradient(0deg, color-mix(in oklab, var(--ink-deep) 55%, transparent) 0%, transparent 40%), var(--veil); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 60px; align-items: center; }
  .hero h1 { color: var(--on-dark); font-weight: 600; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; }
  .hero-text { font-size: 18px; color: rgba(255, 255, 255, .86); max-width: 560px; margin: 22px 0 34px; }
  .hero-social { position: absolute; z-index: 2; left: 32px; top: 50%; transform: translateY(-50%); }
  .hero-social .socials { flex-direction: column; }
  .hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 40px; transform: translateX(-50%); display: flex; gap: 10px; }
  .hero-dot { width: 54px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .3); overflow: hidden; }
  .hero-dot span { display: block; height: 100%; width: 0; background: var(--accent); }
  .hero-dot.is-active span { animation: progress var(--hero-interval, 6000ms) linear forwards; }
  .hero.is-paused .hero-dot.is-active span { animation-play-state: paused; }
  .page-banner { position: relative; isolation: isolate; color: var(--on-dark); text-align: center; padding: calc(var(--header-h) + 90px) 0 100px; background: var(--dark); }
  .banner-media img { width: 100%; height: 100%; object-fit: cover; }
  .page-banner h1 { color: var(--on-dark); font-weight: 600; font-size: clamp(36px, 4.6vw, 58px); }
  .page-banner p { max-width: 640px; margin: 16px auto 0; color: rgba(255, 255, 255, .85); font-size: 18px; }
  .breadcrumb { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; padding: 10px 22px; border-radius: 40px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); font-size: 15px; }
  .breadcrumb i[data-i] { color: var(--accent); font-size: 14px; }
  .breadcrumb a:hover, .breadcrumb span { color: var(--accent); }

  /* services */
  .services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 50px; align-items: start; }
  .services-intro { position: sticky; top: 110px; }
  .services-intro p { margin: 18px 0 30px; }
  .service-rows { display: grid; gap: 90px; }
  .service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; scroll-margin-top: 110px; }
  .service-row:nth-child(even) .service-row-media { order: 2; }
  .service-row-media { position: relative; }
  .service-row-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
  .service-row-media .service-num { left: 20px; bottom: 20px; font-size: 15px; padding: 6px 16px; }
  .service-row h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
  .service-row .check-list { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }

  /* CTA band */
  .cta-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
  .cta-media { position: relative; min-height: 300px; }
  .cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .cta-body { position: relative; overflow: hidden; background: var(--accent); color: var(--on-accent); padding: 80px clamp(28px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .cta-body::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); }
  .cta-body h2 { color: var(--on-accent); font-size: clamp(30px, 3.2vw, 44px); max-width: 520px; }
  .cta-body h2 i[data-i] { font-size: 30px; vertical-align: .1em; }
  .cta-body p { margin: 18px 0 30px; max-width: 480px; font-size: 17px; opacity: .9; }

  /* project planner */
  .planner-card { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
  .planner-main { padding: 40px 44px; }
  .planner-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
  .planner-tab { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-size: 15px; color: var(--text); transition: border-color .25s, background .25s, color .25s; }
  .planner-tab .num { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--light); color: var(--ink); transition: background .25s, color .25s; }
  .planner-tab[aria-selected="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-tint); }
  .planner-tab[aria-selected="true"] .num, .planner-tab.is-done .num { background: var(--accent); color: var(--on-accent); }
  .planner-panel h3 { font-size: 24px; margin-bottom: 6px; }
  .planner-panel > p { margin-bottom: 22px; font-size: 15px; }
  .option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .option { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.3; transition: border-color .25s, transform .25s, box-shadow .25s; }
  .option img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 9px; }
  .option span { padding: 0 4px 4px; }
  .option:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .option[aria-pressed="true"] { border-color: var(--accent); }
  .option .tick { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; padding: 6px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); transform: scale(0); transition: transform .3s var(--ease); }
  .option .tick svg { width: 100%; height: 100%; }
  .option[aria-pressed="true"] .tick { transform: scale(1); }
  .range-wrap { margin-top: 30px; }
  .range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
  .range-head label { font-weight: 600; color: var(--ink); }
  .range-value { font-family: var(--font-head); font-size: 26px; color: var(--ink); }
  input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%)); }
  input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); box-shadow: 0 4px 12px rgba(0, 0, 0, .15); cursor: grab; }
  input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); cursor: grab; }
  .range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
  .planner-actions { display: flex; justify-content: space-between; margin-top: 34px; gap: 12px; }
  .planner-summary { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark-soft); padding: 40px 36px; display: flex; flex-direction: column; }
  .planner-summary::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--accent-glow), transparent 70%); }
  .planner-summary h3 { color: var(--on-dark); font-size: 24px; margin-bottom: 6px; }
  .summary-progress { margin: 18px 0 26px; }
  .summary-progress .bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
  .summary-progress .bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .5s var(--ease); }
  .summary-progress small { display: block; margin-top: 8px; font-size: 13px; }
  .summary-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 4px; }
  .summary-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); font-size: 15px; }
  .summary-list strong { color: var(--on-dark); font-weight: 600; text-align: right; }
  .summary-list strong.is-empty { color: rgba(255, 255, 255, .35); font-weight: 400; }
  .summary-list strong.is-updated { animation: value-pop .5s var(--ease); }
  .planner-summary .btn { margin-top: auto; position: relative; z-index: 1; }

  /* about */
  .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; }
  .about-media { position: relative; padding: 0 40px 40px 0; }
  .about-media::before { content: ""; position: absolute; right: 0; bottom: 0; width: 60%; height: 60%; border-radius: var(--radius-lg); background: var(--light); z-index: -1; }
  .about-media img { width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; border-radius: var(--radius-lg); }
  .exp-badge { position: absolute; right: 0; bottom: 80px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg); text-align: center; min-width: 150px; }
  .exp-badge strong { display: block; font-family: var(--font-head); font-size: 46px; line-height: 1; font-weight: 600; }
  .exp-badge span { font-size: 14px; line-height: 1.3; display: block; margin-top: 6px; }
  .about-body .section-title { margin-bottom: 20px; }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
  .stat { padding: 18px; border-radius: var(--radius); background: var(--light); }
  .stat strong { display: block; font-family: var(--font-head); font-size: 34px; color: var(--ink); line-height: 1.1; font-weight: 600; }
  .stat span { font-size: 14px; line-height: 1.3; display: block; margin-top: 4px; }
  .stats-band { background: var(--dark); padding: 70px 0; }
  .stats-band .stats { margin: 0; gap: 24px; }
  .stats-band .stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-align: center; padding: 30px 20px; color: var(--on-dark-soft); }
  .stats-band .stat strong { color: var(--accent); font-size: 44px; }

  /* gallery */
  .filters { justify-content: center; margin: -20px 0 40px; }
  .gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 18px; }
  .gallery-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--dark); cursor: zoom-in; }
  .gallery-item.is-big { grid-column: span 2; grid-row: span 2; }
  .gallery-item.is-wide { grid-column: span 2; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
  .gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in oklab, var(--ink-deep) 85%, transparent) 0%, transparent 55%); opacity: .6; transition: opacity .4s; }
  .gallery-item:hover img { transform: scale(1.08); }
  .gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }
  .gallery-item figcaption { position: absolute; z-index: 1; left: 20px; right: 76px; bottom: 18px; color: #fff; font-family: var(--font-head); font-size: 19px; line-height: 1.3; transform: translateY(8px); transition: transform .4s var(--ease); }
  .gallery-item:hover figcaption { transform: none; }
  .gallery-item .zoom { position: absolute; z-index: 1; right: 18px; bottom: 16px; width: 42px; height: 42px; padding: 11px; border-radius: 12px; background: var(--accent); color: var(--on-accent); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s var(--ease); }
  .gallery-item .zoom svg { width: 100%; height: 100%; }
  .gallery-item:hover .zoom, .gallery-item:focus-visible .zoom { opacity: 1; transform: none; }
  .gallery-more { text-align: center; margin-top: 44px; }

  /* why choose us (dark) */
  .why { position: relative; background: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 22px 22px, var(--dark); color: var(--on-dark-soft); }
  .why-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 60px; align-items: center; }
  .why .eyebrow { color: var(--accent); }
  .why .section-title { color: var(--on-dark); margin-bottom: 18px; }
  .feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
  .feature { padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); transition: transform .35s var(--ease), border-color .35s, background .35s; }
  .feature:hover { transform: translateY(-6px); border-color: var(--accent); background: rgba(255, 255, 255, .07); }
  .feature:hover .feature-icon { background: var(--accent); color: var(--on-accent); transform: rotate(-8deg) scale(1.05); }
  .feature h3 { color: var(--on-dark); font-size: 21px; margin-bottom: 8px; }
  .feature p { margin: 0; font-size: 15px; line-height: 1.65; }
  .why-media { position: relative; }
  .why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
  .why-badge { position: absolute; left: -30px; bottom: 40px; display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
  .why-badge i[data-i] { width: 40px; height: 40px; color: var(--accent-strong); }
  .why-badge span { font-size: 15px; line-height: 1.3; max-width: 130px; color: var(--ink); font-weight: 600; }

  /* process */
  .process-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
  .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .step { position: relative; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-align: left; overflow: hidden; transition: border-color .3s, box-shadow .3s, background .3s; }
  .step-num { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-head); font-size: 22px; font-weight: 600; background: var(--light); color: var(--ink); transition: background .3s, color .3s; }
  .step-title { font-family: var(--font-head); font-size: 22px; color: var(--ink); align-self: center; line-height: 1.2; }
  .step-text { display: block; margin: 0; font-size: 15px; line-height: 1.65; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; }
  .step.is-active { border-color: transparent; background: linear-gradient(180deg, #fff, var(--light-2)); box-shadow: var(--shadow); }
  .step.is-active .step-num { background: var(--accent); color: var(--on-accent); }
  .step.is-active .step-text { max-height: 140px; opacity: 1; }
  .step-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
  .step.is-active .step-progress { animation: progress var(--step-interval, 5000ms) linear forwards; }
  [data-steps].is-paused .step.is-active .step-progress { animation-play-state: paused; }
  .process-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
  .process-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s var(--ease); }
  .process-media img.is-active { opacity: 1; transform: none; }
  .process-tag { position: absolute; z-index: 1; left: 22px; top: 22px; padding: 8px 16px; border-radius: 30px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }

  /* reviews, FAQ */
  .reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 46px; }
  .faq-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: start; }
  .faq-intro p { margin: 18px 0 30px; }

  /* contact, service areas */
  .info-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .info-card { padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .35s var(--ease), box-shadow .35s; }
  .info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
  .info-card .feature-icon { margin: 0 auto 16px; background: var(--light); color: var(--ink); }
  .info-card h3 { font-size: 20px; margin-bottom: 6px; }
  .info-card p, .info-card a { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
  .info-card a:hover { color: var(--accent-strong); }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .contact-form { padding: 44px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
  .contact-form h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 8px; }
  .contact-form > p { margin-bottom: 26px; }
  .contact-aside { display: grid; gap: 24px; }
  .map { height: 440px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--light); }
  .map iframe { width: 100%; height: 100%; border: 0; }
  .areas-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 50px; align-items: start; }
  .area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 30px 0 34px; }
  .area-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
  .area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
  .area-card > i[data-i] { width: 42px; height: 42px; padding: 11px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-strong); }
  .area-card h3 { font-size: 19px; margin-bottom: 4px; }
  .area-card p { margin: 0; font-size: 14px; line-height: 1.5; }

  @media (max-width: 1360px) { .hero-social { left: 16px; } }
  @media (max-width: 1340px) { .hero-social { position: static; transform: none; margin-top: 34px; } .hero-social .socials { flex-direction: row; } }
  @media (max-width: 1100px) { .hero-grid { gap: 40px; } .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 991px) {
    .hero { min-height: auto; padding-bottom: 100px; }
    .hero-grid, .services-grid, .about-grid, .why-grid, .process-grid, .faq-grid, .contact-grid, .service-row, .areas-grid { grid-template-columns: 1fr; }
    .service-row { gap: 30px; }
    .service-row:nth-child(even) .service-row-media { order: 0; }
    .service-rows { gap: 70px; }
    .services-intro { position: static; }
    .cta-band, .planner-card { grid-template-columns: 1fr; }
    .about-media { max-width: 560px; }
    .why-media { max-width: 460px; }
    .why-badge { left: 16px; }
    .process-media { aspect-ratio: 16 / 10; order: -1; }
  }
  @media (max-width: 767px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
    .planner-main { padding: 30px 22px; }
    .planner-summary { padding: 32px 22px; }
    .planner-tab .label { display: none; }
    .planner-tab { justify-content: center; }
    .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reviews-head { flex-direction: column; align-items: flex-start; }
    .contact-form { padding: 30px 22px; }
    .service-row .check-list, .area-list { grid-template-columns: 1fr; }
  }
  @media (max-width: 639px) {
    .info-cards { grid-template-columns: 1fr; }
    .stats { gap: 10px; }
    .stat { padding: 14px 10px; }
    .stat strong { font-size: 26px; }
    .stats-band .stat strong { font-size: 34px; }
    .feature-grid { grid-template-columns: 1fr; }
    .about-media { padding: 0 20px 20px 0; }
    .exp-badge { bottom: 40px; padding: 16px 18px; min-width: 0; }
    .exp-badge strong { font-size: 36px; }
    .page-banner { padding-bottom: 70px; }
  }
}

/* ---- Motion --------------------------------------------------------------- */
@layer motion {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  @keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
  @keyframes progress { to { width: 100%; } }
  @keyframes card-flash { 30% { box-shadow: 0 0 0 6px var(--accent-glow), var(--shadow-lg); transform: translateY(-4px); } }
  @keyframes pop { from { transform: scale(.3); opacity: 0; } }
  @keyframes value-pop { 40% { color: var(--accent); transform: scale(1.06); } }
  @keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 12px transparent; } }
  @keyframes float { 50% { transform: translateY(-10px); } }
  @keyframes fade { from { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hero-slide { transition: opacity 1.2s ease !important; transform: none !important; }
    .js .reveal { opacity: 1; transform: none; }
  }
}
