/* ==========================================================================
   HEMFRY - Design system v1.0
   Industrial · Premium · Minimal · Strong
   --------------------------------------------------------------------------
   01 Tokens            09 Stats               17 Before / after
   02 Reset & base      10 Service card        18 Forms & stepper
   03 Layout & grid     11 Project card        19 Specs & tables
   04 Typography        12 Machine card        20 Timeline
   05 Buttons & links   13 Process             21 CTA band
   06 Header & menus    14 Reasons / type grid 22 Footer & sticky bar
   07 Heroes            15 Accordion           23 Motion
   08 Media             16 Chips, logos        
   ========================================================================== */

/* 01 - TOKENS ------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #111111;
  --ink-2: #151515;
  --ink-3: #1b1b1a;
  --ink-4: #262624;
  --paper: #f5f5f2;
  --paper-2: #f7f7f5;
  --paper-3: #ecebe6;
  --white: #ffffff;
  --stone: #8a8983; /* road grey from the logo */
  --accent: #f7bf2e; /* Hemfry žuta - sampled from logo chevrons */
  --accent-hover: #ffcd4a;
  --accent-deep: #d9a100; /* accent on light text only (large sizes) */
  --danger: #c2410c;
  --ok: #3f7d4e;

  /* Semantic (overridden per theme) */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-muted: #5e5d57;
  --fg-faint: #71706a;
  --line: #dcdbd4;
  --line-strong: #bdbcb4;
  --surface: var(--white);

  /* Type */
  --font-poster:
    "Barlow Condensed", "Arial Narrow", sans-serif; /* display, h1, h2, big numbers */
  --font-display:
    "Barlow Semi Condensed", "Arial Narrow", sans-serif; /* h3, h4, card titles */
  --font-body: "Geist", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-display: clamp(2.75rem, 1.05rem + 5.6vw, 6.5rem); /* 44 → 104 */
  --fs-h1: clamp(2.5rem, 1.3rem + 4vw, 5.25rem); /* 40 → 84 */
  --fs-h2: clamp(2rem, 1.25rem + 2.5vw, 3.75rem); /* 32 → 60 */
  --fs-h3: clamp(1.375rem, 1.1rem + 0.85vw, 1.875rem); /* 22 → 30 */
  --fs-h4: clamp(1.125rem, 1.03rem + 0.3vw, 1.3125rem); /* 18 → 21 */
  --fs-lead: clamp(1.125rem, 1.02rem + 0.35vw, 1.375rem); /* 18 → 22 */
  --fs-body: 1.0625rem; /* 17 */
  --fs-small: 0.9375rem; /* 15 */
  --fs-xs: 0.8125rem; /* 13 */
  --fs-mono: 0.75rem; /* 12 */
  --fs-stat: clamp(3rem, 1.9rem + 4.2vw, 6.25rem); /* 48 → 100 */

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --section: clamp(
    64px,
    3rem + 7vw,
    152px
  ); /* 64 mobile · 88–120 tablet · 120–152 desktop */
  --gutter: clamp(16px, 3.6vw, 56px);
  --gap: clamp(16px, 2.1vw, 32px);
  --container: 1560px;
  --measure: 720px;

  /* Shape */
  --r-xs: 2px;
  --r-sm: 3px;
  --r: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1); /* expo-out, heavy settle */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 240ms;
  --t: 520ms;
  --t-slow: 1100ms;

  /* Brand glyph: one chevron from the logo, tiled with mask-repeat */
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' viewBox='0 0 10 14'%3E%3Cpath d='M2 1.5 7.5 7 2 12.5' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E");

  /* Chrome */
  --header-h: 84px;
  --sticky-bar-h: 0px;
}

@media (max-width: 1099px) {
  :root {
    --header-h: 68px;
  }
}
@media (max-width: 899px) {
  :root {
    --sticky-bar-h: 64px;
  }
}

/* 02 - RESET & BASE ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--sticky-bar-h);
  overflow-x: clip;
}
img,
svg,
video,
picture {
  display: block;
  max-width: 100%;
}
[data-icon] {
  display: inline-grid;
  place-items: center;
  flex: none;
}
[data-icon] > svg {
  width: 1.15em;
  height: 1.15em;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4,
h5 {
  font-weight: inherit;
  font-size: inherit;
}
::selection {
  background: var(--accent);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus {
  transform: none;
}

/* Themes - sections set their own surface & ink */
.theme-dark {
  --bg: var(--ink);
  --fg: #f5f5f2;
  --fg-muted: #a3a29b;
  --fg-faint: #85847d;
  --line: rgba(245, 245, 242, 0.13);
  --line-strong: rgba(245, 245, 242, 0.28);
  --surface: var(--ink-3);
  background-color: var(--bg);
  color: var(--fg);
}
.theme-dark--deep {
  --bg: #0c0c0b;
}
.theme-paper {
  --bg: var(--paper);
  --fg: var(--ink);
  --surface: var(--white);
  background: var(--bg);
  color: var(--fg);
}
.theme-white {
  --bg: var(--white);
  --fg: var(--ink);
  --surface: var(--paper);
  --line: #e3e2dc;
  background: var(--bg);
  color: var(--fg);
}
.theme-accent {
  --bg: var(--accent);
  --fg: var(--ink);
  --fg-muted: rgba(17, 17, 17, 0.72);
  --line: rgba(17, 17, 17, 0.2);
  background: var(--bg);
  color: var(--fg);
}

/* Asphalt grain - static background texture on dark surfaces (no repaint cost) */
.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 03 - LAYOUT & GRID ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
  position: relative;
}
.section--tight {
  padding-block: calc(var(--section) * 0.6);
}
.section--flush-top {
  padding-top: 0;
}
.section--flush-bottom {
  padding-bottom: 0;
}

/* 12 / 8 / 4 column grid. Children span all by default;
   .t-* / .ts-* from 700px (8 cols), .d-* / .ds-* from 1100px (12 cols). */
.g {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--gap);
}
.g > * {
  grid-column: 1 / -1;
  min-width: 0;
}
.g--rows-lg {
  row-gap: clamp(40px, 5vw, 72px);
}
.g--align-end {
  align-items: end;
}
.g--align-center {
  align-items: center;
}
.g--align-start {
  align-items: start;
}
.m-2 {
  grid-column: auto / span 2;
}

@media (min-width: 700px) {
  .g {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .t-2 {
    grid-column: auto / span 2;
  }
  .t-3 {
    grid-column: auto / span 3;
  }
  .t-4 {
    grid-column: auto / span 4;
  }
  .t-5 {
    grid-column: auto / span 5;
  }
  .t-6 {
    grid-column: auto / span 6;
  }
  .t-7 {
    grid-column: auto / span 7;
  }
  .t-8 {
    grid-column: auto / span 8;
  }
  .ts-2 {
    grid-column-start: 2;
  }
  .ts-3 {
    grid-column-start: 3;
  }
  .ts-4 {
    grid-column-start: 4;
  }
  .ts-5 {
    grid-column-start: 5;
  }
}
@media (min-width: 1100px) {
  .g {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .d-2 {
    grid-column: auto / span 2;
  }
  .d-3 {
    grid-column: auto / span 3;
  }
  .d-4 {
    grid-column: auto / span 4;
  }
  .d-5 {
    grid-column: auto / span 5;
  }
  .d-6 {
    grid-column: auto / span 6;
  }
  .d-7 {
    grid-column: auto / span 7;
  }
  .d-8 {
    grid-column: auto / span 8;
  }
  .d-9 {
    grid-column: auto / span 9;
  }
  .d-10 {
    grid-column: auto / span 10;
  }
  .d-11 {
    grid-column: auto / span 11;
  }
  .d-12 {
    grid-column: 1 / -1;
  }
  .ds-1 {
    grid-column-start: 1;
  }
  .ds-2 {
    grid-column-start: 2;
  }
  .ds-3 {
    grid-column-start: 3;
  }
  .ds-4 {
    grid-column-start: 4;
  }
  .ds-5 {
    grid-column-start: 5;
  }
  .ds-6 {
    grid-column-start: 6;
  }
  .ds-7 {
    grid-column-start: 7;
  }
  .ds-8 {
    grid-column-start: 8;
  }
  .ds-9 {
    grid-column-start: 9;
  }
  .ds-10 {
    grid-column-start: 10;
  }
  .d-sticky {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    align-self: start;
  }
}

.stack > * + * {
  margin-top: var(--stack, 24px);
}
.stack-sm {
  --stack: 12px;
}
.stack-lg {
  --stack: 40px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--row-gap, 12px 16px);
}
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
}

/* 04 - TYPOGRAPHY --------------------------------------------------------- */
.display,
.h1,
.h2,
.h3,
.h4,
.stat__num,
.num {
  font-family: var(--font-display);
  color: var(--fg);
  text-wrap: balance;
}
/* Poster tier: condensed caps, like road signs and the HEMFRY CO truck livery */
.display,
.h1,
.h2,
.stat__num,
.cta-band__title {
  font-family: var(--font-poster) !important;
  font-stretch: normal !important;
  text-transform: uppercase;
  letter-spacing: -0.004em !important;
  font-feature-settings: "ss01" 0;
}
.display {
  font-size: calc(var(--fs-display) * 1.12);
  font-weight: 700;
  line-height: 0.88;
}
.h1 {
  font-size: calc(var(--fs-h1) * 1.1);
  font-weight: 700;
  line-height: 0.9;
}
.h2 {
  font-size: calc(var(--fs-h2) * 1.12);
  font-weight: 700;
  line-height: 0.92;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}
.display em,
.h1 em,
.h2 em {
  font-style: normal;
  color: var(--fg-muted);
}
.theme-dark .display em,
.theme-dark .h1 em,
.theme-dark .h2 em {
  color: var(--fg-muted);
}
.hl {
  color: var(--accent);
}
.theme-paper .hl,
.theme-white .hl {
  color: var(--ink);
  box-shadow: inset 0 -0.18em 0 var(--accent);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 40ch;
  text-wrap: pretty;
}
.lead--wide {
  max-width: 56ch;
}
.body {
  color: var(--fg-muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.small {
  font-size: var(--fs-small);
}
.xs {
  font-size: var(--fs-xs);
}
.muted {
  color: var(--fg-muted);
}
.faint {
  color: var(--fg-faint);
}
.fg {
  color: var(--fg);
}

.mono,
.eyebrow,
.meta,
.label-mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.nocase {
  text-transform: none !important;
}
.mono-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

/* Eyebrow with road-chainage marker (stacionaža): KM 0+100 - Usluge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.eyebrow::before {
  /* three chevrons from the logo */
  content: "";
  width: 22px;
  height: 12px;
  flex: none;
  background: var(--accent);
  -webkit-mask: var(--chev) 0 50% / 7px 12px repeat-x;
  mask: var(--chev) 0 50% / 7px 12px repeat-x;
}
.eyebrow:has(.eyebrow__km)::before {
  display: none;
}
/* Kilometre-post plate: 0+100 */
.eyebrow__km {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px 0 13px;
  background: var(--fg);
  color: var(--bg);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.eyebrow__km::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--r-xs) 0 0 var(--r-xs);
}
.eyebrow--plain::before {
  display: none;
}

.prose {
  max-width: var(--measure);
  color: var(--fg-muted);
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose p {
  text-wrap: pretty;
}
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.prose h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: var(--fs-h4);
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-top: 2em;
}
.prose ul {
  display: grid;
  gap: 10px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
}

/* Section head pattern */
.section-head {
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section-head .eyebrow {
  margin-bottom: 20px;
}
.section-head__aside {
  align-self: end;
}
.section-head__aside > * + * {
  margin-top: 20px;
}

/* 05 - BUTTONS & LINKS ---------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  --btn-icon-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  padding: 6px 12px 6px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease),
    transform 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  --btn-bg: var(--accent-hover);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  background: var(--btn-icon-bg);
  border-radius: var(--r-xs);
}
.btn__icon svg {
  display: none;
}
.btn__icon::before {
  content: "";
  width: 21px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--chev) 0 50% / 7px 13px repeat-x;
  mask: var(--chev) 0 50% / 7px 13px repeat-x;
}
.btn:hover .btn__icon::before,
.btn.is-hover .btn__icon::before {
  animation: hf-march 0.55s linear infinite;
}
@keyframes hf-march {
  to {
    -webkit-mask-position: 7px 50%;
    mask-position: 7px 50%;
  }
}
.btn--no-icon {
  padding: 6px 24px;
  justify-content: center;
}
.btn--lg {
  min-height: 60px;
  padding-left: 26px;
  font-size: 1rem;
}
.btn--lg .btn__icon {
  width: 48px;
  height: 48px;
}
.btn--sm {
  min-height: 44px;
  padding: 4px 4px 4px 16px;
  font-size: 0.875rem;
  gap: 12px;
}
.btn--sm .btn__icon {
  width: 36px;
  height: 36px;
}
.btn--block {
  width: 100%;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-icon-bg: transparent;
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bg: color-mix(in srgb, var(--fg) 6%, transparent);
  border-color: var(--fg);
}
.btn--ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
.btn--ink .btn__icon {
  color: var(--accent);
}
.btn--ink:hover {
  --btn-bg: #242422;
}
.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}
.btn--light:hover {
  --btn-bg: var(--white);
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Text link with arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--fg);
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  transition:
    background-size var(--t) var(--ease),
    color var(--t-fast);
  min-height: 44px;
}
.link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t) var(--ease-snap);
}
.link:hover {
  background-size: 0 1px;
  background-position: 100% 100%;
}
.link:hover svg {
  transform: translateX(4px);
}
.link--muted {
  color: var(--fg-muted);
}

/* Square arrow affordance used on cards */
.arrow-box {
  display: grid;
  place-items: center;
  width: 52px;
  height: 36px;
  flex: none;
  border-bottom: 2px solid var(--fg);
  color: var(--fg);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease);
}
.arrow-box svg {
  display: none;
}
.arrow-box::before {
  content: "";
  width: 21px;
  height: 13px;
  background: currentColor;
  -webkit-mask: var(--chev) 0 50% / 7px 13px repeat-x;
  mask: var(--chev) 0 50% / 7px 13px repeat-x;
}
a:hover > * > .arrow-box,
a:hover .arrow-box,
.arrow-box:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
a:hover .arrow-box::before,
.arrow-box:hover::before {
  animation: hf-march 0.55s linear infinite;
}

/* 06 - HEADER, MEGA MENU, MOBILE MENU ------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  color: var(--paper);
  transition:
    background-color var(--t) var(--ease),
    color var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    transform var(--t) var(--ease);
}
.site-header::before {
  /* legibility scrim over photography */
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55),
    rgba(10, 10, 10, 0)
  );
  pointer-events: none;
  transition: opacity var(--t) var(--ease);
}
.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header.is-solid,
.site-header.is-open {
  background: var(--ink);
  box-shadow: 0 1px 0 rgba(245, 245, 242, 0.08);
}
.site-header.is-solid::before,
.site-header.is-open::before {
  opacity: 0;
}
body[data-header="light"] .site-header:not(.is-solid):not(.is-open) {
  color: var(--ink);
}
body[data-header="light"] .site-header:not(.is-solid):not(.is-open)::before {
  opacity: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: inherit;
}
.logo__mark {
  width: 46px;
  height: auto;
  flex: none;
}
.logo__mark .road {
  fill: #8a8983;
}
.logo__mark .dash {
  stroke: #f5f5f2;
}
.logo__mark .chev {
  stroke: var(--accent);
}
.logo__word {
  font-family: var(--font-poster);
  font-style: italic;
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: 0.02em;
  line-height: 0.9;
}
.logo__word small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  opacity: 0.6;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.86;
  transition: opacity var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover,
.nav__link[aria-expanded="true"] {
  opacity: 1;
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after,
.nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
}
.nav__link[aria-current="page"] {
  opacity: 1;
}
.nav__link svg {
  width: 12px;
  height: 12px;
  transition: transform var(--t) var(--ease);
}
.nav__link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  opacity: 0.86;
  padding: 0 8px;
  height: 44px;
}
.header-phone:hover {
  opacity: 1;
}
.header-phone svg {
  width: 16px;
  height: 16px;
}
.header-cta {
  margin-left: 8px;
}

/* Mega menu - Usluge */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(245, 245, 242, 0.08);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 360ms var(--ease),
    transform 480ms var(--ease),
    visibility 0s linear 480ms;
}
.mega.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.mega__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: 40px 44px;
}
.mega__list {
  grid-column: 1 / span 7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--gap);
}
.mega__item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  transition: color var(--t-fast);
}
.mega__item .mono {
  color: #85847d;
}
.mega__item strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}
.mega__item span.muted {
  display: block;
  font-size: 0.875rem;
  color: #a3a29b;
  margin-top: 2px;
}
.mega__item svg {
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity var(--t) var(--ease),
    transform var(--t) var(--ease);
  color: var(--accent);
}
.mega__item:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 4px;
}
.mega__item:hover svg,
.mega__item:focus-visible svg,
.mega__item.is-active svg {
  opacity: 1;
  transform: none;
}
.mega__item:hover .mono,
.mega__item.is-active .mono {
  color: var(--accent);
}
.mega__preview {
  grid-column: 9 / span 4;
  position: relative;
}
.mega__preview-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
  border-radius: var(--r-xs);
}
.mega__preview-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 500ms var(--ease),
    transform 900ms var(--ease);
}
.mega__preview-frame img.is-active {
  opacity: 1;
  transform: none;
}
.mega__preview-cap {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  color: #a3a29b;
}
.mega__foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  color: #a3a29b;
  font-size: 0.875rem;
}
.mega__foot a {
  color: var(--paper);
  font-weight: 600;
}

/* Burger */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: 4px;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform var(--t) var(--ease-snap),
    opacity var(--t-fast);
}
.burger span:nth-child(1) {
  top: 16px;
}
.burger span:nth-child(2) {
  top: 21.5px;
  right: 17px;
}
.burger span:nth-child(3) {
  top: 27px;
}
.is-open .burger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.is-open .burger span:nth-child(2) {
  opacity: 0;
  transform: translateX(8px);
}
.is-open .burger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 360ms var(--ease),
    visibility 0s linear 360ms;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.mobile-menu__nav {
  padding: 12px var(--gutter) 24px;
  flex: 1;
}
.mobile-menu__item {
  border-bottom: 1px solid rgba(245, 245, 242, 0.1);
  overflow: hidden;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  text-align: left;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 700ms var(--ease),
    opacity 500ms var(--ease);
  transition-delay: calc(80ms + var(--i, 0) * 55ms);
}
.mobile-menu.is-open .mobile-menu__link {
  transform: none;
  opacity: 1;
}
.mobile-menu__link svg {
  width: 20px;
  height: 20px;
  transition: transform var(--t) var(--ease);
}
.mobile-menu__link[aria-expanded="true"] svg {
  transform: rotate(45deg);
}
.mobile-menu__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.mobile-menu__sub > ul {
  overflow: hidden;
}
.mobile-menu__sub.is-open {
  grid-template-rows: 1fr;
}
.mobile-menu__sub a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  font-size: 1.0625rem;
  color: #d6d5cf;
}
.mobile-menu__sub a .mono {
  color: #85847d;
}
.mobile-menu__sub ul {
  padding-bottom: 16px;
}
.mobile-menu__foot {
  padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(245, 245, 242, 0.1);
  display: grid;
  gap: 12px;
}
.mobile-menu__foot .mono {
  color: #a3a29b;
}

@media (max-width: 1099px) {
  .nav,
  .header-phone,
  .header-cta {
    display: none;
  }
  .burger {
    display: block;
    margin-left: auto;
  }
  .header-call {
    display: grid !important;
  }
}
.header-call {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(245, 245, 242, 0.25);
  border-radius: var(--r-xs);
}
.header-call svg {
  width: 18px;
  height: 18px;
}
.header-call + .burger {
  margin-left: 4px;
}
body[data-header="light"]
  .site-header:not(.is-solid):not(.is-open)
  .header-call {
  border-color: var(--line-strong);
}
body.menu-open {
  overflow: hidden;
}

/* 07 - HEROES ------------------------------------------------------------- */
/* Home hero: full-bleed photo, copy in 6 left columns */
.hero {
  position: relative;
  min-height: clamp(640px, 100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(1.06);
  transition: transform 2.4s var(--ease);
}
.is-loaded .hero__media img {
  transform: none;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 12, 11, 0.9) 0%,
      rgba(12, 12, 11, 0.62) 38%,
      rgba(12, 12, 11, 0.12) 72%,
      rgba(12, 12, 11, 0.05) 100%
    ),
    linear-gradient(
      0deg,
      rgba(17, 17, 17, 1) 0%,
      rgba(17, 17, 17, 0.4) 22%,
      rgba(17, 17, 17, 0) 45%
    );
}
.hero__content {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.hero .eyebrow {
  margin-bottom: 28px;
}
.hero__title {
  max-width: 12ch;
}
.hero__lead {
  margin-top: 28px;
  max-width: 46ch;
  color: #d2d1ca;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__foot {
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 242, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: #a3a29b;
}
.hero__foot strong {
  color: #f5f5f2;
  font-weight: 500;
}
.hero__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
@media (max-width: 699px) {
  .hero {
    min-height: clamp(620px, 88svh, 720px);
  }
  .hero__media::after {
    background: linear-gradient(
      0deg,
      rgba(17, 17, 17, 1) 0%,
      rgba(17, 17, 17, 0.86) 45%,
      rgba(17, 17, 17, 0.55) 75%,
      rgba(17, 17, 17, 0.6) 100%
    );
  }
  .hero__actions .btn {
    width: 100%;
  }
  .hero__foot .hero__caption {
    display: none;
  }
}

/* Inner page hero - split 5/7 */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px));
  padding-bottom: clamp(48px, 6vw, 96px);
  position: relative;
}
.page-hero__copy {
  display: flex;
  flex-direction: column;
}
.page-hero .breadcrumb {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.page-hero .eyebrow {
  margin-bottom: 24px;
}
.page-hero__lead {
  margin-top: 24px;
}
.page-hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 699px) {
  .page-hero__actions .btn {
    width: 100%;
  }
  .acc-panel__body {
    padding-right: 8px;
  }
}
.page-hero__trust {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--fg-muted);
}
.page-hero__trust::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.page-hero__media {
  position: relative;
}
.page-hero__media .media {
  height: 100%;
  min-height: 420px;
}
@media (min-width: 1100px) {
  .page-hero--split .g {
    min-height: min(720px, calc(100svh - var(--header-h) - 80px));
    align-items: stretch;
  }
  .page-hero--split .page-hero__copy {
    padding-bottom: 8px;
  }
  .page-hero__media .media img {
    position: absolute;
    inset: 0;
  }
}
@media (max-width: 1099px) {
  .page-hero__media .media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Full-image page hero (Mehanizacija, Vangabarit) */
.page-hero--image {
  min-height: clamp(560px, 86svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero--image .page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}
.page-hero--image .page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(17, 17, 17, 0.96) 0%,
    rgba(17, 17, 17, 0.55) 36%,
    rgba(17, 17, 17, 0.08) 70%,
    rgba(17, 17, 17, 0.4) 100%
  );
}
.page-hero--image .breadcrumb {
  position: absolute;
  top: calc(var(--header-h) + 24px);
}

/* Tech figures overlaid on hero (Pumpa) */
.hero-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.hero-figures > div {
  padding: 20px 20px 0 0;
}
.hero-figures > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.hero-figures .num {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-figures .num sup {
  font-size: 0.42em;
  vertical-align: top;
  margin-left: 4px;
  color: var(--accent);
  letter-spacing: 0;
}
.hero-figures .mono {
  margin-top: 10px;
  color: var(--fg-muted);
}
.hero-figures--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 20px;
}
@media (min-width: 700px) {
  .hero-figures--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 699px) {
  .hero-figures--4 > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.breadcrumb a {
  color: var(--fg-muted);
  transition: color var(--t-fast);
}
.breadcrumb a:hover {
  color: var(--fg);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--fg-faint);
}
.breadcrumb [aria-current] {
  color: var(--fg);
}

/* 08 - MEDIA -------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--r-xs);
}
.theme-dark .media {
  background: var(--ink-3);
}
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  filter: saturate(0.92) contrast(1.03);
}
.media--contain img {
  object-fit: contain;
}
.r-16x9 {
  aspect-ratio: 16 / 9;
}
.r-16x10 {
  aspect-ratio: 16 / 10;
}
.r-21x9 {
  aspect-ratio: 21 / 9;
}
.r-4x3 {
  aspect-ratio: 4 / 3;
}
.r-3x4 {
  aspect-ratio: 3 / 4;
}
.r-1x1 {
  aspect-ratio: 1;
}
.r-4x5 {
  aspect-ratio: 4 / 5;
}
.r-3x2 {
  aspect-ratio: 3 / 2;
}
.media__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(245, 245, 242, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.figcap {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--fg-faint);
}
.zoom img {
  transition: transform 1.4s var(--ease);
}
a:hover .zoom img,
.zoom:hover img {
  transform: scale(1.045);
}

/* 09 - STATS -------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
  padding: 28px 20px 8px 0;
  border-top: 1px solid var(--line-strong);
}
.stat__num {
  display: flex;
  align-items: flex-start;
  font-size: calc(var(--fs-stat) * 1.12);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__num sup {
  font-size: 0.45em;
  line-height: 1;
  color: var(--accent);
  margin-left: 0.06em;
  letter-spacing: 0;
  font-weight: 600;
  transform: translateY(0.12em);
}
.stat__num--word {
  font-size: calc(var(--fs-stat) * 0.78);
  letter-spacing: -0.04em;
}
.stat__label {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
  max-width: 22ch;
}
.stat__label .mono {
  display: block;
  color: var(--fg);
  margin-bottom: 6px;
}
@media (max-width: 699px) {
  .stat:nth-child(odd) {
    padding-right: 16px;
  }
  .stat:nth-child(even) {
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }
}
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stat + .stat {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
  .stats--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stats--6 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .stats--6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 40px;
  }
  .stats--6 .stat:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}

/* 10 - SERVICE CARD ------------------------------------------------------- */
.card-link {
  display: block;
  position: relative;
}
.service-card .media {
  margin-bottom: 20px;
}
.service-card__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
}
.service-card__idx {
  padding-top: 7px;
  color: var(--fg-faint);
  min-width: 24px;
}
.service-card__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.service-card__text {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
  max-width: 42ch;
}
.service-card--feature .service-card__title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
}

/* Big-type card on neutral surface (Šta asfaltiramo, Šta prevozimo …) */
.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-xs);
  overflow: hidden;
  isolation: isolate;
}
.type-card__idx {
  color: var(--fg-faint);
}
.type-card__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.type-card__text {
  margin-top: 8px;
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.type-card--photo {
  color: var(--paper);
  --fg-muted: #d2d1ca;
  --fg-faint: rgba(245, 245, 242, 0.7);
}
.type-card--photo img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.type-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgba(12, 12, 11, 0.85) 0%,
    rgba(12, 12, 11, 0.2) 60%,
    rgba(12, 12, 11, 0.35) 100%
  );
}
.type-card--photo:hover img {
  transform: scale(1.05);
}

/* 11 - PROJECT CARD ------------------------------------------------------- */
.project-card .media {
  margin-bottom: 20px;
}
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--fg-faint);
  margin-bottom: 10px;
}
.project-card__meta span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 18px;
  vertical-align: middle;
  background: var(--accent);
  transform: translateY(-1px);
}
.project-card__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 660;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  letter-spacing: -0.022em;
  line-height: 1.08;
}
.project-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.project-card__loc {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
.project-card--lg .project-card__title {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.75rem);
}

/* 12 - MACHINE CARD ------------------------------------------------------- */
.machine-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.machine-card .media {
  margin-bottom: 18px;
}
.machine-card__cat {
  color: var(--fg-faint);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.machine-card__name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: 1.375rem;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.machine-card__model {
  margin-top: 4px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
.machine-card__specs {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.machine-card__specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.machine-card__specs dt {
  color: var(--fg-muted);
}
.machine-card__specs dd {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg);
  text-align: right;
}
@media (min-width: 700px) {
  .machine-card--feature {
    grid-column: span 2;
  }
}

/* Horizontal scroller (machine previews, secondary projects) */
.scroller {
  position: relative;
}
.scroller__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - var(--gap) * 3.5) / 4.5));
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.scroller__track::-webkit-scrollbar {
  display: none;
}
.scroller__track > * {
  scroll-snap-align: start;
}
.scroller__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}
.scroller__progress {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 480px;
}
.scroller__progress span {
  position: absolute;
  left: 0;
  top: -0.5px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--p, 0.2));
  transition: transform 200ms linear;
}
.scroller__btns {
  display: flex;
  gap: 8px;
}
.scroller__btns button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t);
}
.scroller__btns button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.scroller__btns button[disabled] {
  opacity: 0.35;
  pointer-events: none;
}
.scroller__btns svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 699px) {
  .scroller__track {
    grid-auto-columns: 78%;
  }
}
/* Bleed the track to the right viewport edge while staying aligned to the container on the left */
.scroller--bleed .scroller__track {
  margin-right: calc(50% - 50vw);
  padding-right: calc(50vw - 50%);
  scroll-padding-right: calc(50vw - 50%);
  grid-auto-columns: minmax(260px, 23%);
}
@media (max-width: 699px) {
  .scroller--bleed .scroller__track {
    grid-auto-columns: 78%;
  }
}

/* 13 - PROCESS ------------------------------------------------------------ */
.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 0 32px 56px;
}
.step::before {
  /* vertical road line on mobile */
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0 10px,
    transparent 10px 18px
  );
}
.step__num {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 26px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.step.is-in .step__num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transition-delay: calc(var(--d, 0ms) + 400ms);
}
.step__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.step__text {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
  max-width: 36ch;
}
@media (min-width: 700px) {
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 48px;
  }
  .process--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .step {
    padding: 56px 0 0 0;
  }
  .step::before {
    left: 0;
    right: 0;
    top: 15px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: var(--line);
  }
  .step::after {
    /* animated road line */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 15px;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--fg) 0 18px,
      transparent 18px 30px
    );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.3s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .step.is-in::after {
    transform: scaleX(1);
  }
  .step__num {
    top: 0;
  }
}
/* Inline horizontal process, e.g. 7 steps across 12 cols */
@media (min-width: 1100px) {
  .process--row {
    grid-template-columns: repeat(var(--steps, 7), minmax(0, 1fr));
    column-gap: 20px;
  }
  .process--row .step__text {
    font-size: 0.875rem;
  }
}

/* 14 - REASONS / TYPOGRAPHIC GRID ---------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: 1fr;
}
.reason {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}
.reason__num {
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.reason__num::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--accent);
}
.reason__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 680;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.reason__text {
  margin-top: 14px;
  color: var(--fg-muted);
  max-width: 38ch;
}
@media (min-width: 700px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
  }
}
@media (min-width: 1100px) {
  .reasons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .reason {
    padding-bottom: 56px;
  }
}

/* 15 - ACCORDION ---------------------------------------------------------- */
.accordion {
  border-top: 1px solid var(--line);
}
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-trigger {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 76px;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color var(--t-fast);
}
.acc-trigger:hover {
  color: var(--fg);
}
.acc-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  transition: transform var(--t) var(--ease-snap);
}
.acc-icon::after {
  transform: rotate(90deg);
}
.acc-trigger[aria-expanded="true"] .acc-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.acc-trigger[aria-expanded="true"] .acc-icon::after {
  transform: rotate(0deg);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t) var(--ease);
}
.acc-panel > div {
  overflow: hidden;
}
.acc-panel.is-open {
  grid-template-rows: 1fr;
}
.acc-panel__body {
  padding: 0 64px 28px 0;
  color: var(--fg-muted);
  max-width: 72ch;
}
.acc-panel__body > * + * {
  margin-top: 0.9em;
}

/* 16 - CHIPS, LOGO WALL, TAGS -------------------------------------------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 899px) {
  .chips--scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .chips--scroll::-webkit-scrollbar {
    display: none;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease);
}
@media (hover: hover) {
  .chip:hover {
    border-color: var(--fg);
  }
}
.chip .mono-num {
  font-size: 0.75rem;
  color: var(--fg-faint);
}
.chip[aria-pressed="true"],
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.chip[aria-pressed="true"] .mono-num {
  color: rgba(17, 17, 17, 0.6);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.filter-bar--sticky {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: var(--bg);
}
.filter-bar__count {
  color: var(--fg-faint);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tag--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-wall__item {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.logo-wall__item img {
  max-height: 54px;
  width: auto;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: multiply;
  opacity: 0.72;
  transition:
    filter var(--t) var(--ease),
    opacity var(--t) var(--ease);
}
.logo-wall__item:hover img {
  filter: none;
  opacity: 1;
}
.logo-wall__item--text {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
}
@media (min-width: 700px) {
  .logo-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.logo-wall--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .logo-wall--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 17 - BEFORE / AFTER ----------------------------------------------------- */
.ba {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xs);
  background: var(--ink-3);
  --pos: 50%;
  touch-action: pan-y;
  user-select: none;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba__before.is-demo {
  filter: grayscale(1) sepia(0.35) contrast(0.82) brightness(0.9);
}
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--accent);
  pointer-events: none;
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--r-xs);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.ba__knob svg {
  width: 26px;
  height: 26px;
}
.ba__label {
  position: absolute;
  top: 16px;
  padding: 7px 10px;
  background: rgba(17, 17, 17, 0.78);
  color: var(--paper);
  border-radius: var(--r-xs);
}
.ba__label--before {
  left: 16px;
}
.ba__label--after {
  right: 16px;
}
.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba input[type="range"]:focus-visible + .ba__handle .ba__knob {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* 18 - FORMS & STEPPER ---------------------------------------------------- */
.field {
  display: grid;
  gap: 8px;
}
.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.field__label .opt {
  font-weight: 400;
  color: var(--fg-faint);
}
.field__help {
  font-size: 0.8125rem;
  color: var(--fg-faint);
}
.field__error {
  display: none;
  font-size: 0.8125rem;
  color: var(--danger);
  align-items: center;
  gap: 6px;
}
.field.is-invalid .field__error {
  display: flex;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  font-size: 1rem;
  color: var(--fg);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--fg-faint);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  background: var(--paper-3);
  color: var(--fg-faint);
  border-color: var(--line);
  cursor: not-allowed;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--fg-muted);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: inset 3px 0 0 var(--accent);
}
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--danger);
  box-shadow: inset 3px 0 0 var(--danger);
}
.select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23111' stroke-width='1.5'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.input-unit {
  position: relative;
}
.input-unit .input {
  padding-right: 64px;
}
.input-unit__u {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--fg-faint);
  pointer-events: none;
}

/* Choice cards (radio / checkbox as big tiles) */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 700px) {
  .choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
  height: 100%;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast);
}
.choice__box .mono {
  color: var(--fg-faint);
  display: flex;
  justify-content: space-between;
}
.choice__box .mono i {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-style: normal;
  transition: all var(--t-fast);
}
.choice__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
@media (hover: hover) {
  .choice:hover .choice__box {
    border-color: var(--fg-muted);
  }
}
.choice input:checked + .choice__box {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choice input:checked + .choice__box .mono i {
  background: var(--accent);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.choices--compact .choice__box {
  min-height: 64px;
  flex-direction: row;
  align-items: center;
}

/* Upload */
.upload {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 200px;
  padding: 32px 20px;
  text-align: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-xs);
  background: var(--surface);
  transition:
    border-color var(--t-fast),
    background-color var(--t-fast);
}
.upload.is-drag,
.upload:hover {
  border-color: var(--ink);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--accent);
  color: var(--ink);
}
.upload__icon svg {
  width: 22px;
  height: 22px;
}
.upload__title {
  font-weight: 600;
}
.upload__hint {
  font-size: 0.8125rem;
  color: var(--fg-faint);
}
.upload-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.upload-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xs);
  overflow: hidden;
  background: var(--paper-3);
}
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-thumb button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.8);
  color: var(--paper);
  border-radius: var(--r-xs);
}
.upload-thumb button svg {
  width: 14px;
  height: 14px;
}

/* Stepper */
.stepper {
  display: grid;
  grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr));
  gap: 6px;
}
.stepper__step {
  display: grid;
  gap: 10px;
  text-align: left;
}
.stepper__bar {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.stepper__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.stepper__step.is-done .stepper__bar::after,
.stepper__step.is-current .stepper__bar::after {
  transform: scaleX(1);
}
.stepper__step.is-current .stepper__bar::after {
  background: var(--accent);
}
.stepper__meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.8125rem;
  color: var(--fg-faint);
}
.stepper__meta .mono {
  font-size: 0.6875rem;
}
.stepper__step.is-current .stepper__meta,
.stepper__step.is-done .stepper__meta {
  color: var(--fg);
}
@media (max-width: 699px) {
  .stepper__meta span:not(.mono) {
    display: none;
  }
}

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: clamp(20px, 3.4vw, 48px);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 699px) {
  .form-actions {
    position: sticky;
    bottom: var(--sticky-bar-h);
    margin-inline: calc(clamp(20px, 3.4vw, 48px) * -1);
    padding: 12px clamp(20px, 3.4vw, 48px)
      calc(12px + env(safe-area-inset-bottom));
    background: var(--surface);
  }
  .form-actions .btn:last-child {
    flex: 1;
  }
}

/* 19 - SPECS & TABLES ----------------------------------------------------- */
.specs {
  border-top: 1px solid var(--line);
}
.specs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.specs__row dt {
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
.specs__row dd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-align: right;
  color: var(--fg);
}
.specs__row dd strong {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 680;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--fg);
}
.x-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.table th {
  text-align: left;
  padding: 16px 16px 16px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 22px 16px 22px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
.table td:first-child {
  color: var(--fg);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 680;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.table tr {
  transition: background-color var(--t-fast);
}
.table th:first-child,
.table td:first-child,
.table tbody th {
  transition: padding-left var(--t) var(--ease);
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.table tbody tr:hover > :first-child {
  padding-left: 16px;
}
@media (hover: none) {
  .table tbody tr:hover > :first-child {
    padding-left: 0;
  }
}

/* Facts grid (single project) */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.facts dd {
  margin-top: 6px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
@media (min-width: 1100px) {
  .facts--stack {
    grid-template-columns: 1fr;
  }
}

/* Checklist */
.checklist {
  display: grid;
}
.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.checklist li:first-child {
  border-top: 1px solid var(--line);
}
.checklist svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ink);
  background: var(--accent);
  border-radius: var(--r-xs);
  padding: 3px;
}

/* 20 - TIMELINE ----------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline__item {
  position: relative;
  padding: 0 0 48px 44px;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xs);
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease);
  transition-delay: calc(var(--d, 0ms) + 300ms);
}
.timeline__item.is-in::before {
  background: var(--accent);
  border-color: var(--accent);
}
.timeline__year {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.timeline__title {
  margin-top: 12px;
  font-weight: 600;
}
.timeline__text {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: var(--fs-small);
  max-width: 34ch;
}
.timeline__media {
  margin-top: 20px;
  max-width: 320px;
}
@media (min-width: 1100px) {
  .timeline {
    grid-template-columns: repeat(var(--items, 6), minmax(0, 1fr));
    column-gap: var(--gap);
  }
  .timeline::before {
    left: 0;
    right: 0;
    top: 7px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .timeline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 7px;
    height: 1px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 2.2s var(--ease);
  }
  .timeline.is-in::after {
    transform: scaleX(1);
  }
  .timeline__item {
    padding: 44px 0 0 0;
  }
  .timeline__item::before {
    top: 0;
  }
}

/* 21 - CTA BAND ----------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  filter: grayscale(1) contrast(1.1);
  opacity: 0.28;
}
.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 1) 20%,
    rgba(17, 17, 17, 0.6) 70%,
    rgba(17, 17, 17, 0.8) 100%
  );
}
.cta-band__title {
  font-size: clamp(3rem, 1.4rem + 6.4vw, 8rem);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.cta-band__phone {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  letter-spacing: -0.02em;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px
    no-repeat;
  transition: background-size var(--t) var(--ease);
}
.cta-band__phone:hover {
  background-size: 100% 2px;
}
.chevrons {
  height: 10px;
  background: repeating-linear-gradient(
    -60deg,
    var(--accent) 0 9px,
    transparent 9px 18px
  );
  opacity: 0.95;
}
.chevrons--thin {
  height: 6px;
}

/* Side CTA panel (FAQ + CTA) */
.cta-panel {
  background-color: var(--ink);
  color: var(--paper);
  --fg: var(--paper);
  --fg-muted: #a3a29b;
  --line: rgba(245, 245, 242, 0.14);
  --line-strong: rgba(245, 245, 242, 0.28);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xs);
  position: relative;
  overflow: hidden;
}
.cta-panel .chevrons {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

/* Alternative contact strip */
.alt-contact {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.alt-contact a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding var(--t) var(--ease);
}
.alt-contact a:hover {
  padding-left: 12px;
}
.alt-contact strong {
  display: block;
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 640;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin-top: 4px;
}
@media (min-width: 900px) {
  .alt-contact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--gap);
  }
}

/* 22 - FOOTER & STICKY BAR ----------------------------------------------- */
.site-footer {
  position: relative;
  background: #0c0c0b;
  color: var(--paper);
  --fg: var(--paper);
  --fg-muted: #a3a29b;
  --fg-faint: #85847d;
  --line: rgba(245, 245, 242, 0.1);
  overflow: hidden;
}
.site-footer__top {
  padding-block: clamp(64px, 8vw, 112px) 48px;
}
.footer-col h3 {
  color: #85847d;
  margin-bottom: 20px;
}
.footer-col li + li {
  margin-top: 10px;
}
.footer-col a {
  color: #d6d5cf;
  transition: color var(--t-fast);
  display: inline-flex;
  min-height: 28px;
  align-items: center;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-brand p {
  margin-top: 24px;
  color: #a3a29b;
  max-width: 34ch;
}
.footer-col a {
  overflow-wrap: anywhere;
}
.footer-contact a {
  font-family: var(--font-display);
  font-stretch: 106%;
  font-weight: 620;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.site-footer__word {
  display: none;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(4.5rem, 22.4vw, 22rem);
  line-height: 0.74;
  letter-spacing: -0.02em;
  color: #151514;
  text-align: center;
  margin-bottom: -0.06em;
  user-select: none;
  white-space: nowrap;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: #85847d;
}
.site-footer__bottom a:hover {
  color: var(--paper);
}
/* Link columns: evenly spread across the right 8 columns, contact aligned to the edge */
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px var(--gap);
}
.footer-links .footer-contact {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .footer-links {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
  }
  .footer-links .footer-contact {
    grid-column: auto;
  }
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.site-footer__credit a {
  color: #d6d5cf;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px
    no-repeat;
  transition:
    color var(--t-fast),
    background-size var(--t) var(--ease);
}
.site-footer__credit a:hover {
  color: var(--accent);
  background-size: 0 1px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 245, 242, 0.18);
  border-radius: var(--r-xs);
  color: #d6d5cf;
  transition:
    background-color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.footer-social svg {
  width: 19px;
  height: 19px;
}

.sticky-bar {
  display: none;
}
@media (max-width: 899px) {
  .sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(17, 17, 17, 0.98);
    border-top: 1px solid rgba(245, 245, 242, 0.1);
    transform: translateY(0);
    transition: transform var(--t) var(--ease);
  }
  .sticky-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border-radius: var(--r-xs);
    font-weight: 600;
    font-size: 0.9375rem;
  }
  .sticky-bar a svg {
    width: 18px;
    height: 18px;
  }
  .sticky-bar__call {
    color: var(--paper);
    border: 1px solid rgba(245, 245, 242, 0.25);
  }
  .sticky-bar__quote {
    background: var(--accent);
    color: var(--ink);
  }
  body.menu-open .sticky-bar {
    transform: translateY(110%);
  }
}

/* 23 - MOTION ------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1s var(--ease),
    transform 1.2s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-reveal="fade"] {
  transform: none;
}
/* Image wipe: the clip lives on the <img>, never on the observed container -
   Chrome's IntersectionObserver treats a fully self-clipped target as not intersecting. */
.js [data-reveal="img"] {
  opacity: 1;
  transform: none;
}
.js [data-reveal="img"] img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.14);
  transition:
    clip-path 1.3s var(--ease-io),
    transform 1.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="img"].is-in img {
  clip-path: inset(0 0 0 0);
  transform: none;
}
.js a:hover [data-reveal="img"].is-in.zoom img,
.js a:hover .zoom[data-reveal="img"].is-in img {
  transform: scale(1.045);
  transition-delay: 0ms;
}

/* Line-by-line headline reveal */
.js [data-split] .line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0 0.06em;
  margin: -0.14em 0 -0.06em;
}
.js [data-split] .line > span {
  display: block;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0ms) + var(--li, 0) * 90ms);
}
.js [data-split].is-in .line > span {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal],
  .js [data-reveal="img"],
  .js [data-split] .line > span {
    opacity: 1;
    transform: none;
    clip-path: none;
  }
  .hero__media img {
    transform: none;
  }
}

/* Utilities */
.mt-0 {
  margin-top: 0 !important;
}
.mt-2 {
  margin-top: 8px;
}
.mt-3 {
  margin-top: 12px;
}
.mt-4 {
  margin-top: 16px;
}
.mt-5 {
  margin-top: 24px;
}
.mt-6 {
  margin-top: 32px;
}
.mt-7 {
  margin-top: 48px;
}
.mt-8 {
  margin-top: 64px;
}
.mt-9 {
  margin-top: 96px;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-5 {
  margin-bottom: 24px;
}
.mb-6 {
  margin-bottom: 32px;
}
.mb-7 {
  margin-bottom: 48px;
}
.w-full {
  width: 100%;
}
.text-right {
  text-align: right;
}
.nowrap {
  white-space: nowrap;
}
@media (max-width: 1099px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 1100px) {
  .hide-desktop {
    display: none !important;
  }
}
@media (min-width: 1100px) {
  .offset-d-down {
    margin-top: var(--offset, 96px);
  }
  .offset-d-up {
    margin-top: calc(var(--offset, 64px) * -1);
  }
}

/* Inner-page hero titles: one scale for the condensed caps (overrides per-page sizes tuned for the old face) */
.page-hero .h1 {
  font-size: clamp(3rem, 1.2rem + 4vw, 5.5rem) !important;
  max-width: none !important;
}

/* Section head road line: the chainage plate sits on a dashed lane marking that runs the full width */
.section-head {
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  left: var(--eb, 0px);
  right: 0;
  top: 12px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--fg) 0 16px,
    transparent 16px 30px
  );
  opacity: 0.2;
  pointer-events: none;
}
.section-head:not([style*="--eb"])::before {
  display: none;
}

/* 25 - PAGE: HOME -------------------------------------------------------- */
@media (max-width: 1359px) {
  .header-phone {
    display: none;
  }
}
.home-stats .container {
  padding-top: 8px;
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero__title {
  font-size: clamp(3.25rem, 1rem + 6.6vw, 8rem);
  max-width: none;
}
.hero__lead {
  max-width: 52ch;
}

/* Project index rows (compact project card) */
.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.project-row .project-card__meta {
  margin-bottom: 6px;
}
.project-row__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.project-row .project-card__loc {
  margin-top: 4px;
}
@media (min-width: 1100px) {
  .project-list {
    margin-top: 0;
  }
  .project-row:first-child {
    padding-top: 0;
  }
  .project-list {
    border-top: 0;
  }
}
@media (max-width: 699px) {
  .project-row {
    grid-template-columns: 96px 1fr;
  }
  .project-row .arrow-box {
    display: none;
  }
}

.projects-strip {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.projects-strip__big {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(3rem, 2rem + 3.4vw, 5.5rem);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
@media (min-width: 900px) {
  .projects-strip {
    grid-template-columns: auto minmax(0, 52ch) auto;
    justify-content: space-between;
    gap: 48px;
  }
}

/* Mechanization composition */
.mech-comp {
  position: relative;
  padding-bottom: 15%;
}
.mech-comp__main {
  margin-left: 12%;
}
.mech-comp__inset {
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 42%;
  outline: 10px solid var(--ink);
  border-radius: 0;
}
.mech-comp__cap {
  position: absolute;
  right: 0;
  bottom: 0;
  width: calc(58% - 40px);
  margin: 0;
}
.mech-scroller {
  margin-top: clamp(72px, 9vw, 136px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
@media (max-width: 1099px) {
  .mech-comp {
    margin-top: 48px;
    padding-bottom: 0;
  }
  .mech-comp__main {
    margin-left: 0;
  }
  .mech-comp__inset {
    display: none;
  }
  .mech-comp__cap {
    position: static;
    width: auto;
    margin-top: 12px;
  }
}

/* Audience */
.audience-card .h4 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
}
.subcontract {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 32px;
  align-items: center;
  margin-top: clamp(48px, 6vw, 88px);
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
.subcontract__text {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.015em;
  grid-column: 1;
}
.subcontract .arrow-box {
  grid-column: 2;
  grid-row: 1 / span 2;
}
@media (min-width: 900px) {
  .subcontract {
    grid-template-columns: 240px 1fr auto;
  }
  .subcontract__text {
    grid-column: 2;
  }
  .subcontract .arrow-box {
    grid-column: 3;
    grid-row: 1;
  }
}
.is-static *,
.is-static *::before,
.is-static *::after {
  transition: none !important;
  animation: none !important;
}
