/* ============================================================
   MATRIX — Design system
   Display : Archivo (variable width — set expanded, nameplate feel)
   Everything else : Inter — body copy, labels, specs, UI

   Full-bleed: the page has no container width. Text blocks are held
   to a readable measure in `ch`, everything else runs edge to edge.
   ============================================================ */

:root {
  /* ground — four steps of black so blocks separate by tone, not by boxes */
  --void:      #050506;  /* page ground */
  --coal:      #0C0C0C;  /* alternating section surfaces */
  --ash:       #1A1A1A;  /* panels nested on coal */
  --pit:       #0A0A0C;
  --graphite:  #121216;
  --edge:      #333333;  /* 80% black — every dividing hairline */
  --edge-soft: rgba(255,255,255,.09);

  /* ink */
  --platinum:  #EDEEF1;
  --steel:     #8B909B;
  --steel-dim: #5A5F69;

  /* signal — Matrix red, used only where energy is measured */
  --ember:     #E1261C;
  --ember-lit: #F5372C;

  --font-display: 'Archivo', 'Arial Narrow', sans-serif;   /* headings only */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-data:    'Inter', system-ui, sans-serif;          /* labels, specs, meta */

  /* type scale — deliberately wide range: one enormous voice,
     one quiet one, almost nothing in between */
  --t-mega:  clamp(2rem, 6vw, 50px);
  --t-xl:    clamp(1.6rem, 3.4vw, 40px);
  --t-lg:    clamp(1.2rem, 2vw, 26px);
  --t-md:    clamp(1rem, 1.4vw, 1.3rem);
  --t-lede:  clamp(.9rem, .3vw + .82rem, .94rem);   /* 14.4–15 px */
  --t-micro: .7rem;

  --gut: clamp(1.25rem, 3.6vw, 4.5rem);
  --band: clamp(5rem, 11vw, 13rem);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --nav-h: 4.7rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--void);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: clamp(.94rem, .3vw + .86rem, 1.02rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
/* `display` set by a class would otherwise outrank the UA's [hidden] rule */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type roles ---------- */

.display {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 116, 'wght' 640;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0;
  text-wrap: balance;
}

.d-xxl { font-size: var(--t-mega); letter-spacing: -.035em; }
.d-xl  { font-size: var(--t-xl); letter-spacing: -.03em; }
.d-lg  { font-size: var(--t-lg); }
.d-md  { font-size: var(--t-md); font-variation-settings: 'wdth' 108, 'wght' 660; letter-spacing: -.005em; line-height: 1.08; }

/* the quiet half of every headline pair */
.d-thin { font-variation-settings: 'wdth' 124, 'wght' 180; color: var(--steel); }

.label {
  font-family: var(--font-data);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--steel-dim);
  display: inline-flex;
  align-items: center;
  gap: .8em;
}
.label::before { content: ''; width: 18px; height: 1px; background: var(--ember); flex: none; }
.label--bare::before { display: none; }

.lede {
  font-size: var(--t-lede);
  line-height: 1.58;
  color: rgba(237,238,241,.72);
  max-width: 46ch;
  text-wrap: pretty;
}

p { color: rgba(237,238,241,.62); text-wrap: pretty; max-width: 62ch; }

/* ---------- layout ---------- */

.wrap { width: 100%; padding-inline: var(--gut); }

section { position: relative; }

.band { padding-block: var(--band); }
.band--tight { padding-block: clamp(3rem, 6vw, 6rem); }
/* tonal block separation — a slab of dark grey that floats clear of the
   sections above and below instead of butting up against them */
.band--coal { background: var(--coal); margin-block: clamp(2rem, 5vw, 6rem); }

.rule { height: 1px; background: var(--edge-soft); border: 0; margin: 0; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.5rem;
  font-family: var(--font-data);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid var(--edge);
  color: var(--platinum);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--platinum); border-color: var(--platinum); color: var(--void); }

.btn--ember { background: var(--ember); border-color: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-lit); border-color: var(--ember-lit); color: #fff; }

.btn--ghost { border-color: transparent; padding-inline: 0; }
.btn--ghost:hover { background: none; color: var(--ember); }

.btn__arrow { transition: transform .4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn:hover .btn__arrow--down { transform: translateY(4px); }

/* ============================================================
   NAV — logo left, links dead centre, enquiry right
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
  padding-inline: var(--gut);
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease);
}
.nav.is-stuck {
  background: rgba(5,5,6,.82);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--edge);
}

.brand { display: inline-flex; align-items: center; justify-self: start; }
.brand img { height: 16px; width: auto; }
/* the wordmark is very wide — at phone widths 16px would eat half the bar */
@media (max-width: 640px) { .brand img { height: 12px; } }

.nav__links { display: flex; gap: clamp(1.4rem, 2.4vw, 2.8rem); justify-content: center; }
/* :not(.btn) throughout — the enquiry CTA also lives inside this list on
   mobile and must keep its button styling, not the link styling */
.nav__links > a:not(.btn) {
  font-family: var(--font-data);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
  position: relative;
  padding-block: .35rem;
  transition: color .3s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.nav__links > a:not(.btn):hover, .nav__links > a[aria-current='page'] { color: var(--platinum); }
.nav__links > a:not(.btn):hover::after, .nav__links > a[aria-current='page']::after { transform: scaleX(1); }

.nav__end { display: flex; align-items: center; justify-content: flex-end; gap: 1.2rem; }
.nav__cta { padding: .72rem 1.25rem; font-size: .68rem; }

.nav__burger { display: none; width: 34px; height: 24px; }
.nav__bar {
  position: absolute;
  left: 5px; right: 5px;
  height: 1.4px;
  background: currentColor;
  transition: transform .45s var(--ease-out);
}
.nav__bar:nth-child(1) { top: 8px; }
.nav__bar:nth-child(2) { top: 15px; }
body.nav-open .nav__bar:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
body.nav-open .nav__bar:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* both must outrank the full-screen menu overlay, or opening the menu
   hides the very control that closes it */
.brand, .nav__burger { position: relative; z-index: 2; }

/* the meta column and the menu footer exist only in the mobile panel */
.nav__m, .nav__foot { display: none; }

/* ---------- mobile menu ----------
   Not a centred list of words but an index: each row pairs the
   destination with what is actually behind it — model count, console
   range, number of places on the map. Same nameplate logic as the rest
   of the page, at full width. */
@media (max-width: 1040px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__burger { display: block; }
  .nav__cta { display: none; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) var(--gut) 2rem;
    overflow-y: auto;
    background: var(--void);
    background-image: radial-gradient(90% 55% at 0% 100%, rgba(225,38,28,.16), transparent 72%);
    transform: translateY(-100%);
    /* visibility, not just the offset — an off-canvas menu that stays
       `visible` keeps its links in the tab order and in the a11y tree */
    visibility: hidden;
    transition: transform .62s var(--ease-out), visibility .62s var(--ease-out);
  }
  body.nav-open .nav__links { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }

  .nav__links > a:not(.btn) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(.95rem, 3vw, 1.5rem) 0;
    border-top: 1px solid var(--edge);
    color: var(--platinum);
    font-size: inherit;
    letter-spacing: normal;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), color .3s var(--ease);
  }
  .nav__links > a:not(.btn):last-of-type { border-bottom: 1px solid var(--edge); }

  .nav__l {
    font-family: var(--font-display);
    font-variation-settings: 'wdth' 112, 'wght' 620;
    font-size: clamp(1.5rem, 7.2vw, 2.5rem);
    text-transform: uppercase;
    letter-spacing: -.02em;
    line-height: 1;
  }
  .nav__m {
    display: block;
    font-family: var(--font-data);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel-dim);
    white-space: nowrap;
  }
  .nav__links > a[aria-current='page'] .nav__l { color: var(--ember); }
  .nav__links > a[aria-current='page'] .nav__m { color: var(--ember); }

  .nav__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.3rem;
    margin-top: clamp(2rem, 6vw, 3rem);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .nav__tel {
    font-family: var(--font-data);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--steel);
  }

  /* rows arrive after the panel has finished sliding, one after another */
  body.nav-open .nav__links > a:not(.btn) { opacity: 1; transform: none; }
  body.nav-open .nav__links > a:not(.btn):nth-of-type(1) { transition-delay: .20s; }
  body.nav-open .nav__links > a:not(.btn):nth-of-type(2) { transition-delay: .26s; }
  body.nav-open .nav__links > a:not(.btn):nth-of-type(3) { transition-delay: .32s; }
  body.nav-open .nav__links > a:not(.btn):nth-of-type(4) { transition-delay: .38s; }
  body.nav-open .nav__foot { opacity: 1; transform: none; transition-delay: .46s; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video, .hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(.6) contrast(1.1) brightness(.72);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--void) 3%, rgba(5,5,6,.5) 48%, rgba(5,5,6,.28) 100%),
    linear-gradient(to right, rgba(5,5,6,.85) 0%, rgba(5,5,6,.2) 62%, transparent 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__eyebrow { margin-bottom: clamp(1.2rem, 2.4vw, 2rem); }

.hero__title { margin: 0 0 clamp(1.6rem, 3vw, 2.6rem); max-width: 880px; }
.hero__title-main { display: block; }

/* the whole point of the lockup: one enormous word, one whispered line */
.hero__sub {
  display: block;
  margin-top: clamp(.9rem, 1.6vw, 1.5rem);
  font-family: var(--font-data);
  font-size: clamp(.7rem, .85vw, .88rem);
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--steel);
}

.hero__foot {
  /* copy first, buttons under it — both flush with the left gutter */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.4rem, 2.6vw, 2.2rem);
  margin-bottom: clamp(1rem, 2vw, 2rem);
}
/* the hero paragraph stays one step above the 15px body lede */
.hero__foot .lede { max-width: 52ch; font-size: 1rem; }
.hero__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ============================================================
   TICKER — installed base proof
   ============================================================ */

.ticker { padding-block: clamp(2.5rem, 4vw, 4rem); overflow: hidden; }
.ticker__head { text-align: center; margin-bottom: clamp(1.6rem, 2.6vw, 2.4rem); }
.ticker__track {
  display: flex;
  gap: clamp(3rem, 7vw, 8rem);
  width: max-content;
  animation: slide 52s linear infinite;
  align-items: center;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track img {
  height: clamp(36px, 4vw, 50px);
  width: auto;
  max-width: 273px;
  object-fit: contain;
  opacity: .45;
  /* the source logos are dark marks on an opaque white plate — inverting
     drops the plate into the page and lifts the mark to light grey */
  filter: invert(1) grayscale(1) contrast(1.05);
  transition: opacity .4s var(--ease);
}
.ticker__track img:hover { opacity: .95; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION HEAD
   ============================================================ */

.sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 6rem);
  margin-bottom: clamp(2.6rem, 5vw, 5rem);
  flex-wrap: wrap;
}
.sechead__t > * + * { margin-top: clamp(.9rem, 1.4vw, 1.4rem); }
.sechead p { max-width: 34ch; margin: 0; font-size: .92rem; }

/* ============================================================
   MANIFESTO
   ============================================================ */

.manifest { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 8rem); align-items: center; }
@media (max-width: 940px) { .manifest { grid-template-columns: 1fr; } }

.manifest__copy > * + * { margin-top: clamp(1.2rem, 2vw, 1.8rem); }
.manifest__act { display: flex; gap: .7rem; flex-wrap: wrap; }
/* the reason list is the same component as in the modals, one column wider */
.manifest .whys { margin-top: clamp(1.6rem, 2.6vw, 2.4rem); }
.manifest .why__d { max-width: 56ch; }
.manifest__fig { position: relative; margin: 0; }
.manifest__fig img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(.55) contrast(1.06) brightness(.82); }
.manifest__fig figcaption {
  margin-top: 1rem;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

/* ---------- stat row ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 3rem); border-top: 1px solid var(--edge); padding-top: clamp(1.8rem, 3vw, 3rem); }
.stat__n {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 118, 'wght' 600;
  font-size: clamp(1.9rem, 3.8vw, 4rem);
  line-height: .86;
  letter-spacing: -.04em;
  display: block;
}
.stat__n sup { font-size: .3em; vertical-align: super; color: var(--ember); font-variation-settings: 'wdth' 110, 'wght' 600; }
.stat__k { font-family: var(--font-data); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-dim); margin-top: 1.1rem; display: block; max-width: 22ch; line-height: 1.7; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; } }

/* ============================================================
   CATEGORY SLIDER (Swiper)
   ============================================================ */

.cat-swiper { width: 100%; }
/* stretch every slide to the tallest card so the hairlines line up */
.cat-swiper .swiper-slide { height: auto; display: flex; }

.cat {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid var(--edge);
}
.cat::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.cat:hover::before { transform: scaleX(1); }

.cat__i { font-family: var(--font-data); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel-dim); }
/* the machines are matt graphite on a dark ground — a soft pool of light
   behind them is what makes the render read as an object, not a smudge */
.cat__img {
  aspect-ratio: 1 / 1;
  flex: none;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  margin-block: 1rem;
  background: radial-gradient(58% 52% at 50% 56%, rgba(255,255,255,.075), transparent 72%);
}
/* left in full colour: these are 3/4 product renders, and the lit console
   is the one place the machines actually have colour */
.cat__img img {
  max-width: 100%; max-height: 100%; width: auto; object-fit: contain;
  transition: transform .7s var(--ease-out);
}
.cat:hover .cat__img img { transform: scale(1.05) translateY(-5px); }
.cat__n { margin-top: auto; margin-bottom: .55rem; }
.cat__c { font-family: var(--font-data); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-dim); }

/* ---- slider controls ---- */
.sechead__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }

.cat-nav { display: flex; gap: .5rem; }
.cat-arrow {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--edge);
  color: var(--platinum);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}
.cat-arrow:hover { background: var(--platinum); border-color: var(--platinum); color: var(--coal); }
.cat-arrow.swiper-button-disabled { opacity: .3; pointer-events: none; }

.cat-progress {
  position: relative;
  height: 1px;
  background: var(--edge);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.cat-progress .swiper-scrollbar-drag { background: var(--ember); height: 1px; border-radius: 0; cursor: grab; }

@media (max-width: 620px) { .cat-nav { display: none; } }

/* ============================================================
   SEGMENTS — which environment the kit is for
   ============================================================ */

.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.2rem, 2vw, 2rem); }
/* six cards want 3+3, not 4+2 — auto-fit would leave a ragged last row */
@media (min-width: 1000px) { .segments { grid-template-columns: repeat(3, 1fr); } }

/* the reference grid runs to thirty-nine tiles, so it opens folded to 3×3;
   everything past the fold is out of the layout and out of the tab order */
.segments.is-folded > *:nth-child(n + 10) { display: none; }
.projects__more { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3.5rem); }
.projects__more:empty { display: none; }

.segment {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(300px, 28vw, 400px);
}
.segment__fig { position: absolute; inset: 0; z-index: -2; }
.segment__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.segment:hover .segment__fig img, .segment:focus-visible .segment__fig img { transform: scale(1.06); }

.segment::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(5,5,6,.94) 8%, rgba(5,5,6,.6) 45%, rgba(5,5,6,.25) 100%);
  transition: background .5s var(--ease);
}
.segment:hover::before, .segment:focus-visible::before {
  background: linear-gradient(to top, rgba(5,5,6,.96) 15%, rgba(5,5,6,.8) 60%, rgba(5,5,6,.5) 100%);
}

.segment__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.2rem, 2vw, 1.8rem);
  display: flex;
  flex-direction: column;
}
.segment__n { display: block; }
/* reference tiles keep the place on screen next to the name */
.segment__meta {
  display: block;
  margin-top: .5rem;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
}
.segment__reveal-in { display: flex; flex-direction: column; gap: .8rem; padding-top: .9rem; }
.segment__t { display: block; font-size: .88rem; line-height: 1.5; color: rgba(237,238,241,.78); }
.segment__more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
}
.segment:hover .segment__more .btn__arrow { transform: translateX(5px); }

/* The description only hides behind hover where hover actually exists — on
   touch it stays on screen. It collapses to zero height rather than just
   fading, so every card's title sits on the same baseline when idle. */
@media (hover: hover) and (min-width: 700px) {
  .segment__reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .55s var(--ease-out), opacity .4s var(--ease);
  }
  .segment__reveal-in { overflow: hidden; }
  .segment:hover .segment__reveal,
  .segment:focus-visible .segment__reveal { grid-template-rows: 1fr; opacity: 1; }
}

/* ============================================================
   SEGMENT MODAL
   Native <dialog>. The dialog element itself is only the stage — a
   full-screen grid that centres the panel and catches backdrop clicks.
   The panel is the object: hairline border, ember tick on the top edge.
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  width: 100%;  max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: clamp(0rem, 3vw, 3rem);
  border: 0;
  background: none;
  color: var(--platinum);
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* the browser's own display:none is overridden above — put it back */
.modal:not([open]) { display: none; }

.modal::backdrop {
  background: rgba(3,3,4,.74);
  backdrop-filter: blur(7px) saturate(.85);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.modal.is-open::backdrop { opacity: 1; }

body.modal-open { overflow: hidden; }

.modal__panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(92svh, 940px);
  display: flex;
  flex-direction: column;
  background: var(--void);
  border: 1px solid var(--edge);
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
  opacity: 0;
  transform: translateY(26px) scale(.99);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.modal__panel:focus { outline: none; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }

/* the same ember hairline that underlines cards on hover, drawn on open */
.modal__panel::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease-out) .12s;
}
.modal.is-open .modal__panel::before { transform: none; }

/* ---- bar: stays put while the content scrolls under it ---- */
.modal__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1.1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--edge);
}
.modal__bar .label { color: var(--steel); }

.modal__x {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--edge);
  color: var(--platinum);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.modal__x:hover { background: var(--platinum); border-color: var(--platinum); color: var(--void); }

/* ---- two columns, each scrolling on its own so the enquiry stays
        reachable while the reasons are being read ---- */
.modal__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  overflow: hidden;
}
.modal__why, .modal__side {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
}
.modal__why::-webkit-scrollbar, .modal__side::-webkit-scrollbar { width: 6px; }
.modal__why::-webkit-scrollbar-thumb, .modal__side::-webkit-scrollbar-thumb { background: var(--edge); }

.modal__why { background: var(--coal); }

.modal__fig { position: relative; margin: 0; }
.modal__fig img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  filter: grayscale(.45) contrast(1.06) brightness(.82);
}
/* the image dissolves into the column rather than sitting in a frame */
.modal__fig::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--coal) 2%, rgba(12,12,12,.35) 55%, rgba(12,12,12,.1) 100%);
}

.modal__body { padding: clamp(1.4rem, 2.2vw, 2.4rem); }
.modal__body > * + * { margin-top: clamp(1rem, 1.5vw, 1.5rem); }
.modal__body .lede { max-width: 44ch; }

.whys { list-style: none; margin: clamp(1.4rem, 2vw, 2rem) 0 0; padding: 0; }
.why {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: .35rem 0;
  padding: clamp(.9rem, 1.4vw, 1.2rem) 0;
  border-top: 1px solid var(--edge);
}
.why__i {
  grid-row: span 2;
  font-family: var(--font-data);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--ember);
  padding-top: .3rem;
}
.why__t {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108, 'wght' 640;
  font-size: clamp(.95rem, 1.15vw, 1.12rem);
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: 1.1;
}
.why__d { margin: 0; font-size: .86rem; line-height: 1.55; max-width: 48ch; }

.modal__meta { display: grid; margin-top: clamp(1.4rem, 2vw, 2rem); }
.modal__meta > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  padding: .7rem 0;
  border-top: 1px solid var(--edge-soft);
}
.modal__k { font-family: var(--font-data); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-dim); }
.modal__v { font-family: var(--font-data); font-size: .74rem; letter-spacing: .06em; color: var(--platinum); text-align: right; }

/* ---- enquiry column ---- */
.modal__side {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 2.2vw, 2.4rem);
  border-left: 1px solid var(--edge);
}
.modal__side-head > * + * { margin-top: 1rem; }
.modal__side .form { gap: clamp(1.1rem, 1.7vw, 1.6rem); margin-top: clamp(1.6rem, 2.4vw, 2.2rem); }
.modal__side .form__actions { margin-top: 0; }
.modal__side .form__note { max-width: 34ch; margin: -.4rem 0 0; }

.modal__side-foot {
  margin-top: auto;
  padding-top: clamp(1.4rem, 2vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.modal__tel, .modal__page {
  font-family: var(--font-data);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color .3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.modal__tel:hover { color: var(--platinum); }
.modal__page:hover { color: var(--ember); }
.modal__page:hover .btn__arrow { transform: translateX(4px); }
.modal__page .btn__arrow { transition: transform .4s var(--ease-out); }

/* ---- machine detail: the render needs light and air, not a crop ---- */
.modal__fig--product {
  background: var(--coal);
  padding: clamp(1.4rem, 3vw, 3rem);
  display: grid;
  place-items: center;
}
.modal__fig--product::after { display: none; }
.modal__fig--product img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: contain;
  filter: none;
  background: radial-gradient(58% 52% at 50% 55%, rgba(255,255,255,.07), transparent 72%);
}

.modal__code {
  display: block;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: .9rem;
}
.modal__tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: clamp(1.4rem, 2vw, 2rem); }
.modal__body .modal__page { margin-top: clamp(1.4rem, 2vw, 2rem); }

/* ---- reference modal: photo strip + the two intents ---- */
.shots {
  display: flex;
  gap: 1px;
  background: var(--edge);
  border-bottom: 1px solid var(--edge);
}
.shot {
  flex: 1;
  aspect-ratio: 4 / 3;
  position: relative;
  padding: 0;
  overflow: hidden;
  opacity: .45;
  transition: opacity .35s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:hover, .shot.is-active { opacity: 1; }
.shot.is-active::after {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 2px;
  background: var(--ember);
}

.intent { display: flex; gap: .4rem; flex-wrap: wrap; }
.intent .chip { font-size: .64rem; padding: .55rem .9rem; }

.ref__hint { font-size: .88rem; margin: 0; max-width: 40ch; }
.ref__note {
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(237,238,241,.5);
  border-top: 1px solid var(--edge);
  padding-top: 1.1rem;
  max-width: 52ch;
}

/* the whole card opens the detail; the button is what keyboards reach */
.project[data-ref] { cursor: pointer; }
.project__more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: 0;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
  transition: color .3s var(--ease);
}
.project__more .btn__arrow { transition: transform .4s var(--ease-out); }
.project:hover .project__more .btn__arrow { transform: translateX(5px); }

/* ---- sent state: the confirmation becomes the only headline ---- */
.modal__side:has(.modal__done:not([hidden])) .modal__side-head { display: none; }
.modal__done { margin-top: clamp(1.6rem, 2.4vw, 2.2rem); }
.modal__done > * + * { margin-top: 1.1rem; }
.modal__check {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--ember);
  color: var(--ember);
}
.modal__done p { font-size: .92rem; max-width: 38ch; }
.modal__done-act { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---- phone: a bottom sheet, not a centred card ---- */
@media (max-width: 900px) {
  .modal { padding: 0; place-items: end stretch; }
  .modal__panel {
    width: 100%;
    max-height: 94svh;
    border-inline: 0;
    border-bottom: 0;
    transform: translateY(100%);
  }
  .modal.is-open .modal__panel { transform: none; }
  /* one sheet, one scroll — the columns become sections of the same page.
     align-content keeps both rows at their content height instead of letting
     the fixed-height sheet squeeze them into each other. */
  .modal__grid {
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .modal__why, .modal__side { overflow: visible; min-height: auto; }
  .modal__fig img { aspect-ratio: 16 / 9; }
  .modal__side { border-left: 0; border-top: 1px solid var(--edge); }
  .modal__side-foot { margin-top: clamp(1.6rem, 5vw, 2.2rem); }
}

/* the reference tiles reuse the segment card — see SEGMENTS above */

/* ============================================================
   WHAT A FIT-OUT COVERS
   Five cards on the coal band. Icons are Material Symbols Outlined,
   loaded as a font in index.html — the glyph name is the element text.
   ============================================================ */

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 40;
}

.services-block { margin-top: clamp(3.5rem, 7vw, 7rem); }
.services-block__head { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.services-block__head > * + * { margin-top: clamp(.9rem, 1.4vw, 1.3rem); }

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(1.2rem, 2.2vw, 2.2rem);
}

.service {
  position: relative;
  padding: clamp(1.3rem, 2vw, 1.7rem) clamp(1.2rem, 1.8vw, 1.5rem);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 65%);
  border-top: 1px solid var(--edge);
  transition: background .45s var(--ease);
}
.service:hover { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 70%); }
/* the ember tick that runs across every card head on this site */
.service::before {
  content: '';
  position: absolute; inset: -1px 0 auto 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.service:hover::before { transform: none; }

.service__i {
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  color: var(--ember);
  display: block;
  transition: transform .5s var(--ease-out);
}
.service:hover .service__i { transform: translateY(-3px); }

.service__n {
  margin: clamp(1.1rem, 1.8vw, 1.6rem) 0 0;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108, 'wght' 620;
  font-size: clamp(.92rem, 1.1vw, 1.08rem);
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: 1.12;
}
.service__d {
  margin: .7rem 0 0;
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(237,238,241,.58);
  max-width: 34ch;
}

/* ============================================================
   FULL-BLEED QUOTE BAND
   ============================================================ */

.bleed { position: relative; min-height: 82svh; display: grid; align-items: center; overflow: hidden; }
.bleed__bg { position: absolute; inset: 0; }
.bleed__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) contrast(1.08) brightness(.44); }
.bleed__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--void) 0%, rgba(5,5,6,.5) 58%, transparent 100%); }
.bleed .wrap { position: relative; z-index: 1; }
.bleed__q { max-width: 18ch; }
.bleed__attr { margin-top: clamp(1.6rem, 3vw, 2.6rem); max-width: 56ch; }

/* the four steps of a fit-out, read left to right */
.steps {
  list-style: none;
  margin: clamp(2.2rem, 4vw, 3.4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  max-width: 62rem;
}
.step { padding-top: 1rem; border-top: 1px solid var(--edge); }
.step__i {
  display: block;
  font-family: var(--font-data);
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--ember);
}
.step__n {
  display: block;
  margin-top: .55rem;
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108, 'wght' 620;
  font-size: clamp(.86rem, 1vw, 1.02rem);
  text-transform: uppercase;
  line-height: 1.15;
}
@media (max-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   LOCATOR TEASER
   ============================================================ */

.teaser { display: grid; grid-template-columns: .9fr 1.35fr; gap: clamp(2.5rem, 6vw, 7rem); align-items: center; }
@media (max-width: 940px) { .teaser { grid-template-columns: 1fr; } }
.teaser__copy > * + * { margin-top: clamp(1.2rem, 2vw, 1.8rem); }

.teaser__map { position: relative; aspect-ratio: 16/10; background: var(--pit); overflow: hidden; }
#teaserMap { position: absolute; inset: 0; }
#teaserMap .mapboxgl-canvas { filter: grayscale(1) brightness(.72) contrast(1.2); }
/* light vignette only — Mapbox attribution at the bottom must stay legible */
.teaser__map::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 50% 45%, transparent 55%, rgba(5,5,6,.5) 100%);
}
/* ---- free pass: the map block carries a two-field form ---- */
.teaser--pass { align-items: center; }
.pass__form {
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.1rem, 1.8vw, 1.6rem) clamp(1.2rem, 2.4vw, 2rem);
  max-width: 34rem;
  margin-top: clamp(1.6rem, 2.6vw, 2.2rem);
}
.pass__form .form__actions, .pass__form .form__note { grid-column: 1 / -1; }
.pass__form .form__actions { margin-top: .2rem; }
.pass__form .form__note { margin: -.5rem 0 0; max-width: 44ch; }
@media (max-width: 620px) { .pass__form { grid-template-columns: 1fr; } }

.pass__done {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
  margin-top: clamp(1.6rem, 2.6vw, 2.2rem);
  max-width: 42ch;
}

.teaser__badge {
  position: absolute;
  z-index: 3;
  left: 1rem; top: 1rem;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(5,5,6,.8);
  border: 1px solid var(--edge);
  padding: .5rem .8rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.foot { background: var(--coal); padding-block: clamp(3.5rem, 6vw, 6rem) 2rem; }
.foot__grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

.foot__brand img { height: 18px; width: auto; margin-bottom: 1.4rem; }
.foot__brand p { max-width: 30ch; font-size: .88rem; }
.foot h3 { font-family: var(--font-data); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel-dim); margin: 0 0 1.4rem; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.foot li, .foot ul a { font-size: .88rem; color: rgba(237,238,241,.58); }
.foot ul a { transition: color .3s var(--ease); }
.foot ul a:hover { color: var(--platinum); }
.foot__base {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--edge-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

/* ============================================================
   PAGE HEAD (catalogue, enquiry)
   ============================================================ */

.page-head { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 8rem)); padding-bottom: clamp(2.5rem, 5vw, 5rem); }
.page-head > * + * { margin-top: clamp(1.1rem, 2vw, 1.8rem); }

/* ============================================================
   CATALOG
   ============================================================ */

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }

.grid-count {
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin: 0 0 clamp(2rem, 3.5vw, 3.2rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--edge);
  max-width: none;
}
.chip {
  font-family: var(--font-data);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .62rem 1.1rem;
  border: 1px solid var(--edge);
  color: var(--steel);
  transition: all .35s var(--ease);
}
.chip:hover { border-color: rgba(255,255,255,.3); color: var(--platinum); }
.chip[aria-pressed='true'] { background: var(--platinum); border-color: var(--platinum); color: var(--void); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(2rem, 3.5vw, 4rem) clamp(1.5rem, 2.5vw, 3rem); }

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 1.1rem;
  border-top: 1px solid var(--edge);
}
.card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }

.card__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.card__cat { font-family: var(--font-data); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-dim); }
.card__img {
  aspect-ratio: 1 / 1;
  flex: none;
  display: grid; place-items: center;
  padding: 1.2rem;
  margin-block: 1.2rem;
  background: radial-gradient(58% 52% at 50% 55%, rgba(255,255,255,.06), transparent 72%);
}
.card__img img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; transition: transform .65s var(--ease-out); }
.card:hover .card__img img { transform: scale(1.055); }
.card__n { margin-bottom: .55rem; }
.card p { font-size: .82rem; margin: 0; }
.card__meta { margin-top: auto; padding-top: 1.2rem; display: flex; gap: .4rem; flex-wrap: wrap; }

/* the whole card opens the detail; the button is what keyboards reach */
.card[data-id] { cursor: pointer; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1rem;
  padding: 0;
  align-self: flex-start;
  font-family: var(--font-data);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  transition: color .3s var(--ease);
}
.card:hover .card__more { color: var(--ember); }
.card:hover .card__more .btn__arrow { transform: translateX(5px); }
.card__more .btn__arrow { transition: transform .4s var(--ease-out); }
.tag {
  font-family: var(--font-data);
  font-size: .6rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--edge);
  padding: .3rem .55rem;
}

/* ============================================================
   ENQUIRY FORM
   ============================================================ */

.form-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 8rem); align-items: start; }
@media (max-width: 940px) { .form-layout { grid-template-columns: 1fr; } }

.form { display: grid; gap: clamp(1.6rem, 2.6vw, 2.4rem); }
.field { display: grid; gap: .7rem; }
.field > label {
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.field input, .field textarea, .field select {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--edge);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .6rem 0;
  transition: border-color .3s var(--ease);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--graphite); color: var(--platinum); }
.field textarea { resize: vertical; min-height: 6rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-dim); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ember); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-bottom-color: var(--ember); }
.field__err { font-family: var(--font-data); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ember); display: none; }
.field.is-invalid .field__err { display: block; }

.form__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: .6rem; }
.form__note { font-family: var(--font-data); font-size: .62rem; letter-spacing: .11em; line-height: 1.9; text-transform: uppercase; color: var(--steel-dim); max-width: 40ch; }

.contact-block > * + * { margin-top: clamp(2rem, 3.5vw, 3rem); }
.contact-item { border-top: 1px solid var(--edge); padding-top: 1.1rem; }
.contact-item h3 { font-family: var(--font-data); font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--steel-dim); margin: 0 0 .8rem; font-weight: 400; }
.contact-item p, .contact-item a { font-size: .95rem; color: rgba(237,238,241,.78); margin: 0; }
.contact-item a:hover { color: var(--ember); }

/* ============================================================
   STORE LOCATOR
   ============================================================ */

.locator { display: grid; grid-template-columns: minmax(330px, 26vw) 1fr; height: 100svh; }
@media (max-width: 900px) { .locator { grid-template-columns: 1fr; grid-template-rows: 46svh 1fr; } }

.panel { display: flex; flex-direction: column; border-right: 1px solid var(--edge); background: var(--void); min-height: 0; }
@media (max-width: 900px) {
  .panel { order: 2; border-right: 0; border-top: 1px solid var(--edge); }
  .mapwrap { order: 1; }
  /* the map already clears the fixed nav — the panel must not clear it twice */
  .panel__head { padding-top: 1.4rem !important; }
}

.panel__head { padding: calc(var(--nav-h) + 1.4rem) 1.6rem 1.4rem; border-bottom: 1px solid var(--edge); }
.panel__head .display { margin-bottom: .9rem; }

.search { position: relative; margin-top: 1.4rem; }
.search input {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--edge);
  color: var(--platinum);
  font-family: var(--font-body);
  font-size: .92rem;
  padding: .7rem 2.2rem .7rem 0;
  transition: border-color .3s var(--ease);
}
.search input::placeholder { color: var(--steel-dim); }
.search input:focus { outline: none; border-bottom-color: var(--ember); }
.search__ico { position: absolute; right: .2rem; top: 45%; transform: translateY(-50%); color: var(--steel-dim); pointer-events: none; }

.panel__filters { display: flex; gap: .4rem; flex-wrap: wrap; padding: 1.1rem 1.6rem; border-bottom: 1px solid var(--edge); }

.panel__count {
  padding: .9rem 1.6rem;
  font-family: var(--font-data);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-dim);
  border-bottom: 1px solid var(--edge);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.geo { font-family: var(--font-data); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); display: inline-flex; gap: .5rem; align-items: center; transition: color .3s var(--ease); }
.geo:hover { color: var(--platinum); }

.list { overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.list::-webkit-scrollbar { width: 6px; }
.list::-webkit-scrollbar-thumb { background: var(--edge); }

.store {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--edge-soft);
  border-left: 2px solid transparent;
  transition: background .3s var(--ease), border-left-color .3s var(--ease);
}
.store:hover, .store.is-active { background: var(--graphite); border-left-color: var(--ember); }
.store__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.store__n { font-family: var(--font-display); font-variation-settings:'wdth' 108,'wght' 600; font-size: .98rem; text-transform: uppercase; line-height: 1.15; }
.store__d { font-family: var(--font-data); font-size: .64rem; letter-spacing: .1em; color: var(--ember); white-space: nowrap; }
.store__a { font-size: .8rem; color: var(--steel); margin-top: .45rem; }
.store__tags { display: flex; gap: .35rem; margin-top: .75rem; flex-wrap: wrap; }

.list__empty { padding: 2.5rem 1.6rem; color: var(--steel-dim); font-size: .9rem; }

.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
/* the black/grey basemap: desaturate the tiles, leave DOM markers in colour.
   Kept light enough that streets stay legible once you fly into a city. */
#map .mapboxgl-canvas { filter: grayscale(1) brightness(.82) contrast(1.18); }
.mapboxgl-ctrl-bottom-left, .mapboxgl-ctrl-bottom-right { font-size: 10px; }
.mapboxgl-ctrl-attrib { background: rgba(5,5,6,.7) !important; }
.mapboxgl-ctrl-attrib a { color: var(--steel-dim) !important; }

/* markers.
   This element IS the mapboxgl marker, so it must carry mapbox's own
   absolute positioning — our stylesheet loads after mapbox-gl.css and
   would otherwise win with `position: relative`, dropping every pin back
   into normal flow. */
.pin { position: absolute; top: 0; left: 0; width: 14px; height: 14px; cursor: pointer; }
.pin__dot {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--ember);
  border: 1.5px solid rgba(5,5,6,.9);
  box-shadow: 0 0 0 1px rgba(225,38,28,.35), 0 0 9px rgba(225,38,28,.4);
  transition: transform .35s var(--ease-out);
}
.pin:hover .pin__dot, .pin.is-active .pin__dot { transform: scale(1.5); }
.pin.is-active::after {
  content: '';
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--ember);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(.8); opacity: .9; }
  100% { transform: scale(3.4); opacity: 0; }
}
.pin--hq .pin__dot { background: var(--platinum); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 12px rgba(255,255,255,.4); }

.mapboxgl-popup-content {
  background: var(--graphite) !important;
  border: 1px solid var(--edge);
  border-radius: 0 !important;
  padding: 1.1rem 1.2rem !important;
  color: var(--platinum);
  font-family: var(--font-body);
  box-shadow: 0 18px 50px rgba(0,0,0,.7) !important;
}
.mapboxgl-popup-close-button { color: var(--steel) !important; font-size: 1.1rem !important; padding: .2rem .5rem !important; }
.mapboxgl-popup-close-button:hover { background: none !important; color: var(--platinum) !important; }
.mapboxgl-popup-tip { border-top-color: var(--edge) !important; border-bottom-color: var(--edge) !important; }
.pop__n { font-family: var(--font-display); font-variation-settings:'wdth' 108,'wght' 620; text-transform: uppercase; font-size: .98rem; margin-bottom: .45rem; padding-right: 1rem; }
.pop__a { font-size: .8rem; color: var(--steel); }
.pop__link { display: inline-flex; gap: .4rem; margin-top: 1rem; font-family: var(--font-data); font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ember); }

.map__legend {
  position: absolute;
  z-index: 5;
  left: 1rem; top: calc(var(--nav-h) + 1rem);
  background: rgba(5,5,6,.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--edge);
  padding: .8rem 1rem;
  display: grid;
  gap: .55rem;
}
.map__legend div { display: flex; align-items: center; gap: .6rem; font-family: var(--font-data); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--steel); }
.map__legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); flex: none; }
.map__legend i.hq { background: var(--platinum); }
@media (max-width: 900px) { .map__legend { display: none; } }

.note {
  font-family: var(--font-data);
  font-size: .62rem;
  line-height: 1.9;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--steel-dim);
  padding: 1.1rem 1.6rem;
  border-top: 1px solid var(--edge);
  margin: 0;
  max-width: none;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.rv { opacity: 0; transform: translateY(24px); transition: opacity .95s var(--ease-out), transform .95s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d='1'] { transition-delay: .09s; }
.rv[data-d='2'] { transition-delay: .18s; }
.rv[data-d='3'] { transition-delay: .27s; }
.rv[data-d='4'] { transition-delay: .36s; }

/* hero load sequence */
.hero__eyebrow, .hero__title-main, .hero__sub, .hero__foot { animation: rise 1.15s var(--ease-out) both; }
.hero__title-main { animation-delay: .12s; }
.hero__sub { animation-delay: .26s; }
.hero__foot { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

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

/* ============================================================
   OUTLET — cena jako součást designového systému

   Nic z toho nezavádí rámečky ani novou barvu. Cena stojí na téže
   vlásce jako všechny ostatní datové dvojice na webu, číslo nese
   Archivo (je to hodnota, ne text) a --ember se objevuje jen tam,
   kde se něco měří: procento slevy a poslední kus.
   ============================================================ */

/* ---------- přeskočit na obsah ---------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  display: inline-flex; align-items: center;
  padding: .9rem 1.5rem;
  font-family: var(--font-data); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--void); border: 1px solid var(--ember);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- značka ---------- */

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__outlet {
  font-family: var(--font-data);
  font-size: .58rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember);
  padding-left: .6rem;
  border-left: 1px solid var(--edge);
  line-height: 1;
}

/* ---------- nepovinné pole v popisku ---------- */

.lab__opt { text-transform: none; letter-spacing: 0; }

/* past na roboty — pro člověka neexistuje, ale čtečka ji přeskočí taky */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.linky {
  color: var(--ember); text-decoration: underline;
  text-underline-offset: .2em; padding: 0; font: inherit;
}

/* ============================================================
   CENA NA KARTĚ
   ============================================================ */

.card__t { font-size: .82rem; margin: 0; }

/* Sleva vpravo nahoře — jediné místo na kartě, kde svítí ember.
   Tabulární číslice, aby se procenta ve sloupci karet zarovnala. */
.card__save {
  font-family: var(--font-data);
  font-size: .62rem; font-weight: 500;
  letter-spacing: .1em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price {
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--edge-soft);
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0 .7rem;
}
.price__now {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 112, 'wght' 620;
  font-size: clamp(1.12rem, 1.6vw, 1.4rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--platinum);
  font-variant-numeric: tabular-nums;
  order: 1;
}
/* Přeškrtnutí je vlásková, ne plná čára — plná by v malé velikosti
   číslo rozřízla a přebila by hierarchii s outletovou cenou. */
.price__was {
  order: 2;
  font-family: var(--font-data);
  font-size: .74rem;
  color: var(--steel-dim);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(139,144,155,.55);
  font-variant-numeric: tabular-nums;
}
.price__vat {
  order: 3; flex-basis: 100%;
  margin-top: .3rem;
  font-family: var(--font-data);
  font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--steel-dim);
}
.price--ask .price__now { font-size: 1rem; color: var(--steel); }

/* Cena je to jediné, co se v ceníku porovnává napříč řádkem, takže musí
   ležet na společné lince — ne tam, kde zrovna skončil popisek. Původní
   .card dával `margin-top: auto` až štítkům; tady ho přebírá cena a
   všechno pod ní se veze s sebou. */
.card .price { margin-top: auto; padding-top: 1.1rem; }
.card .price + .card__meta { margin-top: 0; padding-top: .9rem; }

/* ---------- štítky dostupnosti ---------- */

.tag--last  { color: var(--ember); border-color: rgba(225,38,28,.42); }
.tag--out   { color: var(--steel-dim); border-color: var(--edge); text-decoration: line-through; }
.tag--order { color: var(--steel-dim); }
.tag--ask   { color: var(--steel-dim); }
.tag--badge { color: var(--platinum); border-color: rgba(255,255,255,.28); }

/* Celá karta je odkaz i tam, kde nemá dialog (nabídka na úvodní straně).
   Překrytí místo obalení <a>, aby uvnitř mohly zůstat další odkazy. */
.card__hit { position: absolute; inset: 0; z-index: 2; }
.grid--deals .card { cursor: pointer; }

/* ============================================================
   NÁSTROJOVÁ LIŠTA KATALOGU
   ============================================================ */

.catalog { padding-bottom: clamp(5rem, 10vw, 11rem); }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .8rem clamp(1rem, 2vw, 2rem);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--edge);
}

.toolbar__search {
  position: relative;
  flex: 1 1 min(22rem, 100%);
  display: flex; align-items: center; gap: .7rem;
  padding: .72rem .9rem;
  border: 1px solid var(--edge);
  transition: border-color .35s var(--ease);
}
.toolbar__search:focus-within { border-color: var(--ember); }
.toolbar__ico { flex: none; color: var(--steel-dim); }
.toolbar__search input {
  flex: 1; min-width: 0;
  background: none; border: 0; color: var(--platinum);
  font-family: var(--font-body); font-size: .88rem;
}
.toolbar__search input::placeholder { color: var(--steel-dim); }
.toolbar__search input:focus { outline: none; }
.toolbar__search input::-webkit-search-cancel-button { display: none; }
.toolbar__clear {
  flex: none; font-size: 1.2rem; line-height: 1;
  color: var(--steel-dim); padding: 0 .2rem;
}
.toolbar__clear:hover { color: var(--platinum); }

.toolbar__sort { display: inline-flex; align-items: center; gap: .7rem; }
.toolbar__sort select {
  background: none; border: 1px solid var(--edge);
  color: var(--platinum);
  font-family: var(--font-data); font-size: .68rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem 1.9rem .6rem .9rem;
  appearance: none;
  /* šipka je součást pozadí — nativní se v tmavém motivu kreslí každý prohlížeč jinak */
  background-image: linear-gradient(45deg, transparent 50%, #8B909B 50%),
                    linear-gradient(135deg, #8B909B 50%, transparent 50%);
  background-position: right 1.05rem center, right .78rem center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.toolbar__sort select option { background: var(--coal); color: var(--platinum); }

.toolbar__vat { display: inline-flex; }
.chip--sm { font-size: .62rem; padding: .5rem .8rem; }
.toolbar__vat .chip:first-child { border-right-width: 0; }

.chip__n {
  font-variant-numeric: tabular-nums;
  opacity: .5; margin-left: .35em; font-size: .92em;
}
.chip[aria-pressed='true'] .chip__n { opacity: .55; }

/* ============================================================
   DLAŽDICE KATEGORIÍ
   ============================================================ */

.cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
}
.catcard {
  display: flex; flex-direction: column;
  padding-top: 1.1rem;
  border-top: 1px solid var(--edge);
  position: relative;
}
.catcard::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.catcard:hover::before { transform: scaleX(1); }
.catcard__img {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 1rem;
  background: radial-gradient(58% 52% at 50% 55%, rgba(255,255,255,.06), transparent 72%);
}
.catcard__img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .65s var(--ease-out); }
.catcard:hover .catcard__img img { transform: scale(1.055); }
.catcard__body { display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.catcard__n {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 108, 'wght' 660;
  font-size: var(--t-md); text-transform: uppercase;
  letter-spacing: -.005em; line-height: 1.08;
}
.catcard__meta {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: .6rem;
  border-top: 1px solid var(--edge-soft);
  font-family: var(--font-data); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase;
}
.catcard__k { color: var(--steel-dim); }
.catcard__v { color: var(--platinum); white-space: nowrap; }

/* ============================================================
   CENA V DETAILU STROJE
   ============================================================ */

.pricebox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  align-items: start;
  margin: clamp(1.6rem, 3vw, 2.4rem) 0 .9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--edge);
}
.pricebox__main { display: flex; flex-direction: column; gap: .45rem; }
.pricebox__k {
  font-family: var(--font-data); font-size: var(--t-micro);
  letter-spacing: .16em; text-transform: uppercase; color: var(--steel-dim);
}
.pricebox__now {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 114, 'wght' 640;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: .95; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.pricebox__vat {
  font-family: var(--font-data); font-size: .72rem;
  color: var(--steel-dim); font-variant-numeric: tabular-nums;
}
.pricebox__side { display: flex; flex-direction: column; }
.pricebox__side > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0;
  border-top: 1px solid var(--edge-soft);
}
.pricebox__side > div:first-child { border-top: 0; padding-top: 0; }
.modal__v--was { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--steel-dim); }
.modal__v--save { color: var(--ember); }
.pricebox__note {
  font-family: var(--font-data); font-size: var(--t-micro);
  line-height: 1.6; color: var(--steel-dim); max-width: 52ch;
  margin: 0 0 1.6rem;
}

/* Sleva přes roh renderu — jediné místo v dialogu, kde je ember plocha,
   a jediné, které se dá přečíst dřív než název stroje. */
.modal__disc {
  position: absolute; top: 0; right: 0;
  padding: .45rem .8rem;
  background: var(--ember); color: #fff;
  font-family: var(--font-data); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
}
.modal__fig--product { position: relative; }

@media (max-width: 560px) {
  .pricebox { grid-template-columns: 1fr; }
}

/* ============================================================
   DROBNOSTI
   ============================================================ */

/* Čtyři důvody vedle sebe. Základní .whys je prostý seznam pod sebou —
   tady je text kratší, takže se vejdou do řady a sekce se nenatáhne. */
.whys--wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
}
.whys--wide .why { align-content: start; }

.cta-row {
  display: flex; gap: 2rem clamp(2rem, 5vw, 6rem);
  flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
}
.cta-row__act { display: flex; gap: .7rem; flex-wrap: wrap; }

/* vybraný stroj nad formulářem poptávky */
.pref {
  position: relative;
  display: flex; align-items: center; gap: 1.1rem;
  padding: .9rem 2.4rem .9rem 0;
  margin-bottom: 1.8rem;
  border-top: 1px solid var(--ember);
  border-bottom: 1px solid var(--edge);
}
.pref img {
  width: 78px; height: 62px; object-fit: contain; flex: none;
  background: radial-gradient(60% 55% at 50% 55%, rgba(255,255,255,.07), transparent 72%);
}
.pref > div { display: flex; flex-direction: column; gap: .18rem; min-width: 0; }
.pref strong { font-size: .95rem; font-weight: 500; }
.pref__p {
  font-family: var(--font-data); font-size: var(--t-micro);
  letter-spacing: .12em; text-transform: uppercase; color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.pref__x {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1; color: var(--steel-dim); padding: .3rem;
}
.pref__x:hover { color: var(--platinum); }
