/* ==========================================================================
   NextGen s.r.o. — main stylesheet  ·  design 2 "Precision"
   Plain modern CSS: no framework, no build step, no preprocessor.

   Look & feel: quiet and exact. Square corners only, a palette of white,
   cool grays and one red; photographs in grayscale that wake up in colour on
   hover; hairline rules and a strict grid. The recurring motif is the SLAT —
   the vertical louvre of a machine guard or conveyor — used for the hero
   photo, the page banners and the 404.

   Contents
     1  Fonts                      13  Recent work
     2  Tokens                     14  World map
     3  Base                       15  Principles
     4  Layout & type              16  Quality & know-how
     5  Buttons & links            17  Call to action
     6  Header & navigation        18  Footer
     7  Slats                      19  About page
     8  Home hero                  20  Our work page
     9  Inner-page hero            21  Contact page
    10  Technology logos           22  Login, legal, 404
    11  Intro & key figures        23  Lightbox & toast
    12  Services                   24  Motion, reveal, print
   ========================================================================== */

/* 1  Fonts (self-hosted — nothing is requested from third parties) --------- */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2  Tokens ---------------------------------------------------------------- */
:root {
  --red: #cb1f1a;
  --red-700: #a51612;
  --red-100: #fbe9e8;

  --white: #fff;
  --gray-50: #f6f7f8;
  --gray-100: #eef0f2;
  --gray-200: #e0e3e7;
  --gray-300: #c8ccd2;
  --gray-400: #9ea4ad;
  --gray-500: #778089;
  --gray-600: #59616b;
  --gray-700: #3d434b;
  --gray-800: #272b31;
  --gray-900: #17191d;

  /* adaptive tokens: dark / red sections re-declare these */
  --fg: var(--gray-900);
  --fg-2: var(--gray-600);
  --rule: var(--gray-200);
  --rule-strong: var(--gray-300);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --stretch: 96%;
  --stretch-display: 92%;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --header-h: 76px;
  --rail: 15rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* 3  Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-stretch: var(--stretch);
  line-height: 1.62;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 {
  font-weight: 300;
  font-stretch: var(--stretch-display);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: var(--fg);
  text-wrap: balance;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
b, strong { font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* 4  Layout & type --------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--gray { background: var(--gray-50); }
.section--dark {
  --fg: #fff;
  --fg-2: #aab0b9;
  --rule: rgba(255, 255, 255, .16);
  --rule-strong: rgba(255, 255, 255, .3);
  background: var(--gray-900);
  color: #c4c9d0;
}
.section--red {
  --fg: #fff;
  --fg-2: rgba(255, 255, 255, .85);
  --rule: rgba(255, 255, 255, .3);
  background: var(--red);
  color: rgba(255, 255, 255, .92);
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 1000; padding: .75rem 1.25rem; background: var(--red); color: #fff; font-weight: 600; text-decoration: none; transform: translateY(-200%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; }

/* editorial layout: a slim left rail (label) and a wide body */
.sec { display: grid; gap: 1.75rem 3rem; }
@media (min-width: 1000px) { .sec { grid-template-columns: var(--rail) minmax(0, 1fr); } }
.sec__rail { min-width: 0; }
@media (min-width: 1000px) { .sec__rail { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.label {
  position: relative;
  display: block;
  padding-top: 1rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fg);
}
.label::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 2px; background: var(--red); }
.kicker { display: inline-flex; align-items: center; gap: .85rem; font-size: .98rem; font-weight: 600; color: var(--gray-600); }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.section--dark .kicker { color: #aab0b9; }

.h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -.04em; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.h1 em, .h2 em, .h3 em, .h1 b, .h2 b, .h3 b { font-style: normal; font-weight: 600; color: var(--red); }
.section--dark .h2 em, .section--dark .h2 b { color: #ff5a52; }
.section--red .h2 em, .section--red .h2 b { color: #fff; font-weight: 700; }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; max-width: 44rem; }
.lead b { color: var(--fg); }
.statement { font-size: clamp(1.7rem, 3.3vw, 2.9rem); font-weight: 300; line-height: 1.14; letter-spacing: -.03em; color: var(--gray-900); text-wrap: pretty; max-width: 30ch; }
.statement b { font-weight: 600; color: var(--red); white-space: nowrap; }
.prose { color: var(--fg-2); max-width: 64ch; }
.prose p + p { margin-top: 1em; }
.prose b { color: var(--fg); }
.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.25rem, 4.5vw, 4rem); }
.mt-s { margin-top: 1.25rem; }
.mt-m { margin-top: 1.75rem; }
.my-s { margin-block: 1.25rem; }

/* 5  Buttons & links ------------------------------------------------------- */
.btn {
  --b-bg: var(--red);
  --b-fg: #fff;
  --b-sweep: var(--gray-900);
  --b-fg-hover: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid var(--b-bg);
  background: var(--b-bg);
  color: var(--b-fg);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--b-sweep); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.btn:hover, .btn:focus-visible { color: var(--b-fg-hover); border-color: var(--b-sweep); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn .icon { width: 1.15rem; height: 1.15rem; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:focus-visible { outline-offset: 3px; }
.btn--dark { --b-bg: var(--gray-900); --b-sweep: var(--red); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--gray-900); --b-sweep: var(--gray-900); border-color: var(--gray-900); }
.btn--light { --b-bg: #fff; --b-fg: var(--gray-900); --b-sweep: var(--gray-900); }
.btn--ghost-light { --b-bg: transparent; --b-fg: #fff; --b-sweep: #fff; --b-fg-hover: var(--gray-900); border-color: rgba(255, 255, 255, .6); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

.link {
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 2px no-repeat;
  padding-bottom: .12em;
  transition: background-size .3s var(--ease), color .2s;
}
.link:hover { color: var(--red); background-size: 100% 1px; }
.section--dark .link { color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--gray-900); text-decoration: none; padding-block: .25rem; box-shadow: 0 2px 0 var(--red); transition: box-shadow .3s var(--ease), color .2s; }
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--red); box-shadow: 0 1px 0 var(--red); }
.link-arrow:hover .icon { transform: translateX(4px); }
.section--dark .link-arrow { color: #fff; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; }

/* 6  Header & navigation --------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-200); color: var(--gray-900); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .75rem; font-size: 1.28rem; font-weight: 400; letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand b { font-weight: 700; }
.brand__logo { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-12deg); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav__list { display: flex; gap: 1.85rem; list-style: none; padding: 0; margin: 0; }
.nav__link { position: relative; display: block; padding: .5rem 0; font-size: .98rem; font-weight: 500; text-decoration: none; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: none; }
.nav__link[aria-current="page"] { font-weight: 600; }
.nav__login { display: inline-flex; align-items: center; gap: .45rem; font-size: .93rem; font-weight: 500; color: var(--gray-600); text-decoration: none; transition: color .2s; }
.nav__login .icon { width: 1rem; height: 1rem; }
.nav__login:hover { color: var(--red); }
.nav__cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.3rem; background: var(--red); color: #fff; font-size: .95rem; font-weight: 600; text-decoration: none; transition: background-color .25s; }
.nav__cta:hover { background: var(--gray-900); }

.nav-toggle { display: none; position: relative; z-index: 2; width: 2.9rem; height: 2.9rem; margin-right: -.6rem; padding: 0; border: 0; background: none; color: inherit; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 12px; width: 22px; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease), width .35s var(--ease); }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; width: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; width: 22px; transform: rotate(-45deg); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (max-width: 959.98px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
    background: var(--gray-900);
    color: #fff;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .6s var(--ease-in-out), visibility 0s linear .6s;
  }
  .site-header.is-open .nav { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease-in-out), visibility 0s; }
  .site-header.is-open { background: var(--gray-900); color: #fff; border-color: rgba(255, 255, 255, .12); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-top: 1px solid rgba(255, 255, 255, .16); }
  .nav__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .nav__link { padding: 1rem 0; font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 300; letter-spacing: -.035em; opacity: 0; transform: translateY(.8rem); transition: opacity .4s var(--ease), transform .5s var(--ease); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { font-weight: 300; color: #ff5a52; }
  .site-header.is-open .nav__link { opacity: 1; transform: none; }
  .site-header.is-open li:nth-child(1) .nav__link { transition-delay: .15s; }
  .site-header.is-open li:nth-child(2) .nav__link { transition-delay: .2s; }
  .site-header.is-open li:nth-child(3) .nav__link { transition-delay: .25s; }
  .site-header.is-open li:nth-child(4) .nav__link { transition-delay: .3s; }
  .nav__login { color: #c4c9d0; font-size: 1.05rem; }
  .nav__cta { align-self: flex-start; min-height: 3.25rem; padding: 0 1.6rem; }
  .nav a:focus-visible { outline-color: #fff; }
}

/* 7  Slats — vertical louvres that carry the photography ------------------ */
.slats {
  --n: 9;
  --gap: 8px;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: var(--gap);
}
.slat {
  position: relative;
  overflow: hidden;
  background: var(--gray-200);
  animation: slat-in 1.1s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 70ms + .1s);
}
.slat:nth-child(1) { --i: 0; } .slat:nth-child(2) { --i: 1; } .slat:nth-child(3) { --i: 2; }
.slat:nth-child(4) { --i: 3; } .slat:nth-child(5) { --i: 4; } .slat:nth-child(6) { --i: 5; }
.slat:nth-child(7) { --i: 6; } .slat:nth-child(8) { --i: 7; } .slat:nth-child(9) { --i: 8; }
.slat:nth-child(10) { --i: 9; } .slat:nth-child(11) { --i: 10; } .slat:nth-child(12) { --i: 11; }
@keyframes slat-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
/* each slat shows its own vertical slice of one continuous photograph */
.slat__img {
  position: absolute;
  top: 0;
  height: 100%;
  width: calc(100% * var(--n) + var(--gap) * (var(--n) - 1));
  max-width: none;
  left: calc(-1 * var(--i, 0) * (100% + var(--gap)));
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transition: opacity .9s var(--ease), filter .7s var(--ease);
}
.slats:hover .slat__img { filter: none; }
.slat__img { opacity: 0; z-index: 0; }
.slat__img.is-prev { opacity: 1; z-index: 1; transition: none; }
.slat__img.is-active { opacity: 1; z-index: 2; }

/* 8  Home hero ------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: var(--header-h); background: var(--white); }
.hero__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 0; }
.hero__copy-inner { display: grid; gap: 1.75rem; align-content: center; flex: 1; }
.hero__title { max-width: 14ch; font-size: clamp(2.7rem, 5.2vw, 5rem); font-weight: 300; line-height: 1.02; letter-spacing: -.04em; color: var(--gray-900); }
.hero__title em { font-style: normal; font-weight: 600; color: var(--red); white-space: nowrap; }
.hero__quote { position: relative; max-width: 30rem; padding-left: 1.25rem; font-size: 1.12rem; color: var(--gray-600); }
.hero__quote::before { content: ""; position: absolute; left: 0; top: .25rem; bottom: .25rem; width: 2px; background: var(--red); }
.hero__quote cite { display: block; margin-top: .25rem; font-size: .95rem; font-style: normal; font-weight: 600; color: var(--gray-500); }
.hero__actions { margin-top: .5rem; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; margin: 0; border-top: 1px solid var(--gray-200); }
.hero__facts > div { padding: 1.25rem 2rem 1.5rem 0; }
.hero__facts > div + div { padding-left: 2rem; border-left: 1px solid var(--gray-200); }
.hero__facts dt { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--gray-900); }
.hero__facts dd { margin-top: .35rem; font-size: .92rem; color: var(--gray-600); }

.hero__slats { --n: 5; position: relative; height: clamp(280px, 62vw, 460px); margin-top: 1.5rem; }
.hero__slats .slat:nth-child(n + 5):not(.slat--label) { display: none; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); min-height: clamp(640px, 100svh, 860px); }
  .hero__copy { padding: clamp(3rem, 6vh, 5rem) clamp(2rem, 4vw, 4rem) 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
  .hero__slats { --n: 9; height: auto; margin: 0; }
  .hero__copy { padding-bottom: 0; }
  .hero__slats .slat:nth-child(n + 5):not(.slat--label) { display: block; }
}

/* the red label slat: names the project on show, links to it */
.slat--label { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 1.15rem 0 1.4rem; background: var(--red); color: #fff; text-decoration: none; transition: background-color .3s; }
.slat--label:hover { background: var(--red-700); }
.slat__arrow { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255, 255, 255, .55); transition: background-color .3s, color .3s; }
.slat__arrow .icon { width: 1.05rem; height: 1.05rem; transform: rotate(-45deg); transition: transform .35s var(--ease); }
.slat--label:hover .slat__arrow { background: #fff; color: var(--red); }
.slat--label:hover .slat__arrow .icon { transform: rotate(0); }
.slat__text { writing-mode: vertical-rl; transform: rotate(180deg); max-height: calc(100% - 4rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; font-weight: 500; letter-spacing: .005em; }
.slat__text small { font-size: .88rem; font-weight: 400; opacity: .82; margin-block-end: .6em; }
.slat--label::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: rgba(255, 255, 255, .9); transform: scaleY(0); transform-origin: bottom; }
.hero__slats.is-running .slat--label::after { animation: slat-progress var(--dur, 5.5s) linear forwards; }
@keyframes slat-progress { to { transform: scaleY(1); } }

.hero__copy-inner > * { animation: rise .9s var(--ease) both; }
.hero__copy-inner > :nth-child(1) { animation-delay: .05s; }
.hero__copy-inner > :nth-child(2) { animation-delay: .15s; }
.hero__copy-inner > :nth-child(3) { animation-delay: .27s; }
.hero__copy-inner > :nth-child(4) { animation-delay: .38s; }
.hero__facts { animation: fade 1s var(--ease) .6s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* 9  Inner-page hero ------------------------------------------------------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); background: var(--white); }
.page-hero__top { display: grid; gap: 1.5rem 3rem; align-items: end; padding-bottom: clamp(2rem, 4vw, 3.25rem); }
@media (min-width: 900px) { .page-hero__top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.page-hero__title { margin-top: 1.25rem; font-size: clamp(3rem, 8.4vw, 7.5rem); font-weight: 200; line-height: .94; letter-spacing: -.055em; color: var(--gray-900); }
.page-hero__title em, .page-hero__title b { font-style: normal; font-weight: 500; color: var(--red); }
.page-hero__side { display: grid; gap: 1.5rem; justify-items: start; }
.page-hero__lead { max-width: 30rem; font-size: 1.15rem; line-height: 1.55; color: var(--gray-600); }
.page-hero__copy > * { animation: rise .9s var(--ease) both; }
.page-hero__copy > :nth-child(2) { animation-delay: .1s; }
.page-hero__side { animation: rise .9s var(--ease) .25s both; }
.band { --n: 12; height: clamp(150px, 22vw, 300px); }
@media (max-width: 699.98px) { .band { --n: 6; } .band .slat:nth-child(n + 7) { display: none; } }
.band .slat__img { opacity: 1; }

/* 10  Technology logos ----------------------------------------------------- */
.logos { border-block: 1px solid var(--gray-200); background: var(--white); }
.logos__inner { display: grid; gap: 1.25rem 3rem; align-items: center; padding-block: 1.75rem; }
@media (min-width: 1000px) { .logos__inner { grid-template-columns: var(--rail) minmax(0, 1fr) auto; } }
.logos__label { font-size: .95rem; font-weight: 600; color: var(--gray-900); }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem; margin: 0; padding: 0; list-style: none; }
.logos__row img { width: 76px; height: 56px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.1); opacity: .62; transition: filter .3s, opacity .3s; }
.logos__row li:hover img { filter: none; opacity: 1; }

/* 11  Intro & key figures -------------------------------------------------- */
.intro__cols { display: grid; gap: 1.75rem 3rem; align-items: start; margin-top: 2.5rem; }
@media (min-width: 900px) { .intro__cols { grid-template-columns: minmax(0, 1.4fr) auto; } }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: clamp(3rem, 6vw, 5rem) 0 0; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { position: relative; padding: 1.4rem 0 2rem; border-top: 1px solid var(--gray-300); }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 3px; background: var(--red); }
.stat__num { display: flex; align-items: baseline; font-size: clamp(3.6rem, 6.6vw, 6.2rem); font-weight: 200; font-stretch: 88%; line-height: 1; letter-spacing: -.055em; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.stat__num small { margin-left: .04em; font-size: .5em; font-weight: 400; letter-spacing: 0; color: var(--red); }
.stat__label { margin-top: .9rem; font-size: .98rem; line-height: 1.4; color: var(--gray-600); }
.stat__label b { display: block; font-size: 1.05rem; color: var(--gray-900); }
.odo { display: inline-flex; }
.odo__digit { display: inline-block; height: 1em; overflow: hidden; }
.odo__strip { display: flex; flex-direction: column; transition: transform 2.2s cubic-bezier(.16, 1, .3, 1); }
.odo__strip > span { display: block; height: 1em; line-height: 1; }

/* 12  Services — an index list with a photograph that follows your cursor  */
.svc { display: grid; gap: 2rem 4rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) { .svc { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } }
.svc__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule-strong); }
.svc__item { position: relative; border-top: 1px solid var(--rule-strong); }
.svc__item::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.svc__item.is-active::before { transform: none; }
.svc__h { margin: 0; font: inherit; }
.svc__head { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; width: 100%; padding: 1.5rem 0; border: 0; background: none; text-align: left; color: #8b929c; transition: color .3s; }
.svc__num { font-size: .95rem; font-weight: 500; color: #7c838d; transition: color .3s; }
.svc__title { font-size: clamp(1.4rem, 2.5vw, 2.1rem); font-weight: 300; line-height: 1.1; letter-spacing: -.03em; transition: transform .45s var(--ease), color .3s; }
.svc__toggle { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--rule-strong); color: inherit; transition: background-color .3s, color .3s, border-color .3s; }
.svc__toggle .icon { width: 1.05rem; height: 1.05rem; transition: transform .4s var(--ease); }
.svc__head:hover { color: #fff; }
.svc__head:hover .svc__title { transform: translateX(6px); }
.svc__item.is-active .svc__head { color: #fff; }
.svc__item.is-active .svc__num { color: #ff5a52; }
.svc__item.is-active .svc__title { font-weight: 400; }
.svc__item.is-active .svc__toggle { background: var(--red); border-color: var(--red); color: #fff; }
.svc__item.is-active .svc__toggle .icon { transform: rotate(45deg); }
.svc__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease-in-out); }
@media (scripting: enabled) { .svc__item:not(.is-active) .svc__panel { grid-template-rows: 0fr; } }
.svc__panel-inner { min-height: 0; overflow: hidden; padding-left: 4.2rem; }
.svc__panel-inner > p { max-width: 34rem; padding-bottom: 1.1rem; color: #b7bcc4; }
.svc__tags { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0 0 1.75rem; list-style: none; font-size: .95rem; color: #ffffffd0; }
.svc__tags li { position: relative; }
.svc__tags li + li::before { content: ""; position: absolute; left: -.85rem; top: .3em; bottom: .3em; width: 1px; background: rgba(255, 255, 255, .3); }
.svc__thumb { display: none; }

.svc__stage { display: none; }
.svc__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gray-800); }
.svc__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); clip-path: inset(100% 0 0 0); z-index: 0; transition: clip-path .85s var(--ease-in-out), filter .6s; }
.svc__img.is-prev { clip-path: inset(0); z-index: 1; transition: none; }
.svc__img.is-active { clip-path: inset(0); z-index: 2; }
.svc__frame:hover .svc__img { filter: none; }
.svc__count { position: absolute; z-index: 3; left: 0; bottom: 0; padding: .8rem 1.1rem; background: var(--red); color: #fff; font-size: .95rem; font-weight: 500; letter-spacing: .02em; }
.svc__count b { font-weight: 700; }
@media (min-width: 1000px) { .svc__stage { display: block; position: sticky; top: calc(var(--header-h) + 2rem); } }
@media (max-width: 999.98px) {
  .svc__panel-inner { padding-left: 0; }
  .svc__thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 1.1rem; filter: grayscale(1); }
  .svc__head { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
}

/* 13  Recent work ---------------------------------------------------------- */
.pgrid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.sec__body > .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .sec__body > .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 519.98px) { .sec__body > .pgrid { grid-template-columns: 1fr; } }
.pcard { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 0; color: inherit; text-decoration: none; }
.pcard[hidden] { display: none; }
.pcard__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--gray-200); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform 1.1s var(--ease); }
.pcard__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img, .pcard:focus-visible .pcard__media img { filter: none; transform: scale(1.05); }
.pcard:hover .pcard__media::after, .pcard:focus-visible .pcard__media::after { transform: none; }
.pcard__body { display: grid; gap: .25rem; align-content: start; padding-top: 1.1rem; }
.pcard__cat { font-size: .88rem; font-weight: 600; color: var(--red); }
.pcard__title { font-size: 1.32rem; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; color: var(--gray-900); transition: color .25s; }
.pcard__title b { font-weight: inherit; }
.pcard:hover .pcard__title { color: var(--red); }
.pcard__meta { font-size: .95rem; color: var(--gray-500); }
.section-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--gray-200); color: var(--gray-600); }

/* 14  World map ------------------------------------------------------------ */
.mapbox { border: 1px solid var(--gray-200); background: var(--white); padding: clamp(.75rem, 2vw, 1.75rem); }
.map-wrap { position: relative; }
.map-clip { position: relative; }
.map { position: relative; aspect-ratio: 1000 / 372.2; }
.map__dots, .map__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__overlay { overflow: visible; }
.map__arc { fill: none; stroke: var(--red); stroke-width: 1.1; stroke-linecap: square; /* pathLength="1": one dash = the whole arc. No vector-effect here, or the arcs stop short. */ stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: .85; transition: stroke-dashoffset 1.6s var(--ease-in-out); }
.map.is-visible .map__arc { stroke-dashoffset: 0; }
.map__arc:nth-child(2) { transition-delay: .1s; } .map__arc:nth-child(3) { transition-delay: .2s; } .map__arc:nth-child(4) { transition-delay: .3s; }
.map__arc:nth-child(5) { transition-delay: .4s; } .map__arc:nth-child(6) { transition-delay: .5s; } .map__arc:nth-child(7) { transition-delay: .6s; }
.map__arc:nth-child(8) { transition-delay: .7s; } .map__arc:nth-child(9) { transition-delay: .8s; } .map__arc:nth-child(10) { transition-delay: .9s; }
.map__arc:nth-child(11) { transition-delay: 1s; } .map__arc:nth-child(12) { transition-delay: 1.1s; } .map__arc:nth-child(13) { transition-delay: 1.2s; } .map__arc:nth-child(14) { transition-delay: 1.3s; }
.map__pin { cursor: pointer; outline: none; }
.map__pin .core { fill: #fff; stroke: var(--red); stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ease), fill .25s; }
.map__pin .halo { fill: var(--red); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map.is-visible .map__pin .halo { animation: halo 2.8s ease-out infinite; }
.map__pin:nth-of-type(3n + 1) .halo { animation-delay: .9s !important; }
.map__pin:nth-of-type(3n + 2) .halo { animation-delay: 1.8s !important; }
@keyframes halo { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(3); opacity: 0; } }
.map__pin:hover .core, .map__pin:focus-visible .core, .map__pin.is-active .core { fill: var(--red); transform: scale(1.5); }
.map__pin:focus-visible .core { stroke: var(--gray-900); }
.map__hq .core { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.map__hq-label { font-size: 12px; font-weight: 600; letter-spacing: -.01em; fill: var(--gray-900); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.map__tip { position: absolute; z-index: 5; left: 0; top: 0; min-width: 12rem; max-width: 17rem; padding: .85rem 1.1rem; background: var(--gray-900); color: #dfe2e7; font-size: .95rem; line-height: 1.4; border-top: 3px solid var(--red); pointer-events: none; opacity: 0; transform: translate(-50%, calc(-100% - 14px)) translateY(6px); transition: opacity .2s, transform .25s var(--ease); }
.map__tip.is-shown { opacity: 1; transform: translate(-50%, calc(-100% - 14px)); }
.map__tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; background: var(--gray-900); transform: translateX(-50%) rotate(45deg); }
.map__tip strong { display: block; margin-bottom: .1rem; font-size: 1rem; font-weight: 600; color: #fff; }
.regions { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 800px) { .regions { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.region h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .8rem; margin-bottom: .3rem; border-bottom: 2px solid var(--gray-900); font-size: 1.4rem; font-weight: 500; letter-spacing: -.03em; }
.region h3 span { font-size: 1rem; font-weight: 500; color: var(--red); }
.region ul { list-style: none; padding: 0; margin: 0; }
.region li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .5rem; margin-inline: -.5rem; border-bottom: 1px solid var(--gray-200); font-size: 1rem; color: var(--gray-900); cursor: default; transition: background-color .2s; }
.region li span { color: var(--gray-500); font-size: .95rem; text-align: right; }
.region li:hover, .region li.is-active { background: var(--red-100); }
@media (max-width: 699.98px) {
  .mapbox { padding: .5rem 0; }
  .map-clip { overflow: hidden; }
  /* show map x 105–845 of 1000 (pins span 141–808): width = 1000/740, offset = 105/740 */
  .map { width: 135.2%; margin-left: -14.2%; }
  .map__arc { stroke-width: 1.7; }
  .map__hq-label { font-size: 15px; }
}

/* 15  Principles — five columns that turn red ----------------------------- */
.prin { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--gray-300); }
@media (min-width: 700px) { .prin { grid-template-columns: repeat(2, 1fr); } .prin__item:last-child:nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1200px) { .prin { grid-template-columns: repeat(5, 1fr); } .prin__item:last-child:nth-child(odd) { grid-column: auto; } }
.prin__item { position: relative; display: flex; flex-direction: column; gap: 1rem; min-height: 20rem; padding: 1.75rem 1.5rem 1.6rem; border-bottom: 1px solid var(--gray-300); color: var(--gray-600); text-decoration: none; transition: background-color .4s var(--ease), color .4s var(--ease); }
@media (min-width: 700px) { .prin__item:nth-child(even) { border-left: 1px solid var(--gray-300); } }
@media (min-width: 1200px) { .prin__item + .prin__item { border-left: 1px solid var(--gray-300); } }
.prin__num { font-size: clamp(3.4rem, 4.6vw, 4.6rem); font-weight: 200; line-height: 1; letter-spacing: -.06em; color: var(--gray-300); transition: color .4s; }
.prin__title { margin-top: 2.25rem; font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; color: var(--gray-900); transition: color .4s; }
.prin__text { font-size: .98rem; line-height: 1.55; }
.prin__more { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .75rem; font-size: .95rem; font-weight: 600; color: var(--red); transition: color .4s; }
.prin__more .icon { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.prin__item:hover, .prin__item:focus-visible { background: var(--red); color: rgba(255, 255, 255, .92); outline-offset: -4px; outline-color: #fff; }
.prin__item:hover .prin__num, .prin__item:focus-visible .prin__num { color: rgba(255, 255, 255, .45); }
.prin__item:hover .prin__title, .prin__item:focus-visible .prin__title, .prin__item:hover .prin__more, .prin__item:focus-visible .prin__more { color: #fff; }
.prin__item:hover .prin__more .icon { transform: translateX(5px); }

/* 16  Quality & know-how --------------------------------------------------- */
.trust { display: grid; gap: 1px; background: var(--gray-300); border: 1px solid var(--gray-300); }
@media (min-width: 900px) { .trust { grid-template-columns: 1.25fr 1fr; } .tcell--iso { grid-row: span 2; } }
.tcell { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.6rem, 3vw, 2.5rem); background: var(--white); overflow: hidden; }
.tcell__kicker { font-size: .95rem; font-weight: 600; color: var(--red); }
.tcell__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 300; line-height: 1.05; letter-spacing: -.04em; color: var(--gray-900); }
.tcell__title b { font-weight: 600; color: var(--red); }
.tcell p { color: var(--gray-600); }
.tcell--iso { display: flex; flex-direction: column; gap: 2rem; min-height: 32rem; }
.tcell__content { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.checks { display: grid; gap: .5rem; margin: .25rem 0 .5rem; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 500; line-height: 1.4; color: var(--gray-900); }
.checks .icon { flex: none; width: 1.3rem; height: 1.3rem; padding: .22rem; background: var(--red); color: #fff; stroke-width: 2.6; }
.cert { position: relative; display: block; align-self: flex-end; width: min(60%, 270px); margin: auto 0 -5rem; border: 1px solid var(--gray-300); background: #fff; box-shadow: -10px -10px 0 var(--gray-100); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cert img { width: 100%; }
.cert:hover { transform: translate(4px, -8px); box-shadow: -14px -14px 0 var(--red-100); }
.tcell--dark { color: #c4c9d0; background: var(--gray-900); isolation: isolate; min-height: 21rem; }
.tcell--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 25, 29, .55), rgba(23, 25, 29, .96) 72%), url("../img/bg/lab-1600.webp") 60% 30% / cover no-repeat; filter: grayscale(1); transition: transform 1.2s var(--ease); }
.tcell--dark:hover::before { transform: scale(1.05); }
.tcell--dark .tcell__title { color: #fff; }
.tcell--dark .tcell__title b { color: #ff5a52; }
.tcell--dark p { color: #aab0b9; }
.tcell--dark .tcell__kicker { color: #ff5a52; }
.big-year { margin-top: auto; font-size: clamp(4rem, 7vw, 6rem); font-weight: 200; line-height: .9; letter-spacing: -.06em; color: #fff !important; }
.big-year small { margin-left: .6rem; font-size: .95rem; font-weight: 500; letter-spacing: 0; color: #ff5a52; }
.rows { display: grid; margin: .5rem 0 0; padding: 0; list-style: none; }
.rows li { display: flex; align-items: center; gap: .85rem; padding: .8rem 0; border-top: 1px solid var(--gray-200); font-weight: 500; color: var(--gray-900); transition: padding-left .3s var(--ease), color .2s; }
.rows li:last-child { border-bottom: 1px solid var(--gray-200); }
.rows .icon { flex: none; width: 1.3rem; height: 1.3rem; padding: .22rem; background: var(--gray-100); color: var(--red); stroke-width: 2.6; }
.rows li:hover { padding-left: .5rem; color: var(--red); }

/* 17  Call to action ------------------------------------------------------- */
.cta { position: relative; isolation: isolate; padding-block: clamp(4.5rem, 9vw, 7.5rem); background: var(--red); color: rgba(255, 255, 255, .92); overflow: clip; --fg: #fff; --rule: rgba(255, 255, 255, .3); }
.cta::before {
  /* the slats again, as a quiet texture */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 8px), rgba(255, 255, 255, .07) calc(100% / 12 - 8px) calc(100% / 12));
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 85%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 85%);
}
.cta__inner { display: grid; gap: 2rem 4rem; align-items: end; }
@media (min-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1.5fr) auto; } }
.cta .kicker { color: #fff; }
.cta .kicker::before { background: #fff; }
.cta__title { margin-top: 1.25rem; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 200; line-height: .98; letter-spacing: -.05em; color: #fff; }
.cta__title em, .cta__title b { font-style: normal; font-weight: 600; color: #fff; }
.cta .lead { margin-top: 1.5rem; max-width: 36rem; color: rgba(255, 255, 255, .88); }

/* 18  Footer --------------------------------------------------------------- */
.site-footer { background: var(--gray-900); color: #98a0ab; font-size: .98rem; }
.site-footer__top { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5rem); }
@media (min-width: 700px) { .site-footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__top { grid-template-columns: 1.4fr .8fr 1.1fr 1.5fr; } }
.site-footer .brand { color: #fff; margin-bottom: 1.25rem; }
.site-footer h2 { margin-bottom: 1rem; padding-top: .9rem; border-top: 2px solid var(--red); font-size: .95rem; font-weight: 600; letter-spacing: .01em; color: #fff; max-width: 4.5rem; white-space: nowrap; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; color: #d0d4da; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .25em; }
.site-footer address { font-style: normal; display: grid; gap: .55rem; }
.site-footer__legal { font-size: .93rem; line-height: 1.7; color: #8a919c; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .93rem; color: #8a919c; }
.site-footer__bottom nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; }
.to-top .icon { width: 1em; height: 1em; transform: rotate(-90deg); }

/* 19  About page ----------------------------------------------------------- */
.timeline { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.milestone { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--gray-300); }
.milestone::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; background: var(--red); }
.milestone__year { font-size: clamp(3.2rem, 5vw, 4.8rem); font-weight: 200; line-height: .95; letter-spacing: -.06em; color: var(--gray-900); }
.milestone__month { margin-top: .4rem; font-weight: 600; color: var(--red); }
.milestone__title { margin-top: 1rem; font-size: 1.3rem; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; color: var(--gray-900); }
.milestone__text { margin-top: .5rem; color: var(--gray-600); }
.download-note { display: grid; gap: 1.5rem 3rem; align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--gray-300); background: var(--gray-50); }
@media (min-width: 800px) { .download-note { grid-template-columns: minmax(0, 1fr) auto; } }
.download-note p { font-size: 1.12rem; color: var(--gray-700); }
.download-note b { color: var(--gray-900); }

.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--gray-300); border: 1px solid var(--gray-300); }
@media (min-width: 600px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .tech-grid { grid-template-columns: repeat(5, 1fr); } }
.tech { position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: .3rem; padding: 1.4rem .75rem 1.1rem; background: #fff; text-decoration: none; overflow: hidden; isolation: isolate; }
.tech img { width: 100%; max-width: 116px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .72; transition: filter .35s, opacity .35s; }
.tech__name { font-size: .95rem; font-weight: 500; color: var(--gray-600); text-align: center; }
.tech__go { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: .2rem; padding: 1rem; text-align: center; background: var(--red); color: #fff; font-size: .95rem; line-height: 1.3; clip-path: inset(100% 0 0 0); transition: clip-path .45s var(--ease); }
.tech__go b { font-weight: 600; word-break: break-word; }
.tech:hover .tech__go, .tech:focus-visible .tech__go { clip-path: inset(0); }
.tech:focus-visible { outline-offset: -3px; }

.creed__list { list-style: none; padding: 0; margin: 0; counter-reset: creed; border-top: 1px solid var(--gray-300); }
.creed__item { counter-increment: creed; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem 2rem; padding-block: 2.25rem; border-bottom: 1px solid var(--gray-300); }
.creed__item::before { content: counter(creed, decimal-leading-zero); grid-row: span 2; min-width: 4.5rem; font-size: clamp(2.6rem, 4.4vw, 3.8rem); font-weight: 200; line-height: .9; letter-spacing: -.06em; color: var(--red); }
.creed__item h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 400; letter-spacing: -.04em; }
.creed__item .prose { max-width: 60ch; }
.creed__item:target { animation: target-flash 1.6s var(--ease); }
@keyframes target-flash { 0%, 30% { background: var(--red-100); } 100% { background: transparent; } }

/* 20  Our work page -------------------------------------------------------- */
.filters { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-block: 1px solid var(--gray-200); }
.filters__inner { display: flex; align-items: center; gap: 2rem; overflow-x: auto; scrollbar-width: none; }
.filters__inner::-webkit-scrollbar { display: none; }
.filters__label { flex: none; font-size: .95rem; font-weight: 600; color: var(--gray-500); }
.filter-btn { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: .5rem; padding: 1.1rem 0; border: 0; background: none; font-size: 1rem; font-weight: 500; color: var(--gray-600); transition: color .2s; }
.filter-btn span { font-size: .85rem; font-weight: 500; color: var(--gray-400); }
.filter-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.filter-btn:hover { color: var(--gray-900); }
.filter-btn[aria-pressed="true"] { color: var(--gray-900); font-weight: 600; }
.filter-btn[aria-pressed="true"]::after { transform: none; }
.filter-btn[aria-pressed="true"] span { color: var(--red); }

.project { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--gray-200); }
.project[hidden] { display: none; }
.project__grid { display: grid; gap: 2rem clamp(2rem, 4vw, 4rem); }
@media (min-width: 1100px) { .project__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.project__title { margin-bottom: 1.4rem; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.project__text { color: var(--gray-600); font-size: 1.1rem; }
.facts { display: grid; gap: 0; margin: 2rem 0 0; border-top: 1px solid var(--gray-300); }
.facts > div { display: grid; gap: .25rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--gray-200); }
@media (min-width: 560px) { .facts > div { grid-template-columns: 8rem minmax(0, 1fr); } }
.facts dt { font-size: .95rem; font-weight: 600; color: var(--red); }
.facts dd { color: var(--gray-900); }
.project__cover { position: relative; display: block; overflow: hidden; background: var(--gray-200); }
.project__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(1); transition: filter .6s var(--ease), transform 1s var(--ease); }
.project__cover:hover img { filter: none; transform: scale(1.03); }
.zoom-hint { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; background: var(--red); color: #fff; transition: background-color .3s; }
.zoom-hint .icon { width: 1.2rem; height: 1.2rem; }
.project__cover:hover .zoom-hint { background: var(--gray-900); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); gap: .5rem; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.gallery a { position: relative; display: block; overflow: hidden; background: var(--gray-200); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s var(--ease), transform .8s var(--ease); }
.gallery a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.gallery a:hover img { filter: none; transform: scale(1.06); }
.gallery a:hover::after { transform: none; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2rem; font-weight: 600; font-size: .95rem; color: var(--gray-500); text-decoration: none; }
.back-link .icon { width: 1.05em; height: 1.05em; transform: rotate(-90deg); }
.back-link:hover { color: var(--red); }

/* 21  Contact page --------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 1100px) { .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.ctable { margin: 0; border-top: 1px solid var(--gray-300); }
.ctable > div { display: grid; gap: .3rem 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--gray-200); }
@media (min-width: 560px) { .ctable > div { grid-template-columns: 7rem minmax(0, 1fr); } }
.ctable dt { font-size: .95rem; font-weight: 600; color: var(--red); }
.ctable dd { font-size: 1.25rem; font-weight: 400; line-height: 1.4; letter-spacing: -.015em; color: var(--gray-900); overflow-wrap: anywhere; }
.ctable dd a { text-decoration: none; }
.ctable dd a:hover { color: var(--red); }
.ctable__small { font-size: 1rem !important; color: var(--gray-600) !important; }
.ctable__actions { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .55rem; }
.mini-btn { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border: 0; background: none; font-size: .95rem; font-weight: 600; color: var(--gray-700); text-decoration: none; box-shadow: 0 1px 0 var(--gray-300); transition: color .2s, box-shadow .2s; }
.mini-btn .icon { width: 1rem; height: 1rem; }
.mini-btn:hover { color: var(--red); box-shadow: 0 1px 0 var(--red); }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-size: .95rem; font-weight: 600; color: var(--gray-900); }
.field label span { color: var(--red); }
.field input, .field textarea, .field select { width: 100%; min-height: 3.3rem; padding: .8rem 1rem; border: 1px solid var(--gray-300); background: #fff; font-size: 1.02rem; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 10.5rem; resize: vertical; line-height: 1.55; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--gray-500); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gray-900); box-shadow: inset 0 -3px 0 var(--red); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--red); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d434b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.15rem; padding-right: 3rem; }
.form__note { max-width: 24rem; font-size: .95rem; color: var(--gray-600); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.map-embed { position: relative; height: clamp(320px, 42vw, 500px); margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--gray-100); overflow: hidden; isolation: isolate; border: 1px solid var(--gray-200); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.map-embed__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1.5rem; text-align: center; }
.map-embed__placeholder::before { content: ""; position: absolute; z-index: -1; inset: 0; background: url("../img/world-dots.svg") center / cover no-repeat; opacity: .6; }
.map-embed__pin { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; background: var(--red); color: #fff; }
.map-embed__pin .icon { width: 1.5rem; height: 1.5rem; }
.map-embed__placeholder strong { padding: .2rem .6rem; background: #fff; font-size: 1.4rem; font-weight: 500; letter-spacing: -.03em; color: var(--gray-900); }
.map-embed__placeholder p { max-width: 30rem; padding: .4rem .75rem; background: rgba(255, 255, 255, .9); font-size: .98rem; color: var(--gray-700); }

/* 22  Login, legal, 404 ---------------------------------------------------- */
.login { display: grid; min-height: 100svh; background: var(--white); }
@media (min-width: 900px) { .login { grid-template-columns: 1.05fr 1fr; } }
.login__panel { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: clamp(1.75rem, 4vw, 3.5rem); background: var(--gray-900); color: #c4c9d0; overflow: hidden; }
.login__panel::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(23, 25, 29, .7), rgba(23, 25, 29, .93)), url("../img/bg/lab-1600.webp") 60% 30% / cover no-repeat; filter: grayscale(1); }
.login__panel::after { content: ""; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.login__panel .brand { color: #fff; align-self: flex-start; }
.login__panel h1 { max-width: 12ch; margin-top: 1.25rem; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 200; line-height: .96; letter-spacing: -.05em; color: #fff; }
.login__panel h1 b { font-weight: 600; color: #ff5a52; }
.login__panel p { max-width: 26rem; margin-top: 1.25rem; color: #aab0b9; }
.login__panel .kicker { color: #c4c9d0; }
.login__back { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #fff; text-decoration: none; }
.login__back .icon { width: 1.1em; height: 1.1em; transform: rotate(180deg); }
.login__back:hover { color: #ff5a52; }
.login__form-wrap { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4rem) var(--gutter); }
.login__form { width: min(100%, 26rem); animation: rise .8s var(--ease) both; }
.login__form h2 { margin-bottom: .5rem; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.login__form .lead { margin-bottom: 2rem; font-size: 1.08rem; }
.login__form .btn { width: 100%; justify-content: space-between; margin-top: .5rem; }
.login__foot { margin-top: 1.5rem; font-size: .98rem; color: var(--gray-600); }
.login__foot a { color: var(--red); font-weight: 600; }
.pw-field { position: relative; }
.pw-field input { padding-right: 3.5rem; }
.pw-toggle { position: absolute; right: 1px; bottom: 1px; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 0; border-left: 1px solid var(--gray-200); background: none; color: var(--gray-500); }
.pw-toggle:hover { color: var(--gray-900); background: var(--gray-50); }
.pw-toggle .icon { width: 1.2rem; height: 1.2rem; }

.legal { max-width: 52rem; }
.legal h2 { margin: 3rem 0 1rem; font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 400; letter-spacing: -.035em; }
.legal h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--gray-600); }
.legal p + p { margin-top: 1rem; }
.legal ul { padding-left: 1.25rem; margin: 1rem 0; display: grid; gap: .6rem; }
.legal li::marker { color: var(--red); }
.legal a { color: var(--red); font-weight: 600; }
.legal .note { margin-bottom: 2.5rem; padding: 1.25rem 1.5rem; border-left: 4px solid var(--red); background: var(--gray-50); font-size: 1rem; color: var(--gray-700); }

/* 404: a row of slats — one is missing */
.lost { min-height: 100svh; display: grid; align-content: center; gap: clamp(2rem, 5vw, 3.5rem); padding: calc(var(--header-h) + 2rem) 0 4rem; background: var(--white); }
.lost__slats { --n: 12; height: clamp(120px, 20vw, 240px); }
.lost__slats .slat { animation-name: slat-up; background: var(--gray-200); }
.lost__slats .slat:nth-child(2n) { background: var(--gray-100); }
.lost__slats .slat--gap { background: transparent; animation: none; outline: 2px dashed var(--gray-300); outline-offset: -2px; }
.lost__slats .slat--gap::after { content: "404"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 200; letter-spacing: -.04em; color: var(--red); }
@keyframes slat-up { from { transform: translateY(100%); } to { transform: none; } }
@media (max-width: 699.98px) { .lost__slats { --n: 6; } .lost__slats .slat:nth-child(n + 7) { display: none; } }
.lost__title { max-width: 14ch; font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 200; line-height: .96; letter-spacing: -.055em; color: var(--gray-900); }
.lost__title b { font-weight: 600; color: var(--red); }
.lost__text { max-width: 32rem; margin: 1.25rem 0 2rem; color: var(--gray-600); }

/* 23  Lightbox ------------------------------------------------------------- */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15, 16, 19, .97); color: #fff; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(15, 16, 19, .78); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s var(--ease); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem .85rem 1.5rem; font-size: .98rem; font-weight: 600; color: #aab0b9; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(.5rem, 6vw, 5.5rem); touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.lightbox__img.is-loading { opacity: 0; transform: scale(.98); }
.lightbox__caption { padding: 1rem 1.5rem 1.5rem; text-align: center; color: #d0d4da; }
.lb-btn { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 1px solid rgba(255, 255, 255, .3); background: rgba(15, 16, 19, .6); color: #fff; transition: background-color .2s, border-color .2s; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-btn svg { width: 1.3rem; height: 1.3rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(.5rem, 1.5vw, 1.5rem); }
.lightbox__next { right: clamp(.5rem, 1.5vw, 1.5rem); }
.lightbox__prev svg { transform: rotate(180deg); }
@media (max-width: 699.98px) { .lightbox__prev, .lightbox__next { top: auto; bottom: .5rem; transform: none; } }
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 300; padding: .9rem 1.4rem; background: var(--gray-900); color: #fff; font-weight: 500; border-left: 4px solid var(--red); transform: translate(-50%, 150%); transition: transform .4s var(--ease); }
.toast.is-shown { transform: translate(-50%, 0); }

/* 24  Motion, reveal, print ------------------------------------------------ */
/* Scroll reveals. Hidden only when scripting is available, so no-JS visitors see everything. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
@media print {
  .site-header, .logos, .cta, .filters, .map-embed, .band, .hero__slats { display: none !important; }
  .hero, .page-hero { padding-top: 0; min-height: 0; }
  body { font-size: 11pt; }
}
.mb-s { margin-bottom: 1.5rem; }
@media (max-width: 519.98px) {
  .hero__facts > div { padding: 1rem 1rem 1.25rem 0; }
  .hero__facts > div + div { padding-left: 1rem; }
  .hero__facts dt { font-size: 1.35rem; }
  .hero__facts dd { font-size: .85rem; }
}
@media (min-width: 1100px) { #projects .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699.98px) { .slat__where { display: none; } }
@media (max-width: 519.98px) { .pcard__media { aspect-ratio: 4 / 3; } }
