/* OZTECH Industrial Solutions: homepage
   Palette (the only colours used): Navy #002B63, Sky #4396C9, Ink #16202B, Slate #6B7681, Bone #F4F2ED, White.
   Contrast notes, measured against WCAG 2.2:
   - Sky on Navy is 4.2:1  -> large text, rules, fills and focus only. Never small text.
   - Sky on White is 3.3:1 -> fills, rules and large numerals only.
   - Slate on White is 4.6:1 (passes) but on Bone is 4.1:1 (fails) -> Slate only on white surfaces.
   Fonts: Chakra Petch (display), Work Sans (body), self-hosted, SIL OFL 1.1. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("../fonts/WorkSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
/* Arabic: Changa (squared, technical: the counterpart of Chakra Petch) for headings and figures, Tajawal (clean geometric) for text. Both OFL. They are only downloaded by pages that show Arabic text. */
@font-face { font-family: "Changa"; src: url("../fonts/Changa-Variable.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("../fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #002B63;
  --sky: #4396C9;
  --ink: #16202B;
  --slate: #6B7681;
  --bone: #F4F2ED;
  --white: #FFFFFF;

  --font-display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --max: 90rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* per-surface text roles (overridden below) */
  --text: var(--ink);
  --muted: var(--slate);
  --rule: rgb(22 32 43 / .2);
  --focus: var(--navy);
}

@media (min-width: 70rem) { :root { --header-h: 5rem; } }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);   /* keeps focused/anchored content clear of the sticky header (WCAG 2.4.11) */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

main:focus { outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header, .hero, .surface-navy, .biz--ozalucast, .site-footer { --focus: var(--white); }

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

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

.skip-link {
  position: absolute; z-index: 300; left: 1rem; top: -5rem;
  padding: .875rem 1.25rem; background: var(--white); color: var(--navy);
  font-weight: 600; text-decoration: none; border: 3px solid var(--navy);
}
.skip-link:focus { top: 1rem; }

/* surfaces */
.surface-bone { background: var(--bone); color: var(--ink); --muted: var(--ink); --rule: rgb(22 32 43 / .25); }
.surface-navy { background: var(--navy); color: var(--white); --text: var(--white); --muted: var(--white); --rule: rgb(255 255 255 / .3); }

/* ---------- Type ---------- */
.display {
  max-width: 20ch;
  font: 600 clamp(2.25rem, 5.2vw, 4.5rem)/1.06 var(--font-display);
  letter-spacing: -.015em;
  color: var(--navy);
  overflow-wrap: normal; hyphens: none;   /* a word is never broken or hyphenated in a title; the type size keeps the longest word inside a 320 px phone */
}
.surface-navy .display { color: var(--white); }

.eyebrow {
  display: flex; align-items: center; gap: .875rem;
  font: 600 .8125rem/1.3 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
}
.eyebrow::before { content: ""; flex: none; width: 2rem; height: 3px; background: var(--sky); }

.lead { max-width: 42rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.55; color: var(--muted); }

.link {
  color: var(--navy); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--sky);
  text-decoration-thickness: 3px; text-underline-offset: .3em;
  transition: text-decoration-thickness .15s;
}
.link:hover { text-decoration-thickness: 5px; }
/* website links (cesan.com ...): no underline, an external-link icon after the address */
.site-links .link { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.site-links .link::after {
  content: ""; flex: none; width: .95em; height: .95em; background: currentColor; transition: translate .2s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%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='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-links .link:hover::after { translate: 2px -2px; }
[dir="rtl"] .site-links .link::after { scale: -1 1; }
[dir="rtl"] .site-links .link:hover::after { translate: -2px -2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.25rem; padding: .75rem 1.5rem;
  border: 2px solid transparent; border-radius: 0;
  font: 600 1rem/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn__icon { flex: none; transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translate(2px, -2px); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--bone); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--ink); }
.btn--block { width: 100%; }

/* Corner marks. On the hero frame: a viewfinder-style bracket whose tips are cut at 45 degrees, with one small sky tab. It borrows the logo's
   angled cut and its tab without repeating the logo. On the primary hero button: just the sky tab, bottom right, at the logo's 96.8 : 55.5 proportion. */
.marks { position: absolute; inset: 0; pointer-events: none; }
.marks i { position: absolute; display: block; }
.marks--bracket i { width: 30px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M0 0H24L27 3H3V27L0 24Z' fill='%23FFFFFF'/%3E%3Crect x='8' y='8' width='7' height='4' fill='%234396C9'/%3E%3C/svg%3E") center / contain no-repeat; }   /* drawn top left; the other three corners mirror it */
.marks--bracket i:nth-child(1) { top: 0; left: 0; }
.marks--bracket i:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.marks--bracket i:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.marks--bracket i:nth-child(4) { bottom: 0; right: 0; transform: scale(-1, -1); }
.marks--tab i { display: none; }
.marks--tab i:nth-child(4) { display: block; right: -2px; bottom: -2px; width: 16px; height: 9.2px; background: var(--sky); }
.btn--marked { position: relative; }

/* ---------- Header ---------- */
/* Solid navy so the logo always sits on its approved ground (guidelines: no busy or mid-tone grounds). */
.site-header { position: fixed; z-index: 100; inset: 0 0 auto 0; background: var(--navy); color: var(--white); }
.site-header__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand { display: inline-block; line-height: 0; }
.brand img { width: clamp(10rem, 18vw, 12.5rem); height: auto; }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--sky); transform: scaleX(0); transform-origin: left center; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2rem; flex-basis: 100%; padding-bottom: 1rem; }
.site-nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav__list a {
  display: inline-block; padding: .5rem 0; border-bottom: 2px solid transparent;
  color: var(--white); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color .15s;
}
.site-nav__list a:hover { border-bottom-color: var(--sky); }
.site-nav__cta { min-height: 2.75rem; padding: .5rem 1.125rem; font-size: .9375rem; }

.nav-toggle { display: none; }

/* Language switcher: a <details> menu (works without JavaScript). Brand | switcher | menu button on narrow screens; brand | nav | switcher from 70rem. */
.lang { position: relative; margin-inline-start: auto; }
.lang__btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 .75rem; list-style: none; cursor: pointer;
  border: 1.5px solid rgb(255 255 255 / .4); color: var(--white); font: 600 .875rem/1 var(--font-body); letter-spacing: .08em;
  transition: background-color .2s, border-color .2s;
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover, .lang[open] .lang__btn { background: rgb(255 255 255 / .12); border-color: var(--white); }
.lang__chev { transition: transform .2s; }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__list {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); z-index: 120; min-width: 12.5rem; padding: .25rem;
  background: var(--navy); border: 1.5px solid var(--white);
}
.lang__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: .5rem .875rem;
  color: var(--white); text-decoration: none; font: 600 1rem/1.2 var(--font-body);
}
.lang__list a:hover { background: rgb(255 255 255 / .14); }
.lang__list a[aria-current="true"] { background: var(--white); color: var(--navy); }
.lang__list a[aria-current="true"]::after { content: ""; flex: none; width: .5rem; height: .5rem; background: var(--sky); }

/* with JavaScript the narrow-screen menu becomes a panel */
.js .site-header__bar { flex-wrap: nowrap; }
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: 0 .25rem 0 .75rem;
  background: none; border: 0; color: var(--white); font-weight: 600; font-size: .9375rem; cursor: pointer;
}
.nav-toggle__icon { position: relative; display: block; width: 1.5rem; height: 1.125rem; }
.nav-toggle__icon span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 50%; margin-top: -1px; }
.nav-toggle__icon span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 69.99rem) {
  .js .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; justify-content: flex-start; flex-wrap: nowrap; gap: 2rem;
    padding: 2.5rem var(--gutter) 3rem; overflow-y: auto;
    background: var(--navy);
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list a { width: 100%; padding: 1rem 0; border-bottom: 1px solid rgb(255 255 255 / .25); font: 600 1.75rem/1.2 var(--font-display); }
  .js .site-nav__cta { min-height: 3.5rem; font-size: 1.0625rem; }
}

@media (min-width: 70rem) {
  .site-header__bar { flex-wrap: nowrap; }
  .site-header__bar > .site-nav { order: 2; margin-inline-start: auto; }
  .site-header__bar > .lang { order: 3; margin-inline-start: 1.5rem; }
  .site-nav { flex-basis: auto; padding-bottom: 0; flex-wrap: nowrap; gap: 2.5rem; }
  .site-nav__list { gap: 2.25rem; }
  .js .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 3rem * var(--fit, 1)) 0 calc(9rem * var(--fit, 1));   /* --fit (js/main.js, 0.7 to 1) shrinks the hero text and spacing just enough that the hero fits a short window */
  background: var(--navy); color: var(--white);
}
/* The media box holds everything that scales and dims at the curtain exit: four photo layers, the overlay, the grid and frame. */
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--navy); }

/* Photo layers. Without JavaScript only the first shows. js/main.js writes --z (stacking), --clip (how much of the layer is
   still covered from the top, 0 to 100), --sc (zoom) and --py (parallax) on each, for both the timed wipe and the scroll story. */
.hero__layer { position: absolute; inset: 0; overflow: hidden; z-index: var(--z, 0); clip-path: inset(calc(var(--clip, 100) * 1%) 0 0 0); }
.hero__layer:first-child { --clip: 0; --z: 1; }
.hero__layer img { position: absolute; inset: -7% 0; width: 100%; height: 114%; max-width: none; object-fit: cover; translate: 0 calc(var(--py, 0) * 1%); scale: var(--sc, 1); }
.hero__img { object-position: 55% 50%; }
/* keep each photo's subject in frame when a tall phone screen crops the sides */
.hero__layer:nth-child(2) img { object-position: 28% 50%; }
.hero__layer:nth-child(3) img { object-position: 64% 50%; }
.hero__layer:nth-child(4) img { object-position: 80% 50%; }
/* Natural-colour photos under a flat navy shade, no colour blend: the photos keep their own colours and detail. Each photo has its own shade (--shade) because they differ in brightness;
   with the extra .08 of .hero__overlay, white text keeps at least 6.5:1 on the brightest 2% of the area behind the text (measured: bright sky, white office walls), and the headline
   and lead carry a soft shadow so the letters stay crisp over detail. */
.hero__layer::after { content: ""; position: absolute; inset: 0; background: rgb(0 43 99 / var(--shade, .6)); pointer-events: none; }
.hero__layer:nth-child(1) { --shade: .66; }   /* the split hero: .66 keeps the sky-blue "ONE GROUP." at 3:1 or more over every part of the photos (measured, with its shadow) */
.hero__layer:nth-child(2) { --shade: .66; }
.hero__layer:nth-child(3) { --shade: .66; }
.hero__layer:nth-child(4) { --shade: .74; }

/* split hero (layer 1): the three businesses side by side, divided by the same hairlines as the opening shutter, so each shutter panel uncovers
   its own company. Each photo zooms slowly in and out, out of step with the others (pure CSS; "Pause motion" stops it; a cell can hold a video later). */
.hero__layer--split { display: flex; }
.hero__cell { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; }
.hero__cell + .hero__cell { border-inline-start: 1px solid rgb(255 255 255 / .22); }
.hero__pic { position: absolute; inset: 0; display: block; }
.hero__layer--split .hero__cell-media { object-position: var(--zx, 50%) var(--zy, 50%); transform-origin: var(--zx, 50%) var(--zy, 50%); animation: hero-cell-zoom 16s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -5.3s); }
.hero__cell:nth-child(1) { --zx: 50%; --zy: 66%; }
.hero__cell:nth-child(2) { --zx: 40%; --zy: 50%; }
.hero__cell:nth-child(3) { --zx: 35%; --zy: 45%; }
@keyframes hero-cell-zoom { from { transform: scale(1); } to { transform: scale(1.15); } }
.hero__title, .hero__slogan, .hero__lead, .co-text__kind, .co-text__name, .co-text__tag { text-shadow: 0 1px 2px rgb(0 20 50 / .4), 0 4px 26px rgb(0 20 50 / .38); }

.hero__overlay { position: absolute; inset: 0; z-index: 5; background: rgb(0 43 99 / .08); }

/* blueprint grid and corner marks, drawn over the photos */
.hero__grid { position: absolute; left: 0; right: 0; top: -20%; height: 140%; z-index: 6; pointer-events: none; translate: 0 calc(var(--u, 0) * -22vh); translate: 0 calc(var(--u, 0) * -22svh); will-change: translate; }
.hero__grid .container, .hero__grid-cols { height: 100%; }
.hero__grid-cols {
  border-inline: 1px solid rgb(255 255 255 / .1);
  background-image: linear-gradient(to right, rgb(255 255 255 / .1) 1px, transparent 1px);
  background-size: calc(100% / 4) 100%;
}
@media (min-width: 60rem) { .hero__grid-cols { background-size: calc(100% / 6) 100%; } }
.hero__frame { top: calc(var(--header-h) + 20px); right: 20px; bottom: 20px; left: 20px; z-index: 6; opacity: .85; }

.tab { display: block; width: 3.5rem; height: .5rem; margin-bottom: calc(2rem * var(--fit, 1)); background: var(--sky); }
.hero__title { font: 700 min(clamp(2.5rem, 8.6vw, 7.5rem), 12vh)/1.02 var(--font-display); font-size: calc(min(clamp(2.5rem, 8.6vw, 7.5rem), 12vh) * var(--fit, 1)); letter-spacing: -.01em; }   /* two short lines; 12vh keeps them inside short screens. The longest line is French "3 ENTREPRISES." */
.hero__title .line { display: block; }
.hero__title .line:first-child { color: var(--sky); }   /* "ONE GROUP." in sky blue, "3 COMPANIES." in white */
/* the slogan under "ONE GROUP. 3 COMPANIES.": three short phrases with sky squares between them */
.hero__slogan { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; margin-top: calc(1.5rem * var(--fit, 1)); font: 500 max(1rem, calc(clamp(1.125rem, 1.9vw, 1.625rem) * var(--fit, 1)))/1.3 var(--font-display); }
.hero__slogan li { display: inline-flex; align-items: center; gap: 1.25rem; }
.hero__slogan li + li::before { content: ""; flex: none; width: .375em; height: .375em; background: var(--sky); }
/* phones: the three parts as a short list (a wrapped row would start its second line with a square) */
@media (max-width: 39.99rem) {
  .hero__slogan { flex-direction: column; gap: .25rem; }
  .hero__slogan li { gap: .75rem; }
  .hero__slogan li::before { content: ""; flex: none; width: .375em; height: .375em; background: var(--sky); }
}
.hero__lead { max-width: 42rem; margin-top: calc(1.75rem * var(--fit, 1)); font-size: max(.9375rem, calc(clamp(1.0625rem, 1.5vw, 1.375rem) * var(--fit, 1))); line-height: 1.55; }
.hero__actions { display: grid; gap: calc(1rem * var(--fit, 1)); margin-top: calc(2.5rem * var(--fit, 1)); }
@media (min-width: 30rem) { .hero__actions { display: flex; flex-wrap: wrap; } }

.line, .rise { opacity: 0; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + 200ms); }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1.25rem, 4vh, 2.5rem); margin-left: -1.75rem;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  border: 2px solid var(--white); border-radius: 50%; color: var(--white);
  animation: bounce 2s ease-in-out infinite; transition: background-color .2s, color .2s;
}
.scroll-cue:hover, .scroll-cue:focus-visible { background: var(--white); color: var(--navy); animation-play-state: paused; }

.motion-toggle {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 2rem);
  display: none; align-items: center; min-height: 2.75rem; padding: 0 .25rem;
  background: none; border: 0; border-radius: 0; color: var(--white); cursor: pointer;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); text-underline-offset: .5em;
}
.js .motion-toggle { display: inline-flex; }
@media (min-width: 40rem) { .motion-toggle { top: auto; bottom: clamp(1.5rem, 5vh, 3rem); } }
.motion-toggle:hover { text-decoration-color: var(--white); }

@media (max-width: 39.99rem) {
  /* phones: the pause control sits under the header, below the corner brackets; the headline block starts lower to make room */
  .hero { padding-top: calc(var(--header-h) + 5.5rem * var(--fit, 1)); padding-bottom: calc(7.5rem * var(--fit, 1)); }
  .motion-toggle { top: calc(var(--header-h) + 2.75rem); }
}

@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.75rem); } }

/* ---------- Opening shutter (homepage) ----------
   The first screen: three navy panels, one per company, and a white banner along the bottom. The panels' contents rise in one after
   another, then the screen waits. Scrolling, swiping, a key, a click or the button (js/main.js adds .shutter-open) drops the banner and
   slides the panels down, left to right, onto the hero, whose headline rises in as they clear; .shutter-done then removes it.
   The head script adds .shutter-on (homepage, no #section link, no reduced motion) and opens it by itself if js/main.js never starts. */
.shutter { display: none; }
.shutter-on .shutter { position: fixed; inset: 0; z-index: 250; display: grid; grid-template-rows: minmax(0, 1fr) auto; cursor: pointer; }
.shutter-open .shutter { pointer-events: none; }
.shutter-done .shutter { display: none; }
.shutter__panels { display: flex; min-height: 0; }
.shutter__panel {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .625rem;
  padding: 2rem clamp(1rem, 3vw, 3rem) clamp(2rem, 7vh, 4.5rem);
  background: var(--navy); color: var(--white);
}
.shutter__panel + .shutter__panel { border-inline-start: 1px solid rgb(255 255 255 / .18); }
.shutter__panel > :not(.shutter__bg) { animation: shutter-text .9s var(--ease) both; animation-delay: calc(.3s + var(--k, 0) * .25s); }
/* each panel's photo: it appears out of the navy, then zooms slowly (each out of step), under a flat navy shade that keeps the white
   text and the sky numbers readable (--shade-intro) */
.shutter__panel { position: relative; overflow: hidden; isolation: isolate; }
.shutter__panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(0 43 99 / var(--shade-intro, .78)); }
.shutter__bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--bx, 50%) 50%;
  transform-origin: var(--bx, 50%) 50%;
  animation: shutter-bg-in 1.4s var(--ease) both, shutter-bg-zoom 18s ease-in-out infinite alternate;
  animation-delay: calc(.15s + var(--k, 0) * .25s), calc(var(--k, 0) * -6s);
}
.shutter__panel:nth-child(1) { --bx: 55%; }
.shutter__panel:nth-child(2) { --bx: 45%; }
.shutter__panel:nth-child(3) { --bx: 50%; }
@keyframes shutter-bg-in { from { opacity: 0; } }
@keyframes shutter-bg-zoom { from { scale: 1; } to { scale: 1.12; } }
.shutter__no { margin-bottom: auto; padding-top: clamp(4rem, 12vh, 7rem); font: 600 clamp(1.25rem, 2.2vw, 2rem)/1 var(--font-display); color: var(--white); }   /* numbers line up at the top, names at the bottom */
.shutter__no::before { content: ""; display: block; width: 2.5rem; height: 5px; margin-bottom: .875rem; background: var(--sky); }   /* white number (sky text would drop under 3:1 on the brighter photos), sky bar above it */
.shutter__logo { display: block; width: min(100%, 17rem); height: auto; }
.shutter__mark {       /* letter placeholder until the company's logo arrives */
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 2.25em; padding: .18em .3em;
  border: 3px solid var(--white); font: 700 clamp(1.5rem, 4vw, 3.75rem)/1 var(--font-display); letter-spacing: .02em;
}
.shutter__kind { font-size: clamp(.875rem, 1.2vw, 1.125rem); }
@media (max-width: 39.99rem) { .shutter__kind { display: none; } }     /* phones: a third of the width */

/* the banner: sky rule on top, the two-part title (navy, then sky: 3.3:1 on white, large bold text only) and the button */
.shutter__band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem;
  padding: clamp(1.25rem, 3.6vh, 2.25rem) clamp(1rem, 3vw, 3rem);
  background: var(--white); color: var(--navy); border-top: 6px solid var(--sky); cursor: auto;
  animation: shutter-band-in .9s var(--ease) 1.1s both;
}
.shutter__title { margin: 0; font: 700 max(1.5rem, min(2.6vw, 2.5rem))/1.15 var(--font-display); letter-spacing: -.01em; }
.shutter__t1, .shutter__t2 { white-space: nowrap; }
.shutter__t2 { color: var(--sky); }
.shutter__go { flex: none; }
.shutter__go:hover .btn__icon { transform: translateY(3px); }   /* the arrow points down, so it nudges down */
.shutter__go .btn__icon { animation: shutter-nudge 1.8s var(--ease) 2.2s 2; }   /* two nudges, then still (under 5 s of motion) */
@media (max-width: 39.99rem) {
  .shutter__t1, .shutter__t2 { white-space: normal; display: block; }
  .shutter__go { width: 100%; }
}

/* opening: the banner drops away first, then the panels follow, left to right */
.shutter-open .shutter__band { animation: shutter-band-out .6s cubic-bezier(.65, 0, .35, 1) both; }
.shutter-open .shutter__panel { animation: shutter-down 1.25s cubic-bezier(.65, 0, .25, 1) both; animation-delay: calc(.3s + var(--k, 0) * .22s); }
@keyframes shutter-down { to { transform: translateY(100vh); visibility: hidden; } }
@keyframes shutter-text { from { opacity: 0; transform: translateY(1rem); } }
@keyframes shutter-band-in { from { transform: translateY(100%); } }
@keyframes shutter-band-out { to { transform: translateY(100%); visibility: hidden; } }
@keyframes shutter-nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(.25rem); } }
/* the headline waits for the panels: paused while the shutter is closed, then rises in as the last panel leaves */
.shutter-on:not(.shutter-open) .line, .shutter-on:not(.shutter-open) .rise { animation-play-state: paused; }
.shutter-on .line, .shutter-on .rise { animation-delay: calc(var(--i, 0) * 140ms + 1.1s); }

/* ---------- Key figures ---------- */
.figures { padding-block: var(--section-y); }
.figures__grid { display: grid; margin-top: clamp(2.5rem, 6vw, 5rem); column-gap: clamp(1.5rem, 3vw, 3rem); }
.fig { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem); border-top: 2px solid var(--navy); }
.fig__num { display: block; font: 600 clamp(4.5rem, 10.5vw, 8rem)/.95 var(--font-display); letter-spacing: -.02em; color: var(--navy); }
.fig__label { margin-top: 1rem; font-weight: 600; font-size: 1.125rem; }
.fig__note { display: block; font-weight: 400; font-size: 1rem; }

@media (min-width: 48rem) {
  .figures__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fig { grid-column: span 2; }
  .fig:nth-child(n + 4) { grid-column: span 3; }
}

/* ---------- Businesses ---------- */
.businesses__intro { padding-block: var(--section-y) clamp(3rem, 6vw, 5rem); display: grid; gap: 1.5rem; }
.businesses__intro strong { color: var(--navy); }

.biz { display: grid; --muted: var(--slate); }
.biz__media { position: relative; isolation: isolate; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.biz__img {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover;
  translate: 0 var(--shift, 0px); scale: calc(var(--zoom, 1) * var(--enter, 1));
  transition: scale .9s var(--ease);
}
.biz__media:hover .biz__img { --zoom: 1.04; }
/* A flat navy shade over the panel photos: richer and calmer than the bare photos, and it lifts a little on hover. */
.biz__media::after { content: ""; position: absolute; inset: 0; background: rgb(0 30 70 / .34); pointer-events: none; transition: background-color .5s var(--ease); }
.biz__media:hover::after { background: rgb(0 30 70 / .2); }
/* WordPress only: a photo picked in the Media Library is one landscape file, so keep each subject in frame when the panel is tall */
.biz__img[data-slot="panel_cesan"] { object-position: 50% 66%; }
.biz__img[data-slot="panel_ozalucast"] { object-position: 40% 50%; }
.biz__img[data-slot="panel_oztechup"] { object-position: 35% 50%; }

.biz__body { display: flex; align-items: center; padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 6vw, 6.5rem); background: var(--white); color: var(--ink); }
.biz__inner { width: 100%; max-width: 34rem; }

.biz__index { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; font: 600 clamp(3.5rem, 6vw, 5.5rem)/1 var(--font-display); color: var(--sky); }
.biz__index::after { content: ""; width: 4.5rem; height: 4px; background: var(--sky); }
.biz__name { font: 600 clamp(2rem, 3.6vw, 3.25rem)/1.08 var(--font-display); letter-spacing: -.01em; color: var(--navy); }
.biz__tagline { margin-top: .875rem; font: 500 clamp(1.125rem, 1.6vw, 1.375rem)/1.35 var(--font-display); color: var(--text); }
.biz__desc { margin-top: 1.25rem; color: var(--muted); }

.biz__facts { margin-top: 1.75rem; }
.biz__facts li { position: relative; padding: .75rem 0; padding-inline-start: 1.5rem; border-top: 1px solid var(--rule); }
.biz__facts li:last-child { border-bottom: 1px solid var(--rule); }
.biz__facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.3rem; width: .5rem; height: .5rem; background: var(--sky); }

.biz__certs { margin-top: 1.5rem; }
.biz__certs-label { font: 600 .75rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.biz__certs-note { max-width: 34rem; margin-top: .75rem; font-size: .9375rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .625rem; }
.chips li { padding: .3rem .7rem; border: 1.5px solid currentColor; font-weight: 600; font-size: .8125rem; letter-spacing: .04em; }
.biz .btn { margin-top: 2.25rem; }

/* each business: its own ground, numeral colour and image, one sky accent */
.biz--cesan .biz__body { background: var(--bone); --muted: var(--ink); --rule: rgb(22 32 43 / .25); }
.biz--cesan .biz__index { color: var(--navy); }
.biz--ozalucast .biz__body { background: var(--navy); color: var(--white); --text: var(--white); --muted: var(--white); --rule: rgb(255 255 255 / .3); }
.biz--ozalucast .biz__name { color: var(--white); }
.biz--oztechup .biz__body { background: var(--white); }

@media (min-width: 60rem) {
  .biz { grid-template-columns: 1fr 1fr; min-height: min(100vh, 58rem); min-height: min(100svh, 58rem); }
  .biz__media { aspect-ratio: auto; }
  .biz--flip .biz__media { order: 2; }
}

/* ---------- Global presence ---------- */
.presence { padding-block: var(--section-y); }
.presence__head { display: grid; gap: 1.5rem; }
.presence__grid { display: grid; gap: 2.5rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 64rem) { .presence__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 3rem; } .presence__grid .map { align-self: center; } }

/* The world map. .map is the window, .map__stage the map itself (same 1000 : 570 shape as the SVG); pins and the route sit inside the stage in % of it.
   From 64rem the stage fills the window. Below that it is zoomed in (--z) and centred on the midpoint of the two offices (58.33% across, 44.85% down),
   because a whole world on a phone would put the two pins on top of each other. --ac is the window's own width / height. */
.map { --z: 1; --ac: 1.754; position: relative; width: 100%; aspect-ratio: 1000 / 570; overflow: hidden; }
.map__stage { position: absolute; inset: 0; }
@media (max-width: 63.99rem) {
  .map { --z: 2; --ac: 1.5; aspect-ratio: 1.5; }
  .map__stage {
    inset: auto; width: calc(var(--z) * 100%); aspect-ratio: 1000 / 570;
    left: calc(50% - .5833 * var(--z) * 100%);
    top: calc(50% - .4485 * var(--z) * .57 * var(--ac) * 100%);
  }
}
@media (max-width: 39.99rem) { .map { --z: 3.2; --ac: 1.15; aspect-ratio: 1.15; } }
.map__dots, .map__route { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__route { overflow: visible; }
.map__line { fill: none; stroke: var(--sky); stroke-width: calc(2.5 / var(--z)); stroke-opacity: .55; }   /* widths are divided by the zoom so lines stay the same thickness */
.map__flow { fill: none; stroke: var(--white); stroke-width: calc(2.5 / var(--z)); stroke-dasharray: calc(6 / var(--z)) calc(18 / var(--z)); animation: flow 1.4s linear infinite; }
.js .map__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .map.is-visible .map__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease) .3s; }

.pin { position: absolute; width: 0; height: 0; }
.pin::before { content: ""; position: absolute; left: -.5rem; top: -.5rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); }
.pin::after { content: ""; position: absolute; left: -1.375rem; top: -1.375rem; width: 2.75rem; height: 2.75rem; border: 2px solid var(--sky); border-radius: 50%; animation: pulse 2.8s ease-out infinite; }
.pin__label { position: absolute; right: 1.25rem; top: -1.5rem; padding: .35rem .6rem; background: var(--navy); font: 600 clamp(.875rem, 1.6vw, 1.125rem)/1 var(--font-display); color: var(--white); white-space: nowrap; }
.pin--b .pin__label { right: auto; left: 1.25rem; top: -.5rem; }

@keyframes flow { to { stroke-dashoffset: calc(-24 / var(--z, 1)); } }
@keyframes pulse { 0% { transform: scale(.35); opacity: .95; } 100% { transform: scale(1); opacity: 0; } }

.offices { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) and (max-width: 63.99rem) { .offices { grid-template-columns: 1fr 1fr; } }
.office { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid rgb(255 255 255 / .4); }
.office__country { font: 600 .75rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.office__city { margin: .5rem 0 1.25rem; font: 600 2rem/1.1 var(--font-display); }
.office address p + p { margin-top: 1rem; }
.office a { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.office a:hover { text-decoration-thickness: 3px; }

/* ---------- Trusted by ---------- */
.trusted { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--rule); }
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 40rem) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo { display: grid; place-items: center; height: 5.5rem; padding: .75rem 1rem; border-top: 2px solid var(--navy); }
.logo img { width: var(--w, 80%); height: auto; max-height: 3.5rem; object-fit: contain; filter: grayscale(1) brightness(.7) contrast(1.25); opacity: .9; transition: filter .25s, opacity .25s; }   /* one even dark grey, so pale logos (Magna, Beko) carry the same weight as black ones */
.logo:hover img { filter: none; opacity: 1; }
.note { margin-top: 1.5rem; color: var(--muted); font-size: .9375rem; }

/* ---------- About ---------- */
.about { padding-block: var(--section-y); }
.about__grid { display: grid; gap: 2.5rem; }
.about__grid .display { margin-top: 1.5rem; }
.about__text { display: grid; gap: 1.5rem; max-width: 40rem; align-content: start; }
.about__text p:not(.lead) { color: var(--ink); }
@media (min-width: 64rem) { .about__grid { grid-template-columns: 6fr 5fr; gap: clamp(3rem, 8vw, 8rem); } .about__text { padding-top: 3.25rem; } }

/* ---------- Our approach ---------- */
.approach { padding-block: var(--section-y); }
.approach .display { margin-top: 1.5rem; }
/* The Businesses, About and Approach headings are set in capitals (Arabic has no capitals) and break into lines: the accent line is in the Sky blue (large text, 3.3:1 on white), and the
   Contact heading ends in the same blue. On the Bone sections the blue is a hair deeper (--accent) so it still reaches 3:1. A heading never breaks inside a word: no hyphens, and the
   capitals shrink on a phone instead (the longest word, French "SPÉCIALISÉES.", fits 320 px). */
#businesses-title, #about-title, #approach-title { text-transform: uppercase; font-size: clamp(1.75rem, 5.2vw, 4.5rem); }
.h-line { display: block; }
.h-line--accent { color: var(--accent, var(--sky)); }
.h-line--sub { margin-top: .75rem; max-width: 30ch; font-size: max(.42em, 1.25rem); font-weight: 500; line-height: 1.25; letter-spacing: 0; text-transform: none; color: var(--navy); }
.surface-bone { --accent: #4191C3; }
.steps { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); counter-reset: none; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2rem; } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }
.step { position: relative; padding-top: 1.75rem; border-top: 2px solid var(--navy); }
.step::before { content: ""; position: absolute; inset-inline-start: 0; top: -4px; width: 4rem; height: 6px; background: var(--sky); }
.step__no { margin-bottom: 1rem; font: 600 clamp(2.5rem, 4vw, 3.5rem)/1 var(--font-display); color: var(--navy); }
.step__title { margin-bottom: .625rem; font: 600 1.5rem/1.2 var(--font-display); color: var(--navy); }
.step p:last-child { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section-y); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 64rem) { .contact__grid { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; } }
@media (min-width: 64rem) { .contact__intro { position: sticky; top: calc(var(--header-h) + 2rem); } }
.contact__intro { display: grid; gap: 1.5rem; align-content: start; }
.contact__sites { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px solid var(--navy); display: grid; gap: .75rem; }
.contact__sites-title { font: 600 1.25rem/1.2 var(--font-display); color: var(--navy); }
.site-links { display: grid; gap: .5rem; margin-top: .5rem; }

.contact__form { padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border: 1px solid var(--rule); }
.form-note { margin-bottom: 1.5rem; font-size: .9375rem; }
.req { font-weight: 400; font-size: .875rem; }

.field { margin-bottom: 1.5rem; }
.field label { display: block; margin-bottom: .5rem; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3.25rem; padding: .75rem 1rem;
  background: var(--white); border: 1.5px solid var(--slate); border-radius: 0; color: var(--ink);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 3rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002B63' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .875rem center; background-size: 1.375rem;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--navy); outline-offset: 2px; }

/* Custom drop-down (js/main.js, "Custom drop-down"). On a device with a mouse the <select> is replaced by a button that looks like the other fields, with a navy arrow tile,
   and a list with the logo's sky tab on the highlighted choice. The real <select> stays in the page, hidden, so forms and form plugins work as before. Phones keep the native picker. */
.select { position: relative; }
.select__native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select__btn {
  display: flex; align-items: stretch; width: 100%; min-height: 3.25rem; padding: 0; padding-inline-start: 1rem;
  background: var(--white); border: 1.5px solid var(--slate); border-radius: 0; color: var(--ink); font: inherit; text-align: start; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.select__btn:hover, .select.is-open .select__btn { border-color: var(--navy); }
.select.is-open .select__btn { box-shadow: 0 0 0 1px var(--navy); }
.select__btn:focus-visible { border-color: var(--navy); outline-offset: 2px; }
.select__btn:disabled { cursor: not-allowed; opacity: .6; }
.select__value { flex: 1; min-width: 0; padding-block: .75rem; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select__btn.is-placeholder .select__value { color: var(--muted); }
.select__arrow { position: relative; flex: none; width: 3.25rem; margin-inline-start: .75rem; background: var(--navy); transition: background-color .2s; }
.select__arrow::after {
  content: ""; position: absolute; inset: 0; transition: transform .25s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='square'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") center / 1.375rem no-repeat;
}
.select__btn:hover .select__arrow { background: var(--ink); }
.select.is-open .select__arrow::after { transform: rotate(180deg); }
.select__list {
  position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + .375rem); max-height: 17rem; margin: 0; padding: 0; overflow-y: auto; list-style: none;
  background: var(--white); border: 1.5px solid var(--navy); box-shadow: 0 22px 44px -18px rgb(0 20 50 / .45);
}
.select.is-up .select__list { top: auto; bottom: calc(100% + .375rem); }
.select__list[hidden] { display: none; }
.select__option { position: relative; padding: .9375rem 3.25rem .9375rem 1.25rem; padding-inline: 1.25rem 3.25rem; font-weight: 500; line-height: 1.3; cursor: pointer; border-bottom: 1px solid var(--rule); }
.select__option:last-child { border-bottom: 0; }
.select__option.is-active { background: var(--bone); color: var(--navy); }
.select__option.is-active::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: .3125rem; background: var(--sky); }
.select__option[aria-selected="true"] { font-weight: 700; color: var(--navy); }
.select__option[aria-selected="true"]::after {
  content: ""; position: absolute; inset-inline-end: 1.125rem; top: 50%; width: 1.25rem; height: 1.25rem; translate: 0 -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002B63' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field.has-error .select__btn, .select__btn.is-invalid { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.field__hint { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }
.field__hint a { color: var(--navy); font-weight: 600; }

/* errors never rely on colour alone: heavier border, "!" icon and the word "Error" */
.field__error { display: flex; align-items: flex-start; gap: .625rem; margin-top: .5rem; font-weight: 600; color: var(--ink); }
.field__error[hidden] { display: none; }
.field__error::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.375rem; height: 1.375rem; margin-top: .125rem; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .875rem; line-height: 1; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }

.form-errors { margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; border: 3px solid var(--navy); border-inline-start-width: 12px; }
.form-errors[hidden] { display: none; }
.form-errors__title { margin-bottom: .75rem; font: 600 1.375rem/1.2 var(--font-display); color: var(--navy); }
.form-errors ul { display: grid; gap: .375rem; }
.form-errors a { color: var(--navy); font-weight: 600; }

.form-status { margin-top: 1.25rem; padding: 1.25rem 1.5rem; border-inline-start: 12px solid var(--sky); background: var(--bone); }
.form-status[hidden] { display: none; }
.form-fineprint { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); }
.form-fineprint a { color: var(--navy); font-weight: 600; }

/* Comfortable hit areas for text links (WCAG 2.2 target size): extra padding grows the clickable area without moving the text. */
.legal__body a, .form-fineprint a, .field__hint a, .consent__text a { padding-block: .3rem; }
.link { display: inline-block; padding-block: .3rem; }
a[href^="tel:"], a[href^="mailto:"] { display: inline-block; padding-block: .4rem; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(4rem, 8vw, 6rem); }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 40rem) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 2.2fr 1.4fr 1fr 1fr; gap: 3rem; } .footer__brand { grid-column: auto; } }
.footer__brand .brand img { width: 11rem; }
.footer__brand p { max-width: 26rem; margin-top: 1.5rem; }
.footer__title { margin-bottom: 1rem; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.footer__col ul { display: grid; gap: .5rem; }
.footer__col a, .footer__col .linklike { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: .25rem; text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer__base { margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.5rem; border-top: 1px solid rgb(255 255 255 / .3); font-size: .875rem; }

/* ---------- Legal pages (privacy, terms, cookies) ---------- */
.legal { min-height: 70vh; padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 var(--section-y); }
.legal .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; max-width: 52rem; }   /* minmax(0, ...) lets a wide table scroll inside .legal__table instead of widening the whole page on phones */
.legal h2 { margin-top: 1.5rem; font: 600 1.5rem/1.2 var(--font-display); color: var(--navy); }
.legal h3 { margin-top: .5rem; font: 600 1.125rem/1.3 var(--font-display); color: var(--ink); }
.legal__meta { font-size: .9375rem; color: var(--ink); }
.legal__body > * + * { margin-top: 1.25rem; }
.legal__body > h2 { margin-top: 2.25rem; }
.legal__body ul { padding-inline-start: 1.5rem; list-style: disc; }
.legal__body ol { padding-inline-start: 1.5rem; list-style: decimal; }
.legal__body li + li { margin-top: .5rem; }
.legal__body a { color: var(--navy); text-underline-offset: .25em; }
.legal__body h2 + *, .legal__body h3 + * { margin-top: .75rem; }
.legal__table { overflow-x: auto; }
.legal__body table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal__body th, .legal__body td { padding: .75rem .875rem; text-align: start; vertical-align: top; border: 1px solid var(--rule); }
.legal__body th { background: var(--white); font-weight: 600; }
.legal__note { padding: 1rem 1.25rem; border-inline-start: 8px solid var(--sky); background: var(--white); }
.legal h1 a { color: inherit; text-decoration: none; }

/* ---------- Scroll-linked motion ----------
   Everything below is driven by scroll position, so it plays forwards when you scroll down and in reverse when you
   scroll up. js/main.js writes the progress values (--p, --m, --s, --u ...) and smooths them; CSS does the drawing. */

/* reveals: --p runs 0 -> 1 as the element enters */
.js .reveal { --p: 0; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 2.25rem)); }

/* business panel text: one --p drives a staggered cascade (--k is each child's delay) */
.js .biz__inner.reveal { opacity: 1; transform: none; }
.js .biz__inner > * {
  --k: 0; --q: clamp(0, calc(var(--p, 1) * 2.6 - var(--k)), 1);
  opacity: var(--q); transform: translateY(calc((1 - var(--q)) * 1.5rem));
}
.biz__inner > :nth-child(2) { --k: .25; }
.biz__inner > :nth-child(3) { --k: .5; }
.biz__inner > :nth-child(4) { --k: .75; }
.biz__inner > :nth-child(5) { --k: 1; }
.biz__inner > :nth-child(6) { --k: 1.25; }
.biz__inner > :nth-child(7) { --k: 1.5; }

/* panel photos open like a blind and settle from a slight zoom */
.js .biz__media { clip-path: inset(0 0 calc((1 - var(--m, 1)) * 26%) 0); }

/* a sky seam draws across the top of each section as it arrives, and retracts if you scroll back */
[data-seam] { position: relative; }
.js [data-seam]::before {
  content: ""; position: absolute; z-index: 3; left: 0; top: 0; width: 100%; height: 4px;
  background: var(--sky); transform: scaleX(var(--s, 0)); transform-origin: left center; pointer-events: none;
}

/* ---------- Hero stage: a pinned scroll story ----------
   js/main.js adds .is-pinned only when the hero fits the screen and motion is allowed.
   Phases (u = story progress): headline -> the three businesses (photo wipes, 01/02/03 roll) -> curtain exit (--c).
   The photo layers are drawn by JS (see .hero__layer above), so the timed slideshow and the scroll wipes share one set of layers. */
.stage.is-pinned { height: 460vh; height: 460svh; }
.stage.is-pinned .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
html.stage-on .figures { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; }   /* the key figures slide up over the pinned hero (the curtain) */

.hero__dim { position: absolute; inset: 0; z-index: 7; background: var(--navy); opacity: 0; pointer-events: none; }
.stage.is-pinned .hero__dim { opacity: calc(var(--c, 0) * .7); }
.stage.is-pinned .hero__media { scale: calc(1 - .06 * var(--c, 0)); }

/* phase 1 leaves: headline, counter, scroll arrow and pause control fade out together */
.stage.is-pinned .hero__inner { opacity: calc(1 - var(--x1, 0)); translate: 0 calc(var(--x1, 0) * -6vh); }
.stage.is-pinned .hero__ind, .stage.is-pinned .scroll-cue, .stage.is-pinned .motion-toggle { opacity: calc(1 - var(--x1, 0)); }
.stage.is-intro-off .hero__inner, .stage.is-intro-off .hero__ind, .stage.is-intro-off .scroll-cue, .stage.is-intro-off .motion-toggle { visibility: hidden; }

.hero__cos, .hero__rail { display: none; }
.stage.is-pinned .hero__cos, .stage.is-pinned .hero__rail { display: block; opacity: var(--e, 0); }
.stage.is-pinned .hero__cos { translate: 0 calc((1 - var(--e, 0)) * 2.5rem); }   /* the company block rises into place as it fades in */
.stage.is-pinned:not(.is-cos-on) .hero__cos, .stage.is-pinned:not(.is-cos-on) .hero__rail { visibility: hidden; }
.stage.is-covered .scroll-cue, .stage.is-covered .motion-toggle { visibility: hidden; }

.hero__cos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__cos-inner { display: flex; flex-wrap: wrap; align-content: center; align-items: center; column-gap: clamp(1.5rem, 4vw, 4rem); row-gap: 1rem; height: 100%; padding-bottom: 6rem; }

.roll-wrap { display: flex; align-items: flex-start; gap: .75rem; }
.roll { flex: none; height: 1em; overflow: hidden; font: 700 clamp(7rem, 17vw, 16rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--white); }
.roll__col { display: flex; flex-direction: column; translate: 0 calc(var(--f, 0) * -1em); }
.roll__col span { display: block; height: 1em; line-height: 1; }
.roll__of { padding-top: .6em; font: 500 clamp(1rem, 1.4vw, 1.25rem)/1 var(--font-display); letter-spacing: .04em; }

/* the sky rule stays put while the three business texts slide past it */
.co-texts { display: grid; align-content: center; flex: 1 1 20rem; min-height: clamp(9rem, 14vw, 12rem); padding-inline-start: clamp(1.25rem, 2.4vw, 2.25rem); border-inline-start: 4px solid var(--sky); }
.co-text { grid-area: 1 / 1; align-self: center; opacity: clamp(0, calc(1 - var(--d, 1) * 1.8), 1); translate: 0 calc(var(--o, 0) * 3rem); }
.co-text__kind { margin-bottom: .875rem; font: 600 .8125rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.co-text__name { font: 600 clamp(2rem, 4.4vw, 4rem)/1.04 var(--font-display); }
.co-text__tag { max-width: 30rem; margin-top: .875rem; font: 500 clamp(1.125rem, 1.6vw, 1.375rem)/1.35 var(--font-display); }

.hero__rail { position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 4vh, 2.5rem); z-index: 2; }
.rail__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .875rem; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; }
.rail__cue { display: inline-flex; align-items: center; gap: .625rem; }
.hero__rail ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1.5rem); }
.hero__rail a { position: relative; display: block; min-height: 2.75rem; padding: 1rem 0 .25rem; color: var(--white); text-decoration: none; }
.rail__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.rail__no { font: 600 .9375rem/1.3 var(--font-display); }
.rail__name { font: 600 clamp(.875rem, 1.3vw, 1.0625rem)/1.3 var(--font-body); }
.hero__rail a:hover .rail__name { text-decoration: underline; text-underline-offset: .25em; }
.rail__bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgb(255 255 255 / .3); }
.rail__bar::after { content: ""; position: absolute; inset: 0; background: var(--sky); transform: scaleX(var(--fill, 0)); transform-origin: left center; }

/* ---------- The three companies (straight after the hero) ----------
   Three equal columns, so "three companies" reads at a glance: the photo shown clean on top, a navy text block under it, 01 / 02 / 03 on a
   navy tab. On wide screens the column you point at widens. Phones stack the columns. With JavaScript the photos wipe in one after another
   as the section slides up over the hero (--t, written by js/main.js; --k is the column's place in the sequence). */
/* The three-companies section below is not on the page at the moment (oztech/archive/trio-section.html); its styles stay for when it comes back. */
.trio { padding-top: clamp(4rem, 8vw, 6.5rem); }
.trio__head { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.trio__title { max-width: 22ch; }
.trio__cols { display: grid; border-top: 1px solid var(--rule); }
.trio__col { position: relative; display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--rule); }
.trio__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--ink); }
.trio__pic { display: block; width: 100%; height: 100%; }
.trio__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease); }
.trio__col:nth-child(1) .trio__img { object-position: 50% 66%; }
.trio__col:nth-child(2) .trio__img { object-position: 40% 50%; }
.trio__col:nth-child(3) .trio__img { object-position: 35% 50%; }
.trio__no {
  position: absolute; top: 0; inset-inline-start: 0; padding: .625rem 1rem .5rem;
  background: var(--navy); border-bottom: 4px solid var(--sky);
  font: 600 clamp(1.25rem, 2vw, 1.75rem)/1 var(--font-display); color: var(--white);
}
.trio__body { display: flex; flex-direction: column; gap: .375rem; padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) clamp(1.75rem, 3vw, 2.5rem); }
.trio__name { font: 600 clamp(1.625rem, 2.5vw, 2.375rem)/1.08 var(--font-display); letter-spacing: -.01em; overflow-wrap: normal; hyphens: none; text-wrap: balance; }
.trio__kind { font-size: 1.0625rem; }
.trio__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.75rem; margin-top: auto; padding-top: .875rem; }   /* bottom of the block: the links line up across the columns */
.trio__more, .trio__site { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--white); font-weight: 600; text-underline-offset: .35em; }
.trio__more { text-decoration: none; }
.trio__more::after { content: ""; position: absolute; inset: 0; }        /* the whole column is the link to its panel */
.trio__site { position: relative; z-index: 1; text-decoration: none; }    /* the website link stays clickable above it */
.trio__more:hover svg, .trio__site:hover svg { color: var(--sky); }
.trio__more svg, .trio__site svg { flex: none; transition: translate .25s var(--ease); }
.trio__col:hover .trio__more svg { translate: 0 3px; }
.trio__site:hover svg { translate: 2px -2px; }
[dir="rtl"] .trio__site svg { scale: -1 1; }
[dir="rtl"] .trio__site:hover svg { translate: -2px -2px; }

/* wide screens: one grid, the three columns share its two rows (photo, text), so the photos end on one line whatever the name length */
@media (min-width: 60rem) {
  .trio__cols {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(14rem, 1fr) auto;
    min-height: clamp(30rem, 66vh, 46rem); transition: grid-template-columns .7s var(--ease);
  }
  .trio__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; border-bottom: 0; }
  .trio__col + .trio__col { border-inline-start: 1px solid var(--rule); }
  .trio__media { aspect-ratio: auto; min-height: 0; }
  .trio__pic { position: absolute; inset: 0; }
  .trio__body { padding-inline: clamp(1.5rem, 2.6vw, 2.75rem); }
}
@media (min-width: 60rem) and (hover: hover) and (pointer: fine) {
  .trio__cols:has(> :nth-child(1):is(:hover, :focus-within)) { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); }
  .trio__cols:has(> :nth-child(2):is(:hover, :focus-within)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); }
  .trio__cols:has(> :nth-child(3):is(:hover, :focus-within)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr); }
  .trio__col:hover .trio__img, .trio__col:focus-within .trio__img { scale: 1.05; }
}

/* scroll: each column's photo wipes up from the bottom in turn, its text rises after it */
.js .trio__col { --q: clamp(0, calc(var(--t, 1) * 2.2 - var(--k, 0) * .45), 1); }
.js .trio__pic { clip-path: inset(calc((1 - var(--q)) * 100%) 0 0 0); scale: calc(1.12 - .12 * var(--q)); }
.js .trio__body > * { opacity: var(--q); translate: 0 calc((1 - var(--q)) * 1.25rem); }

/* ---------- Section menu on the FAQ and policy pages ----------
   Built by js/main.js from the page's h2 headings. Phones and tablets: a bar under the header ("On this page" + the section you are in) that
   opens the list. Wide screens: the list sits beside the text and stays in view while you scroll. The section you are reading is marked. */
html.has-toc { scroll-padding-top: calc(var(--header-h) + 4.25rem); }
.toc { --focus: var(--navy); position: sticky; top: var(--header-h); z-index: 40; margin-inline: calc(var(--gutter) * -1); }
.toc__title { display: none; }
.toc__toggle {
  display: flex; align-items: center; gap: .875rem; width: 100%; min-height: 3.25rem; padding: .625rem var(--gutter);
  background: var(--white); border: 0; border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule);
  color: var(--navy); font: 600 .9375rem/1.3 var(--font-body); text-align: start; cursor: pointer;
}
.toc__label { flex: none; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.toc__current { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.toc__chev { flex: none; transition: rotate .2s var(--ease); }
.toc.is-open .toc__chev { rotate: 180deg; }
.toc__list { display: none; }
.toc.is-open .toc__list { display: block; max-height: min(60vh, 28rem); overflow-y: auto; overscroll-behavior: contain; padding: .5rem var(--gutter) 1rem; background: var(--white); border-bottom: 1px solid var(--rule); }
.toc__list a {
  position: relative; display: block; padding: .5rem 0; padding-inline-start: 1.25rem;
  color: var(--ink); font-size: .9375rem; line-height: 1.45; text-decoration: none;
}
.toc__list a::before { content: ""; position: absolute; inset-inline-start: 0; top: 1rem; width: .4375rem; height: .4375rem; background: var(--rule); }
.toc__list a:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--sky); text-underline-offset: .2em; }
.toc__list a[aria-current="true"] { color: var(--navy); font-weight: 600; }
.toc__list a[aria-current="true"]::before { background: var(--sky); }

@media (min-width: 64rem) {
  html.has-toc { scroll-padding-top: calc(var(--header-h) + 1.5rem); }
  .legal.has-toc .container { max-width: 80rem; grid-template-columns: minmax(14rem, 18rem) minmax(0, 46rem); column-gap: clamp(3rem, 6vw, 6rem); justify-content: center; }
  .legal.has-toc .container > * { grid-column: 2; }
  .legal.has-toc .container > .toc {
    grid-column: 1; align-self: start; top: calc(var(--header-h) + 2rem); margin: 0;
    max-height: calc(100vh - var(--header-h) - 4rem); overflow-y: auto; overscroll-behavior: contain;
  }
  .toc__toggle { display: none; }
  .toc__title { display: block; padding-bottom: .875rem; border-bottom: 2px solid var(--navy); font: 600 .75rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
  .toc__list, .toc.is-open .toc__list { display: block; max-height: none; overflow: visible; padding: .5rem 0 0; background: none; border: 0; }
}

/* ---------- Thank-you page (shown after the contact form is sent) ---------- */
.legal--thanks .container { max-width: 46rem; }
.thanks__mark { width: clamp(4.5rem, 9vw, 5.75rem); color: var(--navy); }
.thanks__mark svg { width: 100%; height: auto; overflow: visible; }
.thanks__check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .thanks__check { animation: thanks-draw .9s var(--ease) .3s both; }
@keyframes thanks-draw { from { stroke-dashoffset: 1; } }
.legal__body .thanks__note { padding: 1rem 1.25rem; border: 2px solid var(--navy); background: var(--white); font-weight: 600; }
.legal__body .thanks__steps { list-style: none; padding: 0; margin-top: 1rem; border-top: 2px solid var(--navy); counter-reset: step; }
.legal__body .thanks__steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; margin: 0; padding: 1.125rem 0; border-bottom: 1px solid var(--rule); counter-increment: step; }
.legal__body .thanks__steps li::before { content: counter(step, decimal-leading-zero); font: 600 1.5rem/1.15 var(--font-display); color: var(--accent, var(--sky)); }
.legal__body .site-links { list-style: none; padding: 0; }
.legal__body .site-links li + li { margin-top: .25rem; }
.legal__body .thanks__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.legal__body a.btn { padding-block: .75rem; text-decoration: none; }
.legal__body a.btn--navy { color: var(--white); }
.btn--outline-navy { border-color: var(--navy); color: var(--navy); }
.btn--outline-navy:hover { background: var(--navy); color: var(--white); }
.legal__body a.btn--outline-navy:hover { color: var(--white); }

/* ---------- 404: an overhead crane lowers the "404" plate, between a die-cast part and a growing chart (the three businesses) ----------
   Plays once and settles in under five seconds (WCAG 2.2.2); with reduced motion everything is drawn in its final place. */
.legal--lost .container { max-width: 76rem; align-items: center; }
@media (min-width: 64rem) {
  .legal--lost .container { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(3rem, 6vw, 6rem); }
  .legal--lost .container > * { grid-column: 2; }
  .legal--lost .container > .lost__scene { grid-column: 1; grid-row: 1 / span 4; }
}
.lost__scene svg { width: 100%; height: auto; overflow: visible; }
.lost__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.lost__more { margin-top: 1rem; }
.lost__biz { display: grid; gap: 0; margin-top: .75rem; border-top: 2px solid var(--navy); }
.lost__biz-title { font: 600 1.125rem/1.3 var(--font-display); color: var(--navy); padding-bottom: .25rem; }
.lost__biz li { border-bottom: 1px solid var(--rule); }
.lost__biz a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; padding: .875rem 0; color: var(--ink); text-decoration: none; }
.lost__biz a:hover .lost__name { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 3px; text-underline-offset: .25em; }
.lost__name { font: 600 1.25rem/1.2 var(--font-display); color: var(--navy); }
.lost__kind { font-size: .9375rem; }
.crane__trolley { animation: crane-trolley 1.3s var(--ease) .2s both; }
.crane__hang { transform-box: view-box; transform-origin: 320px 104px; animation: crane-sway 1.1s ease-in-out 2.6s 2; }
.crane__ropes { transform-box: view-box; transform-origin: 320px 104px; animation: crane-ropes 1.2s var(--ease) 1.4s both; }
.crane__load { animation: crane-lower 1.2s var(--ease) 1.4s both; }
.die__part { transform-box: fill-box; transform-origin: center; animation: die-turn 2.4s var(--ease) .4s both; }
.chart__bar { transform-box: fill-box; transform-origin: 50% 100%; animation: chart-grow .8s var(--ease) both; animation-delay: calc(1.6s + var(--i) * .14s); }
@keyframes crane-trolley { from { translate: -230px 0; } }
@keyframes crane-ropes { from { scale: 1 .3; } }
@keyframes crane-lower { from { translate: 0 -150px; } }
@keyframes crane-sway { 25% { rotate: 1.6deg; } 75% { rotate: -1.6deg; } }
@keyframes die-turn { from { rotate: -120deg; } }
@keyframes chart-grow { from { scale: 1 0; } }

/* ---------- Cookie consent (js/consent.js) ---------- */
.consent { position: fixed; z-index: 300; inset: auto 0 0 0; background: var(--navy); color: var(--white); border-top: 4px solid var(--sky); --focus: var(--white); }
.consent[hidden] { display: none; }
/* on the homepage the cookie banner waits for the opening shutter (it would cover the shutter's banner and button), then slides up.
   Nothing non-essential runs before a choice is made, so waiting changes nothing for privacy. */
html.shutter-on:not(.shutter-done) .consent { display: none; }
html.shutter-done .consent:not([hidden]) { animation: consent-in .5s var(--ease) both; }
@keyframes consent-in { from { transform: translateY(100%); } }
.consent__inner { display: grid; gap: 1rem; padding-block: 1.25rem; }
@media (min-width: 56rem) { .consent__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem; } }
.consent__title { margin-bottom: .375rem; font: 600 1.125rem/1.2 var(--font-display); }
.consent__text p { max-width: 52rem; font-size: .9375rem; line-height: 1.55; }
.consent__text a { color: var(--white); text-underline-offset: .25em; }
.consent__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent__btn {
  min-height: 2.75rem; padding: .5rem 1.25rem; background: var(--white); color: var(--navy);
  border: 2px solid var(--white); border-radius: 0; cursor: pointer; font: 600 .9375rem/1.2 var(--font-body);
  transition: background-color .2s, color .2s;
}
.consent__btn:hover { background: var(--bone); border-color: var(--bone); }
.consent__btn--ghost { background: none; color: var(--white); }
.consent__btn--ghost:hover { background: var(--white); color: var(--navy); }
.consent__btn--dark { background: var(--navy); color: var(--white); border-color: var(--navy); }
.consent__btn--dark:hover { background: var(--ink); border-color: var(--ink); }
.consent__btn--ghost-dark { background: none; color: var(--navy); border-color: var(--navy); }
.consent__btn--ghost-dark:hover { background: var(--bone); border-color: var(--navy); }

.consent-dialog { width: min(92vw, 36rem); max-height: 92vh; padding: 0; border: 0; background: var(--white); color: var(--ink); overflow: auto; }
.consent-dialog::backdrop { background: rgb(0 20 45 / .8); }
.consent-dialog__form { display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 2rem); }
.consent-dialog__title { font: 600 1.5rem/1.2 var(--font-display); color: var(--navy); }
.consent-dialog__group { display: grid; gap: .75rem; margin: 0; padding: 0; border: 0; }
.consent-dialog__row { display: grid; grid-template-columns: auto 1fr; gap: .875rem; align-items: start; padding: 1rem; border: 1px solid var(--rule); cursor: pointer; }
.consent-dialog__row input { width: 1.25rem; height: 1.25rem; margin-top: .125rem; accent-color: var(--navy); }
.consent-dialog__hint { display: block; margin-top: .25rem; font-size: .9375rem; color: var(--ink); }
.consent-dialog__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.consent-dialog :focus-visible { outline-color: var(--navy); }

/* "Cookie settings" in the footer, styled as a link */
.linklike { padding: .25rem 0; background: none; border: 0; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.linklike:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- Languages: Arabic (right to left) and typography ---------- */
/* Arabic joins its letters, so letter-spacing and upper-casing must never touch it; its glyphs also need more line height. The Latin brand names and the digits keep
   Chakra Petch / Work Sans (they come first in the stack); Arabic letters fall through to Changa (headings) or Tajawal (text), then to the system's Arabic font. The font
   variables are set on <html> only, so the one Arabic word in the language menu on the other pages does not make them download Arabic fonts.
   Turkish needs lang="tr" on <html> so upper-casing turns i into İ: the builder sets it. */
html:lang(ar) {
  --font-display: "Chakra Petch", "Changa", "Segoe UI", Tahoma, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
  --font-body: "Work Sans", "Tajawal", "Segoe UI", Tahoma, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
}
:lang(ar) body { font-size: 1.125rem; line-height: 1.85; }
:lang(ar) *, :lang(ar) *::before, :lang(ar) *::after { letter-spacing: 0 !important; text-transform: none !important; }
:lang(ar) .hero__title, :lang(ar) .display, :lang(ar) h2, :lang(ar) h3 { line-height: 1.3; }
:lang(ar) .hero__title { font-size: calc(min(clamp(2.25rem, 7.6vw, 6.5rem), 10.5vh) * var(--fit, 1)); }
:lang(ar) .co-text__name, :lang(ar) .biz__name { line-height: 1.25; }
:lang(ar) .eyebrow, :lang(ar) .rail__head, :lang(ar) .ind__text, :lang(ar) .co-text__kind, :lang(ar) .office__country, :lang(ar) .footer__title { font-size: .9375rem; }

[dir="rtl"] .skip-link { left: auto; right: 1rem; }
[dir="rtl"] .progress__bar, [dir="rtl"] .rail__bar::after, [dir="rtl"] .ind__bars span::after,
[dir="rtl"] [data-seam]::before { transform-origin: right center; }
[dir="rtl"] [data-seam]::before { left: auto; right: 0; }
[dir="rtl"] .motion-toggle { right: auto; left: var(--gutter); }
[dir="rtl"] .hero__ind { left: auto; right: var(--gutter); }
[dir="rtl"] .roll-wrap, [dir="rtl"] .ind__n, [dir="rtl"] .fig__num { direction: ltr; unicode-bidi: isolate; }                       /* 01 /03 stays one left-to-right unit */
[dir="rtl"] .field select, [dir="rtl"] .contact__plugin select { padding-right: 1rem; padding-left: 3rem; background-position: left .875rem center; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }
/* the map is geography: it never mirrors. Addresses, phone numbers and emails are Latin text and stay left to right inside the right-aligned card. */
[dir="rtl"] .map { direction: ltr; }
[dir="rtl"] .pin__label { direction: rtl; }
[dir="rtl"] address { direction: ltr; text-align: right; unicode-bidi: isolate; }
[dir="rtl"] .lang__list a[dir="rtl"] { direction: rtl; }
[dir="rtl"] .legal__body code { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .legal__body th, [dir="rtl"] .legal__body td { text-align: right; }

/* ---------- Pause control (WCAG 2.2.2) ---------- */
.motion-paused .scroll-cue, .motion-paused .map__flow, .motion-paused .pin::after, .motion-paused .hero__cell-media { animation-play-state: paused; }

/* ---------- Review mode: add ?review to the URL to outline every placeholder ---------- */
.review [data-placeholder] { outline: 3px dashed var(--sky); outline-offset: 4px; }
.review-banner {
  position: fixed; z-index: 400; left: 1rem; bottom: 1rem; max-width: calc(100vw - 2rem);
  padding: .75rem 1rem; background: var(--white); color: var(--navy); border-left: 8px solid var(--sky);
  font-size: .875rem; font-weight: 600; box-shadow: none; border-top: 1px solid var(--navy); border-right: 1px solid var(--navy); border-bottom: 1px solid var(--navy);
}

/* ---------- Reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .select__arrow::after, .select__btn, .biz__media::after { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .line, .rise, .js .reveal, .js .biz__inner > * { opacity: 1; transform: none; }
  .js .biz__media { clip-path: none; }
  .js [data-seam]::before { display: none; }
  .js .map__line { stroke-dasharray: none; stroke-dashoffset: 0; }
  .biz__img { translate: none; scale: 1; }
  .pin::after { display: none; }
  .js .motion-toggle, .hero__ind { display: none; }
  .shutter { display: none !important; }
  .js .trio__pic { clip-path: none; scale: 1; }
  .js .trio__body > * { opacity: 1; translate: none; }
  .trio__img { scale: 1; }
  .trio__cols { transition: none; }
}

@media (forced-colors: active) {
  .btn, .motion-toggle { border: 2px solid ButtonText; }
  .progress__bar, .tab, .eyebrow::before { background: Highlight; }
}

/* if the scroll engine ever fails to start, show everything */
.no-scrub .reveal, .no-scrub .biz__inner > * { opacity: 1 !important; transform: none !important; }
.no-scrub .biz__media { clip-path: none !important; }
.no-scrub [data-seam]::before { display: none; }
.no-scrub .map__line { stroke-dasharray: none; stroke-dashoffset: 0; }
.no-scrub .trio__pic { clip-path: none !important; scale: 1 !important; }
.no-scrub .trio__body > * { opacity: 1 !important; translate: none !important; }
