/* ==========================================================================
   ELIOS — logistics website template by LAIN
   Shared styles: tokens, base, components, shared sections, Home page.
   Desktop design reference: 1728px wide (Figma "Elios Shot").
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset; fallbacks are metric-matched so the swap moves nothing) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("../fonts/fragment-mono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans"), local("Roboto"); size-adjust: 103.58%; ascent-override: 100.4%; descent-override: 21.24%; line-gap-override: 0%; }
@font-face { font-family: "Fragment Mono Fallback"; src: local("Courier New"), local("Liberation Mono"); size-adjust: 102.98%; ascent-override: 92.25%; descent-override: 24.28%; line-gap-override: 0%; }

/* ---------- Tokens ---------- */
:root {
  --ink: #131211;            /* dark surfaces + primary text */
  --c-shade-color: var(--ink);  /* photo shade (content contract): a darker version of this colour */
  --black: #000;
  --white: #fff;
  --off-white: #f5f2ed;
  --yellow: #d1b93c;         /* brand accent (logo, highlights) */
  --surface-dark: #383736;   /* cards on --ink (≈ white 16%) */
  --chip-dark: rgba(255, 255, 255, .08);
  --chip-light: rgba(0, 0, 0, .08);
  --surface-light: #f5f5f5;  /* cards on white (≈ black 4%) */
  --stat-light: #e3e3e3;
  --line-dark: rgba(255, 255, 255, .2);
  --line-light: rgba(0, 0, 0, .12);

  --font-display: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", "Fragment Mono Fallback", "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: 2.5rem;            /* page side padding */
  --rt: 1rem;                  /* "text rem": widths of text blocks use calc(N * var(--rt)); on desktop it never drops below the 1728px design value, because type is fixed px */
  --section-y: 7.5rem;        /* section vertical padding */
  --max: 1728px;

  /* fluid display sizes — exact at 1728px, scale down proportionally */
  /* Type scale: FIXED px on every desktop size (only spacing/layout scales with the window). Use these, never vw/rem/clamp, for text. */
  --fs-mega: 288px;   /* footer wordmark */
  --fs-stat: 88px;    /* big stat numerals */
  --fs-hero: 64px;
  --fs-h2: 48px;
  --fs-stat-sm: 45px; /* glass-card numerals */
  --fs-h3: 32px;
  --fs-lg: 22px;      /* index numbers, quotes, footer contact */
  --fs-body: 12px;
  --fs-nav: 12px;     /* header nav */
  --fs-link: 16px;    /* footer company row */
  --fs-mono: 12px;    /* all small mono text: body copy, buttons, tags, labels, nav */
  --fs-2xs: 12px;     /* announcement bar, micro tags */
}

/* Tablet and phone type scale (the desktop scale above is fixed px at every width; these bands are fixed too: one size per role per band, never fluid).
   Use the tokens in every rule; do not write px font sizes in page CSS. Body, buttons and nav stay at 12px; form inputs are 16px (set where the form is styled) so iOS does not zoom. */
@media (max-width: 1024px) { :root { --fs-stat: 64px; --fs-hero: 48px; --fs-h2: 36px; --fs-stat-sm: 36px; --fs-h3: 26px; --fs-lg: 20px; --fs-link: 14px; } }
@media (max-width: 760px)  { :root { --fs-stat: 48px; --fs-hero: 40px; --fs-h2: 28px; --fs-stat-sm: 32px; --fs-h3: 22px; --fs-lg: 18px; } }
@media (max-width: 1024px) { :root { --fs-mega: 120px; } }   /* footer wordmark: one size per band (main.js [data-fit] still shrinks it for long business names) */
@media (max-width: 760px)  { :root { --fs-mega: 104px; } }

/* ---------- Base ---------- */
/* One fluid root size: every rem on desktop scales with the window (design = 1728px wide), capped at both ends */
@media (min-width: 1025px) { html { font-size: clamp(14px, .9vw, 17px); } :root { --rt: max(1rem, 15.5547px); } }
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 400; }
[hidden] { display: none !important; }
.d-br { display: inline; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 0.1875rem; }
.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;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }
.theme-dark { background: var(--ink); color: var(--white); }
.theme-light { background: var(--white); color: var(--ink); }
/* two neighbours of the same tone: one section gap between them, not two */
.section.theme-dark + .section.theme-dark, .section.theme-light + .section.theme-light { padding-top: 0; }

/* ---------- Typography ---------- */
.mono, .eyebrow, .btn, .tag, .text-mono { font-family: var(--font-mono); font-weight: 400; }
.text-mono { font-size: var(--fs-mono); line-height: 1.5; text-transform: uppercase; letter-spacing: 0; }
.h1 { font-size: var(--fs-hero); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
.h2 { font-size: var(--fs-h2); line-height: 1.4; letter-spacing: -.02em; font-weight: 400; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; }
.index { font-family: var(--font-mono); font-size: var(--fs-lg); line-height: 1.2; }
.why__item .index { padding-top: .25rem; }
.muted { opacity: .62; }
.h1, .h2, .h3, .about-intro__lead, .testimonial__quote { text-wrap: balance; }
.text-mono, .section-head p { text-wrap: pretty; }   /* no one-word last lines */   /* keep >= 4.5:1 on white (Lighthouse a11y) */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 0.375rem; height: 0.375rem; background: currentColor; flex: none; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.9375rem;
  padding: 0.75rem 1.25rem; font-size: var(--fs-mono); line-height: 14px; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
  -webkit-backdrop-filter: blur(0.1875rem); backdrop-filter: blur(0.1875rem);
  transition: background-color .25s ease, color .25s ease, opacity .25s ease;
}
.btn--dot::before { content: ""; width: 0.375rem; height: 0.375rem; background: currentColor; flex: none; transition: transform .3s ease; }
@media (hover: hover) { .btn--dot:hover::before { transform: rotate(45deg); } }
.btn--dark { background: var(--ink); color: var(--white); }
@media (hover: hover) { .btn--dark:hover { background: #2a2928; } }
.btn--black { background: var(--black); color: var(--white); }
@media (hover: hover) { .btn--black:hover { background: #262626; } }
.btn--light { background: var(--chip-light); color: var(--black); }
@media (hover: hover) { .btn--light:hover { background: rgba(0, 0, 0, .14); } }
.btn--glass { background: rgba(255, 255, 255, .1); color: var(--white); }
@media (hover: hover) { .btn--glass:hover { background: rgba(255, 255, 255, .18); } }
.btn--white { background: var(--white); color: var(--black); }
@media (hover: hover) { .btn--white:hover { background: var(--off-white); } }
.btn--yellow { background: var(--yellow); color: var(--ink); }
@media (hover: hover) { .btn--yellow:hover { background: #dcc552; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }

.tag {
  display: inline-flex; align-items: center; padding: 0.625rem 0.75rem;
  font-size: var(--fs-mono); line-height: 16px; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
  background: var(--chip-dark); color: var(--white);
}
.theme-light .tag, .tag--light { background: var(--chip-light); color: var(--black); }
.tags { display: flex; flex-wrap: wrap; gap: 0.625rem; }

.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  background: rgba(255, 255, 255, .1); color: var(--white);
  transition: background-color .25s ease, opacity .25s ease;
}
@media (hover: hover) { .icon-btn:hover { background: rgba(255, 255, 255, .2); } }
.icon-btn:disabled { opacity: .5; cursor: default; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.icon-btn--sm { width: 32px; height: 32px; }
.icon-btn svg { width: 0.875rem; height: 0.875rem; }
.arrows { display: flex; gap: 0.625rem; }

/* ---------- Decorative corner squares ("dots") ---------- */
/* corner marks: two sizes only. 6px / 20px inset on cards, 4px / 14px on small cards and overlays; fixed px like the type */
.dots { position: relative; --dot: 6px; --dot-inset: 20px; --dot-color: currentColor; }
.dots::before {
  content: ""; position: absolute; inset: var(--dot-inset); pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--dot-color), var(--dot-color)) left top / var(--dot) var(--dot) no-repeat,
    linear-gradient(var(--dot-color), var(--dot-color)) right top / var(--dot) var(--dot) no-repeat,
    linear-gradient(var(--dot-color), var(--dot-color)) left bottom / var(--dot) var(--dot) no-repeat,
    linear-gradient(var(--dot-color), var(--dot-color)) right bottom / var(--dot) var(--dot) no-repeat;
}
.dots--sm { --dot: 4px; --dot-inset: 14px; }
.dots--xs { --dot: 4px; --dot-inset: 14px; }

/* ---------- Media frames ---------- */
.media { position: relative; overflow: hidden; background: #2b2a29; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--shade::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .2); pointer-events: none; }
.media--shade-30::after { background: rgba(0, 0, 0, .3); }

/* Glass stat card (sits on photos) */
.stat-glass {
  --dot: 4px; --dot-inset: 14px; padding: 4rem 1.25rem 4rem; color: var(--white);
  background: rgba(58, 58, 58, .56);   /* tint only (no backdrop blur) so the editor preview and the animated page look the same */
}
.stat-glass__value { display: flex; align-items: flex-start; gap: 0.375rem; font-family: var(--font-mono); font-size: var(--fs-stat-sm); line-height: .72; }
.stat-glass__value sup { font-size: var(--fs-lg); line-height: .72; top: 0; position: relative; }
.stat-glass__label {
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .5);
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.625rem; }
.logo__mark { width: 2.4375rem; height: 1.875rem; flex: none; }
.logo__mark .mk-top { fill: currentColor; }
.logo__mark .mk-bottom { fill: var(--yellow); }
/* customer logo image (content contract: site.logo) */
.logo .is-custom-logo { height: 2rem; width: auto; max-width: 11.25rem; object-fit: contain; }
.brand .is-custom-logo { height: 1.4em; width: auto; max-width: 10rem; object-fit: contain; }
/* list wrappers that must not affect the collage grid */
.stage__group { display: contents; }
.logo__word { font-family: var(--font-mono); font-size: 17px; /* logo lockup, not part of the text scale */ letter-spacing: -.04em; line-height: 1; }

/* ==========================================================================
   Header
   ========================================================================== */
.announce {
  position: absolute; top: 0; left: 0; right: 0; z-index: 49; padding: 0.5625rem 1.25rem; text-align: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 15px; letter-spacing: -.02em; text-transform: uppercase;
}
.announce p::before { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; margin-right: 0.625rem; background: var(--yellow); vertical-align: 1px; }
body:has(.announce) .site-header { top: 4.625rem; }
.site-header {
  position: absolute; top: 2.5rem; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--black);
}
.site-header .header__cta { justify-self: end; padding: 0.75rem 1.25rem; gap: 0.625rem; font-size: var(--fs-mono); line-height: 14px; letter-spacing: -.02em; }
.site-header .logo { transform-origin: 0 50%; justify-self: start; }
body:has(.hero) .site-header:not(.site-header--light):not([data-tone="dark"]) .nav { background: rgba(236, 236, 234, .94); }   /* Home: opaque enough that the crane cables never cross the labels */
.site-header--light { color: var(--white); }
.nav {
  display: flex; gap: 2rem; padding: 1rem 1.9rem;
  background: rgba(0, 0, 0, .08); -webkit-backdrop-filter: blur(0.1875rem); backdrop-filter: blur(0.1875rem);
  font-family: var(--font-mono); font-size: var(--fs-nav); line-height: 16px; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
}
.nav a { position: relative; opacity: 1; transition: opacity .2s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -0.1875rem; height: 1px; background: currentColor; transition: right .3s ease; }
.nav a[aria-current="page"]::after { right: 0; }
@media (hover: hover) { .nav a:hover::after { right: 0; } }
.menu-toggle { display: none; width: 2.625rem; height: 2.625rem; justify-self: end; place-items: center; background: var(--ink); color: var(--white); }
.site-header--light .menu-toggle { background: var(--white); color: var(--black); }
.menu-toggle span:not(.sr-only), .menu-toggle span:not(.sr-only)::before, .menu-toggle span:not(.sr-only)::after { display: block; width: 1.125rem; height: 1.5px; background: currentColor; position: relative; transition: transform .3s ease, background-color .3s ease; }
.menu-toggle span:not(.sr-only)::before, .menu-toggle span:not(.sr-only)::after { content: ""; position: absolute; left: 0; }
.menu-toggle span:not(.sr-only)::before { top: -0.375rem; }
.menu-toggle span:not(.sr-only)::after { top: 0.375rem; }
.menu-open .menu-toggle span:not(.sr-only) { background: transparent; }
.menu-open .menu-toggle span:not(.sr-only)::before { transform: translateY(0.375rem) rotate(45deg); }
.menu-open .menu-toggle span:not(.sr-only)::after { transform: translateY(-0.375rem) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: 8rem var(--gutter) max(2.5rem, env(safe-area-inset-bottom)); transform: translateY(-100%); transition: transform .45s cubic-bezier(.7, 0, .2, 1);
  visibility: hidden;
  height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;   /* short screens (landscape phones): the panel scrolls, the quote button stays reachable */
}
.menu-open .mobile-menu { transform: none; visibility: visible; }
.menu-open .site-header { position: fixed; color: var(--white); }
.menu-open .site-header .menu-toggle { background: var(--white); color: var(--black); }
html.menu-open, html.menu-open body { overflow: hidden; overscroll-behavior: none; }   /* scroll lock; main.js removes the class on close, on Esc, on a link and when the window grows past the tablet breakpoint */
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; align-items: baseline; padding: 0.5rem 0; font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.02em; }   /* one row = 28px type + 16px padding = 50px+ tall: a comfortable tap */
.mobile-menu nav a span:first-child { flex: none; width: 2.25rem; font-family: var(--font-mono); font-size: var(--fs-mono); opacity: .5; }
.mobile-menu .btn { flex: none; }
@media (max-height: 520px) { .mobile-menu { padding-top: 6.5rem; gap: 1rem; } .mobile-menu nav a { padding: 0.25rem 0; } }

/* ==========================================================================
   Shared section heading (eyebrow + title left, copy/actions right)
   ========================================================================== */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; }
.section-head__main { flex: none; display: flex; flex-direction: column; gap: 1rem; max-width: calc(41.25 * var(--rt)); }
.section-head__aside { min-width: 0; width: calc(33.5 * var(--rt)); max-width: 100%; display: flex; flex-direction: column; gap: 3rem; }
.section-head__aside p { max-width: calc(33.5 * var(--rt)); }
.section-head__aside--row { flex-direction: row; justify-content: space-between; align-items: flex-end; width: calc(42.125 * var(--rt)); }
.section-head__aside--row p { max-width: calc(24.8125 * var(--rt)); }

/* ==========================================================================
   Testimonial (shared)
   ========================================================================== */
.testimonial .container { display: flex; justify-content: space-between; gap: 2.5rem; }
.testimonial__intro { width: calc(32.5 * var(--rt)); flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
@media (min-width: 1201px) and (max-width: 1400px) { .testimonial .container { flex-direction: column; } .testimonial__intro, .testimonial__card { width: 100%; } .testimonial__intro { gap: 2rem; } .testimonial__intro-bottom { gap: 2rem; } }   /* fixed-size type: stack the intro over the card instead of squeezing both */
.testimonial__intro-top { display: flex; flex-direction: column; gap: 1rem; }
.testimonial__intro-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 3rem; }
.testimonial__intro-bottom p { max-width: calc(26.3125 * var(--rt)); }
.testimonial__card {
  --dot-color: rgba(0, 0, 0, .25); --dot-inset: 20px;
  width: 68.25rem; max-width: 100%; padding: 4rem 2.5rem; background: rgba(0, 0, 0, .04);
  display: flex; gap: 2.5rem; align-items: stretch;
}
.testimonial__photo { width: 21.125rem; height: 26rem; flex: none; }
.testimonial__photo .stat-glass { position: absolute; left: 0.625rem; right: 0.625rem; bottom: 0.625rem; padding: 1.25rem; }
.testimonial__photo .stat-glass .stat-glass__label { margin-top: 0.625rem; padding-top: 0.625rem; font-size: var(--fs-mono); }
.testimonial__photo .stat-glass__value { font-size: var(--fs-h3); }
.testimonial__photo .stat-glass__value sup { font-size: var(--fs-body); }
.testimonial__photo img { transition: opacity .5s ease; }
.testimonial__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.testimonial__quote { font-family: var(--font-mono); font-size: var(--fs-lg); line-height: 1.4; text-transform: uppercase; color: var(--black); }
.testimonial__quote::before { content: "“"; }
.testimonial__quote::after { content: "”"; }
.testimonial__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; }
.testimonial__name { font-size: var(--fs-lg); line-height: 1.2; font-weight: 500; }
.testimonial__role { margin-top: 0.5rem; }
.testimonial__brand { display: inline-flex; align-items: center; gap: 0.5625rem; font-weight: 600; font-size: var(--fs-body); }
.testimonial__brand svg { width: 1.375rem; height: 1.375rem; }
.testimonial__tags { margin-top: 1.5rem; gap: 0.625rem; }
.testimonial__tags .tag { font-size: var(--fs-2xs); padding: 0.625rem 0.75rem; line-height: 13px; opacity: .72; }
.testimonial__progress { display: grid; grid-template-columns: 225fr repeat(4, 125fr); gap: 0.625rem; margin-top: 3rem; }
.testimonial__progress button { height: 2.75rem; margin: -0.9375rem 0; position: relative; }   /* 44px hit area around the 2px line; the negative margin keeps the layout exactly as when the bar was 14px high */
.testimonial__progress button::before, .testimonial__progress i {
  content: ""; position: absolute; left: 0; right: 0; top: 1.3125rem; height: 2px; background: rgba(0, 0, 0, .1);
}
.testimonial__progress i { right: auto; width: 0; background: #555; }
.testimonial__card.is-stopped .testimonial__progress button.is-active i { animation: none; width: 100%; }   /* someone took over (swipe or tap): no auto-rotation, the bar just marks the current slide */
.testimonial__progress button.is-active i { animation: progress var(--slide-ms, 6000ms) linear forwards; }
.testimonial__progress button.is-done i { width: 100%; }
@keyframes progress { to { width: 100%; } }
.testimonial__slide { transition: opacity .45s ease, transform .45s ease; }
.testimonial__slide.is-leaving { opacity: 0; transform: translateY(0.5rem); }

/* ==========================================================================
   CTA — quote form (shared)
   ========================================================================== */
.cta { position: relative; background: var(--ink); color: var(--white); }   /* plain ink, the same as the footer under it, so the two read as one block */
.cta .container { position: relative; display: flex; justify-content: space-between; align-items: stretch; gap: 2.5rem; padding-top: 7.5rem; padding-bottom: 7.5rem; }
.cta__intro { width: calc(36.5625 * var(--rt)); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.cta__intro-top { display: flex; flex-direction: column; gap: 3rem; }
.cta__intro-top > div { display: flex; flex-direction: column; gap: 1rem; }
.cta__intro-top p { max-width: calc(31.375 * var(--rt)); }
.cta__intro-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cta__form {
  position: relative; width: 42.1875rem; max-width: 100%; padding: 2rem; display: flex; flex-direction: column; align-items: center; gap: 2rem;
  background: rgba(255, 255, 255, .05);
}
.cta__consent { max-width: 30rem; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase; text-align: center; color: rgba(255, 255, 255, .72); }
.cta__consent a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; display: inline-block; }
.cta__form-title { font-family: var(--font-mono); font-size: var(--fs-h3); line-height: 1.3; text-transform: uppercase; text-align: center; }
.cta__fields { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.field { grid-column: 1 / -1; position: relative; }
.field--half { grid-column: auto; }
.field input, .field textarea, .field select {
  width: 100%; display: block; padding: 1.25rem 0; border-bottom: .5px solid var(--white); border-radius: 0;
  font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 16px; letter-spacing: -.02em; text-transform: uppercase; color: var(--white); outline: none;
  transition: border-color .2s ease;
}
.field textarea { height: 9.125rem; resize: vertical; padding-bottom: 1.875rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--white); opacity: .75; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--yellow); }
.field input:focus-visible, .field textarea:focus-visible { outline: 0; box-shadow: inset 0 -2px 0 var(--yellow); background: rgba(255, 255, 255, .05); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--yellow); }
/* touch: 16px typed text (below that iOS Safari zooms the page when a field takes focus); a field that has text keeps its name as a small label above it, since the placeholder is gone */
@media (max-width: 1024px), (pointer: coarse) {
  .field input, .field textarea { font-size: 16px; line-height: 20px; }
  .field:has(input:not(:placeholder-shown), textarea:not(:placeholder-shown)) > .sr-only { position: absolute; left: 0; top: 0.25rem; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip: auto; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 1; letter-spacing: -.02em; text-transform: uppercase; opacity: .6; pointer-events: none; }
}
.field__error { position: absolute; left: 0; top: calc(100% + 0.25rem); font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 1.4; letter-spacing: -.02em; text-transform: uppercase; color: var(--yellow); }
.field__error::before { content: ""; display: inline-block; width: 0.3125rem; height: 0.3125rem; margin-right: 0.5rem; background: currentColor; vertical-align: 1px; }
.cta__note { width: 100%; max-height: 0; margin-top: -2rem; overflow: hidden; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.4; text-transform: uppercase; opacity: 0; transition: opacity .3s ease, max-height .4s ease, margin-top .4s ease; text-align: center; pointer-events: none; }
.cta__note.is-visible { max-height: 5rem; margin-top: 0; opacity: 1; }
.cta__note::before { content: ""; display: inline-block; width: 0.375rem; height: 0.375rem; margin-right: 0.625rem; background: var(--yellow); vertical-align: 1px; }

/* ==========================================================================
   Footer (shared)
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: 2.5rem 0; }
.site-footer__corners { display: flex; justify-content: space-between; }
.site-footer__corners i { width: 0.375rem; height: 0.375rem; background: var(--white); }
.site-footer__watermark {
  position: absolute; left: calc(50% - 18.0625rem); bottom: -9.375rem; width: 94.75rem; opacity: .03; pointer-events: none; color: var(--white);
}
.site-footer__watermark .mk-top, .site-footer__watermark .mk-bottom { fill: currentColor; }
.site-footer__inner { position: relative; margin-top: 2.5rem; display: flex; flex-direction: column; gap: 10.5rem; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; }
.site-footer__lead { width: calc(31.25 * var(--rt)); max-width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.site-footer__lead .h2 { margin-bottom: 2rem; }
.site-footer__lead .btn { align-self: flex-start; }
.site-footer__col-title { font-family: var(--font-mono); font-size: var(--fs-2xs); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase; opacity: .5; }
.site-footer__company { width: 42.1875rem; display: flex; flex-direction: column; gap: 2rem; }
.site-footer__company ul { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-family: var(--font-mono); font-size: var(--fs-link); line-height: 1.4; text-transform: uppercase; }
.site-footer a { transition: opacity .2s ease; }
@media (hover: hover) { .site-footer a:not(.btn):hover { opacity: .6; } }
.site-footer__rule { height: 1px; background: rgba(255, 255, 255, .2); margin: 3rem 0; }
.site-footer__links { display: flex; justify-content: space-between; gap: 2.5rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); width: 40.5625rem; }
.site-footer__cols div { display: flex; flex-direction: column; gap: 2rem; }
.site-footer__cols ul { display: flex; flex-direction: column; gap: 1rem; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase; }
.site-footer__contact { width: 42.1875rem; display: flex; flex-direction: column; gap: 2.5rem; }
.site-footer__contact div { display: flex; flex-direction: column; gap: 1rem; }
.site-footer__contact a, .site-footer__text { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; }
.site-footer__bottom.is-stacked { flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.site-footer__bottom.has-descender .site-footer__wordmark { padding-bottom: .22em; }   /* the .72 line box ends on the baseline: a name with g, y, p, q or j (main.js sets the class) gets room for the tails, so the footer edge never cuts them and the legal line never runs through them */
.site-footer__wordmark {
  font-family: var(--font-mono); font-size: var(--fs-mega); line-height: .72; letter-spacing: -.05em; margin-left: -.11em; white-space: nowrap;
}
.site-footer__legal { display: flex; gap: 0.625rem; font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; }

/* ==========================================================================
   HOME — Hero
   ========================================================================== */
.hero { position: relative; height: clamp(640px, 59.14vw, 1047px); overflow: hidden; background: var(--white); }
.hero__bg { position: absolute; top: 0; bottom: 0; left: max(0px, calc(50% - 864px)); right: max(0px, calc(50% - 864px)); }   /* the art lives on the 1728px design stage: above that width it stays put and feathers into the white page */
@media (min-width: 1741px) { .hero__bg { -webkit-mask-image: linear-gradient(90deg, transparent, #000 9rem, #000 calc(100% - 9rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 9rem, #000 calc(100% - 9rem), transparent); } }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
@media (min-width: 1025px) and (max-width: 1500px) { .hero__bg img { transform: translateX(6%); } }   /* static art moves right of the headline and the stacked aside, like the animated scene */
.hero .container { position: relative; z-index: 3; height: 100%; }   /* text stays above the art while it settles in */
.hero__title-wrap { position: absolute; left: var(--gutter); top: clamp(130px, 10vw, 173px); width: min(767px, 40vw); display: flex; flex-direction: column; gap: 4rem; }
.hero__title-wrap .h1 { text-wrap: balance; }
@media (min-width: 1200px) { .hero__title-wrap { width: 767px; } }   /* two lines ("Moving business forward." / "One delivery at a time.") from 1361px; below that the box narrows and it runs to three */
.hero__proof { display: flex; align-items: center; gap: 1.25rem; }
.avatars { display: flex; }
.avatars img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--white); object-fit: cover; object-position: 50% 20%; margin-right: -10px; box-sizing: content-box; margin-top: -2px; margin-bottom: -2px; }
.avatars img:first-child { margin-left: -2px; }
.avatars img:last-child { margin-right: 0; }
.hero__proof-divider { width: 1px; height: 2.75rem; background: rgba(0, 0, 0, .2); }
.hero__proof-copy { display: flex; flex-direction: column; gap: 0.5rem; font-family: var(--font-mono); }
.hero__proof-copy strong { font-weight: 400; font-size: var(--fs-lg); line-height: 1; }
.hero__aside { position: absolute; right: var(--gutter); top: clamp(380px, 31vw, 536px); width: min(342px, max(22rem, 284px), calc(24vw - var(--gutter) - 14px)); display: flex; flex-direction: column; gap: 3rem; }
@media (min-width: 1025px) and (max-width: 1500px) { .hero__aside { top: calc(clamp(130px, 10vw, 173px) + 384px); right: auto; left: var(--gutter); width: 22rem; gap: 3rem; } }
/* 1200-1500: the aside follows the headline block in normal flow (50px under it, the gap the two-line demo headline had when the aside was placed at a fixed top), so a three-line headline pushes it down instead of running into it */
@media (min-width: 1200px) and (max-width: 1500px) {
  .hero .container { display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(130px, 10vw, 173px); }
  .hero__title-wrap, .hero__aside { position: static; }
  .hero__aside { margin-top: 50px; }
}
/* below 1500px fixed-size type does not fit three columns, so the text stacks on the left and the art takes the right */
/* 1025-1199 (small laptops, iPad landscape 1133-1194): the 64px headline needs 3 lines in a narrow column, so the text is one real column in normal flow (nothing absolutely placed, so nothing can collide)
   and the hero grows with it. The art sits to the right of that column for BOTH kinds of art, the flat photo and the layered crane scene, so the geometry is identical and nothing moves when the motion layer
   builds the scene (no layout shift): the flat photo is as tall as the hero and starts 314px from the left (its container starts 26% into the picture, which clears the 540px column), and the scene is
   anchored to the hero's bottom edge so a taller hero never opens a gap under the stack. Desktop >= 1200 is untouched. */
@media (min-width: 1025px) and (max-width: 1199px) {
  .hero { height: auto; min-height: clamp(640px, 59.14vw, 1047px); }
  .hero .container { height: auto; display: flex; flex-direction: column; gap: 3rem; padding-top: 130px; padding-bottom: 3.5rem; }
  .hero__title-wrap, .hero__aside { position: static; }
  .hero__title-wrap { width: 36rem; gap: 3rem; }
  .hero__aside { width: 22rem; }
  .hero__bg > img { position: absolute; top: 0; left: 314px; width: auto; max-width: none; height: 100%; transform: none; }
  html.gsap .hero.hero--layered .hero__scene { top: auto; bottom: -1.5cqw; margin-left: calc(17cqw + max(0px, 1120px - 100vw) * .5); }
}
/* tablet and phone (flat photo only: the layered scene is built from 1025 up): text first, the photo underneath, no empty band (the photo takes what the screen leaves) */
@media (max-width: 1024px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__bg { position: relative; order: 2; inset: auto; flex: 1 0 auto; height: auto; min-height: min(78vw, 640px); margin-top: 24px; }
  .hero__bg img { position: absolute; inset: 0; transform: none; object-position: 52% 30%; }
  .hero .container { height: auto; padding-top: 140px; display: flex; flex-direction: column; gap: 40px; }
  .hero__title-wrap, .hero__aside { position: static; width: 100%; max-width: 640px; }
  .hero__title-wrap { gap: 40px; }
  .hero__aside { gap: 32px; }
}
/* tablet and phone landscape: headline and proof left, copy and buttons right, so the photo is still on the first screen */
@media (min-width: 761px) and (max-width: 1024px) and (orientation: landscape) {
  .hero .container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 40px; align-items: end; }
  .hero__title-wrap, .hero__aside { max-width: none; }
}
@media (max-width: 1024px) and (max-height: 500px) { .hero .container { padding-top: 128px; } }

/* ==========================================================================
   HOME — About intro
   ========================================================================== */
.about-intro__grid { display: grid; grid-template-columns: minmax(calc(16.5rem + 11px), 1fr) minmax(0, calc(61.27 * var(--rt))); row-gap: 5rem; align-items: start; }   /* left column never narrower than the thumbnail plus the 11px it has at 1280, right column gives way below that instead of pushing the page wider (it clipped the headline at 1200-1253; 1280 and up are unchanged) */
.about-intro__lead { font-size: var(--fs-h2); line-height: 1.4; letter-spacing: -.02em; }
.about-intro__thumb { width: 16.5rem; height: 10.9375rem; align-self: end; }
.about-intro__body { display: flex; flex-direction: column; align-items: flex-start; gap: 3rem; }
.about-intro__body p { max-width: calc(41.25 * var(--rt)); }

/* ==========================================================================
   HOME — Logistics solutions slider
   ========================================================================== */
.solutions .section-head { margin-bottom: 7.5rem; align-items: flex-start; }
.solutions .section-head__main { gap: 1.25rem; max-width: calc(36.875 * var(--rt)); }
.solutions .section-head__aside { padding-top: 2.5625rem; }
.solution { display: grid; grid-template-columns: 953fr 675fr; gap: 1.25rem; min-height: 38.8125rem; }
.solution__card { background: var(--surface-dark); padding: 4.125rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.solution__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.25rem; }
.solution__top .index { padding-top: 0.25rem; }
.solution__copy { margin-top: 5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.solution__copy p { max-width: calc(28.5 * var(--rt)); }
.features { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 3rem; }
.feature { display: flex; gap: 0.625rem; align-items: flex-start; }
.feature svg { width: 1.5rem; height: 1.5rem; flex: none; opacity: .5; }
.feature p { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.5; letter-spacing: -.02em; text-transform: uppercase; }
.feature p + p { margin-top: 0.625rem; }
.feature p:first-of-type { opacity: .64; }
.solution__foot { border-top: 1px solid var(--line-dark); padding-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.solution__media { min-height: 23.75rem; }
.solution__media img { object-position: 50% 20%; }   /* keep the subject above the stat card */
.solution__media .stat-glass { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 19.5625rem; }
.solution [data-fade] { transition: opacity .35s ease, transform .35s ease; }
.solution.is-switching [data-fade] { opacity: 0; transform: translateY(0.625rem); }

/* ==========================================================================
   HOME — Stats collage (scaled stage, exact composition on desktop)
   ========================================================================== */
.stats { overflow: hidden; }
.stage { container-type: inline-size; position: relative; max-width: var(--max); margin: 0 auto; }
.stats .stage { aspect-ratio: 1728 / 1366; }
.stage > *, .stage > .stage__group > * { position: absolute; }
.stats__ship { left: calc(551 / 1728 * 100cqw); top: 0; width: calc(625 / 1728 * 100cqw); height: calc(1238 / 1728 * 100cqw); }
.stats__ship img { width: 100%; height: 100%; object-fit: cover; }
.stats__intro { left: var(--gutter); top: calc(111 / 1728 * 100cqw); width: calc(605 / 1728 * 100cqw); display: flex; flex-direction: column; gap: 3rem; }
.stats__title { display: flex; flex-direction: column; gap: 1rem; }
.stats__intro p { max-width: calc(24.375 * var(--rt)); }
.stats__supported { left: var(--gutter); top: calc(872 / 1728 * 100cqw); width: 26.8125rem; }
.stat-tile {
  width: calc(347 / 1728 * 100cqw); height: calc(347 / 1728 * 100cqw);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(27 / 1728 * 100cqw);
}
.stat-tile__value { display: flex; align-items: flex-start; gap: calc(18 / 1728 * 100cqw); font-family: var(--font-mono); font-size: var(--fs-stat); line-height: .72; letter-spacing: -.04em; }
.stat-tile__value sup { font-size: var(--fs-stat-sm); line-height: .72; top: 0; position: relative; letter-spacing: 0; }
.stat-tile__label { font-family: var(--font-mono); font-size: var(--fs-mono); line-height: 1.45; text-transform: uppercase; text-align: center; }
.stat-tile--light { background: var(--stat-light); color: var(--black); }
.stat-tile--dark { background: var(--ink); color: var(--white); }
.stat-tile--yellow { background: var(--yellow); color: var(--black); }
.stats .t-1 { left: calc(1340 / 1728 * 100cqw); top: calc(111 / 1728 * 100cqw); }
.stats .t-2 { left: calc(993 / 1728 * 100cqw); top: calc(457 / 1728 * 100cqw); }
.stats .t-3 { left: calc(1340 / 1728 * 100cqw); top: calc(804 / 1728 * 100cqw); }

/* "Supported by" logo grid (shared with About) */
.supported__label { margin-bottom: 1.25rem; }
.logo-grid { display: grid; grid-template-columns: repeat(2, 13.0625rem); gap: 0.625rem; }
.logo-card { height: 7.125rem; display: grid; place-items: center; background: var(--surface-light); --dot-color: rgba(0, 0, 0, .25); --dot: 4px; --dot-inset: 14px; }

/* Placeholder partner wordmarks (swap for real client logos) */
.brand { display: inline-flex; align-items: center; gap: .4em; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; word-spacing: .14em; line-height: 1; color: var(--black); white-space: nowrap; }
.brand svg { height: 1.25em; width: auto; flex: none; }
.brand--semi { font-weight: 600; }
.brand--italic { font-style: italic; font-weight: 500; }
.brand--wide { font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand--sm { font-size: 17px; letter-spacing: -.02em; }
.brand--word { font-size: 26px; letter-spacing: -.05em; }
.logo-grid .brand { font-size: 20px; }
.logo-grid .brand--sm { font-size: 17px; }

/* ==========================================================================
   HOME — Why ELIOS
   ========================================================================== */
.why .container { display: grid; grid-template-columns: 590fr 675fr; justify-content: space-between; gap: 2.5rem; }
.why__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 5rem; max-width: calc(36.875 * var(--rt)); }
.why__intro-top { display: flex; flex-direction: column; gap: 3rem; }
.why__intro-top > div { display: flex; flex-direction: column; gap: 1rem; }
.why__intro-top p { max-width: calc(32.1875 * var(--rt)); }
.why__list { display: flex; flex-direction: column; gap: 2.5rem; }
.why__item { display: grid; grid-template-columns: 8.6875rem 1fr; opacity: .62; cursor: default; transition: opacity .35s ease; }
.why__item.is-active { opacity: 1; }
@media (hover: hover) { .why__item:hover { opacity: 1; } }

.why__item h3 { margin-bottom: 1rem; }
.why__item p { max-width: calc(28.1875 * var(--rt)); }
.why__media { width: 100%; max-width: 42.1875rem; height: 52.5rem; justify-self: end; }
.why__stats { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.why__stats .stat-glass { padding-top: 4rem; padding-bottom: 4rem; }

/* ==========================================================================
   HOME — Industries slider
   ========================================================================== */
.industries .section-head { margin-bottom: 7.5rem; }
.industries__viewport { overflow: hidden; }
.industries__track { display: flex; gap: 1.25rem; transition: transform .6s cubic-bezier(.65, 0, .25, 1); }
.industry { flex: 0 0 calc((100% - 1.25rem) / 2); display: grid; grid-template-columns: 350fr 454fr; gap: 0.625rem; min-height: 30.875rem; }
.industry__card { background: var(--surface-dark); padding: 2.875rem 1.25rem; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.industry__copy { display: flex; flex-direction: column; gap: 2rem; }
.industry__copy h3 { margin-bottom: 1rem; }
.industry__tags { border-top: 1px solid var(--line-dark); padding-top: 1.5rem; }
.industry__card .btn { align-self: flex-start; }

/* ==========================================================================
   HOME — Partners marquee
   ========================================================================== */
.partners { overflow: hidden; }
.partners .section-head { margin-bottom: 7.5rem; }
.partners .section-head__aside p { max-width: calc(33.4375 * var(--rt)); }
.marquee { display: flex; flex-direction: column; gap: 1.25rem; }
.marquee__row { display: flex; gap: 1.25rem; width: max-content; animation: marquee 48s linear infinite; }
.marquee__row--reverse { animation-direction: reverse; animation-duration: 54s; }
@media (hover: hover) { .marquee:hover .marquee__row { animation-play-state: paused; } }
.marquee__row .logo-card { width: 16.75rem; height: 9.125rem; flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 10px)); } }

/* ==========================================================================
   Reveal on scroll (progressive enhancement)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(1.5rem); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1440px) {
  .site-footer__company ul { gap: 1rem 2.5rem; }
}

@media (max-width: 1200px) {
  :root { --section-y: 100px; }
  .nav { gap: 22px; padding: 12px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__aside, .section-head__aside--row { width: 100%; max-width: 640px; }
  .solutions .section-head__aside { padding-top: 0; }
  .solutions .section-head, .industries .section-head, .partners .section-head { margin-bottom: 64px; }
  .testimonial .container { flex-direction: column; }
  .testimonial__intro { width: 100%; }
  .testimonial__card { width: 100%; }
  .cta .container { flex-direction: column; }
  .cta__intro { width: 100%; }
  .cta__form { width: 100%; }
  .site-footer__top, .site-footer__links { flex-direction: column; align-items: flex-start; }
  .site-footer__company, .site-footer__contact, .site-footer__cols { width: 100%; max-width: 675px; }
  .site-footer__inner { gap: 120px; }
  .why__media { height: 720px; }
  .industry { flex-basis: 100%; }
}

@media (max-width: 1024px) {
  .d-br { display: none; }
  .nav, .site-header .header__cta { display: none; }
  .menu-toggle { display: grid; width: 2.75rem; height: 2.75rem; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 var(--gutter); top: 24px; }
  .site-header > .logo { padding-left: 0; }

  /* Header on tablet and phone: one fixed size (44px row). It sits under the announcement bar (height measured by main.js into --announce-h, so the gap is the same
     whatever the bar's wrapping), glides up to 18px from the top 1:1 with the first scroll (main.js sets --hy; transform only, no jump, no resize), then only its tone changes
     (a soft scrim behind the logo and button) and it hides on scroll down / returns on scroll up (motion.css). Without the motion layer (reduced motion, ?nomotion) it is still fixed. */
  body:has(.announce) .site-header { top: calc(var(--announce-h, 3rem) + 1.5rem); }
  html.js .site-header { position: fixed; transform: translate3d(0, var(--hy, 0px), 0); }
  .site-header::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -1.5rem; bottom: -1.25rem; pointer-events: none; opacity: 0; transition: opacity .4s ease; background: linear-gradient(rgba(247, 247, 245, .96) 55%, rgba(247, 247, 245, 0)); }
  .site-header.is-scrolled::before { opacity: 1; }
  .site-header.is-scrolled[data-tone="dark"]::before, html.js:not(.gsap) .site-header.is-scrolled::before { background: linear-gradient(rgba(17, 17, 17, .96) 55%, rgba(17, 17, 17, 0)); }
  html.js:not(.gsap) .site-header.is-scrolled { color: var(--white); }
  html.js:not(.gsap) .site-header.is-scrolled .menu-toggle { background: var(--white); color: var(--black); }
  .menu-open .site-header::before { opacity: 1 !important; background: linear-gradient(var(--ink) 70%, rgba(19, 18, 17, 0)) !important; }   /* menu open: the panel scrolls on short screens, so the list passes behind a solid strip, not behind the logo */
  .site-header .logo { position: relative; min-height: 2.75rem; }   /* the logo is a tap target too: 44px high hit area, same look */

  /* Touch: buttons and icon buttons reach at least 44px / 40px */
  .btn { padding: 15px 22px; }
  .icon-btn { width: 44px; height: 44px; }
  .icon-btn--sm { width: 40px; height: 40px; }
  .arrows { gap: 0.5rem; }

  /* Home hero: see "Below 1200" next to the hero rules */

  .about-intro__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .about-intro__thumb { order: 4; align-self: start; width: 100%; max-width: 420px; height: auto; aspect-ratio: 264 / 175; }

  .solution { grid-template-columns: 1fr; }
  .solution__media { aspect-ratio: 675 / 621; min-height: 0; }
  /* glass stat card on a photo, tablet and phone: compact, at the foot of the picture (it was 310 x 173 and hid 44-48% of it) */
  .solution__media .stat-glass { left: 10px; right: auto; bottom: 10px; width: min(240px, calc(100% - 20px)); padding: 24px 16px; }
  .solution__media .stat-glass__label { margin-top: 12px; padding-top: 12px; }
  .why__stats { left: 10px; right: 10px; bottom: 10px; gap: 10px; }   /* the two Why / Process cards: side by side, compact, at the foot of the photo (two 310 x 173 cards hid 66-70% of it on a phone) */
  .why__stats .stat-glass { padding: 24px 16px; }
  .why__stats .stat-glass__label { margin-top: 12px; padding-top: 12px; }

  /* Stats collage → flow layout */
  .stats { padding-top: var(--section-y); }   /* the section has no .section class, so the desktop stage supplies its top offset; in flow it needs the shared section gap */
  .stats .stage { height: auto; container-type: normal; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--gutter); }
  .stage > *, .stage > .stage__group > * { position: static; left: auto; top: auto; }   /* left/top reset: a fine pointer's tilt script makes static boxes relative, which would turn the desktop offsets back on */
  .stats__intro, .stats__supported { grid-column: 1 / -1; width: auto; }
  .stats__intro { gap: 32px; }
  .stats__ship { display: none; }
  .stats__supported { margin-top: 40px; }
  .stat-tile { width: auto; height: auto; aspect-ratio: 1; gap: 16px; }
  .stat-tile__value { gap: 10px; }   /* size = --fs-stat (64 tablet / 48 phone): one size per band, never fluid */
  .stats .t-3 { grid-column: 1 / -1; aspect-ratio: auto; padding: 48px 0; }

  .why .container { grid-template-columns: 1fr; gap: 64px; }
  .why__media { justify-self: stretch; max-width: none; height: auto; aspect-ratio: 675 / 840; }
}

@media (max-width: 900px) {
  .testimonial__card { flex-direction: column; }
  .testimonial__photo { width: 100%; max-width: 420px; height: auto; aspect-ratio: 338 / 416; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section-y: 80px; }
  .solution__card { padding: 56px 20px; }
  .solution__copy { margin-top: 48px; }
  .solution__foot { flex-wrap: wrap; }
  .why__item { grid-template-columns: 64px 1fr; }
  .why__media { aspect-ratio: 3 / 4; }
  .industry { grid-template-columns: 1fr; }
  .industry__media { aspect-ratio: 4 / 3; }
  .marquee__row .logo-card { width: 200px; height: 110px; }
  .marquee__row .brand { font-size: 19px; }
  .logo-grid { grid-template-columns: 1fr 1fr; }
  .testimonial__card { flex-direction: column; padding: 56px 20px; --dot-inset: 20px; }
  .testimonial__photo { width: 100%; height: auto; aspect-ratio: 338 / 416; }
  .testimonial__progress { grid-template-columns: repeat(5, 1fr); }
  .cta__form { padding: 24px 20px; }
  .cta__fields { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__legal { white-space: normal; flex-wrap: wrap; }
  .site-footer__company ul { gap: 0 28px; justify-content: flex-start; }
  .stats .t-3 { padding: 40px 0; }
}

/* ==========================================================================
   Tablet & phone polish — one calm rhythm across all pages
   ========================================================================== */
@media (max-width: 1024px) {
  /* About intro: the thumbnail spans the column instead of floating in empty space */
  .about-intro__thumb { max-width: none; aspect-ratio: 16 / 9; }
  .about-intro__thumb img { width: 100%; height: 100%; object-fit: cover; }
}

@media (min-width: 601px) and (max-width: 1024px) {
  /* Numbers: three equal tiles in one row, logos in one row, nothing stranded */
  .stats .stage { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .stats__intro, .stats__supported { grid-column: 1 / -1; }
  .stats__intro { max-width: 640px; }
  .stats .stat-tile, .stats .t-3 { grid-column: auto; aspect-ratio: 1; padding: 0; }
  .stats .stat-tile__value, .reliable .stat-tile__value { gap: 8px; }
  .stats .stat-tile__label, .reliable .stat-tile__label { padding: 0 10px; }
  .stats__supported { margin-top: 24px; }
  .stats__supported .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* Testimonial: the portrait fills the card width as a landscape crop instead of a narrow strip */
  .testimonial__photo { max-width: none; aspect-ratio: 4 / 3; }
  .testimonial__photo img { object-position: 50% 8%; }
}

@media (max-width: 760px) {
  .testimonial__photo { aspect-ratio: 4 / 5; }
  .testimonial__photo img { object-position: 50% 30%; }
  .cta__intro-bottom { margin-top: 8px; }
  .stats .stat-tile { aspect-ratio: 1; }
  .stats .t-3 { aspect-ratio: auto; padding: 36px 0; }
}

/* Home About intro, 761-1199: the statement spans the page, the copy sits left and the photo right at its own size (the 953px desktop column does not fit below 1200 and the narrow 1fr column cannot hold the thumbnail) */
@media (min-width: 761px) and (max-width: 1199px) {
  .about-intro__grid { grid-template-columns: minmax(0, 1fr) 264px; column-gap: 3rem; row-gap: 48px; }
  .about-intro__grid > .eyebrow, .about-intro__lead { grid-column: 1 / -1; }
  .about-intro__body { grid-column: 1; grid-row: 3; }
  .about-intro__thumb { grid-column: 2; grid-row: 3; order: 0; align-self: start; width: 264px; max-width: none; height: auto; aspect-ratio: 264 / 175; }
}
/* Tablet photos: the single column makes every photo wider (and the Why photo taller than the screen). They become landscape crops, the same 3:2 as the Services rows and 4:3 for the tall Why photo, so no photo is taller than the screen. */
@media (min-width: 761px) and (max-width: 1024px) { .why__media { aspect-ratio: 4 / 3; } .solution__media { aspect-ratio: 3 / 2; } }

/* ==========================================================================
   Tablet & phone: shared components (quote form, footer, header hit areas)
   ========================================================================== */
@media (max-width: 1024px) {
  /* quote form: the confirmation line has its place reserved, so showing it never moves the page (and main.js scrolls it into view) */
  .cta__note { max-height: none; min-height: 1.4em; margin-top: -1rem; transition: opacity .3s ease; }
  .cta__note.is-visible { max-height: none; margin-top: -1rem; }
  .cta__form { padding-bottom: 0.5rem; }
  /* the form runs into the footer: no dead ink between the last field and the footer's first line */
  .cta .container { padding-top: var(--section-y); padding-bottom: 4rem; }

  /* footer: every link is a 44px tap target, with the same look */
  .site-footer__cols ul, .site-footer__company ul { gap: 0; }
  .site-footer__cols div { gap: 1rem; }
  .site-footer__contact div { gap: 0.25rem; }
  .site-footer__company ul { column-gap: 2rem; }
  .site-footer__cols a, .site-footer__company a, .site-footer__contact a { display: inline-flex; align-items: center; align-self: flex-start; min-height: 2.75rem; }
}
@media (max-width: 760px) {
  .cta__note { min-height: 2.8em; }
  .cta .container { padding-bottom: 3rem; }
  .site-footer { padding-top: 1.5rem; }
  .site-footer__inner { margin-top: 1.5rem; }
  .site-footer__cols { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 24px 20px; }
}
/* touch devices at any width (iPad landscape included): header nav and buttons are not smaller than a finger */
@media (pointer: coarse) {
  .nav a::before { content: ""; position: absolute; inset: -1rem -0.6rem; }
  .btn { min-height: 44px; }
}

/* One item in a slider: nothing to page through, so the arrows step aside (their space is kept) */
[data-fade-slider]:has(> [data-slide]:only-of-type) :is([data-prev], [data-next]),
section:has(.industries__track > .industry:only-of-type) .arrows[data-controls="industries-slider"] { visibility: hidden; }
