/* Nittan Euro Tech — site layout. Tokens live in brand/css/brand.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--n-navy-900);
  color: var(--n-white);
  font: 500 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font: 400 12px/1.5 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }

/* page gutter + header height: generous on desktop so the logo doesn't sit in the corner */
:root { --gutter: 72px; --header-h: 112px; --text-body: clamp(17px, .85vw + 5px, 19px); --wrap: 1320px; }   /* --wrap: content column for text blocks on wide screens */   /* running text: 17px on laptops → 19px on big screens */
@media (max-width: 1023px) { :root { --gutter: 32px; --header-h: 80px; } }
@media (max-width: 767px)  { :root { --gutter: 20px; --header-h: 72px; } }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--n-navy); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
}
.site-logo { display: inline-flex; align-items: center; justify-self: start; }
.site-logo__full { width: 172px; height: auto; }
.site-logo__mark { display: none; width: 96px; height: auto; }

.site-nav { display: flex; gap: 40px; justify-self: center; }
.site-nav a {
  font: 500 14px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 0; position: relative;
  transition: color .2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: #fff; transition: right .25s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }

.site-tools { display: flex; align-items: center; gap: 16px; justify-self: end; }
.site-lang {
  font: 500 15px/1 var(--font-sans); letter-spacing: .01em; text-decoration: none;
  color: rgba(255,255,255,.85); padding: 14px 8px; transition: color .2s;
}
.site-lang:hover { color: #fff; }

.burger {
  width: 54px; height: 54px; border-radius: 999px; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
  color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  box-shadow: var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  transition: background .2s;
}
.burger:hover { background: rgba(255,255,255,.2); }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* below 1200px the five links no longer fit between logo and tools — burger menu takes over */
@media (max-width: 1199px) {
  .site-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
}
@media (max-width: 767px) {
  .site-logo__full { display: none; }
  .site-logo__mark { display: block; }
}

/* ---------- full-screen menu ---------- */
.menu[hidden] { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(3, 29, 66, .78);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 8vh) var(--gutter) 32px;
  animation: menu-in .3s ease both;
}
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .menu { animation: none; } }
.menu__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1100px; }
.menu__col { display: flex; flex-direction: column; gap: 14px; }
.menu__col > a {
  font: 300 clamp(24px, 2.6vw, 34px)/1.1 var(--font-sans); text-decoration: none;
  color: rgba(255,255,255,.88); transition: color .2s, transform .2s;
}
.menu__col > a:hover { color: #fff; transform: translateX(6px); }
.menu__label { margin: 0 0 6px; font: 400 12px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--n-ice); opacity: .7; }
.menu__label--gap { margin-top: 28px; }
.menu__portal { font-size: clamp(20px, 2vw, 26px) !important; }
.menu__langs { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.menu__langs a { font: 500 14px/1 var(--font-sans); text-decoration: none; color: rgba(255,255,255,.7); padding: 8px 0; }
.menu__langs a[aria-current], .menu__langs a:hover { color: #fff; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.6); }
.menu__foot a { text-decoration: none; }
@media (max-width: 767px) {
  .menu__inner { grid-template-columns: 1fr; gap: 28px; }
  .menu { overflow-y: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) clamp(72px, 16vh, 180px);
  background: var(--n-navy-900) url("../media/hero-poster.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  /* light tint only — the headline should sit on the footage, not on a dark band */
  background:
    linear-gradient(180deg, rgba(3,29,66,.35) 0%, rgba(3,29,66,0) 26%),
    linear-gradient(0deg,   rgba(3,29,66,.60) 0%, rgba(3,29,66,.22) 45%, rgba(3,29,66,0) 78%);
}
.hero__content { max-width: min(1320px, 80vw); }
.hero__eyebrow { margin: 0 0 24px; font-size: 13px; color: var(--n-ice); opacity: .9; text-wrap: balance; }
.hero__title {
  margin: 0 0 40px;
  font: 300 clamp(44px, 6.6vw, 108px)/0.95 var(--font-sans);
  letter-spacing: -.015em; text-wrap: balance;
  text-shadow: 0 2px 28px rgba(3,29,66,.45);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- the one button: glass pill everywhere (brand.css .btn-glass, resized) ----------
   Dark media: white-tinted glass (defaults). Light sections set the three props to a navy tint. */
.btn-glass {
  height: 56px; padding: 0 28px; font-size: 15px;
  color: var(--btn-fg, #fff);
  background: var(--btn-bg, rgba(255,255,255,.12));
  border-color: var(--btn-line, rgba(255,255,255,.28));
  transition: transform .15s, background .2s, border-color .2s;
}
.btn-glass:hover { transform: translateY(-1px); background: var(--btn-bg-hover, rgba(255,255,255,.2)); }
.products, .values, .plants, .contact {
  --btn-fg: var(--n-navy);
  --btn-bg: rgba(0, 70, 142, .07);
  --btn-bg-hover: rgba(0, 70, 142, .13);
  --btn-line: rgba(0, 70, 142, .3);
}

.hero__coords {
  position: absolute; right: var(--gutter); bottom: clamp(72px, 16vh, 180px);
  margin: 0; text-align: right; color: rgba(255,255,255,.55);
}
@media (max-width: 767px) {
  .hero__coords { display: none; }
  .hero__actions a { flex: 1 1 100%; justify-content: center; }
  .hero__title { margin-bottom: 24px; }
}

/* ---------- products (light cards carousel, Rimac "modules" pattern) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.products {
  padding: clamp(88px, 12vh, 136px) 0 clamp(72px, 10vh, 120px);
  background: #fff; color: var(--n-ink);
}
.products__head { display: flex; justify-content: flex-end; padding: 0 var(--gutter); margin-bottom: clamp(28px, 4vh, 48px); }
.products__nav { display: flex; gap: 18px; }
.arrow {
  width: 44px; height: 44px; padding: 0; cursor: pointer; display: grid; place-items: center;
  color: var(--n-ink); background: none; border: 0;
  transition: color .2s, transform .15s;
}
.arrow svg { width: 30px; height: 30px; }
.arrow:hover:not(:disabled) { color: var(--n-navy); }
.arrow:disabled { color: #C9CED6; cursor: default; }

.products__track {
  --cols: 3; --gap: 24px; --reveal: 36px;
  display: flex; gap: var(--gap); margin: 0; padding: 0 var(--gutter) var(--reveal); list-style: none;
  /* padding-bottom == the cards' reveal offset: overflow-x:auto forces overflow-y to auto, so any vertical overflow would make the track wheel-scroll up and down */
  overflow: auto hidden; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.products__track::-webkit-scrollbar { display: none; }
@media (max-width: 1199px) { .products__track { --cols: 2; } }
@media (max-width: 767px)  { .products__track { --cols: 1.15; --gap: 16px; } }

.pcard {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  scroll-snap-align: start;
  opacity: 0; transform: translateY(var(--reveal));
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.pcard.is-in { opacity: 1; transform: none; }
.pcard__link { display: block; color: inherit; text-decoration: none; }

/* image plate — flat light grey like the reference; definite height so tall parts scale down instead of stretching the card */
.pcard__media {
  position: relative; height: clamp(250px, 23vw, 330px);
  background: #EEF2F7; border-radius: var(--radius);
  transition: background .3s;
}
.pcard:hover .pcard__media { background: #E6ECF4; }
.pcard__float { position: absolute; inset: 9% 8%; display: grid; place-items: center; }   /* no idle motion — the user wants the slider to sit still */
.pcard__media img {
  width: 100%; height: 100%; min-height: 0; object-fit: contain;   /* min-height:0 — grid items otherwise refuse to shrink below intrinsic size */
  filter: drop-shadow(0 22px 26px rgba(3, 29, 66, .18));
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.pcard:hover .pcard__media img { transform: scale(1.04); }

.pcard__body { padding: 28px 0 0; }
.pcard__title {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px;
  font: 300 clamp(28px, 2.4vw, 40px)/1.1 var(--font-sans); letter-spacing: -.015em;
}
.pcard__arrow { flex-shrink: 0; width: 24px; height: 24px; color: var(--n-navy); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .pcard__arrow { transform: translate(4px, -4px); }
.pcard__text { margin: 0; max-width: 92%; font-size: var(--text-body); line-height: 1.5; color: #4B4845; }

@media (prefers-reduced-motion: reduce) {
  .pcard { opacity: 1; transform: none; transition: none; }
  .pcard__media img, .pcard__arrow { transition: none; }
}
@media (max-width: 767px) {
  .products__head { display: none; }             /* swipe instead of arrows; heading is visually hidden anyway */
  .pcard__body { padding-top: 20px; }
}

/* ---------- company (grey band: wide plant photo, centred statement, one CTA — Rimac "about" pattern) ---------- */
.about {
  padding: clamp(80px, 11vh, 128px) var(--gutter) clamp(88px, 12vh, 136px);
  background: var(--n-navy-900); color: #fff; text-align: center;   /* same navy as the customers band and the page ground */
}
.about__media { margin: 0 auto; width: min(100%, max(1240px, 78vw)); overflow: hidden; }   /* 1240 on laptops, grows with the screen above 1590px */
.about__media img {
  width: 100%; height: auto; aspect-ratio: 2400 / 1095; object-fit: cover;
  transform: scale(1.04); transition: transform 1.6s cubic-bezier(.2,.7,.2,1);   /* settles to 1:1 as it reveals */
}
.about__media.is-in img { transform: none; }
.about__text { max-width: 840px; margin: clamp(44px, 6vh, 64px) auto 0; }
.about__title { max-width: 720px; margin: 0 auto 22px; font: 300 clamp(34px, 3.7vw, 54px)/1.1 var(--font-sans); letter-spacing: -.015em; text-wrap: balance; }   /* narrower than the paragraph so it keeps two lines like the reference */
.about__lead { margin: 0 auto 34px; max-width: 840px; font-size: var(--text-body); line-height: 1.5; color: rgba(255,255,255,.82); text-wrap: pretty; }

/* scroll reveal for any block marked data-reveal (cards have their own staggered version) */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .about__media img { transform: none; transition: none; }
}
@media (max-width: 767px) {
  .about__media { width: auto; margin: 0 calc(-1 * var(--gutter)); }   /* full-bleed photo on phones (width:auto lets the negative margins stretch it) */
  .about__media img { aspect-ratio: 4 / 3; }
}

/* ---------- values & role of the plant (white: photo + copy left, pinned scroll-driven engine right) ---------- */
.values { padding: clamp(80px, 11vh, 128px) var(--gutter) clamp(72px, 10vh, 120px); background: #fff; color: var(--n-ink); }
.values__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px);
  align-items: start; min-height: 160vh;                 /* extra height = scroll distance for the engine (one cycle) */
}
.values__copy { display: flex; flex-direction: column; gap: clamp(36px, 5vh, 56px); }
.values__photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.values__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.values__title { margin: 0; font: 300 clamp(34px, 3.4vw, 50px)/1.08 var(--font-sans); letter-spacing: -.015em; text-wrap: balance; }
.values__block h3 { margin: 0 0 12px; font: 500 clamp(20px, 1.4vw, 24px)/1.2 var(--font-sans); letter-spacing: -.01em; }
.values__block p { margin: 0; max-width: 58ch; font-size: var(--text-body); line-height: 1.55; color: #4B4845; text-wrap: pretty; }

/* core values — cards shaped like the reference (square corners, tall, icon → big light title → text), finished as our liquid glass */
.values__block { container-type: inline-size; }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@container (min-width: 1040px) { .values__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* four in a row, like the reference, when there is room */
@container (max-width: 540px)  { .values__list { grid-template-columns: 1fr; } }
.values__list li, .plant {
  position: relative; overflow: hidden; padding: 32px 30px 34px; border-radius: 0;
  display: flex; flex-direction: column;
  /* same glass as the light-section button: navy tint, 1px navy line, top highlight, blur */
  background: linear-gradient(118deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%), var(--btn-bg);
  border: 1px solid var(--btn-line);
  box-shadow: var(--glass-highlight);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
  transition: transform .4s cubic-bezier(.2,.7,.2,1), background .3s;
}
.values__list li::after, .plant::after {                     /* soft specular, keeps the liquid feel without changing the tone */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 18% 0%, rgba(255,255,255,.8), transparent 70%);
}
.values__list li > *, .plant > * { position: relative; z-index: 1; }
.values__list li:hover, .plant:hover { transform: translateY(-2px); background: linear-gradient(118deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 55%), var(--btn-bg-hover); }
.values__icon, .plant__logo {                               /* viewfinder corner brackets, as in the reference, in our navy */
  --c: var(--n-navy);
  width: 72px; height: 72px; display: grid; place-items: center; color: var(--n-navy);
  --brackets:
    linear-gradient(var(--c), var(--c)) top left     / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top left     / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right    / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top right    / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left  / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom left  / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 16px no-repeat;
  background: var(--brackets);
}
.values__icon svg { width: 34px; height: 34px; display: block; }
.values__list strong {
  display: block; margin: clamp(44px, 6vh, 84px) 0 14px;
  font: 300 clamp(26px, 2vw, 32px)/1.1 var(--font-sans); letter-spacing: -.015em; color: var(--n-navy); text-wrap: balance;
}
.values__list span:not(.values__icon) { font-size: var(--text-body); line-height: 1.5; color: #4B4845; }

.values__engine { position: relative; align-self: stretch; }   /* full row height so the sticky engine has room to travel */
.values__sticky {
  position: sticky; top: calc(var(--header-h) + 4vh);
  height: calc(100vh - var(--header-h) - 8vh); display: grid; place-items: center;
}
.engine { width: auto; height: auto; max-width: 100%; max-height: 100%; }   /* intrinsic size set by JS from the first frame */

@media (max-width: 1023px) {
  .values__grid { grid-template-columns: 1fr; min-height: 0; gap: 40px; }
  .values__sticky { position: static; height: auto; }
  .engine { max-height: 60vh; }
}

/* ---------- full-screen scroll scene (edge to edge; the section's extra height is the scrub distance) ---------- */
.scene { position: relative; height: 400vh; background: #363636; }          /* 300vh of pinned scrub; the frames' edge tone while they load */
@media (min-width: 1024px) {
  .values__copy { padding-bottom: 100vh; }     /* makes the row one viewport taller, so the engine stays pinned one viewport longer… (padding on the sticky's own column would not extend its range) */
  .scene { margin-top: -100vh; }               /* …while the scene slides up over it (later in the DOM, so it paints on top) */
}
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__canvas { display: block; width: 100%; height: 100%; object-fit: cover; }   /* intrinsic size set by JS from the first frame */
@media (prefers-reduced-motion: reduce) { .scene { height: 100vh; } }

/* ---------- company history, laid over the coastal drive of the scene (frames 139–232) ---------- */
.scene__sticky::after {                        /* soft navy scrim under the header so white type reads over the bright sky; fades in with the timeline */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(3,29,66,.32), rgba(3,29,66,0) 42%);
  opacity: min(1, var(--axis, 0) * 4);
}
.history { position: absolute; z-index: 2; left: 16%; right: 16%; top: calc(var(--header-h) + 10px); }
.history__label {                             /* light title centred over the axis; fades in with the first disc */
  margin: 0 0 16px; text-align: center;
  font: 300 clamp(22px, 1.6vw, 30px)/1.1 var(--font-sans); letter-spacing: -.01em;
  color: #fff; opacity: 0; transition: opacity .7s; text-shadow: 0 1px 12px rgba(0,0,0,.45);
}
.history.is-in .history__label { opacity: 1; }
.history__list { position: relative; margin: 0; padding: 0; list-style: none; display: flex; }
.history__list::before {                       /* dashed axis through the disc centres; --axis (0…1, set by site.js) grows it */
  content: ""; position: absolute; left: calc(100% / 16); right: calc(100% / 16); top: 32px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 5px, transparent 5px 11px);
  clip-path: inset(0 calc((1 - var(--axis, 0)) * 100%) 0 0);
}
.history__list li {
  flex: 1 1 0; min-width: 0; padding: 0 4px; text-align: center;
  opacity: 0; transform: translateY(14px) scale(.92);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.history__list li.is-in { opacity: 1; transform: none; }
.history__list time {                          /* glass disc, same family as the buttons and the value tiles */
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  font: 600 15px/1 var(--font-sans); letter-spacing: .01em; color: #fff;
  background: linear-gradient(150deg, rgba(255,255,255,.36), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.history__list span { display: block; font: 500 12.5px/1.3 var(--font-sans); color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
@media (max-width: 1023px) {                   /* phones and tablets: the frame is cropped to the car, so the timeline runs as a column */
  .history { left: var(--gutter); right: auto; top: calc(var(--header-h) + 20px); }
  .history__label { text-align: left; font-size: 22px; margin-bottom: 14px; }
  .history__list { flex-direction: column; gap: 10px; }
  .history__list::before {
    left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.75) 0 5px, transparent 5px 11px);
    clip-path: inset(0 0 calc((1 - var(--axis, 0)) * 100%) 0);
  }
  .history__list li { display: flex; align-items: center; gap: 14px; padding: 0; text-align: left; }
  .history__list time { width: 44px; height: 44px; margin: 0; font-size: 13px; flex: none; }
  .history__list span { font-size: 13px; max-width: calc(100vw - var(--gutter) * 2 - 58px); }
}

/* ---------- OEM customers: one-style white marks in a slow marquee (Rimac "we supply" band) ---------- */
.oems { padding: clamp(72px, 9vw, 140px) 0; background: var(--n-navy-900); color: #fff; overflow: hidden; }
.oems__title {
  margin: 0 var(--gutter) clamp(48px, 5vw, 84px); text-align: center;
  font: 300 clamp(28px, 2.6vw, 40px)/1.15 var(--font-sans); letter-spacing: -.015em; text-wrap: balance;
}
.oems__viewport {                              /* soft edges so marks fade in and out instead of being cut */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.oems__marquee { display: flex; width: max-content; animation: oems-scroll 70s linear infinite; }   /* two identical tracks, shift by one */
.oems__viewport:hover .oems__marquee { animation-play-state: paused; }
.oems__track { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.oems__track li { padding: 0 clamp(36px, 4vw, 80px); }                  /* half-gap on each side keeps the seam between copies even */
.oems__track img { height: clamp(112px, 10vw, 168px); width: auto; }         /* uniform 240×80 canvases → the same box for every mark */
@keyframes oems-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .oems__marquee { animation: none; width: auto; }
  .oems__track { flex-wrap: wrap; justify-content: center; row-gap: 32px; }
  .oems__track[aria-hidden] { display: none; }
}

/* ---------- customer plants: where the valves are delivered (white; Canva slide 10 rebuilt as cards) ---------- */
.plants { padding: clamp(80px, 11vh, 128px) var(--gutter) clamp(88px, 12vh, 136px); background: #fff; color: var(--n-ink); }
.plants__head { max-width: 760px; margin: 0 0 clamp(40px, 5vw, 64px); }
.plants__title { margin: 0 0 18px; font: 300 clamp(34px, 3.4vw, 50px)/1.08 var(--font-sans); letter-spacing: -.015em; text-wrap: balance; }
.plants__lead { margin: 0; font-size: var(--text-body); line-height: 1.5; color: #4B4845; text-wrap: pretty; }
.plants__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.plant { padding: 0; }                                                 /* shares the glass tile recipe with .values__list li; photo sits flush at the top */
.plant__media { position: relative; overflow: hidden; background: #EEF2F7; aspect-ratio: 3 / 2; }
.plant__media img { width: 100%; height: 100%; object-fit: cover; }
.plant__body { padding: 28px 30px 34px; }
.plant__logos { position: absolute; top: 16px; left: 16px; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }   /* marks sit in the photo's corner */
.plant__logo {                                                          /* bracket box from .values__icon, white on a frosted navy plate so it reads on any photo */
  --c: #fff; width: 144px;
  background: var(--brackets), linear-gradient(rgba(3,29,66,.3), rgba(3,29,66,.3));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.plant__logo i {                                                        /* the white uniform mark re-tinted navy through a mask, so one file set serves both grounds */
  display: block; width: 100%; height: 100%; background: #fff;
  -webkit-mask: var(--mark) center / 88% auto no-repeat; mask: var(--mark) center / 88% auto no-repeat;
}
.plant__name { margin: 0 0 8px; font: 300 clamp(22px, 1.6vw, 28px)/1.15 var(--font-sans); letter-spacing: -.01em; color: var(--n-navy); }
.plant__sub { margin: 0; font-size: 15px; line-height: 1.45; color: #4B4845; }
@media (max-width: 1023px) { .plants__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 639px)  { .plants__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ: square rows with one thin line each, label column left (Rimac spec-table pattern), smooth open/close ---------- */
.faq { padding: clamp(80px, 11vh, 128px) var(--gutter) clamp(88px, 12vh, 136px); background: var(--n-navy-900); color: #fff; }
.faq__title { max-width: 760px; margin: 0 0 clamp(40px, 5vw, 64px); font: 300 clamp(34px, 3.4vw, 50px)/1.08 var(--font-sans); letter-spacing: -.015em; text-wrap: balance; }
.faq__list { border-top: 1px solid rgba(255,255,255,.18); }
.faq__item { display: grid; grid-template-columns: minmax(180px, 22%) 1fr; column-gap: 24px; padding: 34px 0 36px; border-bottom: 1px solid rgba(255,255,255,.18); }
.faq__label { padding-top: 10px; color: var(--n-ice); opacity: .75; }
.faq__q { margin: 0; }
.faq__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; width: 100%;
  padding: 0; border: 0; background: none; color: #fff; text-align: left; cursor: pointer;
  font: 300 clamp(24px, 2vw, 34px)/1.2 var(--font-sans); letter-spacing: -.015em;
}
.faq__btn:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; margin-top: .3em; }          /* plus that folds into a minus */
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 1.5px; background: #fff;
  transform: translate(-50%, -50%); transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.faq__a { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,.7,.2,1); }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { max-width: 720px; margin: 22px 0 0; font-size: var(--text-body); line-height: 1.55; color: rgba(255,255,255,.82); text-wrap: pretty; }
.is-open .faq__a { grid-template-rows: 1fr; }
@media (max-width: 767px) {
  .faq__item { grid-template-columns: 1fr; row-gap: 10px; padding: 26px 0 28px; }
  .faq__label { padding-top: 0; }
  .faq__a { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .faq__a, .faq__icon::before, .faq__icon::after { transition: none; } }

/* ---------- contact: white like the other light blocks, underline fields, full-width glass button (Rimac "get in touch" form) ---------- */
.contact { padding: clamp(88px, 12vh, 150px) var(--gutter); background: #fff; color: var(--n-ink); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 120px); align-items: start; max-width: var(--wrap); margin: 0 auto; }
.contact__title { margin: 0 0 22px; font: 300 clamp(40px, 4.2vw, 68px)/1.02 var(--font-sans); letter-spacing: -.02em; }
.contact__lead { margin: 0; font-size: var(--text-body); line-height: 1.5; color: #4B4845; }
.contact__lead strong { font-weight: 500; color: var(--n-ink); }
.contact__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 32px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {                /* a single hairline under each field, as in the reference */
  display: block; width: 100%; padding: 8px 0 12px; border: 0; border-bottom: 1px solid rgba(0,70,142,.35); border-radius: 0;
  background: none; color: var(--n-ink); font: 500 16px/1.4 var(--font-sans); transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6B6764; }
.field textarea { min-height: 44px; resize: none; overflow: hidden; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--n-navy); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #E72D2E; }
.consent { display: flex; gap: 12px; align-items: center; margin-top: 6px; font-size: 15px; line-height: 1.4; color: #4B4845; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--n-navy); }
.consent a { color: var(--n-navy); }
.contact__actions { margin-top: 10px; }
.contact__actions .btn-glass { width: 100%; justify-content: center; cursor: pointer; font-family: inherit; }
.contact__actions .btn-glass:disabled { opacity: .6; cursor: default; }
.contact__status { min-height: 1.4em; margin: 14px 0 0; font-size: 15px; color: #4B4845; }
@media (max-width: 1023px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 639px)  { .contact__form { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- footer: Rimac footer anatomy on navy — logo, brand column, mono-labelled link columns, legal line ---------- */
.footer { padding: clamp(72px, 9vw, 120px) var(--gutter) 40px; background: var(--n-navy-900); color: #fff; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; }
.footer__logo { display: inline-block; }
.footer__logo img { width: 172px; height: auto; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px 32px; margin-top: clamp(48px, 6vw, 96px); }
.footer__name { margin: 0 0 18px; font: 500 clamp(18px, 1.3vw, 22px)/1.25 var(--font-sans); }
.footer__addr, .footer__contact { margin: 0 0 14px; font: 400 15px/1.6 var(--font-sans); font-style: normal; color: rgba(255,255,255,.75); }
.footer__contact a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); transition: color .2s, border-color .2s; }
.footer__contact a:hover { color: #fff; border-color: #fff; }
.footer__col h2 { margin: 0 0 26px; color: var(--n-ice); opacity: .75; }
.footer__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.footer__col li { font: 300 clamp(18px, 1.35vw, 22px)/1.25 var(--font-sans); letter-spacing: -.01em; }
.footer__col a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.footer__col a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.footer__col svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px;
  margin-top: clamp(56px, 7vw, 100px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18);
  font-size: 14px; color: rgba(255,255,255,.65);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.footer__legal a { color: inherit; text-decoration: none; transition: color .2s; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 639px)  { .footer__grid { grid-template-columns: 1fr; } }
