/* ==========================================================================
   MULTILUX — dark premium
   Near-black canvas. The logo's three colours used at full strength, as text
   and as structure.

   THE ARGUMENT FOR THIS DIRECTION, measured:
     on WHITE  — orange 2.7:1 · blue 2.4:1 · green 1.8:1   -> all fail as text
     on #0a0a0b — orange 8.0:1 · blue 8.4:1 · green 11.5:1 -> all pass easily
   Dark is the only canvas where Multilux's brand colours can be used freely
   rather than kept decorative. It is also where the low-resolution stock
   photography reads best: a dark field hides softness that white exposes.
   ========================================================================== */

:root {
  --bg:      #0a0a0b;
  --bg-alt:  #101013;
  --panel:   #17171b;
  --line:    #26262c;
  --line-sf: #1c1c21;

  --tx:      #ffffff;             /* 19.8:1 on --bg */
  --tx-mute: #a8a8b0;             /* 8.4:1  on --bg */
  /* Must clear 4.5:1 on the PANEL too, not just --bg — the panels are lighter,
     so they are the binding constraint. #7c7c86 measured only 4.33 there. */
  --tx-faint:#8a8a94;

  /* the logo colours — on this canvas they are all text-safe */
  --o: #fd7501;                   /* 8.0:1  */
  --b: #21b2fe;                   /* 8.4:1  */
  --g: #7dd958;                   /* 11.5:1 */

  --wa:    #1faa53;               /* on dark, the brighter green is fine */
  --wa-dk: #178c43;

  --ff:   "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ff-m: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --gut:  clamp(20px, 5vw, 64px);
  --rail: 68px;
  --hdr-h: 76px;                  /* sticky offset under the fixed header */
  --sec-y: clamp(72px, 9vw, 132px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--o); color: #000; padding: 12px 18px; font-size: 14px; text-decoration: none; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- riser ---------- */
.riser { position: fixed; top: 0; bottom: 0; left: calc(var(--rail) / 2); width: 1px; z-index: 5; pointer-events: none; }
.riser__track { position: absolute; inset: 0; background: var(--line); }
.riser__fill {
  position: absolute; top: 0; left: 0; right: 0; height: 0; overflow: hidden;
  background-image: linear-gradient(180deg, var(--o) 0%, var(--b) 50%, var(--g) 100%);
  background-size: 100% 100vh;
  background-repeat: no-repeat;
  transition: height .12s linear;
}
.riser__fill::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 0; transform: translateX(-50%);
  border-left: 4.5px solid transparent; border-right: 4.5px solid transparent;
  border-top: 7px solid var(--tx);
}
@media (max-width: 1100px) { .riser { display: none; } }

/* ---------- triangles ---------- */
.tri {
  display: inline-block; width: 0; height: 0;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor; flex: none;
}
.tri--o { color: var(--o); }
.tri--b { color: var(--b); }
.tri--g { color: var(--g); }
.tri--lg { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 13px; }

/* ==========================================================================
   BUTTONS — orange fill, black label (8.0:1 either way round)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--o); color: #000;
  border: 1px solid var(--o);
  padding: 15px 28px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn::after {
  content: ""; width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
  transition: transform .25s var(--ease);
}
.btn:hover {
  background: transparent; color: var(--o);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--o), 0 8px 30px rgba(253,117,1,.22);
}
.btn:hover::after { transform: translateX(4px); }

.btn--ghost { background: transparent; color: var(--tx); border-color: var(--line); }
.btn--ghost:hover { background: transparent; color: var(--tx); border-color: var(--tx); box-shadow: none; }

.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

.btn--wa { background: var(--wa); color: #fff; border-color: var(--wa); margin-top: 14px; }
.btn--wa:hover { background: var(--wa-dk); border-color: var(--wa-dk); color: #fff; box-shadow: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.hdr.is-stuck {
  background: rgba(10, 10, 11, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.hdr__in { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; gap: 28px; }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { width: 128px; }

.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; font-size: 15px; font-weight: 500;
  text-decoration: none; color: var(--tx-mute); padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--o);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--tx); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.nav a.is-on { color: var(--tx); font-weight: 600; }
.hdr__cta { flex: none; }

.burger {
  display: none; flex: none; width: 42px; height: 42px;
  background: none; border: 1px solid var(--line); cursor: pointer;
  padding: 0; position: relative;
}
.burger span { position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--tx); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger.is-open span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger.is-open span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
/* The hero is a pinned column beside a scrolling one: the headline holds while
   the divisions and then the figures travel up past it. It cannot be
   flex-centred or `overflow: hidden` — overflow on an ancestor kills
   position: sticky in the child. */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--hdr-h) + clamp(30px, 5vh, 62px)) 0 clamp(60px, 8vh, 100px) var(--rail);
  border-bottom: 1px solid var(--line);
}
.hero__field { clip-path: inset(0); }   /* clip without overflow:hidden */
/* A contained field, not a wash: grid for structure, and three small colour
   pools sitting exactly under the tiles they belong to. */
.hero__field {
  position: absolute;
  top: 0; left: 0; right: 0;      /* not `inset` — height is set below */
  height: 140%;                   /* taller than the hero so the drift never
                                     exposes its bottom edge */
  pointer-events: none;
  background-image:
    radial-gradient(circle at 78% 26%, rgba(253,117,1,.13) 0%, transparent 38%),
    radial-gradient(circle at 88% 52%, rgba(33,178,254,.13) 0%, transparent 38%),
    radial-gradient(circle at 76% 78%, rgba(125,217,88,.12) 0%, transparent 38%),
    linear-gradient(var(--line-sf) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-sf) 1px, transparent 1px);
  background-size: auto, auto, auto, 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 95% 60% at 50% 34%, #000 0%, transparent 84%);
          mask-image: radial-gradient(ellipse 95% 60% at 50% 34%, #000 0%, transparent 84%);
}
.hero__in {
  position: relative; z-index: 1;
  max-width: var(--wrap); width: 100%; margin: 0 auto;
  padding-inline: var(--gut);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;             /* `center` would break the sticky column */
}

/* the half that stays put */
.hero__copy { position: sticky; top: calc(var(--hdr-h) + clamp(16px, 4vh, 48px)); }

/* the half that travels */
.hero__scroll { display: grid; gap: clamp(48px, 8vh, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-m); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--tx-mute); margin: 0 0 26px;
}

/* sized to its column — the tiles take the right third */
.hero__h { font-size: clamp(40px, 5.3vw, 76px); font-weight: 800; letter-spacing: -.045em; margin: 0 0 24px; }
.u-mark { position: relative; white-space: nowrap; }
.u-mark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: .085em;
  background: linear-gradient(90deg, var(--o), var(--b), var(--g));
  transform: scaleX(0); transform-origin: left;
  animation: mark .7s var(--ease) .75s forwards;
}
@keyframes mark { to { transform: scaleX(1); } }
.dot--o { color: var(--o); }
.dot--g { color: var(--g); }

.hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--tx-mute); max-width: 50ch; margin: 0 0 32px; line-height: 1.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- division tiles ----------
   Solid logo colour with near-black label, exactly as on the light sheet —
   8.0 / 8.4 / 11.5:1 against --bg used as ink. Colour that is also navigation. */
/* Tiles carry real height: the pinned copy can only hold for as long as this
   column is taller than it. At the old size the whole hero was 1042px against a
   900px viewport — 142px of travel, so nothing appeared to pin at all. */
.tiles { display: grid; gap: 14px; }
.tile {
  position: relative; display: block;
  padding: 26px 54px 26px 24px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bg);
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile--o { background: var(--o); }
.tile--b { background: var(--b); }
.tile--g { background: var(--g); }

.tile__n { display: block; font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .62; margin-bottom: 7px; }

.tile__h { display: block; font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.tile__p { display: block; font-size: 13px; line-height: 1.5; opacity: .8; max-width: 34ch; }

.tile::after {
  content: ""; position: absolute; top: 50%; right: 24px;
  width: 0; height: 0; transform: translateY(-50%);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  border-left: 9px solid var(--bg);
  transition: transform .3s var(--ease);
}
/* The offset bar sits on the page, not the tile — it has to be light here or it
   disappears into the near-black canvas. */
.tile:hover { transform: translateX(6px); box-shadow: -6px 0 0 0 var(--tx); }
.tile:hover::after { transform: translateY(-50%) translateX(5px); }

/* ==========================================================================
   FIGURES — stacked vertically, scrolling up past the pinned headline
   ========================================================================== */
.figs { display: grid; border-top: 1px solid var(--line); }
.fig {
  display: grid;
  grid-template-columns: 5.4ch 1fr;   /* fixed value column so labels line up */
  align-items: baseline;
  column-gap: clamp(14px, 1.6vw, 24px);
  padding: 28px 0 28px 18px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--line);
}
.fig[data-c="o"] { border-left-color: var(--o); }
.fig[data-c="b"] { border-left-color: var(--b); }
.fig[data-c="g"] { border-left-color: var(--g); }
.fig__v { white-space: nowrap; }
.fig__n {
  font-family: var(--ff-m);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 500; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;   /* no width jitter while counting up */
}
.fig__p { font-family: var(--ff-m); font-size: clamp(15px, 1.5vw, 19px); margin-left: 2px; }
.fig[data-c="o"] .fig__p { color: var(--o); }
.fig[data-c="b"] .fig__p { color: var(--b); }
.fig[data-c="g"] .fig__p { color: var(--g); }
.fig__l { font-size: 14.5px; color: var(--tx-mute); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.sec { padding: var(--sec-y) 0 var(--sec-y) var(--rail); position: relative; scroll-margin-top: 76px; border-bottom: 1px solid var(--line); }
.div-head[id] { scroll-margin-top: 96px; }
.sec--alt { background: var(--bg-alt); }

.sec__head { margin-bottom: 58px; }
.sec__head--tight { margin-bottom: 30px; }

.callout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line); border-radius: 50%;
  font-family: var(--ff-m); font-size: 12px; color: var(--tx-faint);
  margin-bottom: 18px;
}
.sec__t { font-size: clamp(32px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.04em; }
.sec__d { margin: 16px 0 0; color: var(--tx-mute); max-width: 56ch; font-size: 17px; }
.lead { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; letter-spacing: -.02em; }

/* ==========================================================================
   PHOTOS — the dark canvas is where these actually work
   ========================================================================== */
.shot { position: relative; overflow: hidden; background: #16202a; line-height: 0; }
.shot img {
  width: 100%;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: luminosity;
  opacity: .88;
  transition: mix-blend-mode .4s var(--ease), filter .5s var(--ease),
              opacity .4s var(--ease), transform .7s var(--ease);
}
.shot::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2; }
.shot--o::before { background: var(--o); }
.shot--b::before { background: var(--b); }
.shot--g::before { background: var(--g); }

.shot:hover img, .card:hover .shot img, figure:hover .shot img {
  filter: grayscale(0) contrast(1); mix-blend-mode: normal; opacity: 1; transform: scale(1.035);
}
.shot::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,.4);
  border-bottom: 2px solid rgba(255,255,255,.4);
  pointer-events: none; z-index: 2;
}

/* ---------- parallax figures ----------
   Over-scaled to 1.2 in a fixed frame, buying ~10% of travel each way.
   main.js writes --py only; it never touches `transform`, so the hover
   treatment and the drift coexist. Both sources (940 and 1136 native, shown
   ~500) stay downscaled at 1.2, so this costs no sharpness. */
[data-parallax] { will-change: transform; }

.about__fig .shot { aspect-ratio: 47 / 53; }    /* civil.webp is 940x1060 */
.care__fig .shot { aspect-ratio: 568 / 519; }   /* maint.webp is 1136x1038 */

.about__fig .shot img,
.care__fig .shot img {
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.2);
  /* deliberately no transform transition — it would lag the scroll */
  transition: filter .5s var(--ease), mix-blend-mode .4s var(--ease), opacity .4s var(--ease);
}
figure:hover .shot img[data-parallax],
.shot:hover img[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.2);
}

/* the About figure holds while the copy scrolls past it */
.about__fig { position: sticky; top: var(--hdr-h); }
.hero__field { will-change: transform; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__copy p { color: var(--tx-mute); max-width: 56ch; }
.about__copy .lead { color: var(--tx); }

.facts { margin-top: 34px; border-top: 1px solid var(--line); }
.facts > div { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-faint); flex: none; width: 130px; padding-top: 3px; }
.facts dd { font-size: 15.5px; font-weight: 500; }

.about__fig { margin: 0; }
.about__fig figcaption { margin-top: 14px; font-family: var(--ff-m); font-size: 12px; color: var(--tx-faint); padding-left: 14px; border-left: 2px solid var(--o); }

/* ---------- services ---------- */
/* Each division is its own sticky context. Without this wrapper the header
   would stick for the whole services section instead of only over its cards. */
.division { position: relative; }

.div-head {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 26px; padding-top: 42px; padding-bottom: 14px;
  position: sticky;
  top: var(--hdr-h);
  z-index: 4;                     /* under the riser (5) — it must stay unbroken */
  background: var(--bg-alt);      /* opaque, or cards scroll through it */
}
/* No full-bleed background: .div-head and .cards are both children of .wrap and
   already the same width, so nothing can show beside it. An `inset: 0 -100vw`
   bleed only punched holes in the riser. */
.div-head h3 { font-size: clamp(19px, 2.1vw, 25px); font-weight: 700; letter-spacing: -.03em; flex: none; }
.div-head__rule { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.div-head__rule::after { content: ""; position: absolute; left: 0; top: 0; width: min(56px, 100%); height: 1px; }
.div-head__rule[data-c="o"]::after { background: var(--o); }
.div-head__rule[data-c="b"]::after { background: var(--b); }
.div-head__rule[data-c="g"]::after { background: var(--g); }
.div-head__n { font-family: var(--ff-m); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-faint); flex: none; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--panel); padding: 0 0 26px; transition: background .3s var(--ease); }
.card:hover { background: #1d1d22; }
.card .shot { margin-bottom: 22px; aspect-ratio: 27 / 17; }
.card h4 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; margin: 0 26px 10px; }
.card p { margin: 0 26px; font-size: 14.5px; line-height: 1.6; color: var(--tx-mute); }
.card__link { display: inline-flex; align-items: center; gap: 7px; margin: 16px 26px 0; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--g); }
.card__link:hover { text-decoration: underline; }

.slot {
  aspect-ratio: 27 / 17; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--line-sf) 0 10px, transparent 10px 20px);
  border-bottom: 1px solid var(--line);
}
.slot .tri { transform: scale(2.2); }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why__i { background: var(--bg); padding: 38px clamp(24px, 3vw, 44px) 40px; position: relative; }
.why__i::before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 3px; }
.why__i[data-c="o"]::before { background: var(--o); }
.why__i[data-c="b"]::before { background: var(--b); }
.why__i[data-c="g"]::before { background: var(--g); }
.why__n { display: block; font-family: var(--ff-m); font-size: 12px; letter-spacing: .1em; color: var(--tx-faint); margin-bottom: 14px; }
.why__i h3 { font-size: 21px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 12px; }
.why__i p { margin: 0; color: var(--tx-mute); font-size: 15.5px; max-width: 44ch; }

/* ---------- maintenance ---------- */
.care { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 76px); align-items: center; }
.care__copy .lead { max-width: 46ch; margin-bottom: 30px; }
.ticks { margin-bottom: 34px; }
.ticks li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--tx-mute); }
.ticks li::before {
  content: ""; flex: none; margin-top: 8px;
  width: 0; height: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 6px solid var(--b);
}
.care__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.care__note { font-family: var(--ff-m); font-size: 12px; color: var(--tx-faint); }
.care__fig { margin: 0; max-width: 480px; justify-self: end; }

/* ---------- clients ---------- */
.clients-sec { padding-block: clamp(48px, 6vw, 76px); }
.clients__t { font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-faint); text-align: center; margin: 0 0 32px; }
.clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 54px); }
/* The client marks are dark artwork on a white plate. Inverting turns the plate
   black; `screen` then drops that black to nothing, so the marks sit on the
   canvas instead of in visible boxes. */
.clients img {
  width: 118px;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  opacity: .62;
  transition: opacity .3s var(--ease);
}
.clients li:hover img { opacity: 1; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { margin-bottom: 18px; }
.f label { display: block; font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: 8px; }
.f input, .f select, .f textarea {
  width: 100%;
  background: var(--bg);
  color: var(--tx);
  border: 1px solid var(--line);
  padding: 13px 14px;
  font-size: 15.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.f select option { background: var(--bg); color: var(--tx); }
.f textarea { resize: vertical; min-height: 112px; }
.f input::placeholder, .f textarea::placeholder { color: var(--tx-faint); }
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none; border-color: var(--o);
  box-shadow: 0 0 0 3px rgba(253,117,1,.16);
}
.form__note { margin: 14px 0 0; font-size: 14px; min-height: 1.2em; }
.form__note.is-err { color: var(--o); }
.form__note.is-ok  { color: var(--g); }

.reach { border-top: 1px solid var(--line); }
.reach__i { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.reach__l { font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: 8px; }
.reach__v { font-size: 19px; font-weight: 600; letter-spacing: -.025em; text-decoration: none; color: var(--tx); }
a.reach__v:hover { color: var(--o); }
.reach__v--p { font-size: 15.5px; font-weight: 400; line-height: 1.6; color: var(--tx-mute); margin: 0; }

/* ---------- footer ---------- */
.ftr { background: var(--bg-alt); padding: clamp(56px, 7vw, 84px) 0 0 var(--rail); }
.ftr__in { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: clamp(30px, 4vw, 64px); padding-bottom: 52px; }
.ftr__brand img { width: 138px; margin-bottom: 20px; }
.ftr__brand p { color: var(--tx-mute); font-size: 15px; max-width: 40ch; margin-bottom: 22px; }
.ftr__divs { display: flex; flex-direction: column; gap: 9px; }
.ftr__divs li { display: flex; align-items: center; gap: 10px; font-family: var(--ff-m); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-faint); }
.ftr__h { display: block; font-family: var(--ff-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: 18px; }
.ftr__nav, .ftr__c { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.ftr__nav a, .ftr__c a { font-size: 15px; text-decoration: none; color: var(--tx-mute); transition: color .2s var(--ease); }
.ftr__nav a:hover, .ftr__c a:hover { color: var(--o); }
.ftr__c p { color: var(--tx-faint); font-size: 15px; margin: 6px 0 0; line-height: 1.6; }
.ftr__bar {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 22px 0 26px; border-top: 1px solid var(--line);
  font-family: var(--ff-m); font-size: 11.5px; color: var(--tx-faint);
}

/* ---------- whatsapp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; border-radius: 50%;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.wa-float:hover { background: var(--wa-dk); transform: scale(1.08) translateY(-2px); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  .hero { padding-left: 0; }
  .sec, .ftr { padding-left: 0; }
}
@media (max-width: 980px) {
  /* One column: nothing to pin against, so the copy just leads the page. */
  .hero__in { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { position: static; }
  .tiles, .figs { max-width: 620px; }
}
@media (max-width: 900px) {
  .hdr__in { gap: 14px; }
  /* No backdrop-filter below 900px: a filtered ancestor becomes the containing
     block for its position:fixed descendants, which would make the .nav overlay
     resolve inset:0 against the header instead of the viewport. */
  .hdr.is-stuck { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .nav {
    position: fixed; inset: 0;
    background: var(--bg);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 6px; padding: 0 var(--gut); margin: 0;
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
    z-index: 99;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 30px; font-weight: 700; letter-spacing: -.035em; color: var(--tx); padding: 12px 0; }
  .nav a::after { display: none; }
  .hdr__cta { display: none; }
  .burger { display: block; margin-left: auto; z-index: 101; }

  .about, .care, .contact { grid-template-columns: 1fr; }
  .care__fig { justify-self: start; max-width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .ftr__in { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }

  /* Sticky is for wide screens. In one column the About figure would pin over
     its own copy, and a sticky division header eats scarce vertical space. */
  .about__fig { position: static; }
  .div-head { position: static; padding-bottom: 0; }
  .div-head::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding: 116px 0 72px; }
  .cards { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .ftr__in { grid-template-columns: 1fr; }
  .facts dt { width: 104px; }
  .wa-float { right: 16px; bottom: 16px; }
  .div-head__n { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .u-mark::after { transform: scaleX(1); }
}
