/* Frameboxx design system.
   Theme: cinematic dark, one accent (Frameboxx yellow).
   Shape rule: interactive controls are pills, surfaces are --radius (14px), inputs are --radius-sm.
   Motion rule: transform/opacity only; everything collapses under prefers-reduced-motion. */

@layer reset, tokens, base, layout, components, utilities;

/* ---------- Fonts ---------- */
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("../fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, picture, video, svg, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; cursor: pointer; }
  a { color: inherit; text-decoration: none; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  h1, h2, h3, h4 { text-wrap: balance; }
  p { text-wrap: pretty; }
}

@layer tokens {
  :root {
    color-scheme: dark;

    --fg-rgb: 255 255 255;    /* tints and hairlines are drawn from the foreground colour */
    --bg-rgb: 12 12 13;
    --ink: #0c0c0d;
    --ink-2: #131315;
    --ink-3: #1b1b1e;
    --ink-4: #26262a;
    --line: rgb(var(--fg-rgb) / 0.08);
    --line-strong: rgb(var(--fg-rgb) / 0.16);
    --text: #efede8;
    --text-2: #a9a69f;
    --text-3: #8f8c85;
    --brand: #f5c518;
    --brand-hover: #ffd43b;
    --brand-ink: #111111;
    --brand-soft: rgb(245 197 24 / 0.12);
    --accent: #f5c518;        /* brand colour for TEXT and ICONS (meets contrast in each theme) */
    --panel: rgb(24 24 27 / 0.88);
    --panel-solid: #161618;
    --tile: #f3f1ec;          /* light tile behind partner logos (protected assets keep their colours) */
    --danger: #ff7a6b;
    --success: #7ed99a;

    --font-display: "Cabinet Grotesk", "Satoshi", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
    --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
    --step-2: clamp(1.45rem, 1.28rem + 0.8vw, 1.95rem);
    --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.9rem);
    --step-4: clamp(2.35rem, 1.75rem + 2.8vw, 4.3rem);
    --step-5: clamp(2.8rem, 1.9rem + 4.4vw, 6.2rem);

    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;
    --section: clamp(4.5rem, 3rem + 6vw, 9rem);
    --gutter: clamp(1rem, 0.5rem + 2.4vw, 2.5rem);
    --max: 1360px;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur: 0.5s;

    --shadow: 0 1px 0 rgb(var(--fg-rgb) / 0.04) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);

    /* z-index scale */
    --z-grain: 1; --z-header: 50; --z-float: 60; --z-menu: 70; --z-modal: 80; --z-toast: 90;

    --header-h: 72px;
  }

  /* Light theme: chosen explicitly, or System while the OS prefers light. */
  :root[data-theme="light"] {
    color-scheme: light;
    --fg-rgb: 17 17 17;
    --bg-rgb: 247 246 243;
    --ink: #f7f6f3;
    --ink-2: #ffffff;
    --ink-3: #efeeea;
    --ink-4: #e3e2dd;
    --text: #141413;
    --text-2: #4b4a46;
    --text-3: #6a6964;
    --accent: #7a5c00;
    --brand-soft: rgb(245 197 24 / 0.22);
    --danger: #b3261e;
    --success: #1f7a3d;
    --panel: rgb(255 255 255 / 0.92);
    --panel-solid: #ffffff;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 24px 60px -30px rgb(40 36 20 / 0.35);
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme]), :root[data-theme="system"] {
      color-scheme: light;
      --fg-rgb: 17 17 17;
      --bg-rgb: 247 246 243;
      --ink: #f7f6f3;
      --ink-2: #ffffff;
      --ink-3: #efeeea;
      --ink-4: #e3e2dd;
      --text: #141413;
      --text-2: #4b4a46;
      --text-3: #6a6964;
      --accent: #7a5c00;
      --brand-soft: rgb(245 197 24 / 0.22);
      --danger: #b3261e;
      --success: #1f7a3d;
      --panel: rgb(255 255 255 / 0.92);
      --panel-solid: #ffffff;
      --shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 24px 60px -30px rgb(40 36 20 / 0.35);
    }
  }

  /* Dark islands: components that sit on photography keep dark tokens in every theme,
     so text over images stays light and legible. */
  .is-dark, .lightbox, .bento__cell, .explorer__card-media,
  :root:not([data-theme-effective="light"]) :is(.hero, .page-hero, .cta-band, .reel-card) {
    color-scheme: dark;
    --fg-rgb: 255 255 255;
    --bg-rgb: 12 12 13;
    --ink: #0c0c0d;
    --ink-2: #131315;
    --ink-3: #1b1b1e;
    --text: #efede8;
    --text-2: #c9c6bf;
    --text-3: #9a978f;
    --accent: #f5c518;
    --brand-soft: rgb(245 197 24 / 0.14);
    --panel: rgb(24 24 27 / 0.88);
    --panel-solid: #161618;
    color: var(--text);
  }
}

@layer base {
  html { background: var(--ink); scroll-padding-top: calc(var(--header-h) + 1rem); }
  html.lenis, html.lenis body { height: auto; }
  .lenis.lenis-smooth { scroll-behavior: auto !important; }
  .lenis.lenis-stopped { overflow: clip; }

  body {
    min-height: 100dvh;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
  }

  /* Film grain on a fixed, non-interactive layer (never on scrolling content). */
  body::after {
    content: "";
    position: fixed; inset: -50%;
    z-index: var(--z-grain);
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
  }
  h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

  ::selection { background: var(--brand); color: var(--brand-ink); }

  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

  a:not([class]) { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:not([class]):hover { color: var(--accent); }

  strong { font-weight: 700; color: var(--text); }

  picture img { background-size: cover; background-position: center; }
}

/* Cross-document page transitions where supported. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: 0.42s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
  .container--narrow { width: min(100% - 2 * var(--gutter), 880px); margin-inline: auto; }
  .section { padding-block: var(--section); position: relative; }
  .section--tight { padding-block: calc(var(--section) * 0.6); }
  .section--raised { background: var(--ink-2); }
  .section--line { border-top: 1px solid var(--line); }

  .stack > * + * { margin-top: var(--stack, var(--space-4)); }
  .cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, var(--space-3)); align-items: center; }

  .grid { display: grid; gap: var(--grid-gap, clamp(1rem, 0.6rem + 1.4vw, 1.75rem)); }
  .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)); }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
  @media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

  .split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
  .split--wide-right { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  @media (max-width: 1023px) { .split, .split--wide-right { grid-template-columns: minmax(0, 1fr); } }
}

@layer components {
  /* ---------- Type ---------- */
  .display { font-size: var(--step-5); }
  .h1 { font-size: var(--step-4); }
  .h2 { font-size: var(--step-3); }
  .h3 { font-size: var(--step-2); }
  .h4 { font-size: var(--step-1); }
  .lead { font-size: var(--step-1); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
  .muted { color: var(--text-2); }
  .prose { max-width: 68ch; color: var(--text-2); }
  .prose > * + * { margin-top: 1em; }
  .prose strong { color: var(--text); }
  .prose ul { padding-left: 1.1em; }
  .prose li + li { margin-top: 0.4em; }
  .prose li::marker { color: var(--accent); }
  .accent { color: var(--accent); }
  .eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
  .mono { font-family: var(--font-mono); font-size: 0.8em; letter-spacing: 0.02em; }

  .section-head { display: grid; gap: var(--space-4); margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.5rem); max-width: 62rem; }
  .section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

  /* Split-line reveal: JS wraps lines in .line > span */
  .js-reveal [data-split]:not(.split-lines) { visibility: hidden; animation: split-fallback 0s 2s forwards; }
  @keyframes split-fallback { to { visibility: visible; } }
  .split-lines .line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
  .split-lines .line > span { display: inline-block; will-change: transform; }

  /* ---------- Buttons (pill) ---------- */
  .btn {
    --btn-bg: var(--ink-3); --btn-fg: var(--text); --btn-bd: var(--line-strong);
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
    min-height: 48px; padding: 0.8em 1.5em;
    border-radius: var(--radius-pill);
    border: 1px solid var(--btn-bd);
    background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 700; font-size: 0.98rem; line-height: 1; white-space: nowrap;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), background-color 0.3s, border-color 0.3s, color 0.3s;
  }
  .btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.4s var(--ease-out); }
  .btn:hover .icon--move { transform: translateX(3px); }
  .btn:active { transform: scale(0.97); }
  .btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: var(--brand); }
  .btn--primary:hover { --btn-bg: var(--brand-hover); --btn-bd: var(--brand-hover); }
  .btn--ghost { --btn-bg: rgb(var(--fg-rgb) / 0.04); }
  .btn--ghost:hover { --btn-bd: var(--text); }
  .btn--block { width: 100%; }
  .btn--lg { min-height: 56px; padding-inline: 1.8em; font-size: 1.05rem; }
  .btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: 0.9rem; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

  .link-arrow { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 700; color: var(--text); }
  .link-arrow .icon { width: 1.1em; height: 1.1em; color: var(--accent); transition: transform 0.4s var(--ease-out); }
  .link-arrow:hover .icon { transform: translate(3px, -3px); }

  .icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

  /* ---------- Header ---------- */
  .skip-link { position: absolute; left: 1rem; top: -100px; z-index: var(--z-toast); background: var(--brand); color: var(--brand-ink); padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
  .skip-link:focus { top: 1rem; }

  .site-header {
    position: fixed; inset: 0 0 auto; z-index: var(--z-header);
    height: var(--header-h);
    transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
    border-bottom: 1px solid transparent;
  }
  .site-header.is-scrolled { background: rgb(var(--bg-rgb) / 0.8); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
  .site-header.is-hidden { transform: translateY(-100%); }
  .site-header__inner { height: 100%; display: flex; align-items: center; gap: var(--space-5); }
  .brand { display: flex; align-items: center; flex: none; }
  .brand img { height: 34px; width: auto; border-radius: 4px; }

  .nav { margin-inline: auto; }
  .nav__list { display: flex; align-items: center; gap: 0.15rem; list-style: none; padding: 0; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 0.35em;
    padding: 0.55rem 0.85rem; border-radius: var(--radius-pill);
    font-weight: 500; font-size: 0.95rem; color: var(--text-2);
    transition: color 0.25s, background-color 0.25s;
  }
  .nav__link:hover, .nav__item:focus-within > .nav__link, .nav__link[aria-current="page"] { color: var(--text); background: rgb(var(--fg-rgb) / 0.06); }
  .nav__link .icon { width: 0.9em; height: 0.9em; transition: transform 0.3s var(--ease-out); }
  .nav__item { position: relative; }
  .nav__item.is-open > .nav__link .icon, .nav__item:hover > .nav__link .icon { transform: rotate(180deg); }

  .dropdown {
    position: absolute; top: calc(100% + 10px); left: 50%;
    min-width: 230px; padding: 0.5rem;
    background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
    transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0.25s;
  }
  .dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .nav__item:hover > .dropdown, .nav__item.is-open > .dropdown, .nav__item:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .dropdown a { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500; font-size: 0.94rem; transition: background-color 0.2s, color 0.2s; }
  .dropdown a:hover, .dropdown a[aria-current="page"] { background: rgb(var(--fg-rgb) / 0.06); color: var(--text); }
  .dropdown--mega { width: min(640px, 90vw); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; }
  .dropdown--mega .icon { width: 1.35rem; height: 1.35rem; padding: 0.35rem; box-sizing: content-box; border-radius: 8px; background: var(--brand-soft); color: var(--accent); }

  .header-actions { display: flex; align-items: center; gap: var(--space-2); }
  /* Theme selector */
  .theme { position: relative; }
  .theme__toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); transition: border-color 0.25s; }
  .theme__toggle:hover { border-color: var(--text); }
  .theme__toggle .icon { width: 20px; height: 20px; }
  .theme__icon { display: grid; }
  .theme__icon--light { display: none; }
  :root[data-theme-effective="light"] .theme__icon--light { display: grid; }
  :root[data-theme-effective="light"] .theme__icon--dark { display: none; }
  .theme__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 170px; padding: 0.4rem; display: grid; gap: 0.15rem; background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 2; }
  .theme__menu[hidden] { display: none; }
  .theme__menu button, .theme-segment button { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; color: var(--text-2); text-align: left; }
  .theme__menu button:hover, .theme-segment button:hover { color: var(--text); background: rgb(var(--fg-rgb) / 0.06); }
  .theme__menu [aria-checked="true"], .theme-segment [aria-checked="true"] { color: var(--text); background: var(--brand-soft); }
  .theme__menu .icon, .theme-segment .icon { width: 18px; height: 18px; color: var(--accent); }
  .theme-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; padding: 0.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius); }
  .theme-segment button { justify-content: center; min-height: 44px; }

  /* Before scrolling, the header floats over each page's dark hero (dark theme), so it keeps dark tokens. */
  :root:not([data-theme-effective="light"]) .site-header:not(.is-scrolled) {
    --fg-rgb: 255 255 255; --text: #efede8; --text-2: #c9c6bf; --accent: #f5c518;
    --line-strong: rgb(255 255 255 / 0.2); --panel: rgb(24 24 27 / 0.94); --panel-solid: #161618; --brand-soft: rgb(245 197 24 / 0.14);
    color-scheme: dark;
  }

  .menu-toggle { display: none; width: 46px; height: 46px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); align-items: center; justify-content: center; }
  .menu-toggle .icon { width: 22px; height: 22px; }

  @media (max-width: 480px) {
    .header-actions [data-open-enquiry] { display: none; }
    .brand img { height: 30px; }
  }
  @media (max-width: 1100px) {
    .nav, .header-actions .btn--call { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }
  }

  /* Mobile menu */
  .mobile-menu {
    position: fixed; inset: 0; z-index: var(--z-menu);
    background: var(--ink); display: flex; flex-direction: column;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    overflow-y: auto; overscroll-behavior: contain;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.6s var(--ease-in-out), visibility 0s 0.6s;
  }
  .mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.6s var(--ease-in-out); }
  .mobile-menu__close { position: absolute; top: 13px; right: var(--gutter); }
  .mobile-menu__list { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
  .mobile-menu__list > li > a, .mobile-menu__list summary { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 1.2rem + 3vw, 2.4rem); letter-spacing: -0.03em; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
  .mobile-menu__list summary::-webkit-details-marker { display: none; }
  .mobile-menu__list details[open] summary .icon { transform: rotate(45deg); }
  .mobile-menu__list summary .icon { transition: transform 0.3s var(--ease-out); color: var(--accent); }
  .mobile-menu__sub { list-style: none; padding: 0.5rem 0 0.75rem; display: grid; }
  .mobile-menu__sub a { display: block; padding: 0.55rem 0; color: var(--text-2); font-weight: 500; }
  .mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 0.75rem; }
  .mobile-menu .reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
  .mobile-menu.is-open .reveal-item { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.04s); }

  /* ---------- Page hero (inner pages) ---------- */
  .page-hero { position: relative; padding: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem)) 0 clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; isolation: isolate; }
  .page-hero__media { position: absolute; inset: 0; z-index: -1; }
  .page-hero__media img, .page-hero__media picture { width: 100%; height: 100%; object-fit: cover; }
  .page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 12 13 / 0.55) 0%, rgb(12 12 13 / 0.7) 55%, var(--ink) 100%), linear-gradient(90deg, rgb(12 12 13 / 0.85) 0%, rgb(12 12 13 / 0.2) 70%); }
  .page-hero__inner { display: grid; gap: var(--space-5); max-width: 58rem; }
  .page-hero h1 { font-size: var(--step-5); }
  .page-hero .lead { color: var(--text); opacity: 0.85; }
  .breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); list-style: none; padding: 0; }
  .breadcrumb a:hover { color: var(--accent); }
  .breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--text-3); }

  /* ---------- Surfaces ---------- */
  .card {
    position: relative; display: flex; flex-direction: column;
    background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.35s, transform 0.5s var(--ease-out);
  }
  a.card:hover, .card--interactive:hover { border-color: var(--line-strong); transform: translateY(-4px); }
  .card__media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 16 / 10); }
  .card__media img, .card__media picture { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
  a.card:hover .card__media img { transform: scale(1.05); }
  .card__body { padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem); display: grid; gap: 0.6rem; align-content: start; flex: 1; }
  .card__title { font-size: var(--step-1); }
  .card__text { color: var(--text-2); font-size: 0.97rem; }

  .icon-tile { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--accent); flex: none; }
  .icon-tile .icon { width: 24px; height: 24px; }

  .feature { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
  .feature h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
  .feature p { color: var(--text-2); font-size: 0.97rem; }

  .pill { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.4em 0.85em; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 0.85rem; font-weight: 500; color: var(--text-2); }
  .pill .icon { width: 1em; height: 1em; color: var(--accent); }

  /* Stat */
  .stat { display: grid; gap: 0.35rem; }
  .stat__value { font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
  .stat__value .accent { color: var(--accent); }
  .stat__label { color: var(--text-2); font-size: 0.95rem; max-width: 22ch; }

  /* Accordion via <details> */
  .accordion { border-top: 1px solid var(--line); }
  .accordion details { border-bottom: 1px solid var(--line); }
  .accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.015em; }
  .accordion summary::-webkit-details-marker { display: none; }
  .accordion summary .icon { color: var(--accent); transition: transform 0.35s var(--ease-out); }
  .accordion details[open] summary .icon { transform: rotate(45deg); }
  .accordion .accordion__body { padding: 0 0 1.4rem; color: var(--text-2); max-width: 75ch; }
  .accordion .accordion__body ul { padding-left: 1.1em; display: grid; gap: 0.35em; }
  .accordion .accordion__body li::marker { color: var(--accent); }
  @supports (interpolate-size: allow-keywords) {
    .accordion details { interpolate-size: allow-keywords; }
    .accordion details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
    .accordion details[open]::details-content { block-size: auto; }
  }

  /* Media frame with viewfinder corners (brand motif) */
  .frame { position: relative; border-radius: var(--radius); overflow: hidden; }
  .frame img, .frame picture { width: 100%; height: 100%; object-fit: cover; }
  .frame--corners::before {
    content: ""; position: absolute; inset: 14px; z-index: 1; pointer-events: none;
    --c: rgb(255 255 255 / 0.75); --l: 18px; --w: 1.5px;
    background:
      linear-gradient(var(--c) 0 0) top left / var(--l) var(--w) no-repeat,
      linear-gradient(var(--c) 0 0) top left / var(--w) var(--l) no-repeat,
      linear-gradient(var(--c) 0 0) top right / var(--l) var(--w) no-repeat,
      linear-gradient(var(--c) 0 0) top right / var(--w) var(--l) no-repeat,
      linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--w) no-repeat,
      linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--l) no-repeat,
      linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--w) no-repeat,
      linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--l) no-repeat;
  }


  /* Gallery + lightbox */
  .masonry { columns: var(--cols, 3) 260px; column-gap: 1rem; }
  .masonry > * { break-inside: avoid; margin-bottom: 1rem; }
  .masonry img { width: 100%; border-radius: var(--radius-sm); }
  .zoomable { display: block; position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
  .zoomable img { transition: transform 0.9s var(--ease-out); }
  .zoomable:hover img { transform: scale(1.04); }

  .lightbox { position: fixed; inset: 0; z-index: var(--z-modal); width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: rgb(8 8 9 / 0.94); color: var(--text); }
  .lightbox::backdrop { background: transparent; }
  .lightbox[open] { display: grid; place-items: center; animation: fade-in 0.3s var(--ease-out); }
  .lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; border-radius: var(--radius-sm); object-fit: contain; }
  .lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: rgb(var(--fg-rgb) / 0.04); }
  .lightbox__btn:hover { border-color: var(--text); }
  .lightbox__close { top: 1rem; right: 1rem; }
  .lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
  .lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
  .lightbox__count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); }

  /* Logos */
  .logo-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .logo-wall__item { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 1.2rem 1.6rem; border-radius: var(--radius); background: var(--tile); transition: transform 0.5s var(--ease-out); }
  .logo-wall__item img { width: min(100%, 220px); max-height: 110px; height: auto; object-fit: contain; }
  .logo-wall__item:hover { transform: translateY(-3px); }
  @media (max-width: 767px) { .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* Marquee (max one per page) */
  .marquee { overflow: clip; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .marquee__track { display: flex; gap: 1rem; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }

  /* ---------- Lead form (multi-step "keyframes") ---------- */
  .lead-form { position: relative; display: grid; gap: 1.4rem; }
  .lead-form__head { display: grid; gap: 0.4rem; }
  .lead-form__title { font-size: var(--step-2); }
  .lead-form__sub { color: var(--text-2); font-size: 0.97rem; }

  .keyframes { display: flex; align-items: center; gap: 0; list-style: none; padding: 0; margin: 0.2rem 0 0.2rem; }
  .keyframes li { flex: 1; display: flex; align-items: center; }
  .keyframes li:last-child { flex: none; }
  .keyframes li::after { content: ""; flex: 1; height: 1px; margin-inline: 6px; background: linear-gradient(90deg, var(--brand) var(--fill, 0%), var(--line-strong) var(--fill, 0%)); transition: --fill 0.5s; }
  .keyframes li:last-child::after { display: none; }
  .keyframes li.is-done::after { --fill: 100%; }
  .keyframe { width: 12px; height: 12px; transform: rotate(45deg); border: 1.5px solid var(--line-strong); background: transparent; transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out); flex: none; }
  .keyframes li.is-active .keyframe { border-color: var(--accent); transform: rotate(45deg) scale(1.2); }
  .keyframes li.is-done .keyframe { background: var(--brand); border-color: var(--accent); }

  .lead-form__viewport { position: relative; overflow: hidden; }
  .lead-step { display: grid; gap: 1rem; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
  .lead-step > legend { padding: 0; margin-bottom: 0.2rem; }
  .lead-form:not(.is-stepped) .lead-step + .lead-step { margin-top: 1rem; }
  .lead-step[hidden] { display: none; }
  .js .lead-form:not(.is-stepped) .lead-step ~ .lead-step { display: none; } /* hide steps 2-3 before JS: no layout jump */
  .lead-step.is-entering { animation: step-in 0.55s var(--ease-out) both; }
  .lead-step.is-entering-back { animation: step-in-back 0.55s var(--ease-out) both; }
  @keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
  @keyframes step-in-back { from { opacity: 0; transform: translateX(-28px); } }
  .lead-step__label { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -0.015em; }

  .choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; border: 0; padding: 0; min-width: 0; }
  .choice { position: relative; }
  .choice input { position: absolute; opacity: 0; inset: 0; z-index: 1; margin: 0; width: 100%; height: 100%; cursor: pointer; }
  .choice label { display: flex; align-items: center; gap: 0.7rem; min-height: 64px; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgb(var(--fg-rgb) / 0.03); font-weight: 600; font-size: 0.95rem; line-height: 1.25; cursor: pointer; transition: border-color 0.25s, background-color 0.25s, transform 0.35s var(--ease-out); }
  .choice label .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }
  .choice:hover label { border-color: var(--text-3); }
  .choice input:checked + label { border-color: var(--accent); background: var(--brand-soft); }
  .choice input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
  .choice input:active + label { transform: scale(0.98); }
  .choice--wide { grid-column: 1 / -1; }

  .field { display: grid; gap: 0.45rem; }
  .field label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
  .input, .field input, .field select, .field textarea {
    width: 100%; min-height: 54px; padding: 0.85rem 1rem;
    border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
    background: rgb(var(--fg-rgb) / 0.035); color: var(--text);
    font-size: 1rem;
    transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
  }
  .field textarea { min-height: 120px; resize: vertical; }
  .field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
  .field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
  .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgb(var(--fg-rgb) / 0.05); box-shadow: 0 0 0 4px var(--brand-soft); }
  .field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23a9a69f'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px; padding-right: 2.6rem; }
  .field select option { background: var(--ink-2); }
  .field__error { display: none; align-items: center; gap: 0.4rem; color: var(--danger); font-size: 0.86rem; }
  .field__error .icon { width: 1em; height: 1em; }
  .field.is-invalid input, .field.is-invalid select, .field.is-invalid .phone { border-color: var(--danger); }
  .field.is-invalid .field__error { display: flex; }

  .phone { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgb(var(--fg-rgb) / 0.035); transition: border-color 0.25s, box-shadow 0.25s; position: relative; }
  .phone:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--brand-soft); }
  .phone input { border: 0 !important; background: transparent !important; box-shadow: none !important; min-width: 0; }
  .phone__code { display: flex; align-items: center; gap: 0.45rem; padding: 0 0.6rem 0 0.9rem; border-right: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; min-height: 52px; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
  .phone__code:hover { background: rgb(var(--fg-rgb) / 0.04); }
  .phone__code .icon { width: 14px; height: 14px; color: var(--text-2); }
  .phone__code .fi { width: 1.3em; border-radius: 2px; }
  .country-list { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); width: min(320px, 100%); max-height: 280px; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
  .country-list[hidden] { display: none; }
  .country-list input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 46px; background: transparent; padding: 0.7rem 0.9rem; }
  .country-list input:focus { box-shadow: none; }
  .country-list ul { list-style: none; padding: 0.3rem; margin: 0; overflow-y: auto; overscroll-behavior: contain; }
  .country-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; border-radius: 8px; cursor: pointer; font-size: 0.92rem; }
  .country-list li span:last-child { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
  .country-list li[aria-selected="true"], .country-list li:hover, .country-list li.is-active { background: rgb(var(--fg-rgb) / 0.06); }

  .lead-form__nav { display: flex; gap: 0.6rem; align-items: center; }
  .lead-form__nav .btn--primary { flex: 1; }
  .btn-back { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: border-color 0.25s; }
  .btn-back:hover { border-color: var(--text); }
  .btn-back[hidden] { display: none; }

  .lead-form__trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: 0.84rem; color: var(--text-2); }
  .lead-form__trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
  .lead-form__trust .icon { width: 1.05em; height: 1.05em; color: var(--accent); }
  .lead-form__legal { font-size: 0.82rem; color: var(--text-2); }
  .lead-form__legal a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.2em; font-weight: 600; }
  .lead-form__legal a:hover { color: var(--accent); }
  .form-status { font-weight: 600; font-size: 0.95rem; }
  .form-status:empty { display: none; }
  .form-status.is-success { color: var(--success); }
  .form-status.is-error { color: var(--danger); }
  .lead-form .btn--primary[aria-busy="true"] { pointer-events: none; }
  .lead-form .btn--primary[aria-busy="true"] .btn__label { opacity: 0.6; }

  .form-panel {
    position: relative;
    padding: clamp(1.4rem, 1rem + 1.6vw, 2.25rem);
    background: var(--panel);
    backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 1px 0 rgb(var(--fg-rgb) / 0.06) inset, 0 40px 80px -30px rgb(0 0 0 / 0.8);
  }
  @media (prefers-reduced-transparency: reduce) { .form-panel { backdrop-filter: none; background: var(--ink-2); } }

  /* ---------- Modal (<dialog>) ---------- */
  .modal { width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
  .modal::backdrop { background: rgb(6 6 7 / 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
  .modal[open] { animation: modal-in 0.5s var(--ease-out); }
  .modal[open]::backdrop { animation: fade-in 0.4s ease; }
  .modal .form-panel { max-height: calc(100dvh - 2rem); overflow-y: auto; }
  .modal__close { position: absolute; top: 0.9rem; right: 0.9rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--ink-2); }
  .modal__close:hover { border-color: var(--text); }
  @keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
  @keyframes fade-in { from { opacity: 0; } }

  /* ---------- Floating actions ---------- */
  .float-actions { position: fixed; right: clamp(0.9rem, 0.5rem + 1vw, 1.5rem); bottom: clamp(0.9rem, 0.5rem + 1vw, 1.5rem); z-index: var(--z-float); display: flex; flex-direction: column; gap: 0.55rem; align-items: center; }
  .fab { position: relative; }
  .fab--mini { width: 46px; height: 46px; background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-strong); }
  .fab--mini .icon { width: 22px; height: 22px; }
  .fab--instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); color: #fff; border-color: transparent; }
  .fab--mail:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
  .fab__tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); white-space: nowrap; padding: 0.35rem 0.7rem; border-radius: var(--radius-pill); background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-strong); font-size: 0.82rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
  .fab:hover .fab__tip, .fab:focus-visible .fab__tip { opacity: 1; transform: translate(0, -50%); }
  @media (hover: none) { .fab__tip { display: none; } }
  .fab { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 16px 36px -12px rgb(0 0 0 / 0.7); transition: transform 0.4s var(--ease-out); }
  .fab:hover { transform: translateY(-3px); }
  .fab .icon { width: 28px; height: 28px; }
  .fab--whatsapp { background: #25d366; color: #0b2a17; }
  .float-actions .btn { box-shadow: 0 16px 36px -12px rgb(0 0 0 / 0.7); }

  /* ---------- CTA band ---------- */
  .cta-band { position: relative; overflow: clip; isolation: isolate; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line); background: var(--ink-2); padding: clamp(2rem, 1.2rem + 4vw, 4.5rem); }
  .cta-band__media { position: absolute; inset: 0; z-index: -1; opacity: 0.4; }
  .cta-band__media img, .cta-band__media picture { width: 100%; height: 100%; object-fit: cover; }
  .cta-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-2) 25%, rgb(var(--bg-rgb) / 0.4)); }

  /* ---------- Footer ---------- */
  .site-footer { position: relative; border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); background: var(--ink); overflow: clip; }
  .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: clamp(2rem, 1rem + 3vw, 4rem); }
  @media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
  .footer-title { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.1rem; font-weight: 500; }
  .footer-links { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
  .footer-links a { color: var(--text-2); text-decoration: none; transition: color 0.2s; }
  .footer-links a:hover { color: var(--accent); }
  .footer-centre { display: grid; gap: 0.7rem; color: var(--text-2); font-size: 0.95rem; }
  .footer-centre h3 { font-size: var(--step-1); color: var(--text); }
  .footer-centre a { text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; color: var(--text); width: fit-content; }
  .footer-centre a:hover { color: var(--accent); }
  .footer-centre .icon { color: var(--accent); width: 1.05em; height: 1.05em; }
  .footer-centre p { display: flex; gap: 0.5rem; }
  .footer-centre p .icon { margin-top: 0.3em; }
  .socials { display: flex; gap: 0.5rem; list-style: none; padding: 0; }
  .socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-2); transition: color 0.25s, border-color 0.25s, transform 0.4s var(--ease-out); }
  .socials a:hover { color: var(--brand-ink); background: var(--brand); border-color: var(--accent); transform: translateY(-2px); }
  .socials .icon { width: 20px; height: 20px; }
  .footer-partners { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .footer-partners span { display: grid; place-items: center; width: 92px; height: 56px; border-radius: 10px; background: var(--tile); padding: 0.4rem 0.6rem; }
  .footer-partners img { max-height: 40px; width: auto; }
  .footer-bottom { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-block: 1.4rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; color: var(--text-3); font-size: 0.86rem; }
  .footer-wordmark { display: block; width: 100%; height: auto; margin-top: clamp(2rem, 1rem + 3vw, 4rem); overflow: visible; user-select: none; }
  .footer-wordmark text { font-family: var(--font-display); font-weight: 800; font-size: 150px; fill: none; stroke: var(--line-strong); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
}

@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; }
  .text-center { text-align: center; }
  .mt-0 { margin-top: 0 !important; }
  .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); } .mt-7 { margin-top: var(--space-7); }
  .mb-6 { margin-bottom: var(--space-6); }
  .w-full { width: 100%; }

  /* Scroll reveal: elements are visible by default; JS adds .js-reveal to <html> before paint. */
  .js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
  .js-reveal [data-reveal="fade"] { transform: none; }
  .js-reveal [data-reveal="scale"] { transform: scale(0.96); }
  .js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}

@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; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  @view-transition { navigation: none; }
}
.footer-brand img { height: 40px; width: auto; border-radius: 4px; }

/* ---------- Light theme composition ----------
   Light mode is a real light layout, not the dark site with pale gaps: photography moves to the
   right edge behind a paper-coloured wash and text sits on light surfaces. */
:root[data-theme-effective="light"] .page-hero__media::after {
  background:
    linear-gradient(90deg, var(--ink) 0%, rgb(var(--bg-rgb) / 0.94) 38%, rgb(var(--bg-rgb) / 0.55) 72%, rgb(var(--bg-rgb) / 0.25) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 40%);
}
:root[data-theme-effective="light"] .page-hero .lead { color: var(--text-2); opacity: 1; }
:root[data-theme-effective="light"] .cta-band { background: var(--ink-2); border-color: var(--line-strong); box-shadow: var(--shadow); }
:root[data-theme-effective="light"] .cta-band__media { opacity: 1; }
:root[data-theme-effective="light"] .cta-band__media::after { background: linear-gradient(90deg, var(--ink-2) 35%, rgb(var(--bg-rgb) / 0.75) 62%, rgb(var(--bg-rgb) / 0.15) 100%); }
:root[data-theme-effective="light"] .site-header { background: rgb(var(--bg-rgb) / 0.72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
:root[data-theme-effective="light"] .site-header.is-scrolled { background: rgb(var(--bg-rgb) / 0.86); box-shadow: 0 10px 30px -24px rgb(40 36 20 / 0.4); }
:root[data-theme-effective="light"] .form-panel { box-shadow: 0 1px 0 rgb(255 255 255 / 0.8) inset, 0 30px 70px -40px rgb(40 36 20 / 0.45); }
:root[data-theme-effective="light"] body::after { opacity: 0.035; }

/* Above-the-fold entrance: CSS only, so text paints on first frame (fast LCP) and never waits for JS.
   Starts at near-zero (not zero) opacity so the browser still counts the paint. */
@media (prefers-reduced-motion: no-preference) {
  .enter { animation: enter 0.9s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 1ms); }
}
@keyframes enter { from { opacity: 0.01; transform: translateY(18px); } }

/* Phones: only WhatsApp floats (Instagram and email live in the footer and on the contact page),
   and the footer leaves room so the button never covers text. */
@media (max-width: 640px) {
  .fab--mini { display: none; }
  .site-footer { padding-bottom: 5rem; }
}

/* Very narrow screens (folded cover displays, 280-340px): compact header, never overflow. */
@media (max-width: 340px) {
  .site-header__inner { gap: 0.5rem; }
  .brand img { height: 24px; }
  .header-actions { gap: 0.35rem; }
  .theme__toggle, .menu-toggle { width: 38px; height: 38px; }
}
main :is(p, li, h1, h2, h3, h4, dd, a, span) { overflow-wrap: break-word; }
main :is(.grid, .split, .cluster) > * { min-width: 0; }
@media (max-width: 360px) {
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .btn--lg { padding-inline: 1.2em; }
}
