/* ==========================================================================
   EPDESA — Design System
   Fonts: Saira (display, echoes the logo wordmark) + Inter (text)
   ========================================================================== */

:root {
  --ink: #0a0b0d;
  --ink-2: #121418;
  --ink-3: #1a1d22;
  --graphite: #3a3a3c;
  --steel: #8a8f98;
  --mist: #c9ccd1;
  --paper: #f3f2ef;
  --white: #ffffff;
  --red: #e31e24;
  --red-deep: #b5141a;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(10, 11, 13, 0.12);

  --font-display: "Saira", "Inter", system-ui, sans-serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 84px;
  --radius: 4px;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }

/* Layout ------------------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(80px, 12vw, 180px) 0; }
.section--tight { padding: clamp(60px, 8vw, 110px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--ink2 { background: var(--ink-2); color: var(--white); }
.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 32px); }

/* Typography ------------------------------------------------------------ */
.display, h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.display-xl { font-size: clamp(3.1rem, 9vw, 9.5rem); font-weight: 300; line-height: 0.92; letter-spacing: -0.035em; }
.display-l { font-size: clamp(2.6rem, 6.4vw, 6.5rem); font-weight: 300; line-height: 0.95; letter-spacing: -0.03em; }
.display-m { font-size: clamp(2rem, 4.2vw, 4.2rem); font-weight: 300; line-height: 1.02; }
.display-s { font-size: clamp(1.5rem, 2.4vw, 2.3rem); font-weight: 400; line-height: 1.15; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; font-weight: 300; }
.statement { font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em; }
.muted { color: var(--steel); }
.section--dark .muted, .section--ink2 .muted { color: #9aa0a8; }
.accent { color: var(--red); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--red); }
.eyebrow--plain::before { display: none; }
.text-balance { text-wrap: balance; }

/* Split-text helpers */
.w-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w-inner { display: inline-block; will-change: transform; }
.scrub-word { transition: none; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--red); --btn-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px; border-radius: 100px; overflow: hidden; isolation: isolate;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: color .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--white); transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--dark::before { background: var(--red); }
.btn--dark:hover { color: var(--white); }
.btn--sm { padding: 12px 22px; font-size: 0.85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0.04em; font-size: 0.95rem;
  position: relative; padding-bottom: 4px;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform-origin: right; transition: transform .6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0); }
.link-arrow svg { width: 15px; height: 15px; color: var(--red); transition: transform .5s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* Preloader --------------------------------------------------------------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--white);
  display: grid; place-items: center;
}
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader__mark { width: 110px; height: auto; clip-path: inset(100% 0 0 0); }
.preloader__bar { width: 180px; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.preloader__bar span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.preloader__count { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--steel); }
html:not(.js-anim) .preloader, .preloader.is-skipped { display: none; }

/* Page transition */
.page-transition { position: fixed; inset: 0; z-index: 999; pointer-events: none; }
.page-transition__panel { position: absolute; inset: 0; background: var(--ink); transform: translateY(100%); }
.page-transition__panel--red { background: var(--red); }

/* Cursor ------------------------------------------------------------------ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 998; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--red); mix-blend-mode: normal;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .35s;
  display: none;
}
.cursor__label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--white); opacity: 0; transition: opacity .3s; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(227, 30, 36, 0.18); }
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--red); }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: transform .6s var(--ease-out), background .4s, backdrop-filter .4s;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); opacity: 0; transition: opacity .4s; }
.site-header.is-scrolled { background: rgba(10, 11, 13, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-header.is-scrolled::after { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-mega-open { background: var(--ink); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { height: 100%; }
.nav__list { display: flex; height: 100%; gap: clamp(18px, 2.4vw, 40px); }
.nav__item { height: 100%; display: flex; align-items: center; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 400; letter-spacing: 0.03em; padding: 8px 0;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav__item:hover .nav__link::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link .chev { width: 9px; height: 9px; opacity: .6; transition: transform .4s var(--ease-out); }
.nav__item.is-open .chev { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 18px; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.nav__item.is-open .mega { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.mega__grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 56px; padding-top: 48px; padding-bottom: 56px; }
.mega__title { font-family: var(--font-display); font-size: 2rem; font-weight: 300; line-height: 1.1; margin: 18px 0 18px; }
.mega__desc { color: #9aa0a8; font-size: .95rem; margin-bottom: 26px; max-width: 34ch; }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; align-content: start; }
.mega__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display); font-size: 1.02rem; color: #d5d8dc;
  transition: color .3s, padding .4s var(--ease-out);
}
.mega__links a svg { width: 14px; height: 14px; color: var(--red); opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease-out); }
.mega__links a:hover { color: var(--white); padding-left: 8px; }
.mega__links a:hover svg { opacity: 1; transform: none; }
.mega__links--single { grid-template-columns: 1fr; }
.mega__feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 240px; }
.mega__feature .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.mega__feature:hover .art { transform: scale(1.06); }
.mega__feature-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.mega__feature-body span { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.mega__feature-body p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; margin-top: 6px; }
.mega-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.mega-backdrop.is-visible { opacity: 1; visibility: visible; transition: opacity .5s, visibility 0s; }

/* Burger + mobile menu */
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-dark); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 95; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.m-nav__item { border-bottom: 1px solid var(--line-dark); }
.m-nav__head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 0; font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 300; text-align: left; }
.m-nav__head .plus { width: 22px; height: 22px; position: relative; flex-shrink: 0; }
.m-nav__head .plus::before, .m-nav__head .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--red); transition: transform .4s var(--ease-out); }
.m-nav__head .plus::after { transform: rotate(90deg); }
.m-nav__item.is-open .plus::after { transform: rotate(0); }
.m-nav__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.m-nav__item.is-open .m-nav__sub { grid-template-rows: 1fr; }
.m-nav__sub > ul { overflow: hidden; }
.m-nav__sub a { display: block; padding: 8px 0; color: #b9bdc3; font-size: 1.05rem; }
.m-nav__sub ul { padding-bottom: 0; }
.m-nav__item.is-open .m-nav__sub ul { padding-bottom: 18px; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 18px; color: #9aa0a8; font-size: .95rem; }

/* Art placeholders (swap with real photography via <img class="art__img">) */
.art {
  position: relative; overflow: hidden; background: var(--ink-3);
  background-image:
    radial-gradient(120% 90% at 85% 10%, rgba(227, 30, 36, 0.35), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(120, 130, 150, 0.25), transparent 60%),
    linear-gradient(160deg, #1d2026, #0b0c0f);
}
.art::before {
  content: ""; position: absolute; inset: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='white' stroke-opacity='0.09'%3E%3Cpath d='M0 420C120 360 180 470 300 400S480 300 600 340'/%3E%3Cpath d='M0 450C120 390 180 500 300 430S480 330 600 370'/%3E%3Cpath d='M0 480C120 420 180 530 300 460S480 360 600 400'/%3E%3Cpath d='M0 510C120 450 180 560 300 490S480 390 600 430'/%3E%3Cpath d='M0 300C140 250 200 340 320 290S500 200 600 240'/%3E%3Cpath d='M0 270C140 220 200 310 320 260S500 170 600 210'/%3E%3Cpath d='M0 240C140 190 200 280 320 230S500 140 600 180'/%3E%3Cpath d='M0 150C150 110 220 190 340 150S520 70 600 100'/%3E%3Cpath d='M0 120C150 80 220 160 340 120S520 40 600 70'/%3E%3C/svg%3E");
  background-size: 600px 600px; animation: drift 40s linear infinite;
}
.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(transparent 40%, rgba(0,0,0,.35)); }
.art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.art__icon { position: absolute; z-index: 2; right: 8%; bottom: 10%; width: 34%; max-width: 220px; color: rgba(255,255,255,.85); }
.art__icon svg { width: 100%; height: auto; stroke-width: 0.8; }
.art--steel { background-image: radial-gradient(120% 90% at 80% 0%, rgba(160, 170, 185, 0.35), transparent 55%), linear-gradient(160deg, #23262c, #0b0c0f); }
.art--green { background-image: radial-gradient(120% 90% at 80% 0%, rgba(70, 160, 120, 0.35), transparent 55%), radial-gradient(80% 70% at 0% 100%, rgba(227,30,36,.18), transparent 60%), linear-gradient(160deg, #15201c, #0a0d0c); }
.art--amber { background-image: radial-gradient(120% 90% at 80% 0%, rgba(230, 140, 40, 0.35), transparent 55%), linear-gradient(160deg, #241c14, #0c0a08); }
.art--blue { background-image: radial-gradient(120% 90% at 80% 0%, rgba(60, 120, 200, 0.35), transparent 55%), linear-gradient(160deg, #141b26, #090b0f); }
@keyframes drift { to { transform: translate3d(-600px, 0, 0); } }

/* Page hero (inner pages) ------------------------------------------------ */
.page-hero { position: relative; min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; background: var(--ink); color: var(--white); overflow: hidden; padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 96px); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg .art { position: absolute; inset: -10% 0; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.15) 40%, rgba(10,11,13,.92) 100%); }
.page-hero__content { position: relative; z-index: 2; width: 100%; }
.page-hero__crumbs { display: flex; gap: 10px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); margin-bottom: 28px; }
.page-hero__crumbs a:hover { color: var(--white); }
.page-hero__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; margin-top: 28px; }
.page-hero__row .lead { color: #c3c7cd; max-width: 46ch; }
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Home hero --------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; background: var(--ink); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero__globe { position: absolute; top: 50%; right: -12vw; width: min(92vw, 1100px); aspect-ratio: 1; transform: translateY(-50%); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.5) 45%, rgba(10,11,13,0) 75%), linear-gradient(0deg, rgba(10,11,13,.9), transparent 35%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.hero__title { margin: 28px 0 32px; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__text { max-width: 48ch; color: #c3c7cd; margin-bottom: 44px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; }
.hero__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 32px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.hero__hubs { display: flex; gap: 28px; }
.hero__hubs span { display: inline-flex; align-items: center; gap: 10px; }
.hero__hubs span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227,30,36,.2); }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; }
.scroll-cue__line { width: 1px; height: 38px; background: var(--line-dark); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: var(--red); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* Intro scrub statement --------------------------------------------------- */
.intro__grid { display: grid; grid-template-columns: 3fr 9fr; gap: 32px; }
.intro__meta { padding-top: 14px; }
.scrub-text .scrub-word { opacity: 0.16; }
html:not(.js-anim) .scrub-text .scrub-word { opacity: 1; }
.intro__foot { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-light); }
.intro__foot p { max-width: 52ch; color: #50545b; }

/* Stats ------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-dark); }
.stat { padding: 36px 28px 8px 0; border-right: 1px solid var(--line-dark); }
.stat + .stat { padding-left: 28px; }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.03em; }
.stat__value sup { font-size: .45em; color: var(--red); vertical-align: top; margin-left: 4px; }
.stat__label { margin-top: 16px; color: #9aa0a8; font-size: .92rem; max-width: 22ch; }
.section--light-stats .stats { border-color: var(--line-light); }
.section--light-stats .stat { border-color: var(--line-light); }
.section--light-stats .stat__label { color: #5c6168; }

/* Section heads ------------------------------------------------------------ */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vw, 96px); }
.sec-head p { max-width: 48ch; justify-self: end; }
.sec-head--stack { grid-template-columns: 1fr; gap: 24px; }
.sec-head--stack p { justify-self: start; }

/* Horizontal product rail -------------------------------------------------- */
.rail { position: relative; overflow: hidden; }
.rail__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.rail__head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.rail__progress { width: 220px; height: 1px; background: var(--line-dark); position: relative; }
.rail__progress span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.rail__track { display: flex; gap: 24px; padding-left: var(--gutter); padding-right: var(--gutter); width: max-content; }
.p-card { position: relative; flex: 0 0 auto; width: clamp(280px, 30vw, 440px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; color: var(--white); }
.p-card .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.p-card:hover .art { transform: scale(1.06); }
.p-card__top, .p-card__bottom { position: relative; z-index: 2; }
.p-card__top { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: .85rem; letter-spacing: .18em; color: var(--mist); }
.p-card__title { font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.6rem); font-weight: 300; line-height: 1; margin-bottom: 14px; }
.p-card__text { font-size: .95rem; color: #c3c7cd; max-width: 32ch; }
.p-card__more { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.p-card__more i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); transition: transform .5s var(--ease-out); }
.p-card__more svg { width: 14px; height: 14px; }
.p-card:hover .p-card__more i { transform: rotate(-45deg); }
.p-card .art__icon { top: 22%; bottom: auto; right: 50%; transform: translateX(50%); width: 42%; opacity: .9; }

/* Services grid ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); }
.service { position: relative; padding: 40px 28px 44px 0; border-right: 1px solid var(--line-light); overflow: hidden; }
.service + .service { padding-left: 28px; }
.service:last-child { border-right: 0; }
.service__num { font-family: var(--font-display); color: var(--red); font-size: .9rem; letter-spacing: .1em; }
.service__icon { width: 56px; height: 56px; margin: 40px 0 36px; color: var(--ink); }
.service__icon svg { width: 100%; height: 100%; stroke-width: 1.1; }
.service h3 { font-size: 1.55rem; font-weight: 400; margin-bottom: 14px; }
.service p { color: #50545b; font-size: .97rem; }
.section--dark .services, .section--dark .service { border-color: var(--line-dark); }
.section--dark .service p { color: #9aa0a8; }
.section--dark .service__icon { color: var(--white); }

/* Activities list (accordion rows) ----------------------------------------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.rows { border-top: 1px solid var(--line-light); }
.section--dark .rows, .section--dark .row { border-color: var(--line-dark); }
.row { border-bottom: 1px solid var(--line-light); }
.row__head { width: 100%; display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; gap: 16px; padding: 30px 0; text-align: left; }
.row__num { font-family: var(--font-display); color: var(--red); font-size: .95rem; }
.row__title { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.9rem); font-weight: 300; line-height: 1.15; transition: transform .5s var(--ease-out); }
.row__head:hover .row__title { transform: translateX(8px); }
.row__toggle { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-light); position: relative; transition: background .4s, box-shadow .4s; }
.section--dark .row__toggle { box-shadow: inset 0 0 0 1px var(--line-dark); }
.row__toggle::before, .row__toggle::after { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform .4s var(--ease-out); }
.row__toggle::after { transform: rotate(90deg); }
.row.is-open .row__toggle { background: var(--red); box-shadow: none; color: var(--white); }
.row.is-open .row__toggle::after { transform: rotate(0); }
.row__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.row.is-open .row__body { grid-template-rows: 1fr; }
.row__body > div { overflow: hidden; }
.row__body p { padding: 0 56px 32px 80px; color: #50545b; max-width: 70ch; }
.section--dark .row__body p { color: #9aa0a8; }

/* Stacking cards (trading) ------------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-card { position: sticky; top: calc(var(--header-h) + 32px); display: grid; grid-template-columns: 1fr 1.1fr; min-height: 460px; border-radius: 6px; overflow: hidden; background: var(--ink-2); color: var(--white); border: 1px solid var(--line-dark); transform-origin: center top; }
.stack-card__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.stack-card__num { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 6rem); font-weight: 200; line-height: 1; color: var(--red); }
.stack-card h3 { font-size: clamp(1.7rem, 2.8vw, 2.8rem); font-weight: 300; margin-bottom: 18px; }
.stack-card p { color: #9aa0a8; max-width: 46ch; }
.stack-card ul { margin-top: 22px; display: grid; gap: 10px; }
.stack-card li { display: flex; gap: 12px; color: #c3c7cd; font-size: .95rem; }
.stack-card li::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px; background: var(--red); }
.stack-card .art { min-height: 260px; }

/* Value chain --------------------------------------------------------------- */
.chain { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.chain__svg { position: absolute; left: 0; right: 0; top: 60px; height: 2px; width: 100%; overflow: visible; }
.chain__node { position: relative; text-align: center; padding: 0 12px; }
.chain__dot { width: 120px; height: 120px; margin: 0 auto 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-light); position: relative; z-index: 1; }
.chain__dot svg { width: 46px; height: 46px; stroke-width: 1.1; }
.chain__node--core .chain__dot { background: var(--ink); color: var(--white); box-shadow: 0 0 0 10px rgba(227,30,36,.1), 0 0 0 1px var(--red); }
.chain__node--core .chain__dot img { width: 64px; }
.chain__node h3 { font-size: 1.5rem; font-weight: 400; margin-bottom: 10px; }
.chain__node p { color: #50545b; font-size: .95rem; max-width: 30ch; margin: 0 auto; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 18px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line-light); font-family: var(--font-display); font-size: .92rem; transition: background .3s, color .3s; }
.chip:hover { background: var(--ink); color: var(--white); }
.section--dark .chip { box-shadow: inset 0 0 0 1px var(--line-dark); }
.section--dark .chip:hover { background: var(--red); }

/* Marquee ------------------------------------------------------------------- */
.marquee { overflow: hidden; white-space: nowrap; padding: 40px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.section--dark .marquee, .marquee--dark { border-color: var(--line-dark); }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 300; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.marquee__track .outline { color: transparent; -webkit-text-stroke: 1px currentColor; }
.section--dark .marquee__track .outline { -webkit-text-stroke-color: rgba(255,255,255,.6); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Feature split (image + text) --------------------------------------------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.feature__media .art { position: absolute; inset: -12% 0; }
.feature__media--wide { aspect-ratio: 5 / 4; }
.feature__body > * + * { margin-top: 28px; }
.feature__body .lead { color: #50545b; }
.section--dark .feature__body .lead, .section--ink2 .feature__body .lead { color: #9aa0a8; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.section--dark .ticks li, .section--ink2 .ticks li { border-color: var(--line-dark); }
.ticks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Pillars (sustainability) ------------------------------------------------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { position: relative; border-radius: 6px; overflow: hidden; min-height: 520px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--white); }
.pillar .art { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.pillar:hover .art { transform: scale(1.05); }
.pillar > *:not(.art) { position: relative; z-index: 2; }
.pillar__num { font-family: var(--font-display); color: var(--red); margin-bottom: auto; font-size: 1rem; letter-spacing: .1em; }
.pillar h3 { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 300; margin: 0 0 16px; }
.pillar p { color: #c3c7cd; max-width: 44ch; }

/* Globe / presence ------------------------------------------------------------ */
.presence { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.presence__globe { position: relative; aspect-ratio: 1; width: 100%; }
.presence__globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.presence__globe canvas:active { cursor: grabbing; }
.offices { border-top: 1px solid var(--line-dark); }
.office-link { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-dark); transition: padding .5s var(--ease-out); }
.office-link:hover, .office-link.is-active { padding-left: 12px; }
.office-link strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.4rem, 2.2vw, 2rem); display: block; line-height: 1.1; }
.office-link span { color: #9aa0a8; font-size: .9rem; }
.office-link em { font-style: normal; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.office-link.is-active strong { color: var(--red); }

.office-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.office-card { position: relative; padding: 36px; border-radius: 6px; background: var(--white); border: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 22px; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.office-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.office-card__tag { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.office-card h3 { font-size: 2.2rem; font-weight: 300; }
.office-card address { font-style: normal; color: #50545b; }
.office-card__contact { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-light); display: grid; gap: 6px; font-size: .95rem; }
.office-card__contact a:hover { color: var(--red); }
.office-card__time { font-family: var(--font-display); font-size: .85rem; color: var(--steel); letter-spacing: .06em; }

.rep-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.rep { padding: 36px 32px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: end; gap: 20px; min-height: 180px; transition: background .5s; }
.rep:hover { background: var(--ink-3); }
.rep strong { font-family: var(--font-display); font-weight: 300; font-size: 2rem; display: block; line-height: 1; margin-top: 30px; }
.rep span { color: #9aa0a8; font-size: .9rem; }
.rep__coord { font-family: var(--font-display); font-size: .78rem; color: var(--steel); letter-spacing: .08em; text-align: right; }

/* Insight cards ------------------------------------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.i-card { display: flex; flex-direction: column; gap: 22px; }
.i-card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.i-card__media .art { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.i-card:hover .i-card__media .art { transform: scale(1.06); }
.i-card__meta { display: flex; gap: 16px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.i-card__meta b { color: var(--red); font-weight: 600; }
.i-card h3 { font-size: 1.55rem; font-weight: 400; line-height: 1.2; transition: color .3s; }
.i-card:hover h3 { color: var(--red); }
.section--dark .i-card h3 { color: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 48px; }
.filter { padding: 10px 20px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line-light); font-family: var(--font-display); font-size: .92rem; transition: all .3s; }
.filter.is-active, .filter:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.i-card.is-hidden { display: none; }

/* Product detail -------------------------------------------------------------- */
.product-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(243, 242, 239, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-light); transition: top .6s var(--ease-out); }
.header-hidden .product-nav { top: 0; }
.product-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 14px 0; }
.product-nav ul::-webkit-scrollbar { display: none; }
.product-nav a { white-space: nowrap; display: block; padding: 9px 16px; border-radius: 100px; font-family: var(--font-display); font-size: .9rem; color: #50545b; transition: all .3s; }
.product-nav a:hover { color: var(--ink); }
.product-nav a.is-active { background: var(--ink); color: var(--white); }
.product { padding: clamp(70px, 9vw, 140px) 0; border-bottom: 1px solid var(--line-light); scroll-margin-top: calc(var(--header-h) + 60px); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.product:nth-child(even) .product__media { order: 2; }
.product__media { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; }
.product__media .art { position: absolute; inset: -10% 0; }
.product__media .art__icon { right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 38%; }
.product__num { font-family: var(--font-display); font-size: clamp(4rem, 8vw, 8rem); font-weight: 200; line-height: .9; color: transparent; -webkit-text-stroke: 1px var(--red); margin-bottom: 20px; }
.product h2 { margin-bottom: 28px; }
.product .lead { color: #50545b; margin-bottom: 32px; }
.product__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-bottom: 40px; }
.product__specs div { padding: 16px 0; border-top: 1px solid var(--line-light); }
.product__specs dt { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel); margin-bottom: 6px; }
.product__specs dd { font-family: var(--font-display); font-size: 1.05rem; }

/* Contact ---------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 110px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
.field { position: relative; grid-column: span 1; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; padding: 30px 0 14px; border: 0; border-bottom: 1px solid var(--line-light); background: transparent; outline: none; border-radius: 0;
  font-size: 1.05rem; transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e31e24' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 4px bottom 16px / 16px no-repeat; }
.field textarea { resize: vertical; min-height: 140px; }
.field label { position: absolute; left: 0; top: 30px; color: var(--steel); pointer-events: none; transition: all .35s var(--ease-out); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 4px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.field input:focus ~ .field__line, .field textarea:focus ~ .field__line, .field select:focus ~ .field__line { transform: scaleX(1); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.field__error { display: none; font-size: .8rem; color: var(--red); padding-top: 6px; }
.field.is-invalid .field__error { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.form__note { font-size: .85rem; color: var(--steel); max-width: 40ch; }
.form__status { grid-column: 1 / -1; display: none; padding: 20px 24px; border-radius: 6px; background: var(--ink); color: var(--white); }
.form__status.is-visible { display: block; }
.contact-aside { display: flex; flex-direction: column; gap: 40px; }
.contact-aside__block h3 { font-size: .78rem; font-family: var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: 14px; }
.contact-aside__block p, .contact-aside__block a { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 300; line-height: 1.45; }
.contact-aside__block a:hover { color: var(--red); }

/* Article ---------------------------------------------------------------------- */
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 1.12rem; line-height: 1.8; color: #2c2f34; margin-bottom: 1.4em; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400; margin: 1.8em 0 .7em; }
.article blockquote { margin: 2em 0; padding-left: 28px; border-left: 2px solid var(--red); font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; font-weight: 300; }
.article ul { margin: 0 0 1.4em; display: grid; gap: 10px; }
.article li { padding-left: 22px; position: relative; font-size: 1.08rem; color: #2c2f34; }
.article li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--red); }

/* CTA band --------------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; background: var(--red); color: var(--white); padding: clamp(80px, 12vw, 170px) 0; }
.cta__bg { position: absolute; right: -6%; top: 50%; width: min(60vw, 720px); transform: translateY(-50%); opacity: .14; pointer-events: none; }
.cta__inner { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 48px; flex-wrap: wrap; }
.cta h2 { max-width: 12ch; }
.cta .btn { --btn-bg: var(--ink); }
.cta .btn::before { background: var(--white); }

/* Footer ----------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: clamp(80px, 10vw, 140px); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 72px; }
.footer__brand img { height: 46px; width: auto; margin-bottom: 28px; }
.footer__brand p { color: #9aa0a8; max-width: 34ch; margin-bottom: 28px; }
.footer__col h4 { font-family: var(--font-text); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--steel); margin-bottom: 22px; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { color: #d5d8dc; transition: color .3s; }
.footer__col a:hover { color: var(--red); }
.footer__col address { font-style: normal; color: #9aa0a8; line-height: 1.7; }
.footer__wordmark { display: block; width: 100%; padding: 0 var(--gutter); opacity: .06; }
.footer__wordmark img { width: 100%; height: auto; }
.footer__bottom { border-top: 1px solid var(--line-dark); }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; font-size: .85rem; color: var(--steel); }
.footer__bottom nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--white); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-dark); transition: background .3s, box-shadow .3s; }
.social a:hover { background: var(--red); box-shadow: none; }
.social svg { width: 16px; height: 16px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink); color: var(--white); padding: 120px var(--gutter); }
.notfound .display-xl { font-size: clamp(6rem, 22vw, 18rem); color: transparent; -webkit-text-stroke: 1px var(--red); }

/* Initial animation states (only when JS animation is active) -------------- */
.js-anim [data-reveal] { opacity: 0; transform: translateY(40px); }
.js-anim [data-reveal="fade"] { transform: none; }
.js-anim [data-clip] { clip-path: inset(100% 0 0 0); }
.js-anim [data-split] { visibility: hidden; }
.js-anim [data-split].is-split { visibility: visible; }

/* Utilities ---------------------------------------------------------------------- */
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 96px; }
.mb-m { margin-bottom: 48px; }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Responsive ---------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: block; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .office-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 32px; }
  .page-hero__row, .sec-head, .intro__grid, .split, .feature, .presence, .product__grid, .contact-grid, .pillars, .stack-card { grid-template-columns: 1fr; }
  .sec-head p { justify-self: start; }
  .split__sticky { position: static; }
  .feature--rev .feature__media, .product:nth-child(even) .product__media { order: 0; }
  .feature__media { aspect-ratio: 4 / 3; }
  .cards-3, .rep-grid { grid-template-columns: 1fr 1fr; }
  .hero__globe { right: -40vw; width: 130vw; opacity: .7; }
  .hero__hubs { display: none; }
  .chain { grid-template-columns: 1fr; gap: 48px; }
  .chain__svg { display: none; }
  .stack-card { position: relative; top: auto; min-height: 0; }
  .stack-card .art { order: -1; min-height: 200px; }
  .pillar { min-height: 420px; }
  .intro__foot { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 28px 16px 8px 0; border-right: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-dark); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .stat:last-child { grid-column: 1 / -1; }
  .services, .cards-3, .rep-grid, .office-cards, .form, .footer__top, .product__specs { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-right: 0; border-top: 1px solid var(--line-light); }
  .row__head { grid-template-columns: 40px 1fr 40px; }
  .row__body p { padding: 0 0 28px 56px; }
  .rail__head { flex-direction: column; align-items: start; }
  .p-card { width: 78vw; }
  .btn { padding: 16px 24px; }
  .hero__bottom .container { justify-content: center; }
  .hero__bottom .hero__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Transition / preloader states set before first paint */
.is-entering .page-transition__panel { transform: translateY(0); }
.no-preload .preloader, .is-entering .preloader { display: none; }

/* Product rail on touch / small screens: native swipe instead of pinning */
@media (max-width: 900px) {
  .rail__pin { height: auto; padding: clamp(80px, 12vw, 140px) 0; }
  .rail__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .rail__track::-webkit-scrollbar { display: none; }
  .p-card { scroll-snap-align: center; }
  .rail__progress { display: none; }
  .presence__globe { max-width: 520px; margin: 0 auto; }
}

/* Inner-page hero headline scale */
.page-hero .display-xl { font-size: clamp(3rem, 7.2vw, 7.6rem); }

.stack .anchor { display: block; height: 0; margin-bottom: -24px; }
