/* ==========================================================================
   الدقة المتناهية — flagpoles in Kuwait
   Hand-written, mobile first. Logical properties so one sheet serves RTL + LTR.
   ========================================================================== */

@font-face {
  font-family: "Cairo";
  src: url("../fonts/cairo.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12304d;
  --navy-800: #0e2740;
  --navy-900: #0a1e33;
  --blue: #0f5e9c;
  --sky: #79b8ea;
  --sky-50: #f0f6fc;
  --orange: #f07a28;
  --orange-hi: #ff8c3f;
  --paper: #f6f9fc;
  --ink: #0d1b2a;
  --muted: #4a5d72;
  --line: #dbe5ee;
  --kw-green: #007a3d;
  --kw-red: #ce1126;
  --wa: #25d366;

  --r-lg: 24px;
  --r: 20px;
  --r-sm: 14px;
  --shadow-1: 0 1px 2px rgba(13, 27, 42, .05), 0 6px 16px rgba(13, 27, 42, .06);
  --shadow-2: 0 2px 6px rgba(13, 27, 42, .06), 0 18px 40px rgba(13, 27, 42, .12);
  --shadow-dark: 0 30px 70px rgba(2, 12, 24, .5);

  --gutter: 16px;
  --wrap: 1180px;
  --header-h: 64px;

  --flag-stripe: linear-gradient(90deg, #007a3d 0 25%, #fff 25% 50%, #ce1126 50% 75%, #000 75% 100%);
  /* eight-point star lattice, drawn once, used on the dark sections */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.075' stroke-width='1.2'%3E%3Crect x='24' y='24' width='48' height='48'/%3E%3Crect x='24' y='24' width='48' height='48' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v14M48 82v14M0 48h14M82 48h14M0 0l24 24M96 0 72 24M0 96l24-24M96 96 72 72'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
  color-scheme: only light;          /* brand colours stay as designed; no automatic dark-mode inversion */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 3px);   /* sticky header + its flag line */
  background: var(--navy-900);       /* what shows when a phone over-scrolls past the header or footer */
}
::selection { background: rgba(240, 122, 40, .32); }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
html[lang="en"] body { line-height: 1.65; }

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4 { line-height: 1.2; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, svg { max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
/* the orange ring is clear on navy but too faint on white and paper: the light sections get a navy ring */
.section :focus-visible { outline-color: var(--navy); }

.vh {
  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;
}
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the 8px mark main.js watches to know that the page has left the top (instead of a scroll listener) */
.top-mark { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; visibility: hidden; }
.nb { white-space: nowrap; }       /* a hyphenated name that must stay in one piece ("Co-operative") */
.icon { width: 24px; height: 24px; flex: none; display: block; }
html[dir="rtl"] .icon-chev { transform: scaleX(-1); }

.container {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 12px; background: var(--orange); color: var(--ink);
  font-weight: 800; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.skip-link:focus-visible { outline-color: #fff; }

.flagline { height: 3px; background: var(--flag-stripe); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 8px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn .num { font-weight: 900; font-variant-numeric: tabular-nums; }
/* the number is its own LTR island, so the divider side is set per page direction */
html[dir="rtl"] .btn span + .num { padding-right: .65em; border-right: 2px solid rgba(13, 27, 42, .28); }
html[dir="ltr"] .btn span + .num { padding-left: .65em; border-left: 2px solid rgba(13, 27, 42, .28); }
.btn-lg { min-height: 56px; padding-inline: 26px; font-size: 1.0625rem; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 24px rgba(240, 122, 40, .32); }
.btn-wa { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .34); color: #fff; }
.btn-wa .icon { color: var(--wa); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background: var(--orange-hi); box-shadow: 0 14px 30px rgba(240, 122, 40, .42); }
  .btn-wa:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }
}
.btn:active { transform: translateY(0); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: var(--navy-800);       /* solid: a see-through, blurred bar had to be re-blurred on every scrolled frame */
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(2, 12, 24, .35); }
.header-bar { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; margin-inline-end: auto; color: #fff; text-decoration: none; }
.brand-tile {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); overflow: hidden;
}
.brand-tile img { display: block; width: 34px; height: 34px; }
.brand-text { display: grid; min-width: 0; line-height: 1.35; }
.brand-name { font-weight: 800; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-weight: 600; font-size: .75rem; color: var(--sky); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[lang="en"] .brand-name { font-size: .9375rem; }
html[lang="en"] .brand-tag { font-size: .6875rem; }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.btn-call { min-height: 44px; width: 44px; padding: 0; box-shadow: none; }
.btn-call .num { display: none; }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .26); color: #fff;
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; transition: background-color .2s, border-color .2s;
}
.lang-switch .icon { width: 18px; height: 18px; color: var(--sky); }
/* the switch in the bar: hidden on the narrowest phones (it is in the menu), then a 44px pill with the
   language code ("EN" / "AR") wherever the bar has room for it, then the full button from 600px */
.lang-switch--top { display: none; width: 44px; padding: 0; }
.lang-switch--top .icon, .lang-switch--top .ls-full { display: none; }
.ls-short { font-weight: 800; letter-spacing: .02em; }
@media (hover: hover) { .lang-switch:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); } }

.menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06);
}
.menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* mobile menu: a panel under the header. Works without JS through :target. */
.site-nav { display: none; }
.site-nav.is-open, html:not(.js) .site-nav:target { display: block; }
.site-nav {
  position: absolute; inset-inline: 0; top: 100%;
  padding: 6px var(--gutter) 22px; background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 50px rgba(2, 12, 24, .5);
  max-height: calc(100vh - var(--header-h) - 3px); max-height: calc(100dvh - var(--header-h) - 3px); overflow-y: auto;
}
.nav-list a {
  display: flex; align-items: center; min-height: 54px; padding: 0 6px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.125rem; border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.nav-cta { display: grid; gap: 10px; margin-top: 18px; }
.menu-close {
  position: absolute; top: 10px; inset-inline-end: var(--gutter); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px; color: #fff; background: rgba(255, 255, 255, .1);
}
html.js .menu-close { display: none; }

@media (max-width: 359.98px) {          /* very small phones: keep the whole brand readable */
  .header-bar, .brand { gap: 8px; }
  .brand-tile { width: 38px; height: 38px; border-radius: 10px; }
  .brand-tile img { width: 30px; height: 30px; }
  .brand-name { font-size: .9375rem; }
  .brand-tag { font-size: .6875rem; }
  html[lang="en"] .brand-name { font-size: .8125rem; }
  html[lang="en"] .brand-tag { font-size: .625rem; }
}
@media (min-width: 480px) {
  .btn-call { width: auto; padding: 0 16px; }
  .btn-call .num { display: inline; }
  .brand-tile { width: 46px; height: 46px; }
  .brand-tile img { width: 38px; height: 38px; }
  html[lang="en"] .brand-name { font-size: 1.0625rem; }
  html[lang="en"] .brand-tag { font-size: .75rem; }
}
/* widths measured with both brands: the pill needs 52px beside the brand, call button and menu button */
@media (min-width: 380px) { html[lang="ar"] .lang-switch--top { display: inline-flex; } }
@media (min-width: 412px) { html[lang="en"] .lang-switch--top { display: inline-flex; } }
@media (min-width: 480px) and (max-width: 539.98px) { html[lang="en"] .lang-switch--top { display: none; } }   /* the call button has just grown */
@media (min-width: 600px) {
  .lang-switch--top { display: inline-flex; width: auto; padding: 0 14px; }
  .lang-switch--top .icon { display: block; }
  .lang-switch--top .ls-full { display: inline; }
  .lang-switch--top .ls-short { display: none; }
  .lang-switch--panel { display: none; }
}
@media (min-width: 1080px) { :root { --gutter: 32px; } }
/* full navigation in the bar once the English brand, six links and both buttons fit on one line */
@media (min-width: 1180px) {
  :root { --header-h: 76px; }
  .header-bar { gap: 16px; }
  .brand { margin-inline-end: 0; flex: none; }
  .brand-name { font-size: 1.1875rem; }
  html[lang="en"] .brand-name { font-size: 1.125rem; }
  .brand-tag, html[lang="en"] .brand-tag { font-size: .8125rem; }
  .site-nav, .site-nav.is-open {
    display: block; position: static; flex: 1; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible;
  }
  .nav-list { display: flex; justify-content: center; gap: 2px; }
  .nav-list a {
    min-height: 44px; padding: 0 11px; border: 0; border-radius: 10px; font-size: 1rem; color: #dce9f6; white-space: nowrap;
    position: relative; transition: background-color .2s;   /* not the text colour: fading it repainted the bar on every frame */
  }
  .nav-list a::after {
    content: ""; position: absolute; inset-inline: 11px; bottom: 6px; height: 2px; border-radius: 2px;
    background: var(--orange); transform: scaleX(0); transition: transform .25s;
  }
  .nav-list a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
  .nav-list a.is-current { color: #fff; }
  .nav-list a.is-current::after { transform: scaleX(1); }
  .nav-cta, .menu-close, .menu-btn { display: none; }
}
@media (min-width: 620px) and (max-width: 1079.98px) { :root { --gutter: 24px; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(15, 94, 156, .8), transparent 70%),
    radial-gradient(60% 50% at 50% 115%, rgba(240, 122, 40, .13), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, .25) 90%); mask-image: linear-gradient(180deg, #000 10%, rgba(0, 0, 0, .25) 90%);
}
/* phone: one column in source order - headline, the flagpoles, lead and buttons, chips */
.hero-grid { display: grid; padding-block: 26px 46px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-weight: 700; font-size: 1rem; color: #dcebfa;
}
html[dir="rtl"] .kicker { padding: 5px 12px 5px 16px; }
.flag--kicker { width: 30px; height: auto; flex: none; }
html[dir="rtl"] .flag--kicker { transform: scaleX(-1); }
html[lang="en"] .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; }

.hero h1 { margin: 18px 0 0; font-weight: 900; font-size: clamp(2.2rem, 1.1rem + 5.4vw, 4.5rem); line-height: 1.28; }
html[lang="en"] .hero h1 { line-height: 1.1; letter-spacing: -.015em; }
.hero-body { margin-top: 20px; }
.hero-lead { max-width: 34em; font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem); color: #d3e3f2; text-wrap: pretty; }
.hero-cta { display: grid; gap: 12px; margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 24px; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px 5px 10px; border-radius: 999px;
  background: rgba(121, 184, 234, .13); color: #d9eafa; font-weight: 600; font-size: 1rem; line-height: 1.6;
}
html[dir="rtl"] .chips li { padding: 5px 10px 5px 14px; }
.chips .icon { width: 16px; height: 16px; color: var(--sky); stroke-width: 2.8; }

/* The completed flagpoles, each with its own flag flying: equal cards, always side by side, so all of them
   are on screen together at every width. The height is the big number; the place sits under it. */
.hero-poles { position: relative; margin-top: 20px; }
/* the broken ring of the logo, enlarged behind the cards (under the text and buttons around them) */
.hero-ring {
  position: absolute; z-index: -1; top: 50%; left: 50%; width: min(124%, 660px); max-width: none; height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%); color: rgba(121, 184, 234, .13); pointer-events: none;
}
.poles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: start; gap: 8px; }
.pole-card {
  position: relative; isolation: isolate; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px;
  background: #2f6fb0; box-shadow: 0 12px 28px rgba(2, 12, 24, .42);
}
.pole-card::after {          /* hairline on top of the film, so the card keeps a crisp edge against the navy */
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .22); pointer-events: none;
}
.pole-media { display: block; width: 100%; height: 100%; object-fit: cover; }
/* with JavaScript off Chrome puts its own player bar on every film; here the still is the whole fallback */
.pole-media::-webkit-media-controls { display: none !important; }
/* The dark fade under the caption eases in from nothing (a straight ramp showed as a line across a flat sky);
   the text has its own soft shadow, so it reads where the fade is still light. */
.pole-cap {
  position: absolute; z-index: 1; inset-inline: 0; bottom: 0; display: grid; justify-items: center; align-content: start;
  padding: 26px 3px 9px; text-align: center; color: #fff; text-shadow: 0 1px 10px rgba(8, 24, 42, .7);
  background: linear-gradient(180deg, rgba(8, 24, 42, 0) 0, rgba(8, 24, 42, .05) 12%, rgba(8, 24, 42, .16) 24%, rgba(8, 24, 42, .32) 37%,
    rgba(8, 24, 42, .5) 51%, rgba(8, 24, 42, .68) 66%, rgba(8, 24, 42, .82) 82%, rgba(8, 24, 42, .9) 100%);
}
.pole-h { display: inline-flex; align-items: baseline; gap: .2em; line-height: 1.15; white-space: nowrap; }
.pole-h b { font-weight: 900; font-size: clamp(1.5rem, 1rem + 2.9vw, 2.625rem); font-variant-numeric: tabular-nums; }
.pole-h span { font-weight: 800; font-size: clamp(.9375rem, .8rem + .7vw, 1.25rem); color: var(--sky); }
/* Room for two lines is kept for the place only where the longest name does wrap, so the three numbers
   always stand on one line and no card carries an empty line. Measured at every width from 320 to 1300px with
   the names of content.json (_work/v3-fix/slack.mjs, align.mjs; about 4px to spare): the Arabic names take
   one line from 358px, the English ones from 424px except beside the text on a small desktop (1000-1079px),
   and three lines below 320px. A longer name added later simply wraps; re-measure then. */
.pole-place { min-height: 2.7em; font-weight: 700; font-size: .8125rem; line-height: 1.35; color: #e6f0fa; text-wrap: balance; }
@media (max-width: 319.98px) { html[lang="en"] .pole-place { min-height: 4.05em; } }
/* 358-369px (the common 360px phones): the longest Arabic name is 2px short of one line at 13px, so it is set
   half a pixel smaller there */
@media (min-width: 358px) and (max-width: 369.98px) { html[lang="ar"] .pole-place { min-height: 0; font-size: .78125rem; } }
@media (min-width: 370px) { html[lang="ar"] .pole-place { min-height: 0; } }
@media (min-width: 424px) { html[lang="en"] .pole-place { min-height: 0; } }
@media (min-width: 1000px) and (max-width: 1079.98px) { html[lang="en"] .pole-place { min-height: 2.7em; } }
/* Films can be stopped: a tap or click on a card stops and starts them all (main.js), and a button that shows
   only when it has keyboard focus does the same. A stopped card carries a small "play" mark. */
.hero-poles.has-films .pole-card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hero-poles.is-stopped .pole-card::before {
  content: ""; position: absolute; z-index: 2; top: 8px; inset-inline-end: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(8, 24, 42, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.6v10.8a.8.8 0 0 0 1.2.7l9-5.4a.8.8 0 0 0 0-1.4l-9-5.4a.8.8 0 0 0-1.2.7z'/%3E%3C/svg%3E") 50% 50% / 14px 14px no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}
.films-toggle {
  position: absolute; z-index: 3; top: 8px; inset-inline-start: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid #fff; background: var(--navy-900); color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer;
  opacity: 0; pointer-events: none;
}
.films-toggle:focus-visible { opacity: 1; pointer-events: auto; }
/* a pole whose film is not there yet shows its photo, framed on the flag like the films are */
img.pole-media { object-position: 50% 0; }
.pole--project-jabriya-30m img.pole-media { object-position: 62% 0; }
.pole--project-jaber-30m img.pole-media { transform: translate(-27%, -9%) scale(1.6); }
/* The Jaber Al-Ahmad City film is a wide shot: its flag is small, sits at mid-height and street lamps stand in
   front. It is framed on the flag here (film and still are the same element, so they stay identical). If the
   film is re-cut with the flag large in the top quarter, delete this rule. */
.pole--project-jaber-30m video.pole-media { transform: translate(-18%, -12%) scale(1.55); }

@media (min-width: 400px) { .poles { gap: 10px; } }
@media (min-width: 480px) {
  .pole-cap { padding-inline: 8px; }
  .pole-place { font-size: .875rem; }
}
@media (min-width: 560px) {
  /* The two buttons share a row where the column has room for both and stack where it has not (English, and
     the narrow text column beside the cards on a small desktop); either way both get the same width. */
  .hero-cta { display: flex; flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 auto; max-width: 300px; }
  /* text and cards stacked, on a wide screen: the cards stop at the width of the text above them */
  .hero-poles { max-width: 580px; margin-top: 26px; }
  .hero-body { margin-top: 24px; }
  .poles { gap: 14px; }
  .pole-card { border-radius: 20px; }
  .pole-cap { padding: 40px 10px 12px; }
  .pole-place { font-size: 1rem; }
}
@media (min-width: 760px) {
  .hero-grid { padding-block: 44px 60px; }
  .hero h1 { font-size: clamp(2.6rem, 1rem + 4.2vw, 4.5rem); }
}
/* desktop: the cards stand beside the text, the middle one a step lower. The empty first and last rows take
   whatever height the cards add, so headline, lead and chips stay together, centred beside them. */
@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 47%); grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 40px; padding-block: 52px 72px;
  }
  .hero-head { grid-column: 1; grid-row: 2; }
  .hero-body { grid-column: 1; grid-row: 3; margin-top: 14px; }
  .chips { grid-column: 1; grid-row: 4; }
  .hero-poles { grid-column: 2; grid-row: 1 / -1; align-self: center; max-width: none; margin-top: 0; }
  .pole:nth-child(even) { margin-top: 30px; }
  /* cards of 140-175px: a smaller caption */
  .pole-cap { padding: 34px 8px 12px; }
  .pole-h b { font-size: 2rem; }
  .pole-place { font-size: .9375rem; }
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 51%); column-gap: 48px; padding-block: 60px 84px; }
  .poles { gap: 18px; }
}
@media (min-width: 1180px) {           /* cards of 178px and more */
  .pole-cap { padding: 48px 12px 16px; }
  .pole-h b { font-size: 2.625rem; }
  .pole-place { font-size: 1rem; }
}
/* full desktop: half the row each, so that the two English buttons also share one row beside the cards */
@media (min-width: 1240px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 50%); } }
@media (min-width: 760px) {
  .hero-bg {
    background:
      radial-gradient(60% 80% at var(--glow-x, 12%) 20%, rgba(15, 94, 156, .85), transparent 70%),
      radial-gradient(40% 50% at 50% 120%, rgba(240, 122, 40, .12), transparent 70%),
      linear-gradient(180deg, var(--navy-800), var(--navy));
  }
  html[dir="ltr"] .hero-bg { --glow-x: 88%; }
}

/* -------------------------------------------------------------- sections */
.section { padding-block: clamp(60px, 9vw, 116px); }
.section--white { background: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 48px); }
.section-head h2 { font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.9rem); color: var(--navy); }
.section-head h2::after {
  content: ""; display: block; width: 72px; height: 5px; margin-top: 14px; border-radius: 3px;
  background: var(--flag-stripe); box-shadow: 0 0 0 1px rgba(13, 27, 42, .14);
}
.section-head p { margin-top: 14px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); }
.section-head--dark h2 { color: #fff; }
.section-head--dark h2::after { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
.section-head--dark p { color: #cfe0f0; }

/* -------------------------------------------------------------- services */
.services-grid { display: grid; gap: 14px; }
.service {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-content: start;
  padding: 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1);
  overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--orange);
  transform: scaleX(0); transition: transform .35s;
}
.service-icon {
  grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(140deg, #e9f3fc, #d2e6f8); color: var(--blue);
}
.service-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.service h3 { font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.service p { margin-top: 4px; color: var(--muted); }
@media (hover: hover) {
  .service:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #c5d8ea; }
  .service:hover::after { transform: scaleX(1); }
}
@media (min-width: 680px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .service { display: block; padding: 28px 26px 26px; }
  .service-icon { width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; }
  .service-icon .icon { width: 34px; height: 34px; }
  .service h3 { font-size: 1.3125rem; }
  .service p { margin-top: 6px; }
}
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

/* --------------------------------------------------------------- heights */
.heights-grid { display: grid; gap: 22px; }
.heights-grid .section-head { margin-bottom: 4px; }

.hs {
  --sky-h: clamp(360px, 96vw, 470px);
  --top: 46px;
  --ground: 16px;
  --unit: calc((var(--sky-h) - var(--top) - var(--ground)) / var(--hmax));
  --fw: clamp(26px, 8vw, 56px);
  --pad: clamp(8px, 2.2vw, 26px);
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.hs-sky {
  position: absolute; inset: 0 0 auto 0; height: var(--sky-h);
  background:
    radial-gradient(120px 60px at 82% 22%, rgba(255, 255, 255, .22), transparent 70%),
    radial-gradient(160px 70px at 30% 38%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, #0f5e9c 0%, #2f84c9 38%, #79b8ea 78%, #c3e0f6 100%);
}
.hs-line {
  position: absolute; inset-inline: 0; bottom: calc(var(--ground) + var(--m) * var(--unit));
  border-top: 1px dashed rgba(255, 255, 255, .42);
}
.hs-line > span {
  position: absolute; inset-inline-start: 8px; top: 0; transform: translateY(-50%); padding: 0 8px; border-radius: 999px;
  background: rgba(9, 38, 66, .62); color: #fff; font-weight: 700; font-size: .8125rem; line-height: 1.6; white-space: nowrap;
}
.hs-ground {
  position: absolute; inset: auto 0 0 0; height: var(--ground);
  background: linear-gradient(180deg, #e4d3b0, #cdb78e); border-top: 2px solid #b39a6b;
}
.hs-cols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding-inline: var(--pad); }
.hs-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hs-draw { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: var(--sky-h); padding-bottom: var(--ground); }
.hs-pole {
  --pw: calc(5px + var(--h) * .14px);
  position: relative; display: block; width: var(--pw); height: calc(var(--h) * var(--unit)); transform-origin: 50% 100%;
}
.hs-pole::before {
  content: ""; position: absolute; z-index: 1; top: -6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd98a 45%, #d99a2b);
}
.hs-shaft {
  position: absolute; inset: 0; clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #fff 0%, #e8eef4 38%, #9fb0c0 100%);
}
.hs-foot {
  position: absolute; bottom: 0; left: 50%; width: calc(var(--pw) * 2.6); height: 4px; transform: translateX(-50%);
  border-radius: 2px 2px 0 0; background: #73869a;
}
.hs-flag { position: absolute; top: 1px; left: 50%; width: var(--fw); margin-left: 1px; line-height: 0; }
html[dir="rtl"] .hs-flag { left: auto; right: 50%; margin: 0 1px 0 0; transform: scaleX(-1); }
.hs-flag-svg { display: block; width: 100%; height: auto; transform-origin: 0 50%; filter: drop-shadow(0 2px 3px rgba(9, 40, 70, .28)); }

.hs-cap { padding: 12px 0 0; font-weight: 700; font-size: 1rem; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.hs-n { font-weight: 900; font-size: clamp(1.6rem, 6.4vw, 2.3rem); color: var(--navy); font-variant-numeric: tabular-nums; }
.hs-types { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 12px var(--pad) 18px; }
.hs-type {
  position: relative; margin-inline: 5px; padding-top: 9px; border-top: 2px solid var(--sky);
  text-align: center; font-weight: 700; font-size: .875rem; line-height: 1.45; color: var(--blue);
}
.hs-type::before, .hs-type::after { content: ""; position: absolute; top: -8px; width: 2px; height: 8px; background: var(--sky); }
.hs-type::before { inset-inline-start: 0; }
.hs-type::after { inset-inline-end: 0; }

.note {
  display: grid; gap: 16px; padding: 18px; border-radius: var(--r); background: var(--sky-50); border: 1px solid #d3e4f4;
}
.note p { display: flex; gap: 10px; font-weight: 600; color: var(--navy); }
.note p .icon { width: 22px; height: 22px; margin-top: 4px; color: var(--blue); }
.note .btn { justify-self: start; }

@media (min-width: 480px) {
  .hs-type { font-size: 1rem; }
  .hs-line > span { font-size: .875rem; inset-inline-start: 12px; }
}
@media (min-width: 1000px) {
  .heights-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto auto;
    column-gap: 64px; row-gap: 28px; align-items: center;
  }
  .heights-grid .section-head { grid-column: 1; grid-row: 1; align-self: end; margin-bottom: 0; }
  .heights-grid .note { grid-column: 1; grid-row: 2; align-self: start; }
  .heights-grid .hs { grid-column: 2; grid-row: 1 / span 2; --fw: 54px; --sky-h: 480px; --pad: 22px; }
  .hs-pole { --pw: calc(6px + var(--h) * .2px); }
  .hs-pole::before { width: 10px; height: 10px; margin-left: -5px; top: -8px; }
  .hs-foot { height: 5px; }
  .hs-cap { font-size: 1.125rem; padding-top: 14px; }
}

/* ----------------------------------------------------------------- specs */
.specs-grid { display: grid; gap: 22px; }
.specs-grid .section-head { margin-bottom: 0; }
.specs-photo { position: relative; }
.specs-photo::before {
  content: ""; position: absolute; z-index: 0; inset-block-end: -10px; inset-inline-start: -8px; width: 46%; height: 46%;
  border-radius: var(--r-lg); background: var(--orange);
}
.specs-photo::after {
  content: ""; position: absolute; z-index: 0; inset-block-start: -10px; inset-inline-end: -8px; width: 34%; height: 34%;
  border-radius: var(--r-lg); background: var(--sky);
}
.specs-photo img {
  position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%;
  border-radius: var(--r-lg); box-shadow: var(--shadow-2); background: #cfd8e0;
}
.checklist { padding: 4px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
.checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.checklist li:last-child { border-bottom: 0; }
.checklist [dir="ltr"] { white-space: nowrap; }      /* "BS EN 10025", "4 × 8" stay in one piece */
.tick { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: #dff3e7; color: var(--kw-green); }
.tick .icon { width: 16px; height: 16px; stroke-width: 3; }
@media (min-width: 600px) and (max-width: 899.98px) {
  .specs-photo img { aspect-ratio: 16 / 9; }
}
@media (min-width: 900px) {
  .specs-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-rows: auto auto; column-gap: 64px; row-gap: 28px; align-items: center; }
  .specs-grid .section-head { grid-column: 2; grid-row: 1; align-self: end; }
  .specs-photo { grid-column: 1; grid-row: 1 / span 2; }
  .specs-photo::before { inset-block-end: -16px; inset-inline-start: -16px; }
  .specs-photo::after { inset-block-start: -16px; inset-inline-end: -16px; }
  .specs-photo img { aspect-ratio: 3 / 4; object-position: 50% 50%; }
  .checklist { grid-column: 2; grid-row: 2; align-self: start; padding: 6px 26px; }
}

/* ----------------------------------------------------------------- steps */
.steps, .videos {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #b9c9d9 transparent;
}
.step {
  flex: 0 0 min(72vw, 280px); scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s, box-shadow .25s;
}
.step-photo { position: relative; aspect-ratio: 4 / 5; background: #d6e1ec; }
.step-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-n {
  position: absolute; inset-inline-start: 14px; bottom: -22px; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 50%; background: var(--navy); color: #fff; border: 3px solid var(--paper);
  font-weight: 900; font-size: 1.25rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.step-body { padding: 30px 16px 18px; }
.step h3 { font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.step p { margin-top: 4px; color: var(--muted); line-height: 1.7; }
@media (hover: hover) { .step:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); } }
@media (min-width: 900px) {
  .steps { --gap: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); overflow: visible; margin-inline: 0; padding: 0; }
  /* Seven steps on four columns: the last one - the flag going up - closes the second row at double width,
     so the grid ends flush. Its photo keeps the height of its neighbours (one column wide x 5/4) and shows a
     wide cut of the same picture. (Written for any count that leaves three cards on the last row.) */
  .step:last-child:nth-child(4n + 3) { grid-column: span 2; }
  .step:last-child:nth-child(4n + 3) .step-photo { aspect-ratio: auto; height: 0; padding-bottom: calc((100% - var(--gap)) * .625); }
  .step:last-child:nth-child(4n + 3) .step-photo img { position: absolute; inset: 0; object-position: 50% 5%; }
}

/* -------------------------------------------------------------- projects */
.sub-title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 800; font-size: 1.3125rem; color: var(--navy); }
.sub-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.projects-grid + .sub-title { margin-top: clamp(36px, 5vw, 56px); }

.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project, .work {
  display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-1); transition: transform .25s, box-shadow .25s;
}
.project-photo, .work-photo { position: relative; overflow: hidden; background: #cfe0ef; }
.project-photo { aspect-ratio: 3 / 4; }
.work-photo { aspect-ratio: 16 / 9; }
.project-photo img, .work-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-photo--project-jaber-30m img { object-position: 50% 28%; }
.project-body { padding: 12px 14px 16px; }
.project-body h4 { font-weight: 800; font-size: 1.0625rem; color: var(--navy); }
.project-body p { display: flex; align-items: flex-start; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.project-body p .icon { width: 16px; height: 16px; margin-top: 5px; color: var(--blue); }

.badge {
  position: absolute; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 11px 2px 8px; border-radius: 999px; font-weight: 800; font-size: .8125rem; line-height: 1.7;
}
html[dir="rtl"] .badge { padding: 2px 8px 2px 11px; }
.badge .icon { width: 14px; height: 14px; stroke-width: 3; }
.badge--done { background: rgba(255, 255, 255, .94); color: #0a6736; box-shadow: 0 2px 8px rgba(13, 27, 42, .18); }
.badge--progress { background: var(--orange); color: var(--ink); }
.badge--progress i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.project--plain { background: var(--navy); border-color: var(--navy); color: #fff; }
.project--plain .project-photo {
  display: grid; place-items: center; color: var(--sky);
  background: var(--pattern) 0 0 / 72px 72px, radial-gradient(90% 70% at 50% 0%, rgba(15, 94, 156, .9), transparent 75%), var(--navy-800);
}
.blueprint { width: 62%; height: auto; }
html[dir="rtl"] .blueprint { transform: scaleX(-1); }
.project--plain h4 { color: #fff; }
.project--plain .project-body p { color: #c5d9ec; }
.project--plain .project-body p .icon { color: var(--sky); }

.works-grid { display: grid; gap: 14px; }
@media (hover: hover) {
  .project:hover, .work:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
  .project:hover img, .work:hover img { transform: scale(1.05); }
}
@media (min-width: 520px) {
  .projects-grid { gap: 18px; }
  .project-body { padding: 16px 18px 20px; }
  .project-body h4 { font-size: 1.1875rem; }
  .badge { top: 14px; inset-inline-start: 14px; font-size: .875rem; }
}
@media (min-width: 720px) { .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
/* four across from 860px, so the low-resolution Jaber Al-Ahmad photo is never shown wider than ~400px */
@media (min-width: 860px) { .projects-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .projects-grid { gap: 22px; } }

/* ---------------------------------------------------------------- videos */
.video { flex: 0 0 min(66vw, 270px); scroll-snap-align: start; }
.video-card {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r); background: var(--navy-900);
  box-shadow: var(--shadow-2);
}
/* the poster is a lazy image under the film (a poster="" attribute would download with the page); main.js also
   hands it to the video as its poster once it has loaded */
.video-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.video-card video { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
/* Chrome paints a dark placeholder over a video that shows its own controls but has no poster yet (no JS, or
   main.js not loaded): keep it clear, so the still underneath is what the visitor sees */
.video-card video::-webkit-media-controls { background: transparent; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  color: var(--ink); background: linear-gradient(180deg, rgba(10, 30, 51, .05) 45%, rgba(10, 30, 51, .5));
}
.video-play .icon {
  width: 72px; height: 72px; padding: 22px 20px 22px 24px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), 0 0 0 8px rgba(255, 255, 255, .22); transition: transform .25s, background-color .25s;
}
@media (hover: hover) { .video-play:hover .icon { transform: scale(1.08); background: var(--orange-hi); } }
/* the card clips everything outside it, so the focus ring is drawn inside; orange reads on the dark footage */
.video-play:focus-visible, .video-card video:focus-visible { outline-color: var(--orange); outline-offset: -6px; }
.video-body { padding: 14px 4px 0; }
.video-body h3 { font-weight: 800; font-size: 1.1875rem; color: var(--navy); }
.video-body p { color: var(--muted); }
@media (min-width: 760px) {
  .videos { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 32px; overflow: visible; margin-inline: 0; padding: 0; }
}

/* --------------------------------------------------------------- contact */
.contact { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(60px, 9vw, 116px); background: var(--navy); color: #fff; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(90% 60% at 50% 0%, rgba(15, 94, 156, .55), transparent 70%), linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.contact-bg::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 96px 96px; opacity: .8; }
.contact-grid { display: grid; gap: 26px; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; }
.contact-card {
  flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 76px; padding: 14px 16px; border-radius: var(--r);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); color: #fff; text-decoration: none;
  transition: transform .2s, background-color .2s, border-color .2s;
}
.cc-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(121, 184, 234, .18); color: var(--sky); }
.contact-card--phone .cc-icon { background: var(--orange); color: var(--ink); }
.contact-card--wa .cc-icon { background: var(--wa); color: #fff; }
.cc-text { display: grid; flex: 1; min-width: 0; }
.cc-label { font-weight: 600; font-size: 1rem; color: #b6d1ea; line-height: 1.5; }
.cc-value { font-weight: 800; font-size: 1.0625rem; line-height: 1.6; overflow-wrap: anywhere; }
.cc-value[dir="ltr"] { font-size: 1.3125rem; font-variant-numeric: tabular-nums; line-height: 1.35; }
html[dir="rtl"] .cc-value[dir="ltr"] { text-align: right; }
.contact-card--mail .cc-value[dir="ltr"] { font-size: clamp(1rem, .55rem + 2.2vw, 1.1875rem); line-height: 1.5; }
.contact-card .icon-chev { width: 20px; height: 20px; color: rgba(255, 255, 255, .45); }
/* service area and working hours are facts, not links: outlined card and icon, no arrow, no hover lift */
.contact-card--info { background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .12); }
.contact-card--info .cc-icon { background: none; border: 1.5px solid rgba(121, 184, 234, .38); }
.contact-card--info .cc-value { font-weight: 700; text-wrap: balance; }
.cc-note { font-weight: 600; font-size: 1rem; line-height: 1.5; color: #b6d1ea; }
@media (hover: hover) {
  a.contact-card:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .13); border-color: rgba(121, 184, 234, .65); }
}

/* brand panel beside the cards: the flag flying on one of our poles, with the two main actions */
.contact-panel {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  min-height: 460px; border-radius: var(--r-lg); background: #17395b;
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-dark);
}
.cp-photo { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 56% 8%; }
/* Phone: the photo is fitted to the height of the panel (460px -> the flag is 107px wide, 192px from the left
   edge of the photo), so it is slid sideways until the flag flies beside the badge, not hanging from it.
   Arabic: badge on the right, flag to its left - right edges together, but never so far that the flag leaves
   the panel on a 320px phone. English: badge on the left, the pole 12px inside the right edge at most. */
@media (max-width: 699.98px) {
  html[dir="rtl"] .cp-photo { object-position: max(100%, -186px) 8%; }
  html[dir="ltr"] .cp-photo { object-position: min(0px, calc(100% + 171px)) 8%; }
}
.contact-panel::before {      /* a light veil over the whole photo; the text block brings its own, darker fade */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10, 30, 51, .3) 0%, rgba(10, 30, 51, .04) 32%, rgba(10, 30, 51, .16) 100%);
}
.cp-kicker {
  position: absolute; top: 14px; inset-inline-start: 14px; background: rgba(8, 24, 42, .74); border-color: rgba(255, 255, 255, .24); color: #fff;
}
.cp-body {     /* the fade eases in over 110px above the name, so no edge shows across the sky */
  padding: 116px 18px 20px;
  background: linear-gradient(180deg, rgba(10, 30, 51, 0) 0, rgba(10, 30, 51, .05) 18px, rgba(10, 30, 51, .17) 40px, rgba(10, 30, 51, .36) 64px,
    rgba(10, 30, 51, .56) 88px, rgba(10, 30, 51, .72) 110px, rgba(10, 30, 51, .9) 58%, rgba(10, 30, 51, .96) 100%);
}
.cp-name { font-weight: 900; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.375rem); line-height: 1.3; text-shadow: 0 2px 14px rgba(2, 12, 24, .45); }
html[lang="en"] .cp-name { font-size: clamp(1.4rem, .95rem + 2.4vw, 2.375rem); line-height: 1.2; letter-spacing: -.01em; }
.cp-tag { margin-top: 2px; font-weight: 700; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--sky); }
/* the two buttons share a row when both fit, otherwise each takes a full row */
.cp-cta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.cp-cta .btn { flex: 1 1 auto; }

@media (max-width: 359.98px) { .cp-cta .btn { padding-inline: 12px; gap: .45em; } }
@media (min-width: 700px) and (max-width: 959.98px) {
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 700px) {
  .cp-kicker { top: 20px; inset-inline-start: 20px; }
  .cp-body { padding: 124px 28px 28px; }
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: stretch; }
}

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-900); color: #c7d7e6; }
.footer-grid { display: grid; gap: 22px; padding-block: 40px 26px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { flex: none; width: 86px; padding: 8px; border-radius: 16px; background: #fff; }
.footer-logo img { display: block; width: 100%; height: auto; }
.footer-name { font-weight: 800; font-size: 1.0625rem; line-height: 1.6; color: #fff; }
.footer-legal { margin-top: 4px; font-size: 1rem; line-height: 1.6; color: #a3bad0; }
.footer-insta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
html[dir="rtl"] .footer-insta { padding: 0 12px 0 16px; }
.footer-insta .icon { width: 20px; height: 20px; color: var(--sky); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-inline: -12px; }
.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: #dbe7f3; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  /* room at the bottom so the floating WhatsApp button never sits on the last line */
  padding-block: 18px calc(88px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { display: grid; gap: 2px; font-size: 1rem; color: #a3bad0; }
.back-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color .2s;
}
html[dir="rtl"] .back-top { padding: 0 12px 0 16px; }
.back-top .icon { width: 18px; height: 18px; }
@media (hover: hover) {
  .footer-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .footer-insta:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
  .back-top:hover { background: rgba(255, 255, 255, .1); }
}
@media (min-width: 720px) {
  .footer-bottom p { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .footer-bottom p > span + span::before { content: "·"; margin-inline: 12px; opacity: .6; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding-block: 52px 32px; }
  .footer-logo { width: 104px; }
  .footer-name { font-size: 1.1875rem; }
  .footer-nav ul { justify-content: flex-end; }
  .footer-bottom { padding-block: 20px 30px; }
  /* without JS the button stays on screen and floats beside the footer line, so its corner on the left is kept
     free. With JS it hides itself over the footer (main.js), and the line uses the full width. */
  html:not(.js) .footer-bottom {
    padding-left: max(0px, calc(88px - var(--gutter) - max(0px, (100vw - var(--wrap) - var(--gutter) * 2) / 2)));
  }
}

/* ------------------------------------------------- floating WhatsApp button */
.fab-wa {
  position: fixed; z-index: 40; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(6, 70, 34, .38), 0 2px 6px rgba(0, 0, 0, .2);
  transition: transform .25s, opacity .25s, visibility .25s;
}
.fab-wa .icon { width: 30px; height: 30px; }
.fab-wa.is-hidden, html.menu-open .fab-wa { opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9); }
@media (hover: hover) { .fab-wa:hover { transform: translateY(-3px) scale(1.05); } }
/* Left corner = away from the desktop scrollbar in both languages. Touch screens have no fixed scrollbar,
   so on the English page the button moves to the right corner, where it covers line ends, not line starts. */
@media (hover: none) and (pointer: coarse) {
  html[dir="ltr"] .fab-wa { left: auto; right: 16px; }
  .footer-bottom, html:not(.js) .footer-bottom { padding-left: 0; padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Reveal-on-scroll: main.js hides only what is still below the fold, so nothing is lost without JS.
     Whole blocks are revealed (a heading, a grid, a panel), never single cards: every animated element is
     lifted onto its own layer and put back afterwards, and with one per card that was most of the work the
     page did while it was scrolled. Short, and no delay: the content is there as soon as it arrives. */
  .pre-reveal { opacity: 0; }
  .reveal-in { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* the poles grow out of the ground, one after the other */
  .hs.pre-reveal { opacity: 1; }
  .hs.pre-reveal .hs-pole { transform: scaleY(0); }
  .hs.reveal-in { animation: none; }
  /* main.js takes .reveal-in off the chart when the last pole has grown, so the five finished animations (and
     the six layers they kept alive on every screen) are let go together, in one update. The pole's own size is
     written as scaleY(1), not as "no transform", so that letting go changes nothing the browser must lay out. */
  .hs-pole { transform: scaleY(1); }
  .hs.reveal-in .hs-pole { animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 140ms); }
  @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

  /* Looping decoration exists only while it is on screen (main.js sets .is-live): even a paused animation
     keeps its element on a layer of its own. Without JS it simply runs. */
  html:not(.js) .hs-flag-svg, .hs.is-live .hs-flag-svg { animation: wave 3.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -650ms); }
  @keyframes wave {
    0%, 100% { transform: skewY(-4deg) scaleX(1); }
    50% { transform: skewY(4deg) scaleX(.93); }
  }

  html:not(.js) .badge--progress i, .project--plain.is-live .badge--progress i { animation: pulse 1.6s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .25; } }
}

@media print {
  .site-header, .fab-wa, .video-play, .hero-ring, .films-toggle { display: none !important; }
  .pre-reveal { opacity: 1 !important; }
  .hs.pre-reveal .hs-pole { transform: none !important; }
  .steps, .videos { flex-wrap: wrap; overflow: visible; }
}
