/* ============================================================
   Barayev Group
   Mobile-first. Base styles target the narrowest screen and
   min-width queries widen from there, so the phone layout is
   never a set of overrides fighting the desktop rules.
   Logical properties (inline/block) throughout so the same
   CSS serves both the Hebrew RTL and English LTR directions.
   ============================================================ */

/* ─── Tokens ─────────────────────────────────────────────── */

:root {
  /* Brand */
  --navy-900: #0a2540;
  --navy-800: #0e3158;
  --navy-700: #14406f;
  --gold: #bd9b60;
  --gold-bright: #d4b57c;

  /* Neutrals. --ink-3 is the lightest text that still clears
     WCAG AA (4.5:1) on --surface; anything lighter is for dark
     backgrounds only, hence --on-dark-muted. */
  --ink-1: #0a2540;
  --ink-2: #3d4d5f;
  --ink-3: #5a6a7c;
  --on-dark: #ffffff;
  --on-dark-muted: #b4c5d6;
  --on-dark-faint: #8899a6;

  /* Surfaces */
  --surface: #f4f6f9;
  --surface-raised: #ffffff;
  --line: #e1e8ed;
  --line-strong: #cfd9e2;

  /* Type */
  --font: 'Inter', 'Heebo', 'Segoe UI', Tahoma, sans-serif;
  --step-display: clamp(2.125rem, 1.35rem + 3.4vw, 4rem);
  --step-h2: clamp(1.625rem, 1.28rem + 1.5vw, 2.5rem);
  --step-h3: clamp(1.125rem, 1.03rem + 0.42vw, 1.375rem);
  --step-body: clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --step-lead: clamp(1.0625rem, 0.99rem + 0.32vw, 1.1875rem);
  --step-small: 0.8125rem;
  --step-micro: 0.6875rem;

  /* Space */
  --gutter: clamp(1.25rem, 0.9rem + 1.75vw, 2.5rem);
  --section-y: clamp(3.5rem, 2.4rem + 5vw, 6.5rem);
  --container: 1140px;

  /* Depth & motion */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-2: 0 4px 16px rgba(10, 37, 64, 0.08);
  --shadow-3: 0 18px 48px rgba(10, 37, 64, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.35s;

  --header-h: 60px;
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
}

/* ─── Reset & base ───────────────────────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  /* Stops iOS inflating text when the device is rotated. */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  /* Safety net only — no fixed widths are used anywhere below. */
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 { color: var(--ink-1); line-height: 1.2; font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: var(--on-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  transition: inset-block-start 0.2s var(--ease);
}
.skip-link:focus { inset-block-start: 0; }

/* ─── Layout helpers ─────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section-head {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-block-end: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
}

.eyebrow {
  display: block;
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: 0.875rem;
}

.section-title {
  font-size: var(--step-h2);
  letter-spacing: -0.02em;
}

.section-head--tight { margin-block-end: 0; }

.section-title + .section-sub { margin-block-start: 0.875rem; }

.section-sub {
  color: var(--ink-3);
  font-size: var(--step-lead);
  font-weight: 300;
  text-wrap: pretty;
}

.rule {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-inline: auto;
  margin-block-start: 1.25rem;
}

/* Revealed by IntersectionObserver in js/main.js. Elements stay
   visible if the script never runs — .is-visible only adds motion. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Header ─────────────────────────────────────────────── */

.header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-block-end: 1px solid transparent;
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-block-end-color: var(--line);
  box-shadow: var(--shadow-2);
}

.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 0.6rem;
  font-weight: 800;
  /* The wordmark does not wrap, so both size and tracking have to come
     down on very narrow screens or it pushes the header past 100vw. */
  font-size: clamp(0.8125rem, 0.62rem + 0.95vw, 1.1875rem);
  letter-spacing: clamp(0.5px, -0.6px + 0.28vw, 1.9px);
  color: var(--navy-900);
  white-space: nowrap;
}

.brand__mark {
  width: 7px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  flex-shrink: 0;
}

/* Desktop nav is hidden on phones; the overlay menu takes over. */
.nav { display: none; }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-btn {
  /* 44px minimum so it is comfortably tappable. */
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy-900);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.menu-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform var(--dur) var(--ease), opacity 0.2s var(--ease);
}

.menu-btn[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile menu ────────────────────────────────────────────
   A full-screen overlay rather than a side drawer: it needs no
   directional transform, so it behaves identically in RTL and
   LTR with no [dir] overrides.
   ───────────────────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding-block-start: calc(var(--header-h) + 2rem);
  padding-inline: var(--gutter);
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  /* Same delayed-visibility idiom as the accessibility panel, so the
     menu is focusable the instant it opens. */
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility 0s var(--dur);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility 0s 0s;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-dark);
  border-block-end: 1px solid rgba(255, 255, 255, 0.09);
  transition: color var(--dur) var(--ease);
}
.mobile-menu a:hover { color: var(--gold); }

/* Locked while the overlay is open so the page behind cannot scroll. */
body.is-menu-open { overflow: hidden; }

/* The header sits above the overlay, so its translucent background
   would otherwise let the navy panel show through and go muddy. */
body.is-menu-open .header {
  background: var(--surface-raised);
  border-block-end-color: transparent;
  box-shadow: none;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 0.5rem + 1.6vw, 2.25rem);
  }

  .nav a {
    position: relative;
    /* This breakpoint is reached by touch tablets too, so the links
       stay full-size tap targets rather than mouse-only ones. */
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: var(--step-small);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    transition: color var(--dur) var(--ease);
  }

  .nav a::after {
    content: '';
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--dur) var(--ease);
  }

  .nav a:hover { color: var(--navy-900); }
  .nav a:hover::after { transform: scaleX(1); }

  .menu-btn { display: none; }
  .mobile-menu { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero { background: var(--navy-900); }

.hero__intro {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
  text-align: center;
  color: var(--on-dark);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(189, 155, 96, 0.16), transparent 62%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 60%);
}

/* Faint blueprint grid — pure CSS, no image request. */
.hero__intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero__intro > * { position: relative; }

.hero__title {
  font-size: var(--step-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  text-wrap: balance;
}

.hero__lead {
  max-width: 40rem;
  margin-inline: auto;
  margin-block-start: 1.25rem;
  font-size: var(--step-lead);
  font-weight: 300;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 2.25rem;
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__scroll::after {
  content: '';
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ─── Divisions ──────────────────────────────────────────── */

.divisions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(189, 155, 96, 0.28);
}

.division {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: clamp(2.75rem, 2rem + 4vw, 4.5rem) var(--gutter);
  text-align: center;
  color: var(--on-dark);
}

/* The background is a separate layer so hover can scale it without
   resizing the anchor — the old flex:1.25 hover reflowed the page. */
.division__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.7s var(--ease), filter var(--dur) var(--ease);
}

.division--bmpro .division__bg {
  background:
    radial-gradient(90% 70% at 25% 15%, rgba(20, 64, 111, 0.85), transparent 70%),
    linear-gradient(135deg, #0a2540 0%, #0e3158 100%);
}

.division--watch .division__bg {
  background:
    radial-gradient(90% 70% at 75% 15%, rgba(58, 46, 92, 0.6), transparent 70%),
    linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* The division content is built from spans so it can sit inside the
   anchor; they need to be block-level to stack. */
.division__inner { display: block; max-width: 26rem; }

.division__tag {
  display: inline-block;
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-block-end: 1rem;
}

.division__title {
  display: block;
  font-size: var(--step-h3);
  font-weight: 700;
  color: var(--on-dark);
  line-height: 1.3;
}

.division__text {
  display: block;
  margin-block-start: 0.875rem;
  font-size: var(--step-body);
  font-weight: 300;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}

.division__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-block-start: 1.75rem;
  padding-inline: 1.5rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  font-size: var(--step-small);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* The arrow flips with the writing direction. */
.division__cta::after,
.link-arrow::after {
  content: '→';
  transition: transform var(--dur) var(--ease);
}
[dir='rtl'] .division__cta::after,
[dir='rtl'] .link-arrow::after { content: '←'; }

@media (min-width: 768px) {
  .divisions { grid-template-columns: 1fr 1fr; }
  .division { min-height: clamp(380px, 42vw, 460px); }
}

/* Hover effects apply only to real pointers, so a tap on a phone
   never leaves an element stuck in its hover state. */
@media (hover: hover) and (pointer: fine) {
  .division:hover .division__bg { transform: scale(1.06); filter: brightness(1.18); }
  .division:hover .division__cta { background: var(--gold); color: var(--navy-900); }
  .division:hover .division__cta::after { transform: translateX(-3px); }
  [dir='ltr'] .division:hover .division__cta::after { transform: translateX(3px); }
  .lang-btn:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }
  .link-arrow:hover { color: var(--navy-900); }
}

/* ─── Facts strip ────────────────────────────────────────── */

.facts {
  background: var(--surface-raised);
  border-block-end: 1px solid var(--line);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding-block: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  text-align: center;
}

.fact__value {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}

.fact__label {
  margin-block-start: 0.375rem;
  font-size: var(--step-small);
  color: var(--ink-3);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Premium partners marquee ───────────────────────────────
   WCAG 2.2.2 (Pause, Stop, Hide) is Level A, and ת"י 5568 adopts
   WCAG at AA — so anything that moves on its own past five seconds
   MUST be stoppable. The animation therefore pauses on three
   independent triggers: the toggle button, pointer hover, and
   keyboard focus landing anywhere inside the rail.
   ───────────────────────────────────────────────────────── */

.partners {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem);
}

.partners__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-block-end: 1.75rem;
  text-align: center;
}

.partners__title {
  font-size: var(--step-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}

.partners__note {
  font-size: var(--step-small);
  color: var(--ink-3);
}

/* The strip is a real horizontal scroller rather than a CSS keyframe
   animation. That is what lets the arrows drive it, and it gives touch
   users swipe and keyboard users arrow-key scrolling for free.
   js/main.js advances scrollLeft; nothing here animates on its own. */
.partners__viewport {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  /* html sets scroll-behavior: smooth for anchor jumps, and this would
     inherit it — every per-frame scrollLeft write would then kick off a
     fresh smooth animation that never settles, so the strip crawls and
     stalls. The arrows opt back into smooth for their one jump. */
  scroll-behavior: auto;
  /* The strip is driven by controls, so its own scrollbar is noise. */
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.partners__viewport::-webkit-scrollbar { display: none; }

.partners__track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(0.75rem, 0.5rem + 1.2vw, 1.75rem);
  padding-inline: clamp(0.375rem, 0.25rem + 0.6vw, 0.875rem);
  list-style: none;
  margin: 0;
}

/* Without JavaScript nothing scrolls it, so let it wrap into a static
   block instead of hiding logos off the edge. */
.partners:not(.is-ready) .partners__viewport { overflow-x: hidden; mask-image: none; -webkit-mask-image: none; }
.partners:not(.is-ready) .partners__track { width: 100%; flex-wrap: wrap; justify-content: center; }

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding-inline: clamp(1rem, 0.7rem + 1.4vw, 2rem);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

/* Kept for a partner supplied without a logo file. */
.partners__name {
  font-size: clamp(0.8125rem, 0.74rem + 0.32vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.partners__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* Optical sizing, as on the brand tiles: a stacked mark like Planet's
   globe-over-wordmark needs height, a long wordmark like Padani's needs
   reining in. max-width stops any one logo dominating the strip. */
.partners__track { --partner-base: 30px; }

.partners__item img {
  max-height: calc(var(--partner-base) * var(--logo-scale, 1));
  max-width: min(150px, 40vw);
  width: auto;
  object-fit: contain;
}

.logo--planet    { --logo-scale: 1.5; }  /* globe + wordmark + tagline */
.logo--kyt       { --logo-scale: 1.0; }
.logo--schneider { --logo-scale: 1.0; }
.logo--astral    { --logo-scale: 0.85; }
.logo--padani    { --logo-scale: 0.72; } /* long, heavy wordmark */

@media (min-width: 768px) {
  .partners__track { --partner-base: 38px; }
}

@media (hover: hover) and (pointer: fine) {
  .partners__item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
}

/* ── Controls ──────────────────────────────────────────────
   Arrows plus a pause, as one cluster. The pause is not optional
   decoration: WCAG 2.2.2 is Level A and ת"י 5568 adopts WCAG, so
   content that scrolls on its own must be stoppable. Folding it in
   with the arrows keeps that without a separate labelled button.
   ───────────────────────────────────────────────────────── */

.partners__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: 1.5rem;
}

.partners__btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-1);
  background: var(--surface-raised);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.partners__btn svg { width: 16px; height: 16px; fill: currentColor; }

@media (hover: hover) and (pointer: fine) {
  .partners__btn:hover { border-color: var(--gold); color: var(--navy-900); }
}

/* The arrow glyphs are drawn pointing right; the leading one flips. */
.partners__btn[data-step='-1'] svg { transform: scaleX(-1); }
[dir='rtl'] .partners__btn[data-step='-1'] svg { transform: none; }
[dir='rtl'] .partners__btn[data-step='1'] svg { transform: scaleX(-1); }

/* Two bars = pause. Two gradients, because one clip-path cannot
   describe a shape with a gap down the middle. */
.partners__toggle-icon {
  width: 10px;
  height: 12px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 34% 100% no-repeat,
    linear-gradient(currentColor 0 0) 100% 0 / 34% 100% no-repeat;
}

.partners.is-paused .partners__toggle-icon {
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

[dir='rtl'] .partners.is-paused .partners__toggle-icon {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* ─── Brands ─────────────────────────────────────────────── */

.brands { background: var(--surface-raised); }

.division-block + .division-block { margin-block-start: clamp(3rem, 2rem + 4vw, 4.5rem); }

.division-block__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-block-end: 1rem;
  margin-block-end: 1.75rem;
  border-block-end: 1px solid var(--line);
}

.division-block__name {
  font-size: var(--step-h3);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--navy-900);
}

.tag {
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Relationship tags: whether the group imports a brand directly or
   distributes it under licence.
   Note the gold is carried by the border and a wash, never by the text
   itself — --gold on white is only ~2.6:1 and would fail AA. The label
   stays --ink-1 so it clears 4.5:1. */
.tag--import {
  color: var(--ink-1);
  background: rgba(189, 155, 96, 0.14);
  border-color: rgba(189, 155, 96, 0.55);
}

.tag--distribute {
  color: var(--ink-3);
  background: var(--surface);
  border-color: var(--line-strong);
}

.link-arrow {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: var(--step-small);
  font-weight: 700;
  color: var(--gold);
  transition: color var(--dur) var(--ease);
}

.subgroup + .subgroup { margin-block-start: 2rem; }

/* Wraps so the relationship tag drops below the label on narrow
   screens rather than squeezing it. */
.subgroup__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-block-end: 1rem;
}

.subgroup__label {
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Three columns at every width. Each brand group on the page holds
   exactly three logos, so rows are always full — no orphaned tile the
   way the old flex-wrap layout produced. If a group ever holds a
   number that is not a multiple of three, revisit the column count. */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  list-style: none;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  padding: 0.5rem;
  /* Explicitly white: the prepared PNGs have transparent surrounds,
     and HP's lettering is white, so it needs a white backdrop. */
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

/* Optical sizing.
   Matching logos on height alone does not balance them: a bold
   wordmark like ASUS becomes enormously wide, while an outline mark
   like Dell's ring reads far lighter than HP's solid circle at the
   same height. So each mark gets a multiplier against a per-
   breakpoint base, tuned by eye against the real artwork. */
.logo-grid { --logo-base: 26px; }

/* Shown in the manufacturers' own colours. A greyscale-until-hover
   treatment reads as tidier in the abstract, but these marks are the
   point of the page and half of them lose their identity in grey. */
.logo-tile img {
  max-height: calc(var(--logo-base) * var(--logo-scale, 1));
  width: auto;
  object-fit: contain;
}

.logo--dell    { --logo-scale: 1.2; }  /* thin ring, small interior text */
.logo--elma    { --logo-scale: 0.95; }
.logo--hp      { --logo-scale: 0.9; }  /* solid circle, visually heavy */
/* Its artwork stacks a tagline under the wordmark, so it needs extra
   height for the name itself to match the others. */
.logo--witschi { --logo-scale: 1.3; }
.logo--asus    { --logo-scale: 0.72; } /* wide wordmark */

/* Brands with no logo file yet: same tile, set as a wordmark so the
   row still reads as finished. */
.logo-tile__word {
  font-size: clamp(0.625rem, 0.42rem + 0.85vw, 0.9375rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}

@media (min-width: 560px) {
  .logo-grid { gap: 0.875rem; --logo-base: 36px; }
  .logo-tile { min-height: 110px; padding: 1.25rem; }
}

@media (min-width: 900px) {
  .logo-grid { --logo-base: 42px; }
  .logo-tile { min-height: 126px; }
}

@media (hover: hover) and (pointer: fine) {
  .logo-tile:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
  }
  .logo-tile:hover .logo-tile__word { color: var(--navy-900); }
}

/* ─── About ──────────────────────────────────────────────── */

.about { background: var(--surface); }

.about__lead {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  font-size: var(--step-lead);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
  text-wrap: pretty;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-block-start: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  list-style: none;
}

.pillar {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  /* Gold accent on the leading edge, which flips with direction. */
  border-inline-start: 3px solid var(--gold);
}

.pillar__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-block-end: 0.5rem;
}

.pillar__text {
  font-size: var(--step-small);
  line-height: 1.75;
  color: var(--ink-3);
}

@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ─── Contact ────────────────────────────────────────────── */

.contact {
  background: var(--navy-900);
  color: var(--on-dark);
  text-align: center;
}

.contact .section-title,
.contact .eyebrow { color: var(--on-dark); }
.contact .eyebrow { color: var(--gold); }
.contact .section-sub { color: var(--on-dark-muted); }

.contact__link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-block-start: 1.75rem;
  padding-inline: 2rem;
  background: var(--gold);
  color: var(--navy-900);
  border-radius: var(--radius);
  font-size: var(--step-body);
  font-weight: 700;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .contact__link:hover { background: var(--gold-bright); transform: translateY(-2px); }
}

/* ─── Legal / prose pages (accessibility statement) ──────── */

.legal { background: var(--surface); }

.prose {
  max-width: 46rem;
  margin-inline: auto;
}

.prose__lead {
  font-size: var(--step-lead);
  font-weight: 300;
  line-height: 1.85;
  color: var(--ink-2);
}

.prose h2 {
  font-size: var(--step-h3);
  color: var(--navy-900);
  margin-block: 2.5rem 0.875rem;
  padding-block-end: 0.625rem;
  border-block-end: 1px solid var(--line);
}

.prose p { margin-block-end: 1rem; line-height: 1.85; }

.prose ul {
  /* Logical padding so the bullets sit on the correct side in both
     writing directions. */
  padding-inline-start: 1.25rem;
  display: grid;
  gap: 0.625rem;
}

.prose li { line-height: 1.75; }
.prose li::marker { color: var(--gold); }

.contact-list {
  margin-block-start: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.contact-list__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--line);
}

.contact-list dt {
  font-weight: 700;
  color: var(--navy-900);
  min-width: 9rem;
}

.contact-list dd { margin: 0; }

.contact-list a {
  /* inline-flex with a min-height keeps it a 44px tap target without
     changing how the line reads. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-list a:hover { color: var(--navy-900); }

/* ─── Footer ─────────────────────────────────────────────── */

.footer {
  background: #071b2f;
  color: var(--on-dark-faint);
  font-size: var(--step-small);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.footer__col h3 {
  font-size: var(--step-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-block-end: 1rem;
}

.footer__col ul { list-style: none; display: grid; gap: 0.25rem; }

.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-faint);
  transition: color var(--dur) var(--ease);
}
.footer__col a:hover { color: var(--gold); }

.footer__brand { font-weight: 800; letter-spacing: 0.12em; color: var(--on-dark); }
.footer__tagline { margin-block-start: 0.625rem; max-width: 22rem; line-height: 1.7; }

.footer__bar {
  border-block-start: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 1.375rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

/* ─── Reduced motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Never leave content hidden if its reveal transition is disabled. */
  .reveal { opacity: 1; transform: none; }

  /* The strip does not auto-advance here — js/main.js checks the same
     preference and leaves it still. The arrows stay, so the logos are
     all still reachable; only the automatic movement goes away. */
  .partners__viewport { scroll-behavior: auto !important; }
}
