/* ==========================================================================
   LETS — design tokens
   ========================================================================== */
:root {
  --paper: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #161A23;
  --ink-2: #4A5160;
  --line: #DCDFE5;

  --sun: #F5B800;
  --leaf: #4FA82B;
  --sky: #0A8FD6;
  --berry: #D21F6E;
  /* Darker tones for text/strokes that must pass contrast on light surfaces */
  --sun-ink: #8A5A00;
  --leaf-ink: #2F7019;
  --sky-ink: #0767A0;
  --berry-ink: #A8164F;

  --night: #161A23;
  --night-2: #1F2430;
  --on-night: #EEF0F3;
  --on-night-2: #A9AFBB;

  --font-display: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 12vw, 168px);

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;

  --header-h: 76px;

  --z-header: 100;
  --z-progress: 110;
  --z-menu: 90;
}

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

/* Firefox сам «подкручивает» страницу, когда что-то догружается выше по потоку,
   и с закреплёнными секциями (hero, услуги) это дерётся со скроллом: позицию
   выбрасывает в начало. Своя прокрутка у нас уже есть, браузерная тут лишняя. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); overflow-anchor: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
p, li, dd, blockquote { overflow-wrap: break-word; text-wrap: pretty; }
h1, h2, h3, h4 { overflow-wrap: break-word; text-wrap: balance; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }

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

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

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn:hover { --btn-bg: #2A3040; }
.btn:active { transform: scale(.97); }

.btn-ghost {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }

.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: var(--sun); border-color: var(--sun); }

.btn-small { min-height: 44px; padding: 10px 20px; font-size: .95rem; }

/* ==========================================================================
   Scroll progress — four brand strands
   ========================================================================== */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: var(--z-progress);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}
.progress span:nth-child(1) { background: var(--sun); }
.progress span:nth-child(2) { background: var(--leaf); }
.progress span:nth-child(3) { background: var(--sky); }
.progress span:nth-child(4) { background: var(--berry); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: transform var(--dur-med) var(--ease-out),
              background-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(244, 245, 247, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand { flex: none; display: block; border-radius: 6px; }
.brand img { height: 30px; width: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; }
.nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--ink); background: rgba(22, 26, 35, .06); }
.nav a.is-active { color: var(--ink); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute; left: 50%; width: 22px; height: 2px; margin-left: -11px;
  background: currentColor; border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast);
}
.menu-toggle-bars { top: 50%; margin-top: -1px; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle-bars::before { transform: translateY(-7px); }
.menu-toggle-bars::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: rotate(45deg); background: var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: rotate(-45deg); background: var(--ink); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  background: var(--paper);
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-menu ul { display: grid; margin-bottom: 32px; }
.mobile-menu li a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  text-decoration: none;
}
.mobile-menu .btn { width: 100%; }

@media (max-width: 1024px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ==========================================================================
   Section labels
   ========================================================================== */
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
}
.kicker::before {
  content: "";
  flex: none;
  width: 28px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--sun) 0 25%, var(--leaf) 25% 50%, var(--sky) 50% 75%, var(--berry) 75%);
}
.section-head .kicker,
.section-head-sticky .kicker,
.facts-head .kicker,
.partners-head .kicker,
.contact-info .kicker { margin-bottom: -4px; }

/* ==========================================================================
   Hero — the logo and one line
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(520px, 76vh, 800px);
  min-height: clamp(520px, 76svh, 800px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 48px;
  overflow: hidden;
  isolation: isolate;
}

.ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* placement of the ribbon figure inside the hero; desktop sits a little
   smaller and higher so the left-hand lead-in stays on screen while it draws */
.ribbon-frame { transform: translate(395px, 128px) scale(.71); }
@media (min-width: 761px) {
  .ribbon-frame { transform: translate(460px, 56px) scale(.62); }
  .ribbons .ribbon { stroke-width: 50; }
}
.ribbon {
  fill: none;
  stroke-width: 44;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-inner { position: relative; }
.hero-title { display: grid; gap: clamp(20px, 3vw, 36px); justify-items: start; }
.hero-logo {
  position: relative;
  display: block;
  width: clamp(220px, 36vw, 520px);
  aspect-ratio: 1200 / 458;
}
/* the four letters are separate layers that stack back into the exact logo */
.logo-layer {
  position: absolute;
  inset: 0;
  perspective: 900px;
}
.logo-letter {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero-tagline {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  padding-left: .08em;
}
.hero-tagline > span { display: inline-block; }

@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-start; padding-top: calc(var(--header-h) + 40px); padding-bottom: 210px; }
  .ribbons {
    top: auto; height: 250px; bottom: -30px;
    -webkit-mask-image: linear-gradient(#000 70%, transparent 96%);
    mask-image: linear-gradient(#000 70%, transparent 96%);
  }
  .ribbon { stroke-width: 48; }
  .hero-logo { width: min(78%, 340px); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.section-head-sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: grid;
  gap: 20px;
}
.about-body { display: grid; gap: 40px; max-width: 68ch; }
.about-text { display: grid; gap: 1em; font-size: clamp(1.02rem, .98rem + .2vw, 1.1rem); line-height: 1.7; color: var(--ink-2); }
.about-lead { font-size: clamp(1.12rem, 1.02rem + .4vw, 1.3rem); line-height: 1.6; color: var(--ink); }

.priorities h3 {
  font-size: clamp(1.1rem, 1.04rem + .3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  max-width: 34ch;
}
.priorities li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.priorities li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tone, var(--sun));
}
.priorities li:nth-child(4n+1) { --tone: var(--sun); }
.priorities li:nth-child(4n+2) { --tone: var(--leaf); }
.priorities li:nth-child(4n+3) { --tone: var(--sky); }
.priorities li:nth-child(4n+4) { --tone: var(--berry); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .section-head-sticky { position: static; }
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients { background: var(--surface); }
.clients-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
/* logos sit on the left like the original page; the text stays first in reading order */
.clients-logos { grid-column: 1; grid-row: 1; }
.clients-panel {
  container-type: inline-size;
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(var(--header-h) + 40px);
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--paper);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.clients-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sun) 0 25%, var(--leaf) 25% 50%, var(--sky) 50% 75%, var(--berry) 75%);
}
.clients-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: min(7.5rem, 27cqi);
  line-height: .95;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.clients-text { color: var(--ink-2); font-size: 1.08rem; line-height: 1.7; max-width: 46ch; }

.clients-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.clients-logos li {
  display: grid;
  place-items: center;
  aspect-ratio: 15 / 11;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.clients-logos img {
  width: 100%;
  height: auto;
  max-width: 150px;
  mix-blend-mode: multiply;
  filter: grayscale(1);
  opacity: .7;
  transition: filter var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.clients-logos li:hover img { filter: none; opacity: 1; }
/* touch screens have no hover, so show the logos in colour */
@media (hover: none) {
  .clients-logos img { filter: none; opacity: 1; }
}

@media (max-width: 1024px) {
  .clients-grid { grid-template-columns: 1fr; }
  .clients-panel, .clients-logos { grid-column: 1; grid-row: auto; }
  .clients-panel { position: relative; top: 0; }
}
@media (max-width: 600px) {
  .clients-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Services — static list (fallback) and the scroll roulette
   ========================================================================== */
.services { background: var(--paper); padding-block: var(--section-y); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }

.svc-list { border-top: 1px solid var(--line); }
.svc {
  --tone: var(--ink);
  --tone-ink: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 12px 48px;
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}
[data-tone="sun"] { --tone: var(--sun); --tone-ink: var(--sun-ink); }
[data-tone="leaf"] { --tone: var(--leaf); --tone-ink: var(--leaf-ink); }
[data-tone="sky"] { --tone: var(--sky); --tone-ink: var(--sky-ink); }
[data-tone="berry"] { --tone: var(--berry); --tone-ink: var(--berry-ink); }

.svc::before {
  content: "";
  position: absolute;
  left: 0;
  top: clamp(28px, 3.5vw, 44px);
  bottom: clamp(28px, 3.5vw, 44px);
  width: 6px;
  border-radius: 6px;
  background: var(--tone);
}
.svc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.svc p { color: var(--ink-2); font-size: 1.05rem; max-width: 58ch; padding-top: 4px; }

.roulette, .roulette-dots { display: none; }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
}

/* ---- Roulette mode (enabled by JS when motion is allowed) ---- */
.services.is-roulette { padding-block: 0; }
.is-roulette .services-stage {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.is-roulette .services-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas:
    "head  head"
    "wheel ."
    "wheel panel"
    "wheel dots"
    "wheel .";
  grid-template-rows: auto 1fr auto auto 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  height: 100%;
  max-height: 760px;
  padding-block: clamp(16px, 4vh, 48px);
}
.is-roulette .section-head { grid-area: head; margin-bottom: clamp(8px, 3vh, 32px); }

.is-roulette .roulette {
  grid-area: wheel;
  display: block;
  position: relative;
  min-height: 0;
  perspective: 1100px;
  container-type: inline-size;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
/* selection band, like a picker */
.roulette-band {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: var(--item-h, 72px);
  transform: translateY(-50%);
  border-block: 1px solid var(--line);
  pointer-events: none;
}
.drum {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.drum li {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: var(--item-h, 72px);
  margin-top: calc(var(--item-h, 72px) / -2);
  display: flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--drum-fs, 2rem);
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #9AA1AE;
  backface-visibility: hidden;
  cursor: pointer;
  transition: color var(--dur-med) var(--ease-out);
  will-change: transform, opacity;
}
.drum li::before {
  content: "";
  flex: none;
  width: .32em; height: .32em;
  border-radius: 50%;
  background: var(--tone);
  transform: scale(.6);
  opacity: .5;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med);
}
.drum li > span { display: block; min-width: 0; }
.drum.is-wrapped li { white-space: normal; line-height: 1.15; }
.drum.is-wrapped li > span { text-wrap: balance; }
.drum li.is-active { color: var(--ink); }
.drum li.is-active::before { transform: scale(1); opacity: 1; }

.is-roulette .svc-list {
  grid-area: panel;
  display: grid;
  border: 0;
}
.is-roulette .svc {
  grid-area: 1 / 1;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) clamp(32px, 3.4vw, 44px);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-l);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out);
  pointer-events: none;
}
.is-roulette .svc::before { top: 28px; bottom: 28px; left: 0; border-radius: 0 6px 6px 0; }
.is-roulette .svc.is-active { opacity: 1; transform: none; pointer-events: auto; }
.is-roulette .svc h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); color: var(--ink); }
.is-roulette .svc p { font-size: 1.02rem; padding-top: 0; }

.is-roulette .roulette-dots {
  grid-area: dots;
  display: flex;
  gap: 4px;
  padding-top: 16px;
}
.roulette-dots button {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
}
.roulette-dots button::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background-color var(--dur-med), transform var(--dur-med) var(--ease-out);
}
.roulette-dots button.is-active::before { background: var(--tone); transform: scale(1.4); }

@media (max-width: 900px) {
  .is-roulette .services-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "wheel" "panel" "dots";
    grid-template-rows: auto minmax(150px, 1fr) auto auto;
    max-height: none;
    padding-block: 12px 20px;
  }
  .is-roulette .section-head { gap: 10px; margin-bottom: 8px; }
  .is-roulette .section-head .section-title { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .is-roulette .svc { padding: 20px 20px 20px 26px; }
  .is-roulette .svc::before { top: 20px; bottom: 20px; }
  .is-roulette .svc h3 { display: none; }
  .is-roulette .svc p { font-size: .98rem; line-height: 1.55; }
  .is-roulette .roulette-dots { justify-content: center; padding-top: 10px; }
}

/* ==========================================================================
   Facts
   ========================================================================== */
.facts { padding-block: var(--section-y); background: var(--surface); }
.facts-inner {
  display: grid;
  grid-template-columns: 3fr 9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
.facts-head { display: grid; gap: 20px; }
.facts-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-list li {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 8px 20px 8px 24px;
  border-left: 1px solid var(--line);
}
.fact-pre, .fact-label { color: var(--ink-2); font-size: 1rem; }
.fact-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1024px) {
  .facts-inner { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 600px) {
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .facts-list li { padding-left: 16px; }
}

/* ==========================================================================
   Partners — logo grid, each opens the partner's details
   ========================================================================== */
.partners { background: var(--paper); overflow: hidden; }
.partners-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.partners-head .section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.rows-controls {
  flex: none;
  display: flex;
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.rows-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.rows-btn:hover { border-color: var(--ink); }
.rows-btn:active { transform: scale(.94); }
.rows-btn svg { width: 18px; height: 18px; }
.rows-prev svg, .rows-next svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rows-toggle svg { fill: currentColor; }
.rows-toggle .icon-play { display: none; }
.rows-toggle[aria-pressed="true"] .icon-play { display: block; }
.rows-toggle[aria-pressed="true"] .icon-pause { display: none; }

.partner-rows { display: grid; gap: 16px; }
/* each row is a real horizontal scroller: swipe, trackpad, drag or the
   arrow buttons move it; JS adds the slow automatic drift on top */
.partner-row {
  --card-w: clamp(176px, 17vw, 236px);
  --gap: 16px;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.partner-row::-webkit-scrollbar { display: none; }
.partner-row.is-dragging { cursor: grabbing; }
.partner-row.is-dragging .partner { pointer-events: none; }
.partner-track {
  flex: none;
  display: flex;
  gap: var(--gap);
  padding-right: var(--gap);
  padding-block: 4px;
}
.partner-track li { flex: none; width: var(--card-w); }

.partner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 4px;
  padding: 0 0 16px;
  border: 0;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.partner:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-3px); }
.partner:active { transform: scale(.98); }
.partner-logo { display: block; aspect-ratio: 17 / 10; background: #fff; border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden; }
.partner-logo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.partner-name {
  padding: 4px 16px 0;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.partner-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 16px 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.partner-more::after {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-med) var(--ease-out);
}
.partner:hover .partner-more { color: var(--ink); }
.partner:hover .partner-more::after { transform: rotate(90deg); }

@media (max-width: 760px) {
  .partner-row { --card-w: 150px; --gap: 12px; }
  .rows-btn { width: 44px; height: 44px; }
  .rows-prev, .rows-next { display: none; }
  .partner-rows { gap: 12px; }
  .partner { padding-bottom: 12px; }
  .partner-name { padding: 2px 12px 0; font-size: .9rem; }
  .partner-more { margin: 6px 12px 0; padding-top: 8px; font-size: .9rem; }
}

/* Reduced motion: no automatic drift; rows stay scrollable by hand */
@media (prefers-reduced-motion: reduce) {
  .rows-toggle { display: none; }
}

/* ---- Partner dialog: centred card on desktop, bottom sheet on phones ---- */
.partner-dialog {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: min(86vh, 900px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(22, 26, 35, .25);
}
.partner-dialog::backdrop { background: rgba(22, 26, 35, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.partner-dialog[open] { display: flex; flex-direction: column; }
.pd-sheet {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 clamp(20px, 4vw, 48px) clamp(24px, 4vw, 40px);
}
.pd-sheet > * + * { margin-top: 18px; }
.pd-sheet > .pd-logo { margin-top: 0; }
.pd-logo {
  margin-inline: calc(clamp(20px, 4vw, 48px) * -1);
  height: clamp(130px, 32vw, 250px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.pd-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pd-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding-top: 6px;
  overflow-wrap: anywhere;
}
.pd-body { display: grid; gap: 14px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.pd-body ul { display: grid; gap: 6px; padding-left: 4px; }
.pd-body li { position: relative; padding-left: 20px; }
.pd-body li::before {
  content: "";
  position: absolute; left: 2px; top: .7em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sky);
}
.pd-sheet > .pd-close { margin-top: 28px; }
.pd-x {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 10px rgba(22,26,35,.12);
  color: var(--ink);
  cursor: pointer;
}
.pd-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 760px) {
  .partner-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 88svh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }
  .pd-sheet { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .pd-close { width: 100%; }
}
.partner-dialog[open] .pd-sheet { animation: pd-in .42s var(--ease-out); }
@keyframes pd-in { from { opacity: 0; transform: translateY(24px); } }

/* ==========================================================================
   Contact + footer (dark)
   ========================================================================== */
.contact {
  background: var(--night);
  color: var(--on-night);
  padding-top: var(--section-y);
  position: relative;
  overflow: hidden;
}
.contact::before {
  /* the four strands come back to close the page */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--sun) 0 25%, var(--leaf) 25% 50%, var(--sky) 50% 75%, var(--berry) 75%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
}
.contact-info { display: grid; gap: 20px; }
.contact .kicker { color: var(--on-night-2); }

.contact-list { margin-top: 28px; display: grid; }
.contact-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 18px;
  align-items: start;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 1.1rem;
  line-height: 1.7;
}
.contact-list svg {
  width: 24px; height: 24px; margin-top: 3px;
  fill: none; stroke: var(--on-night-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.contact-list a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--dur-med) var(--ease-out); }
.contact-list a:hover { background-size: 100% 1px; }

.contact-form {
  background: var(--night-2);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 20px;
}
.form-head { display: grid; gap: 8px; margin-bottom: 8px; }
.form-head h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.form-head p { color: var(--on-night-2); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .98rem; }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--radius-s);
  background: rgba(255,255,255,.04);
  color: var(--on-night);
  font: 400 1rem/1.5 var(--font-body);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: rgba(255,255,255,.07); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(10,143,214,.45); outline-offset: 1px; }
.field.has-error input { border-color: #FF6B9E; }
.field-error { color: #FF8FB5; font-size: .92rem; }
.contact-form .btn { justify-self: start; margin-top: 4px; }
.form-status { min-height: 1.6em; color: var(--on-night-2); font-size: .95rem; }
.form-status:empty { display: none; }

.site-footer { margin-top: var(--section-y); border-top: 1px solid rgba(255,255,255,.1); }
.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-block: 40px;
  flex-wrap: wrap;
}
.footer-logo { width: 110px; height: auto; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer nav a { color: var(--on-night-2); text-decoration: none; font-size: .95rem; padding-block: 8px; display: inline-block; transition: color var(--dur-fast); }
.site-footer nav a:hover { color: #fff; }
.footer-copy { margin-left: auto; color: var(--on-night-2); font-size: .92rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Motion setup — initial states only apply once JS confirms motion is OK
   ========================================================================== */
.has-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.has-motion .logo-letter { opacity: 0; }
.has-motion .hero-tagline > span { opacity: 0; }
.hero-tagline .ch { display: inline-block; white-space: pre; }
.has-motion .ribbon { stroke-dasharray: 1; stroke-dashoffset: 1; }

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

/* ==========================================================================
   Phones — tighter insets so running text gets a comfortable line length
   ========================================================================== */
@media (max-width: 600px) {
  .priorities li { padding: 14px 0 14px 20px; font-size: 1rem; line-height: 1.6; }
  .priorities li::before { left: 0; width: 8px; height: 8px; top: calc(14px + .8em - 4px); }
  .svc { padding-left: 20px; }
  .svc::before { width: 4px; }
  .is-roulette .svc { padding: 18px 18px 18px 22px; }
  .is-roulette .svc::before { width: 4px; }
  .clients-panel { padding: 28px 22px 26px; gap: 18px; }
  .clients-text { font-size: 1rem; }
  .contact-form { padding: 24px 18px; }
  .pd-body { font-size: 1rem; line-height: 1.65; }
}

/* ==========================================================================
   BLACK EDITION THEME
   Everything above is identical to the colour site. This block only
   changes the look: a monochrome "engineering" style with sharp corners,
   square markers, inverted hover states and a signal-dot hero (theme.js).
   ========================================================================== */
:root {
  --paper: #F3F3F2;
  --surface: #FFFFFF;
  --ink: #000000;
  --ink-2: #555555;
  --line: #DEDEDD;

  /* the four strand tones collapse to black; the strands themselves are gone */
  --sun: #000000; --leaf: #000000; --sky: #000000; --berry: #000000;
  --sun-ink: #000000; --leaf-ink: #000000; --sky-ink: #000000; --berry-ink: #000000;

  --night: #000000;
  --night-2: #0E0E0E;
  --on-night: #FFFFFF;
  --on-night-2: #A8A8A8;
  --line-dark: #262626;

  --font-display: "IBM Plex Sans Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 3px;
  --radius-m: 4px;
  --radius-l: 6px;

  /* the dot texture used on dark sections, echoing the hero field */
  --dots-dark: radial-gradient(circle at 1px 1px, rgba(255,255,255,.09) 1px, transparent 1.6px) 0 0 / 18px 18px;
}

body { background: var(--surface); line-height: 1.65; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 0; }

/* ---- no more stripes ---------------------------------------------------- */
.progress,
.ribbons { display: none !important; }
.clients-panel::before,
.contact::before { content: none; }

/* ---- type: condensed headlines, a little larger --------------------------- */
.section-title { font-weight: 600; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.75rem); line-height: .98; letter-spacing: -0.015em; }
.svc h3, .drum li { font-weight: 600; letter-spacing: -0.01em; }
.fact-num, .clients-stat { font-weight: 700; letter-spacing: -0.025em; }
.mobile-menu li a { font-size: 1.9rem; font-weight: 600; }

/* section marker: a small black square */
.kicker::before { width: 8px; height: 8px; border-radius: 0; background: currentColor; }

/* ---- hero: video with the white wordmark centred on it -------------------- */
/* full screen on open; theme.js shortens it as you scroll */
.hero {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  z-index: 2;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 24px) 0 72px;
  background: #05070B;
  color: #fff;
  text-align: center;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-video {
  position: absolute; inset: -8% 0 0 0;
  width: 100%; height: 116%;
  object-fit: cover;
  transform-origin: 50% 40%;
}
/* a soft vignette keeps the white type readable over the brightest lights */
.hero-shade {
  position: absolute; inset: 0;
  opacity: .82;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0, 0, 0, .42), rgba(0, 0, 0, 0) 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 30%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .6));
}
.hero-inner { display: grid; justify-items: center; }
.hero-title { justify-items: center; width: 100%; }
.hero-inner { width: 100%; }
.hero-logo {
  aspect-ratio: 1420 / 532;
  width: clamp(150px, 22vw, 320px);
  filter: drop-shadow(0 6px 40px rgba(0, 0, 0, .35));
}
.hero-tagline {
  font-weight: 500;
  font-size: clamp(1.05rem, .8rem + 1vw, 1.6rem);
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
  display: flex; align-items: center; justify-content: center; gap: .3em;
}
/* terminal cursor after the tagline */
.hero-tagline::after {
  content: ""; flex: none;
  width: .5em; height: 1em;
  background: #fff;
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }

@media (max-width: 760px) {
  .hero { min-height: 480px; align-items: center; padding: calc(var(--header-h) + 16px) 0 64px; }
  .hero-logo { width: min(44%, 170px); }
}

/* header sits on the video until you scroll: white logo, white links */
.site-header:not(.is-scrolled) .brand img { filter: invert(1); }
.site-header:not(.is-scrolled) .nav a { color: rgba(255, 255, 255, .85); }
.site-header:not(.is-scrolled) .nav a:hover,
.site-header:not(.is-scrolled) .nav a.is-active { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.site-header:not(.is-scrolled) .menu-toggle { color: #fff; }
.site-header:not(.is-scrolled) .header-cta { --btn-bg: #fff; --btn-fg: #000; border-color: #fff; }
.site-header:not(.is-scrolled) .header-cta:hover { --btn-bg: transparent; --btn-fg: #fff; }
.brand img { transition: filter var(--dur-med) var(--ease-out); }

/* ---- header + menu ----------------------------------------------------------- */
.site-header.is-scrolled { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--line); }
.nav a { border-radius: 0; }
.nav a:hover { background: transparent; color: var(--ink); }
.nav a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.mobile-menu { background: var(--surface); }

/* ---- buttons: sharp, invert on hover ------------------------------------------ */
.btn { border-radius: var(--radius-s); }
.btn:hover { --btn-bg: var(--surface); --btn-fg: var(--ink); border-color: var(--ink); }
.btn-ghost { --btn-bg: var(--surface); }
.btn-ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn-light:hover { --btn-bg: transparent; --btn-fg: #fff; border-color: #fff; }

/* ---- about ------------------------------------------------------------------- */
.priorities li::before { border-radius: 0; }

/* ---- clients: black, dotted, outlined 100% -------------------------------------- */
.clients { background: var(--dots-dark), var(--night); color: var(--on-night); }
.clients .section-title { color: var(--on-night); }
.clients-panel { background: var(--night-2); border: 1px solid var(--line-dark); }
.clients-stat { color: transparent; -webkit-text-stroke: 1.5px var(--on-night); }
.clients-text { color: var(--on-night-2); }
.clients-logos, .clients-logos li { border-color: var(--line-dark); }
.clients-logos img { filter: grayscale(1) contrast(1.1); opacity: .8; }

/* ---- services: dark, with the scroll-driven rack video behind ------------- */
.services {
  position: relative; isolation: isolate; overflow: hidden;
  background: #000; color: var(--on-night);
}
.svc-media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.svc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 50%;
}
/* darkens the side where the wheel sits so the names stay readable */
.svc-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 34%, rgba(0,0,0,.15) 62%, rgba(0,0,0,.35) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.6), transparent 22%, transparent 80%, rgba(0,0,0,.7));
}
.services .kicker { color: var(--on-night-2); }
.services .section-title { color: var(--on-night); }

.drum li { color: rgba(255, 255, 255, .34); }
.drum li::before { border-radius: 0; background: #fff; }
.drum li.is-active { color: #fff; }
.roulette-band { border-color: rgba(255, 255, 255, .28); }

/* the description card is frosted glass so the rack shows through */
.is-roulette .svc {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  color: var(--on-night);
}
.is-roulette .svc::before { content: none; }
.is-roulette .svc h3 { color: #fff; }
.is-roulette .svc p { color: #D2D2D2; }
.roulette-dots button::before { border-radius: 0; background: rgba(255, 255, 255, .3); }
.roulette-dots button.is-active::before { background: #fff; transform: scale(1.25); }

/* plain list (short screens / reduced motion) on the dark background */
.svc-list, .svc { border-color: rgba(255, 255, 255, .14); }
.svc::before { background: #fff; width: 4px; }
.svc h3 { color: #fff; }
.svc p { color: #CFCFCF; }

@media (max-width: 900px) {
  .svc-video { object-position: 50% 50%; opacity: .7; }
  .svc-shade {
    background: linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.85) 100%);
  }
}

/* ---- facts: black, dotted ------------------------------------------------------- */
.facts { background: var(--dots-dark), var(--night); color: var(--on-night); border-color: var(--line-dark); }
.facts .kicker, .fact-pre, .fact-label { color: var(--on-night-2); }
.facts-list li, .facts-list li + li { border-color: var(--line-dark); }

/* ---- partners: greyscale, cards invert on hover ------------------------------------ */
.partner { box-shadow: inset 0 0 0 1px var(--line); transition: background-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.partner-logo { border-radius: 0; border-bottom: 1px solid var(--line); }
.partner-logo img { filter: grayscale(1) contrast(1.12); transition: filter var(--dur-med) var(--ease-out); }
.partner:hover { background: var(--ink); color: var(--on-night); box-shadow: inset 0 0 0 1px var(--ink); }
.partner:hover .partner-more { color: var(--on-night); border-top-color: var(--line-dark); }
.partner:hover .partner-logo img, .partner:focus-visible .partner-logo img { filter: none; }
@media (hover: none) { .partner-logo img { filter: none; } }
.rows-btn { border-radius: var(--radius-s); }
.rows-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- dialog --------------------------------------------------------------------- */
.partner-dialog { border-radius: var(--radius-l); }
.pd-x { border-radius: var(--radius-s); }
.pd-body li::before { background: var(--ink); border-radius: 0; }

/* ---- contact: black, dotted --------------------------------------------------------- */
.contact { background: var(--dots-dark), var(--night); }
.contact-form { background: var(--night-2); border: 1px solid var(--line-dark); }
.field input, .field textarea { border-radius: var(--radius-s); }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field input:focus-visible, .field textarea:focus-visible { outline-color: rgba(255, 255, 255, .5); }
.footer-logo { width: 84px; }

@media (max-width: 760px) {
  .partner-dialog { border-radius: 10px 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tagline::after { animation: none; }
}

/* ---- services video ------------------------------------------------------
   One descent through a dark IT building, a floor per service (theme.js).
   The left of every frame is already dark, which is where the wheel sits. */
.svc-video { transform: scale(1.02); }
@media (max-width: 900px) {
  /* phones: the names sit over the picture, so a soft shadow keeps them legible */
  .drum li { text-shadow: 0 1px 14px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); }
}
/* phones held upright get their own tall clip, zoomed in on the equipment,
   that fills the whole section like the desktop one (theme.js picks it) */
@media (max-width: 900px) and (orientation: portrait) {
  .svc-video { object-position: 50% 50%; opacity: 1; }
  /* about as light as on desktop: the equipment sits in the middle of the
     clip, and the heading and card already sit on its dark ceiling and floor */
  .svc-shade { background: linear-gradient(to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,.18) 64%, rgba(0,0,0,.66) 100%); }
}
/* phones and small tablets on their side keep the wide clip */
@media (max-width: 900px) and (orientation: landscape) {
  .svc-video { object-position: 72% 50%; }
}

/* ---- performance: no live blur over moving video -------------------------- */
.is-roulette .svc {
  background: rgba(14, 14, 14, .66);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (max-width: 900px) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---- hero intro: starting state (main.js plays it once the page is ready) ----
   Each letter waits just below its own edge, so it rises into view from a
   mask rather than popping in; the cursor only appears with the finished
   tagline. Transforms and opacity only — nothing expensive on first paint. */
.logo-layer { overflow: hidden; }
.has-motion .logo-letter { opacity: 1; transform: translateY(125%); }
.hero-tagline::after { transition: opacity .4s ease; }
.has-motion .hero:not(.is-ready) .hero-tagline::after { opacity: 0; animation: none; }

/* ---- designer credit at the very bottom ------------------------------------ */
.footer-credit {
  display: flex; justify-content: flex-end;
  padding-block: 0 28px;
}
.footer-credit a {
  display: inline-flex; align-items: center; gap: 8px;
  padding-block: 8px;
  font-size: .82rem; letter-spacing: .02em;
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-credit a span { color: rgba(255, 255, 255, .7); }
.footer-credit a::before {
  /* instagram glyph */
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer-credit a:hover, .footer-credit a:hover span { color: #fff; }
@media (max-width: 900px) { .footer-credit { justify-content: flex-start; } }

/* ---- clients: text panel on top, then three scrolling logo rows ---------------- */
.clients-grid { grid-template-columns: 1fr; }
.clients-panel { position: static; grid-column: auto; grid-row: auto; }
@media (min-width: 901px) {
  .clients-panel {
    grid-template-columns: auto 1fr;
    grid-template-areas: "title text" "stat text";
    column-gap: clamp(40px, 6vw, 96px);
    align-items: start;
  }
  .clients-panel .section-title { grid-area: title; }
  .clients-stat { grid-area: stat; }
  .clients-text { grid-area: text; align-self: center; max-width: 52ch; }
}

.logo-rows { display: grid; gap: 0; margin-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.logo-row {
  --logo-h: clamp(72px, 8vw, 104px);
  display: flex;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  border-top: 1px solid var(--line-dark);
}
.logo-row:last-child { border-bottom: 1px solid var(--line-dark); }
.logo-row::-webkit-scrollbar { display: none; }
.logo-row.is-dragging { cursor: grabbing; }
.logo-track { flex: none; display: flex; align-items: stretch; }
.logo-track li {
  flex: none;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 1.9);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line-dark);
}
/* no tile behind the logos, full brand colour (the files in clients-ondark
   are already adapted to read on black). Sizes are in real pixels of the
   cell, so every logo sits exactly in the middle of its box. */
.logo-track img {
  display: block;
  max-height: calc(var(--logo-h) * .5);
  max-width: calc(var(--logo-h) * 1.9 * .7);
  width: auto; height: auto;
  opacity: .95;
  transition: opacity var(--dur-med) var(--ease-out);
  -webkit-user-drag: none; user-select: none;
}
.logo-track li:hover img { opacity: 1; }

/* ---- client logos on white tiles so every mark is clearly visible ---------- */
.logo-row { border: 0; }
.logo-row:last-child { border: 0; }
.logo-rows { gap: 10px; }
.logo-track { gap: 10px; padding-right: 10px; }
.logo-track li {
  border: 0;
  background: #fff;
  border-radius: 10px;
}
.logo-track img { opacity: 1; }
@media (max-width: 760px) {
  .logo-rows { gap: 8px; }
  .logo-track { gap: 8px; padding-right: 8px; }
  .logo-track li { border-radius: 8px; }
}

/* ==========================================================================
   Client edits (Oct 2026): About = photo + figures on a light dotted
   ground; "How we work" replaces "Why us?"
   ========================================================================== */
.about {
  background: radial-gradient(circle at 1px 1px, rgba(0,0,0,.09) 1px, transparent 1.6px) 0 0 / 24px 24px, #fff;
  overflow: hidden;
}
.about-wrap { display: grid; gap: clamp(48px, 6vw, 80px); }
.about-top { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 4.5vw, 64px); align-items: stretch; }
.about-intro { display: grid; align-content: center; gap: 28px; }
.about-intro .kicker { margin-bottom: 0; }
.about-lead { margin: 0; font-size: clamp(1.15rem, .95rem + .8vw, 1.5rem); line-height: 1.5; color: var(--ink); max-width: 34ch; text-wrap: pretty; }
.about-sub { margin: 0; font-size: clamp(1rem, .96rem + .2vw, 1.1rem); line-height: 1.7; color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.about-photo { position: relative; min-height: 600px; margin: -60px -40px -40px -20px; }
.about-photo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, #fff 62%, rgba(255,255,255,0)); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform: scale(1.18); mix-blend-mode: multiply; }

.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #000; color: #fff; border-radius: var(--radius-s); }
.about-stats li { display: grid; align-content: start; gap: 10px; padding: 36px 32px; border-right: 1px solid rgba(255,255,255,.18); }
.about-stats li:last-child { border-right: 0; }
.about-stat-num { font: 600 clamp(2.6rem, 1.8rem + 2.6vw, 4rem)/1 var(--font-display); letter-spacing: -0.01em; }
.about-stat-label { font-size: 1rem; line-height: 1.5; color: #C8C8C8; }

@media (max-width: 1100px) {
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-stats li:nth-child(2) { border-right: 0; }
  .about-stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
}
@media (max-width: 900px) {
  .about-top { grid-template-columns: 1fr; }
  .about-photo { min-height: 0; aspect-ratio: 740 / 592; max-width: 520px; width: 100%; margin: -24px auto -16px; }
  .about-photo img { transform: none; }
}
@media (max-width: 600px) {
  .about-intro { gap: 20px; }
  .about-stats li { padding: 24px 18px; gap: 8px; }
  .about-stat-label { font-size: .92rem; }
}

/* ---- how we work: black, dotted -------------------------------------------- */
.process { padding-block: var(--section-y); background: var(--dots-dark), var(--night); color: var(--on-night); }
.process-inner { display: grid; gap: clamp(48px, 6vw, 88px); }
.process-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 100px); align-items: end; }
.process-title-wrap { display: grid; gap: 20px; }
.process .kicker { color: var(--on-night-2); margin-bottom: -4px; }
.process .section-title { color: var(--on-night); }
.process-intro { margin: 0; font-size: clamp(1.05rem, .98rem + .4vw, 1.25rem); line-height: 1.6; color: #C8C8C8; max-width: 46ch; text-wrap: pretty; }
.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-steps li { display: grid; align-content: start; gap: 18px; padding-right: 36px; }
.process-steps li:last-child { padding-right: 0; }
.process-mark { display: flex; align-items: center; gap: 16px; }
.process-num { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border: 1.5px solid #fff; color: #fff; font: 600 20px/1 "IBM Plex Mono", ui-monospace, monospace; }
.process-steps li:first-child .process-num { background: #fff; color: #000; }
.process-line { flex: 1; height: 1px; background: #3A3A3A; }
.process-steps li:last-child .process-line { display: none; }
.process-steps h3 { margin: 14px 0 0; font: 600 clamp(1.4rem, 1.1rem + .9vw, 1.75rem)/1.15 var(--font-display); color: #fff; }
.process-steps p { margin: 0; font-size: 1.06rem; line-height: 1.6; color: #B4B4B4; text-wrap: pretty; }

@media (max-width: 900px) {
  .process-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .process-steps li:nth-child(2) { padding-right: 0; }
  .process-steps li:nth-child(2) .process-line { display: none; }
}
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; row-gap: 0; }
  .process-steps li { position: relative; grid-template-columns: 48px 1fr; column-gap: 18px; row-gap: 8px; padding: 0 0 32px; }
  .process-mark { grid-row: 1 / span 2; flex-direction: column; align-self: stretch; gap: 0; }
  .process-num { width: 48px; height: 48px; font-size: 17px; }
  .process-line, .process-steps li:nth-child(2) .process-line { display: block; flex: 1; width: 1px; height: auto; min-height: 16px; }
  .process-steps li:last-child .process-line { display: none; }
  .process-steps h3 { margin: 10px 0 0; }
  .process-steps li:last-child { padding-bottom: 0; }
}

/* ---- Vendara, the client's online shop, in the menus ------------------------
   Their own icon (dark tile, white V, orange dot), then the link text. */
.nav .shop-link,
.mobile-menu .shop-link { display: flex; align-items: center; gap: 8px; }
.site-footer nav .shop-link { display: inline-flex; align-items: center; gap: 8px; }
.shop-mark { flex: none; width: 20px; height: 20px; border-radius: 28%; }
.shop-out {
  flex: none; width: 10px; height: 10px; margin-left: -2px; opacity: .6;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
/* the tile is dark, so on dark backgrounds it gets a thin light edge */
.site-header:not(.is-scrolled) .shop-mark,
.site-footer .shop-mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4); }
.mobile-menu .shop-link { gap: 12px; }
.mobile-menu .shop-mark { width: .95em; height: .95em; }
.mobile-menu .shop-out { width: .42em; height: .42em; }
/* with the shop link the menu is longer: keep every item on one line, and on
   the narrowest desktops (1025-1120px) tighten the spacing so it all fits */
.nav a { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1120px) {
  .header-inner { gap: 20px; }
  .nav ul { gap: 2px; }
  .nav a { padding-inline: 9px; }
}
