/* =========================================================
   EM Concept — styles
   Tokens → base → layout → components → sections → motion
   ========================================================= */

:root {
  /* Brand (from logo) */
  --cyan: #3fb6e0;
  --green: #a3c846;
  --navy: #1e4a92;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #6cc08f 55%, var(--green) 100%);

  /* Neutrals */
  --ink-900: #0b1a33;
  --ink-800: #11244a;
  --ink-700: #1b2f57;
  --ink-500: #4a5a78;
  --ink-300: #9aa7bf;
  --paper: #f6f8fb;
  --white: #fff;
  --line: #e2e8f1;

  /* Type */
  --font-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  --fs-h3: 1.35rem;
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);

  /* Space & shape */
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(11 26 51 / 6%), 0 8px 24px -8px rgb(11 26 51 / 18%);
  --shadow-lg: 0 24px 60px -20px rgb(11 26 51 / 40%);
  --header-h: 96px;

  /* Motion tokens — see docs/motion-system.md
     Durations: micro (hover/press) → UI (menus, pills) → component (cards, images) → narrative (headings, sections) → cinematic (hero). */
  --dur-micro: 160ms;
  --dur-ui: 320ms;
  --dur-component: 600ms;
  --dur-narrative: 950ms;
  --dur-cinematic: 1400ms;
  --stagger: 70ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);      /* entrances: fast start, long settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);  /* on-screen moves: light, FLIP, pills */
  --ease-in: cubic-bezier(.7, 0, .84, 0);       /* exits */
  --ease-back: cubic-bezier(.34, 1.45, .64, 1); /* confirmations: tiny overshoot */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: .005em; color: var(--ink-900); }
h2 { font-size: var(--fs-h2); font-weight: 800; text-transform: uppercase; text-wrap: balance; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink-900); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--navy);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--grad); }
/* Editorial numbering: 01 ── SERVICES */
.eyebrow-num { order: -1; font-variant-numeric: tabular-nums; letter-spacing: .08em; color: var(--ink-300); }
.section-dark .eyebrow-num { color: rgb(255 255 255 / 40%); }

/* Typographic signature: condensed capitals + one serif italic accent per title.
   Accent = solid navy on light (contrast), the "current" gradient on dark. */
h2 em {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500;
  text-transform: none; letter-spacing: -.015em; color: var(--navy); padding-right: .04em;
}
.section-dark h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .18em; margin-bottom: -.18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .95rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x); border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
}
.btn-sm { --pad-y: .7rem; --pad-x: 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
/* Primary: a solid pill with a hairline "cable" edge in the brand gradient.
   The gradient is reserved for the current (lines, edges, accents), never used as a flat fill. */
.btn-primary {
  --fill: var(--ink-900);
  color: var(--white);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--fill), var(--fill)) padding-box, var(--grad) border-box;
  box-shadow: 0 14px 30px -16px rgb(11 26 51 / 70%);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgb(11 26 51 / 75%), 0 0 0 4px rgb(63 182 224 / 12%); }
.hero .btn-primary, .section-dark .btn-primary, .site-footer .btn-primary,
.site-header:not(.is-scrolled):not(.is-open):not(.is-solid) .btn-primary { --fill: var(--white); color: var(--ink-900); box-shadow: 0 14px 34px -14px rgb(0 0 0 / 60%); }
.btn-ghost {
  color: var(--white); background: rgb(255 255 255 / 8%);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 16%); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .35s, box-shadow .35s, color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgb(255 255 255 / 92%); color: var(--ink-900);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
/* Transparent state: a soft scrim keeps the logo and links readable over bright parts of the photo. */
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(5 11 23 / 60%), rgb(5 11 23 / 0%));
  transition: opacity var(--dur-ui);
}
.site-header.is-scrolled::before, .site-header.is-open::before, .site-header.is-solid::before { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; align-self: flex-start; margin-top: 8px; transform-origin: left top; }
.brand img { width: 200px; height: auto; }
@media (max-width: 860px) { :root { --header-h: 84px; } .brand img { width: 140px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand-text small { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav ul a {
  position: relative; text-decoration: none; font-weight: 500; padding-block: .4rem;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.site-nav ul a:hover::after, .site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

/* Header contact: phone pill + WhatsApp icon (label shown as a tooltip on desktop, as text in the mobile menu) */
.nav-contact { display: flex; align-items: center; gap: .5rem; }
.header-wa {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--wa, #25d366); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 35%);
  transition: background-color var(--dur-ui), box-shadow var(--dur-ui);
}
.site-header.is-scrolled .header-wa, .site-header.is-solid .header-wa { box-shadow: inset 0 0 0 1.5px var(--line); }
.header-wa:hover { background: rgb(37 211 102 / 14%); box-shadow: inset 0 0 0 1.5px var(--wa, #25d366); }
.header-wa .icon { width: 21px; height: 21px; }
.header-wa-label {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% -4px;
  padding: .3rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  color: var(--ink-900); background: var(--white); box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-ui), translate var(--dur-ui) var(--ease-out);
}
.header-wa:hover .header-wa-label, .header-wa:focus-visible .header-wa-label { opacity: 1; translate: -50% 0; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; color: inherit;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { content: ""; left: 0; top: -7px; }
.nav-toggle-bar::after { content: ""; left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem; background: var(--white); color: var(--ink-900);
    box-shadow: 0 20px 40px -20px rgb(11 26 51 / 35%);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .25s, transform .3s var(--ease-out); }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav ul a { display: block; padding: .8rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .brand-text small { display: none; }
  /* Mobile menu: the two ways to reach you, side by side, same weight */
  .nav-contact { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  .nav-contact > * { height: 52px; }
  .nav-contact .btn { --pad-y: 0; }
  .header-wa {
    display: inline-flex; gap: .5rem; width: auto; padding: 0 1rem; border-radius: 999px;
    font-weight: 600; font-size: .95rem; color: var(--ink-900); box-shadow: inset 0 0 0 1.5px var(--line);
  }
  .header-wa .icon { color: var(--wa, #25d366); }
  .header-wa-label { position: static; translate: none; opacity: 1; padding: 0; background: none; box-shadow: none; font-size: inherit; color: inherit; }
}

/* ---------- Hero ----------
   Signature: « L'électricité pour base, la technologie pour signature. De l'énergie à l'émotion. »
   --r  radius of the light (animated, registered below)
   --lx/--ly  light origin, --sp  scroll progress 0→1, --tx/--ty  pointer parallax */
@property --r { syntax: "<length>"; inherits: true; initial-value: 0px; }

.hero {
  --r: 0px; --lx: 50%; --ly: 18%; --sp: 0; --tx: 0px; --ty: 0px;
  position: relative; isolation: isolate;
  min-height: max(680px, 100svh);
  display: grid; align-items: end;
  padding: calc(var(--header-h) + 3rem) 0 clamp(5.5rem, 12vh, 8rem);
  color: var(--white); background: #050b17;
  overflow: clip;
  transition: --r 2.2s cubic-bezier(.65, 0, .35, 1);
}
.hero.is-lit { --r: 170vmax; }
.hero.is-torch { --r: 230px; transition: --r .6s var(--ease-out); }

/* Stage: shrinks into a framed "screen" as you scroll */
.hero-stage {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  clip-path: inset(calc(var(--sp) * 5%) calc(var(--sp) * 4%) round calc(var(--sp) * 32px));
}
.hero-media {
  position: absolute; inset: -3%;
  transform: translate3d(var(--tx), var(--ty), 0) scale(calc(1.02 + var(--sp) * .08));
  transition: transform .9s var(--ease-out);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero-img--dark { filter: brightness(.22) saturate(.4) contrast(1.1); }
.hero-img--lit {
  filter: brightness(.95) saturate(1.05);
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 55%, transparent 100%);
}

.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 70% 30%, transparent 40%, rgb(5 11 23 / 55%) 100%),
    linear-gradient(0deg, rgb(5 11 23 / 96%) 0%, rgb(5 11 23 / 70%) 32%, rgb(5 11 23 / 0%) 70%),
    linear-gradient(90deg, rgb(5 11 23 / 70%) 0%, rgb(5 11 23 / 0%) 60%);
}
.hero-grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* The current: a gradient trace that runs across the room before the light comes on */
.hero-current { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 1.6s .4s; }
.hero-current path { fill: none; stroke: url(#current); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1700; stroke-dashoffset: 1700; }
.current-core { stroke-width: 2; }
.current-glow { stroke-width: 8; filter: url(#glow); opacity: .8; }
.current-node { fill: #a3c846; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero.is-powered .hero-current path { animation: current 1.3s cubic-bezier(.7, 0, .3, 1) forwards; }
.hero.is-powered .current-node { animation: node .5s var(--ease-out) forwards; }
.hero.is-powered .current-node:nth-of-type(1) { animation-delay: .35s; }
.hero.is-powered .current-node:nth-of-type(2) { animation-delay: .6s; }
.hero.is-powered .current-node:nth-of-type(3) { animation-delay: .85s; }
.hero.is-lit .hero-current { opacity: .45; }
.hero.is-torch .hero-current { opacity: .2; }
@keyframes current { to { stroke-dashoffset: 0; } }
@keyframes node { 0% { opacity: 0; transform: scale(.2); } 60% { opacity: 1; transform: scale(1.8); } 100% { opacity: 1; transform: scale(1); } }

/* Content */
.hero-content {
  transform: translate3d(0, calc(var(--sp) * -70px), 0);
  opacity: calc(1 - var(--sp) * 1.4);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: .65rem; margin-bottom: 1.4rem;
  padding: .45rem .95rem .45rem .75rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: rgb(255 255 255 / 85%);
  background: rgb(255 255 255 / 6%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 14%); backdrop-filter: blur(8px);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2.2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(163 200 70 / 65%); } 70%, 100% { box-shadow: 0 0 0 10px rgb(163 200 70 / 0%); } }

/* Signature: « L'électricité pour base, la technologie pour signature. » — longer than the old slogan,
   so the scale is a step smaller and lines may wrap inside their mask. */
.hero-title {
  display: grid; gap: .08em; margin-bottom: 1.25rem; max-width: 17ch;
  font-size: max(2.4rem, min(clamp(2.4rem, 1rem + 4.8vw, 6rem), 10svh));
  line-height: .95; color: var(--white); text-wrap: balance;
}
/* Devise « De l'énergie à l'émotion » — the site's story in one line:
   the word "énergie" powers on like a neon, the current runs, "émotion" lights up.
   Then a spark travels the wire every 3.6 s and the word glows as it arrives. */
.hero-tagline {
  --tg-w: clamp(44px, 5vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; gap: .35em .7em; margin-bottom: 1.8rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, .85rem + 1vw, 1.7rem); line-height: 1.1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--white);
}
.tg-a { text-shadow: 0 0 18px rgb(63 182 224 / 35%); }
.tg-current { position: relative; width: var(--tg-w); height: 2px; border-radius: 2px; background: rgb(255 255 255 / 16%); }
.tg-current::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad);
  box-shadow: 0 0 10px rgb(63 182 224 / 60%); transform-origin: left;
}
.tg-current i {
  position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; opacity: 0;
  background: #fff; box-shadow: 0 0 8px 2px rgb(63 182 224 / 90%), 0 0 22px 6px rgb(163 200 70 / 45%);
}
.tg-b {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; text-transform: none; letter-spacing: -.01em;
  font-size: 1.5em; line-height: 1.05; padding: 0 .08em .18em 0; margin-bottom: -.18em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Entrance (after the light comes on) */
.js .hero .tg-a { opacity: 0; }
.js .hero .tg-current::before { transform: scaleX(0); }
.js .hero .tg-b { opacity: 0; clip-path: inset(-.2em 100% -.3em 0); }
.js .hero.is-ready .tg-a { animation: tg-flicker 1s steps(1, end) 1.25s forwards; }
.js .hero.is-ready .tg-current::before { transform: scaleX(1); transition: transform 700ms var(--ease-in-out) 2.1s; }
.js .hero.is-ready .tg-b { opacity: 1; clip-path: inset(-.2em -.2em -.3em 0); transition: opacity 200ms 2.6s, clip-path 1100ms var(--ease-out) 2.6s; }
@keyframes tg-flicker {
  0% { opacity: 0; } 8% { opacity: 1; } 14% { opacity: .15; } 22% { opacity: .9; } 28% { opacity: .3; } 40%, 100% { opacity: 1; }
}

/* Idle loop: spark along the wire, "émotion" glows on arrival */
.js .hero.is-ready .tg-current i { animation: tg-spark 3.6s var(--ease-in-out) 3.8s infinite; }
.js .hero.is-ready .tg-b { animation: tg-glow 3.6s ease-out 3.8s infinite; }
@keyframes tg-spark {
  0% { opacity: 0; transform: translateX(0) scale(.6); }
  8% { opacity: 1; transform: translateX(0) scale(1); }
  55% { opacity: 1; transform: translateX(var(--tg-w)) scale(1); }
  65%, 100% { opacity: 0; transform: translateX(var(--tg-w)) scale(1.6); }
}
@keyframes tg-glow {
  0%, 50%, 100% { filter: drop-shadow(0 0 0 rgb(108 192 143 / 0%)); }
  62% { filter: drop-shadow(0 0 14px rgb(108 192 143 / 75%)); }
}
.hero.is-offscreen .tg-current i, .hero.is-offscreen .tg-b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tg-current i { display: none; }
  .js .hero .tg-a, .js .hero .tg-b { opacity: 1; clip-path: none; animation: none; }
  .js .hero .tg-current::before { transform: none; }
}
.hero-title .line { display: block; overflow: clip; padding-bottom: .2em; margin-bottom: -.12em; }
.hero-title .line > * { display: inline-block; }
.hero-title .line:first-child > * { font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.hero-title em {
  font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -.02em;
  font-size: .86em; line-height: 1.05; padding-right: .08em;
  /* background-clip:text only paints inside the box: extend it so descenders (g, p, j) get the gradient too */
  padding-bottom: .18em; margin-bottom: -.18em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { font-size: var(--fs-lead); max-width: 54ch; color: rgb(255 255 255 / 78%); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.btn-lg { --pad-y: 1.15rem; --pad-x: 1.8rem; font-size: 1.05rem; }
.btn-lg .icon { transition: transform .35s var(--ease-out); }
.btn-lg:hover .icon { transform: translateX(4px); }
.hero-call { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: .02em; }
.hero-call small { display: block; font-size: .78rem; font-weight: 500; color: rgb(255 255 255 / 60%); }
.hero-call-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 30%); transition: background-color .25s, box-shadow .25s;
}
.hero-call:hover .hero-call-icon { background: rgb(255 255 255 / 10%); box-shadow: inset 0 0 0 1.5px var(--cyan); }

/* Project card (bottom right) */
.hero-card {
  position: absolute; right: var(--gutter); bottom: clamp(5.5rem, 12vh, 8rem); width: 290px;
  display: grid; gap: .8rem; padding: 1.1rem 1.15rem 1.15rem; border-radius: 18px;
  color: rgb(255 255 255 / 78%); font-size: .9rem;
  background: rgb(10 20 40 / 45%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%), 0 30px 60px -30px rgb(0 0 0 / 70%);
  backdrop-filter: blur(16px) saturate(1.3);
}
.hero-card-head { display: flex; align-items: center; gap: .6rem; color: var(--white); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-card-hint { font-size: .8rem; color: var(--cyan); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--grad); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.2s; }
.eq i:nth-child(4) { animation-delay: -.7s; } .eq i:nth-child(5) { animation-delay: -.5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.switch {
  display: inline-flex; align-items: center; gap: .8rem; padding: .3rem .9rem .3rem .3rem; justify-self: start;
  border: 0; border-radius: 999px; background: rgb(255 255 255 / 8%); color: var(--white);
  font-size: .88rem; font-weight: 500; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 16%);
  transition: background-color .2s;
}
.switch:hover { background: rgb(255 255 255 / 15%); }
.switch-plate {
  width: 36px; height: 36px; border-radius: 9px; background: #f3f1ec; display: grid; place-items: center;
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / 10%), 0 2px 6px rgb(0 0 0 / 30%);
}
.switch-rocker {
  width: 17px; height: 23px; border-radius: 4px; background: linear-gradient(#fff, #e7e4dd);
  box-shadow: 0 2px 0 #cfcac0; transform: perspective(60px) rotateX(-18deg);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.switch[aria-pressed="false"] .switch-rocker { transform: perspective(60px) rotateX(18deg); box-shadow: 0 -2px 0 #cfcac0; }

/* Scroll cue */
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.4rem; margin-left: -40px; width: 80px;
  display: grid; justify-items: center; gap: .55rem; text-decoration: none;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgb(255 255 255 / 60%);
}
.hero-scroll-line { width: 1px; height: 38px; background: rgb(255 255 255 / 18%); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--grad); animation: scroll-cue 2s cubic-bezier(.7, 0, .3, 1) infinite; }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Entrance choreography (≈1.8 s): current → light → words */
.js .hero-in { opacity: 0; transform: translateY(28px); }
.js .hero-title .hero-in { opacity: 1; transform: translateY(110%); }
.js .hero.is-ready .hero-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(.55s + var(--i) * .09s);
}

/* Tablet: the project card folds away but the light switch stays, inline under the CTAs. */
@media (max-width: 1100px) {
  .hero { align-content: end; }
  .hero-card {
    position: static; width: min(1200px, 100% - 2 * var(--gutter)); margin: 1.75rem auto 0; padding: 0;
    background: none; box-shadow: none; backdrop-filter: none;
  }
  .hero-card-head, .hero-card > p:not(.hero-card-hint) { display: none; }
}
@media (max-width: 600px) { .hero-card { display: none; } }
@media (max-width: 600px) {
  .hero { padding-bottom: 4.5rem; }
  .hero-kicker { font-size: .76rem; border-radius: 14px; line-height: 1.45; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }
}
/* Touch devices: keep the story, drop the per-frame repaint costs (animated grain, scroll-driven clip-path). */
@media (hover: none) {
  .hero-media { transition: none; }
  .hero-grain { animation: none; inset: 0; }
  .hero-stage { clip-path: none; }
}
.hero.is-offscreen .hero-grain, .hero.is-offscreen .eq i, .hero.is-offscreen .live-dot, .hero.is-offscreen .hero-scroll-line::after { animation-play-state: paused; }

/* ---------- Proof band: four signature figures, continuing the hero's darkness ---------- */
.proof { background: #050b17; color: var(--white); }
.proof-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-list li {
  display: grid; align-content: start; gap: .6rem; padding: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgb(255 255 255 / 9%);
}
.proof-list li:first-child { border-left: 0; padding-left: 0; }
.proof-fig {
  display: flex; align-items: baseline; gap: .35rem;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 1.6rem + 3.6vw, 5.5rem); line-height: .85;
}
.proof-fig small { font-size: .3em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.proof-list span { max-width: 22ch; font-size: .95rem; color: rgb(255 255 255 / 62%); }
@media (max-width: 900px) {
  .proof-list { grid-template-columns: repeat(2, 1fr); }
  .proof-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof-list li:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / 9%); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head > p:last-child { font-size: var(--fs-lead); color: var(--ink-500); }
.section-dark { background: var(--ink-900); color: rgb(255 255 255 / 82%); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--cyan); }
.section-dark .section-head > p:last-child { color: var(--ink-300); }

/* ---------- Services: editorial index ----------
   Large condensed titles on hairlines. On hover (fine pointer) the matching real job floats under the cursor;
   on touch the photo sits inline in the row. The current draws along the row's bottom line. */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 3vw, 3rem); align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--line);
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad);
  scale: 0 1; transform-origin: left; transition: scale var(--dur-component) var(--ease-in-out);
}
.svc:hover::after { scale: 1 1; }
.svc-num {
  align-self: start; padding-top: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .1em; color: var(--ink-300);
  transition: color var(--dur-ui);
}
.svc:hover .svc-num { color: var(--navy); }
.svc h3 {
  font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem); font-weight: 800; text-transform: uppercase;
  transition: translate var(--dur-component) var(--ease-out);
}
.svc:hover h3 { translate: .35em 0; }
.svc-main p { margin-top: .6rem; max-width: 46ch; color: var(--ink-500); }
.svc-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.svc-tags li {
  padding: .38rem .8rem; border-radius: 999px; font-size: .84rem; color: var(--ink-500);
  box-shadow: inset 0 0 0 1px var(--line); transition: color var(--dur-ui), box-shadow var(--dur-ui);
}
.svc:hover .svc-tags li { color: var(--ink-800); box-shadow: inset 0 0 0 1px var(--ink-300); }
.svc--base h3 { color: var(--navy); }
.svc-img { display: none; }

/* Floating preview (desktop, fine pointer). JS moves it with --x/--y and tilts it with --rot. */
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 30; width: clamp(220px, 20vw, 300px); aspect-ratio: 4 / 5;
  border-radius: 18px; overflow: hidden; pointer-events: none; background: var(--ink-800);
  box-shadow: 0 40px 80px -30px rgb(11 26 51 / 55%);
  translate: calc(var(--x, 0px) - 50%) calc(var(--y, 0px) - 50%); rotate: var(--rot, 0deg);
  opacity: 0; scale: .7;
  transition: opacity var(--dur-ui) var(--ease-out), scale var(--dur-component) var(--ease-out);
}
.svc-preview.is-on { opacity: 1; scale: 1; }
.svc-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; scale: 1.12; transition: opacity var(--dur-ui) var(--ease-out), scale var(--dur-narrative) var(--ease-out);
}
.svc-preview img.is-current { opacity: 1; scale: 1; }

@media (max-width: 900px), (hover: none) {
  .svc { grid-template-columns: 2.75rem minmax(0, 1fr); row-gap: 1rem; }
  .svc-tags { grid-column: 2; justify-content: flex-start; }
  .svc-img {
    display: block; grid-column: 2; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover;
    border-radius: var(--radius);
  }
  .svc-preview { display: none; }
}

/* ---------- Gallery ---------- */
/* Curated editorial grid: a big shot beside a tall one, a row of three, the mirror, then calm pairs.
   Each row shares one image height (--mh); captions sit under the photo so the picture stays clean. */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.5rem);
}
.gallery-item { grid-column: span 6; display: flex; flex-direction: column; gap: .9rem; --mh: clamp(240px, 30vw, 400px); }
.gallery-item.span-8 { grid-column: span 8; }
.gallery-item.span-4 { grid-column: span 4; }
.gallery-item.h-lg { --mh: clamp(320px, 40vw, 540px); }
.gallery-item.h-md { --mh: clamp(300px, 36vw, 480px); }
.gallery-cap { margin: 0; display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; color: var(--ink-300); }
.gallery-cap strong { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .02em; color: var(--white); }
@media (max-width: 900px) {
  .gallery-item, .gallery-item.span-8, .gallery-item.span-4 { grid-column: span 6; --mh: auto; }
  .gallery-item.tab-full { grid-column: span 12; }
  .gallery-btn { aspect-ratio: 1; }
  .gallery-item.tab-full .gallery-btn { aspect-ratio: 16 / 10; }
}
@media (max-width: 600px) {
  .gallery-item, .gallery-item.span-8, .gallery-item.span-4 { grid-column: span 12; }
  .gallery-btn, .gallery-item.tab-full .gallery-btn { aspect-ratio: 4 / 3; }
  .gallery-item.is-portrait .gallery-btn { aspect-ratio: 4 / 5; }
}

/* Unified grade: phone photos shot in mixed light are pulled toward one calm, slightly warm look.
   Hover reveals the untouched photo, as if the light came on. */
.gallery-btn img { filter: contrast(1.06) saturate(.86) brightness(.96) sepia(.06); transition: scale var(--dur-narrative) var(--ease-out), filter var(--dur-component) var(--ease-out); }
.gallery-btn:hover img, .gallery-btn:focus-visible img { filter: none; }

.gallery-btn {
  display: block; width: 100%; height: var(--mh); padding: 0; border: 0; position: relative; text-align: left;
  border-radius: var(--radius); background: var(--ink-800); cursor: zoom-in;
}
/* Image layers: `translate` = scroll parallax (JS, --py), `scale` = hover/reveal. Separate properties so they never fight. */
.gallery-btn { overflow: hidden; }
.gallery-btn img, .gallery-btn video {
  position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover;
  translate: 0 var(--py, 0px);
  transition: scale var(--dur-narrative) var(--ease-out);
}
.gallery-btn:hover img, .gallery-btn:focus-visible img { scale: 1.06; }
.gallery-video { cursor: default; }
.gallery-btn:focus-visible { outline-offset: -3px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(6 14 28 / 94%); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; animation: fade .25s ease-out; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; width: 100%; display: grid; gap: .75rem; justify-items: center; padding: 4rem 4.5rem 2rem; max-height: 100dvh; }
/* Sized from the photo's ratio (--ar, set by JS) so the thumbnail and full-res versions occupy the same box. */
.lightbox img {
  width: min(1280px, 100%, calc((100dvh - 9rem) * var(--ar, 1.333))); height: auto; aspect-ratio: var(--ar, 1.333);
  border-radius: 10px; object-fit: cover;
}
.lightbox figcaption { text-align: center; color: rgb(255 255 255 / 80%); }
.lightbox figcaption strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(255 255 255 / 10%); color: var(--white); transition: background-color .2s;
}
.lb-btn:hover { background: rgb(255 255 255 / 22%); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox figure { padding: 4rem .75rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; }
  .lb-prev { left: calc(50% - 60px); transform: scaleX(-1); }
  .lb-next { right: calc(50% - 60px); transform: none; }
}

/* ---------- Method (pinned head + circuit steps) ----------
   Desktop: the heading pins while the steps scroll past; the current (--progress) runs down the line
   and each node lights up as it is reached (.is-active). Pinning is pure CSS sticky: no scroll-jacking. */
.method-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.method-head { position: sticky; top: calc(var(--header-h) + 3rem); margin-bottom: 0; }
.method-head > p:not(.eyebrow) { font-size: var(--fs-lead); color: var(--ink-500); margin-bottom: 2rem; }
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-head { position: static; margin-bottom: 2.5rem; }
}

.steps { position: relative; display: grid; gap: clamp(2.5rem, 8vh, 5rem); padding-block: 1rem; }
/* Desktop: generous spacing so the pinned heading holds for the whole read (≈1 viewport). */
@media (min-width: 901px) { .steps { gap: clamp(4rem, 22vh, 12rem); padding-block: 2rem 12vh; } }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 29px; top: 0; bottom: 0; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line); }
.steps::after {
  background: linear-gradient(180deg, var(--cyan), var(--green));
  transform: scaleY(var(--progress, 0)); transform-origin: top;
  box-shadow: 0 0 12px rgb(63 182 224 / 45%);
}
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 60px 1fr; column-gap: 1.5rem; align-items: start; }
.step-num {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink-300);
  background: var(--white); box-shadow: var(--shadow), inset 0 0 0 2px var(--line);
  transition: color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.step-num::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; background: var(--grad); z-index: -1;
  opacity: 0; scale: .6; filter: blur(10px);
  transition: opacity var(--dur-component) var(--ease-out), scale var(--dur-component) var(--ease-back);
}
.step.is-active .step-num { color: var(--navy); box-shadow: var(--shadow), inset 0 0 0 2px var(--cyan); }
.step.is-active .step-num::after { opacity: .45; scale: 1; }
.step-body { padding-top: .7rem; transition: opacity var(--dur-component) var(--ease-out); }
.js .step:not(.is-active) .step-body { opacity: .45; }
.step h3 { margin-bottom: .5rem; font-size: 1.6rem; }
.step p { color: var(--ink-500); max-width: 42ch; }

/* ---------- Contact: the page closes in the dark ----------
   Same night as the hero; the form is drawn with single hairlines (no box), the focused field
   lights its line with the current. */
.section-contact {
  background:
    radial-gradient(700px 420px at 92% 8%, rgb(63 182 224 / 10%), transparent 70%),
    radial-gradient(600px 420px at 4% 96%, rgb(163 200 70 / 8%), transparent 70%),
    #050b17;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-intro h2 { margin-bottom: 1.1rem; }
.contact-intro > p { font-size: var(--fs-lead); color: rgb(255 255 255 / 62%); margin-bottom: 2.25rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; font-size: 1.1rem; font-weight: 500; color: var(--white); }
.contact-list .icon { color: var(--cyan); width: 22px; height: 22px; }
.contact-list a { overflow-wrap: anywhere; }

.contact-form { display: grid; gap: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { position: relative; display: grid; gap: .35rem; }
.field label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / 50%); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem 0 .8rem; border: 0; border-radius: 0; background: transparent;
  font-size: 1.1rem; color: var(--white);
  box-shadow: inset 0 -1px 0 rgb(255 255 255 / 22%);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}
.field select { appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fb6e0' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 18px no-repeat; }
.field select option { color: var(--ink-900); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgb(255 255 255 / 30%); }
/* The current runs along the focused field's line */
.field::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--grad);
  scale: 0 1; transform-origin: left; transition: scale var(--dur-component) var(--ease-in-out);
  top: calc(100% - var(--err-h, 0px) - 2px); pointer-events: none;
}
.field:focus-within::after { scale: 1 1; }
.field:has(.field-error:not(:empty)) { --err-h: 1.6rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; }
.field:focus-within label { color: var(--cyan); }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 -1px 0 #f0835a; }
.field-error { font-size: .85rem; color: #f0835a; }
.field-error:empty { display: none; }
.form-note { font-size: .85rem; color: rgb(255 255 255 / 45%); }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--green); }
.form-status.is-err { color: #f0835a; }
.form-status a { color: var(--white); }
.hp { position: absolute; left: -9999px; }
[data-submit][aria-busy="true"] { opacity: .7; pointer-events: none; }
.section-contact .btn-primary { --fill: var(--white); color: var(--ink-900); }

/* ---------- Footer ---------- */
/* Closing statement: the phone number is the last, biggest thing on the page.
   On hover the current fills it from left to right. */
.site-footer { background: #050b17; color: var(--ink-300); padding-block: clamp(5rem, 10vw, 8rem) 6rem; font-size: .95rem; }
.footer-call { position: relative; padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer-kicker { font-size: var(--fs-lead); color: rgb(255 255 255 / 60%); margin-bottom: 1rem; }
.footer-phone {
  display: inline-flex; align-items: center; gap: .25em; max-width: 100%;
  font-family: var(--font-display); font-weight: 800; line-height: .9; letter-spacing: -.01em;
  font-size: clamp(2.6rem, .8rem + 8.2vw, 9rem); text-decoration: none; white-space: nowrap;
}
.footer-phone span {
  background: var(--grad) 0 0 / 0% 100% no-repeat, linear-gradient(var(--white), var(--white));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-size var(--dur-narrative) var(--ease-in-out);
}
.footer-phone:hover span, .footer-phone:focus-visible span { background-size: 100% 100%, auto; }
.footer-phone .icon { width: .5em; height: .5em; color: var(--cyan); rotate: -45deg; transition: translate var(--dur-component) var(--ease-out); }
.footer-phone:hover .icon { translate: .08em -.08em; }
.footer-current { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgb(255 255 255 / 10%); overflow: hidden; }
.footer-current::after { content: ""; position: absolute; inset: 0; background: var(--grad); scale: .18 1; transform-origin: left; }

.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: center; padding-top: 2.25rem; }
.footer-brand { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; line-height: 1.5; }
.footer-brand img { width: 120px; height: auto; flex: none; padding: 8px; background: var(--white); border-radius: 14px; box-sizing: content-box; }
.footer-links { display: grid; gap: .4rem; }
.footer-links a:hover { color: var(--white); }
.footer-copy { text-align: right; line-height: 1.6; }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { text-align: left; }
}
@media (min-width: 861px) { .site-footer { padding-bottom: 3rem; } }
.legal + .site-footer { padding-top: 1rem; }

/* ---------- WhatsApp ----------
   WhatsApp green is used only on its own glyph, so the channel is instantly recognisable
   without breaking the palette. */
:root { --wa: #25d366; }

.hero-direct { display: flex; align-items: center; gap: .75rem; }
.hero-wa {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: var(--wa); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 30%);
  transition: background-color var(--dur-ui), box-shadow var(--dur-ui);
}
.hero-wa:hover { background: rgb(37 211 102 / 14%); box-shadow: inset 0 0 0 1.5px var(--wa); }
.hero-wa .icon { width: 22px; height: 22px; }
/* Tooltip label on hover/focus (desktop) */
.hero-wa::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 4px;
  padding: .3rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 600; white-space: nowrap;
  color: var(--ink-900); background: var(--white); opacity: 0; pointer-events: none;
  transition: opacity var(--dur-ui), translate var(--dur-ui) var(--ease-out);
}
.hero-wa:hover::after, .hero-wa:focus-visible::after { opacity: 1; translate: -50% 0; }

.contact-wa .icon { color: var(--wa); }

.footer-wa {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; margin-top: 1.25rem;
  font-size: 1.05rem; font-weight: 500; color: rgb(255 255 255 / 70%); text-decoration: none;
  transition: color var(--dur-micro);
}
.footer-wa .icon { width: 22px; height: 22px; color: var(--wa); }
.footer-wa span:first-of-type { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--dur-ui) var(--ease-out); }
.footer-wa:hover { color: var(--white); }
.footer-wa:hover span:first-of-type { background-size: 100% 1.5px; }

/* Mobile quick contact: a single glass bar within thumb reach — call (brand) | WhatsApp (its green) */
.quick-contact {
  position: fixed; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  display: none; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgb(5 11 23 / 82%); backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 14px 34px -10px rgb(0 0 0 / 55%), inset 0 0 0 1px rgb(255 255 255 / 10%);
}
.qc-btn {
  display: inline-flex; align-items: center; gap: .5rem; height: 52px; padding: 0 1.1rem 0 .95rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--white);
  transition: scale 90ms, background-color var(--dur-ui);
}
.qc-btn:active { scale: .96; }
.qc-btn .icon { width: 22px; height: 22px; }
.qc-call { color: var(--ink-900); background: var(--white); }
.qc-wa .icon { color: var(--wa); }
.qc-wa:hover { background: rgb(255 255 255 / 8%); }
@media (max-width: 860px) { .quick-contact { display: flex; } }
@media (max-width: 360px) { .qc-btn span { display: none; } .qc-btn { padding: 0 .95rem; } }

/* =========================================================
   Motion system — spec in docs/motion-system.md
   Story: the current runs, then the light comes on.
   Only transform / opacity / clip-path are animated.
   ========================================================= */

/* 1. Reveals (JS adds .is-visible in batches, --delay = index × --stagger) */
.js .reveal { opacity: 0; translate: 0 24px; }
.js .reveal.is-visible {
  opacity: 1; translate: none;
  transition: opacity var(--dur-narrative) var(--ease-out), translate var(--dur-narrative) var(--ease-out);
  transition-delay: var(--delay, 0s);
}

/* 1a. Headings: masked wipe — text rises through an invisible slot.
   The clip lives on an inner span: IntersectionObserver treats a fully clipped target as invisible. */
.js .reveal--mask { opacity: 1; translate: none; }
.reveal--mask .mask-inner { display: block; }
.js .reveal--mask .mask-inner { translate: 0 .4em; clip-path: inset(0 0 100% 0); }
.js .reveal--mask.is-visible .mask-inner {
  translate: none; clip-path: inset(-.1em 0 -.25em 0);
  transition: translate var(--dur-narrative) var(--ease-out), clip-path var(--dur-narrative) var(--ease-out);
  transition-delay: var(--delay, 0s);
}

/* 1b. Eyebrow: the little current line draws before the label settles */
.js .eyebrow.reveal::before { scale: 0 1; transform-origin: left; }
.js .eyebrow.reveal.is-visible::before { scale: 1 1; transition: scale var(--dur-component) var(--ease-in-out) calc(var(--delay, 0s) + 120ms); }

/* 1c. Photos: each one switches on like a screen — a bright point stretches into a line,
   the line opens into the picture, and the overexposed image settles to its true colours. */
.js .reveal--curtain { opacity: 1; translate: none; background: transparent; }
.js .reveal--curtain .gallery-btn { clip-path: inset(50% 50% 50% 50% round 2px); background: var(--ink-800); }
.js .reveal--curtain :is(img, video) { scale: 1.1; }
.js .reveal--curtain.is-visible .gallery-btn {
  clip-path: inset(0 0 0 0 round var(--radius));
  animation: screen-on 1200ms var(--ease-in-out) var(--delay, 0s) both;
}
@keyframes screen-on {
  0%   { clip-path: inset(calc(50% - 1px) 50% calc(50% - 1px) 50% round 2px); filter: brightness(3) saturate(0); }
  30%  { clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0 round 2px); filter: brightness(3) saturate(0); }
  70%  { filter: brightness(1.5) saturate(.6); }
  100% { clip-path: inset(0 0 0 0 round var(--radius)); filter: brightness(1) saturate(1); }
}
.js .reveal--curtain.is-visible :is(img, video) { scale: 1; transition: scale var(--dur-cinematic) var(--ease-out) calc(var(--delay, 0s) + 300ms); }
.js .reveal--curtain.is-visible .gallery-btn:hover img { scale: 1.06; transition-delay: 0s; transition-duration: var(--dur-narrative); }
.js .reveal--curtain .gallery-cap { opacity: 0; translate: 0 10px; }
.js .reveal--curtain.is-visible .gallery-cap { opacity: 1; translate: none; transition: opacity var(--dur-component) var(--ease-out) calc(var(--delay, 0s) + 800ms), translate var(--dur-component) var(--ease-out) calc(var(--delay, 0s) + 800ms); }

/* 2. Section transition: dark sections open from a framed screen (mirror of the hero closing) */
.section-dark { clip-path: inset(0 calc((1 - var(--enter, 1)) * 4vw) round calc((1 - var(--enter, 1)) * 40px)); }

/* 3. Header: tucks away while reading down, returns on the slightest scroll up */
.site-header { transition: background-color .35s, box-shadow .35s, color .35s, translate var(--dur-ui) var(--ease-in-out); }
/* Logo: big at the top of the page, scaled down once reading. Only `transform` animates
   (compositor-only, no layout), so the shrink stays fluid; the bar height never changes. */
.brand { transition: transform var(--dur-ui) var(--ease-in-out); will-change: transform; }
.site-header.is-scrolled .brand, .site-header.is-solid .brand, .site-header.is-open .brand { transform: scale(.65); }
@media (max-width: 860px) { .site-header.is-scrolled .brand, .site-header.is-solid .brand, .site-header.is-open .brand { transform: scale(.74); } }
.site-header.is-hidden { translate: 0 -100%; }

/* 4. Buttons: light sheen on hover, physical press, magnetic primary CTAs (JS: --mx/--my) */
.btn { position: relative; overflow: hidden; isolation: isolate; translate: var(--magx, 0) var(--magy, 0); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 55%) 50%, transparent 70%);
  translate: -110% 0;
}
.btn-primary:hover::after { translate: 110% 0; transition: translate 750ms var(--ease-out); }
.btn:active { scale: .97; transition: scale 90ms; }
.btn .icon { transition: translate var(--dur-ui) var(--ease-out); }
.btn:hover .icon { translate: 4px 0; }
[data-magnetic].is-releasing { transition: translate var(--dur-component) var(--ease-back), transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }

/* 5. Text links: underline draws from the left */
.contact-list a, .footer-links a, .legal a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--dur-ui) var(--ease-out), color var(--dur-micro);
  text-decoration: none;
}
.contact-list a:hover, .footer-links a:hover, .legal a:hover { background-size: 100% 1.5px; text-decoration: none; }
/* Touch targets ≥ 44 px: padding grows the hit area, the underline stays under the text. */
.contact-list a, .footer-links a {
  --tap-pad: .55rem;
  display: inline-block; padding-block: var(--tap-pad);
  background-position: 0 calc(100% - var(--tap-pad));
}
.footer-links a { --tap-pad: .8rem; }
.footer-links { gap: 0; }
.contact-list { gap: .2rem; }
.contact-list li { min-height: 44px; }
.hero-call { min-height: 46px; }
.footer-phone { padding-block: .15em; }

/* 6. Form micro-interactions */
.field label { transition: color var(--dur-micro); }
.field:focus-within label { color: var(--navy); }
.btn-dots { display: none; gap: 5px; }
.btn-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 900ms var(--ease-in-out) infinite; }
.btn-dots i:nth-child(2) { animation-delay: 150ms; } .btn-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 0%, 100% { opacity: .3; translate: 0 2px; } 50% { opacity: 1; translate: 0 -2px; } }
[data-submit][aria-busy="true"] { opacity: 1; }
[data-submit][aria-busy="true"] .btn-label { display: none; }
[data-submit][aria-busy="true"] .btn-dots { display: inline-flex; }
.form-status.is-ok { display: flex; align-items: center; gap: .6rem; animation: status-in var(--dur-component) var(--ease-back) both; }
.form-status.is-ok::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 6.8-6.8 1.8 1.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form-status.is-err { animation: shake 420ms var(--ease-out); }
@keyframes status-in { from { opacity: 0; scale: .96; translate: 0 6px; } }
@keyframes shake { 20%, 60% { translate: -5px 0; } 40%, 80% { translate: 5px 0; } }

/* 7. Lightbox: backdrop fades, photo is FLIP-animated by JS from its thumbnail */
.lightbox[open] { animation: fade var(--dur-ui) var(--ease-out); }
.lightbox.is-closing { animation: fade-out var(--dur-ui) var(--ease-in) forwards; }
.lightbox figcaption { animation: fade-up var(--dur-component) var(--ease-out) 250ms both; }
.lightbox img { will-change: transform; }

@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; translate: 0 14px; } }

/* 8. Reduced motion: everything is shown in its final state, nothing moves on its own */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal--mask .mask-inner, .js .reveal--curtain .gallery-btn, .js .reveal--curtain .gallery-cap { opacity: 1; translate: none; clip-path: none; }
  .js .reveal--curtain :is(img, video) { scale: 1; }
  .js .reveal--curtain.is-visible .gallery-btn { animation: none; }
  .js .eyebrow.reveal::before { scale: 1 1; }
  .section-dark { clip-path: none; }
  .hero-grain { animation: none; }
  .js .step:not(.is-active) .step-body { opacity: 1; }
}

/* ---------- Legal page ---------- */
.legal { padding: calc(96px + 3rem) 0 var(--section-y); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: var(--fs-h2); text-transform: uppercase; margin-bottom: 2rem; }
.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 .75rem; }
.legal p, .legal li { color: var(--ink-500); margin-bottom: .6rem; }
.legal a { color: var(--navy); }
.site-header.is-solid { background: rgb(255 255 255 / 92%); color: var(--ink-900); box-shadow: 0 1px 0 var(--line); }
