/* Mirath Digital — redesign stylesheet (v4, "Sand & Ink")
   A studio site that reads like a well-made printed book: warm ink and sand pages, a single bilingual
   typeface (Alexandria) for headings and interface in Arabic and English, Newsreader for English
   reading text, Noto Naskh for Arabic reading text. The arches of the Mirath mark frame the work, each
   featured study keeps its own colour, and motion is kept to what shows the work.
   Anything you type into sits on paper. */

@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alexandria";
  src: url("../fonts/alexandria-arabic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mirath Naskh";
  src: url("../fonts/naskh.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The page colour is a registered property so the colour of each study can cross-fade. */
@property --world-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #15110e;
}

:root {
  --night: #15110e;
  --night-2: #1e1814;
  --ground: #15110e;
  --ground-2: #1e1814;
  --card: #201a16;
  --glass: rgba(255, 246, 235, .04);
  --ink: #f2ece3;
  --ink-2: #b4a99e;
  --line: rgba(242, 236, 227, .14);
  --line-strong: rgba(242, 236, 227, .3);
  --mark: #e0674a;          /* terracotta of the approved light logo */
  --mark-hover: #ec7a5d;
  --mark-text: #ef8466;
  --mark-band: #c4452b;
  --on-mark: #1a0f0b;
  --sand: #ede5d8;
  --sand-2: #e4dacb;
  --cobalt: #12168a;
  --cobalt-ice: #c9d3f5;
  --asphalt: #1c2124;
  --asphalt-2: #272e33;
  --sodium: #f2b33d;
  --ember: #1c1411;
  --ok: #24693f;
  --ok-bg: #dcefe2;
  --warn: #7a4d00;
  --warn-bg: #fbeccb;
  --error: #b3261e;
  --focus: #ffffff;
  --world-bg: var(--night);
  --gutter: clamp(18px, 4.4vw, 64px);
  --max: 1360px;
  --header-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --arch: 50% 50% 3px 3px / 40% 40% 3px 3px;   /* arch for 4:5 frames, from the Mirath mark */
  --font-sans: "Alexandria", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --font-ar-text: "Mirath Naskh", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, serif;
  --font-ar-ui: "Alexandria", "Segoe UI", system-ui, -apple-system, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif;
  color-scheme: dark;
}
html[data-world="cobalt"] { --world-bg: var(--cobalt); }
html[data-world="asphalt"] { --world-bg: var(--asphalt); }
html[data-world="ember"] { --world-bg: var(--ember); }
html[data-world="mark"] { --world-bg: var(--mark-band); }

/* Sand pages: light sections that give the site its printed rhythm. */
.section--paper {
  background: var(--sand); color: #1d1814; color-scheme: light;
  --ink: #1d1814; --ink-2: #5f564d; --line: rgba(29, 24, 20, .15); --line-strong: rgba(29, 24, 20, .32);
  --mark: #bb452f; --mark-hover: #a63a26; --mark-text: #a63a26; --on-mark: #fff; --focus: #1d1814;
  --ground: var(--sand); --ground-2: var(--sand-2); --glass: rgba(29, 24, 20, .04);
}
/* Paper: forms, slips and anything the visitor types into. */
.paper, .slip, .brief-card, .ask {
  --ink: #1e1b21; --ink-2: #565059; --line: #d7cec1; --line-strong: #a99f92;
  --card: #fffdf9; --ground: #f6f1e8; --ground-2: #e9e3d8; --mark: #bb452f; --mark-text: #a63a26; --on-mark: #fff; --focus: #1e1b21;
  color: var(--ink); color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--world-bg);
}
html.world-ready { transition: --world-bg .9s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  :root { interpolate-size: allow-keywords; }
}
body {
  margin: 0;
  background: var(--world-bg);
  color: var(--ink);
  font: 400 16.5px/1.6 var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar-text); font-size: 18px; line-height: 1.85; }
html[lang="ar"] :is(h1, h2, h3, h4, button, .btn, label, legend, input, select, textarea, nav, dt, th, .ui, .kicker, .tag, .status-pill, .route, .chip, .branch, .outputs, .kit, .player__toggle, .lang-switch, .field__label, .ref-chip, .text-btn, .link-arrow, .choice__sub, .hint, .error, .counter, .reel-btn, .stage-bar, .reel, .reel-end, .marquee, .chapter, .service__num, .service__outs, .live-strip, .ambient-toggle) {
  font-family: var(--font-ar-ui);
}
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; }
/* English reading text is set in Newsreader; headings and interface stay in Alexandria. */
html[lang="en"] :is(.lead, .prose p, .cobalt-intro > p, .studio-copy p:not(.kicker), .service__body > p, .study__body > p:not([class]), .notes__body p, .feature-cta p, .case-deck, .start-band p:not(.kicker), .posts-head p:not([class]), .post figcaption, .deliver__text, .keep span, .note-card p, .hero__copy .lead) {
  font-family: var(--font-text); font-optical-sizing: auto;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mark); color: var(--on-mark); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 130;
  background: var(--ink); color: var(--night); padding: 12px 18px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; --focus: var(--mark); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.i { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
[dir="rtl"] .i-flip { transform: scaleX(-1); }

/* ---------- Type ---------- */
/* Section labels carry the Mirath mark itself as their bullet. */
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font: 500 15px/1.4 var(--font-sans); color: var(--mark-text);
}
.kicker::before {
  content: ""; width: 21px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("../media/symbol.svg") center / contain no-repeat; mask: url("../media/symbol.svg") center / contain no-repeat;
}
html[lang="ar"] .kicker { font-size: 16px; }
.h1 {
  font: 650 clamp(40px, 5.8vw, 92px)/1.02 var(--font-sans);
  letter-spacing: -.035em; text-wrap: balance; margin: 0;
}
.h2 {
  font: 600 clamp(34px, 5vw, 76px)/1.04 var(--font-sans);
  letter-spacing: -.03em; text-wrap: balance;
}
.h3 { font: 600 clamp(21px, 2vw, 26px)/1.25 var(--font-sans); letter-spacing: -.01em; }
html[lang="ar"] :is(.h1, .h2, .h3) { line-height: 1.4; }
/* Emphasis by weight, not by a second typeface. */
.ed { font-weight: 300; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
html[lang="ar"] .lead { line-height: 1.85; font-size: clamp(18px, 1.5vw, 20px); }
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1.3 var(--font-sans); color: inherit; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
html[lang="ar"] .tag { font-size: 15px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px; border-radius: 3px; border: 1px solid transparent;
  font: 500 16px/1.1 var(--font-sans); text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i-flip { transform: translateX(4px); }
[dir="rtl"] .btn:hover .i-flip { transform: scaleX(-1) translateX(4px); }
.btn--primary { background: var(--mark); color: var(--on-mark); }
.btn--primary:hover { background: var(--mark-hover); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--ground)); }
.btn--ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn--light { background: #fff; color: #1d1814; }
.btn--light:hover { background: var(--sand); }
.btn--sodium { background: var(--sodium); color: #1c2124; }
.btn--sodium:hover { background: #ffc85f; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
}
.link-arrow:hover { text-decoration-color: var(--mark); text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Studio reel button */
.reel-btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 18px 0 0;
  color: var(--ink); text-decoration: none;
}
[dir="rtl"] .reel-btn { padding: 0 0 0 18px; }
.reel-btn__icon {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); transition: background-color .2s, color .2s, border-color .2s;
}
.reel-btn:hover .reel-btn__icon { background: var(--ink); color: var(--night); border-color: var(--ink); }
.reel-btn__icon svg { width: 15px; height: 15px; margin-inline-start: 3px; }
.reel-btn__text { display: grid; line-height: 1.25; text-align: start; }
.reel-btn__text strong { font-weight: 500; font-size: 16px; }
.reel-btn__text small { font-size: 13.5px; color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  view-transition-name: site-header;
}
/* The blur lives on a pseudo-element so the header does not become the containing block
   for the fixed-position phone menu. It takes on the colour of the current study. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(21, 17, 14, .9);
  background: color-mix(in srgb, var(--world-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
}
html[data-world="mark"] .site-header::before { background: rgba(21, 17, 14, .92); }
.site-header.menu-open::before { background: var(--night); }
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); }
.site-header__bar {
  display: flex; align-items: center; gap: 10px;
  max-width: var(--max); height: var(--header-h); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; margin-inline-end: auto; padding-block: 8px; flex: none; }
.brand img { height: 21px; width: auto; }
.nav { display: none; }
.nav a { position: relative; font-size: 15px; font-weight: 400; text-decoration: none; padding: 8px 2px; color: var(--ink-2); transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease-out);
}
[dir="rtl"] .nav a::after { transform-origin: right center; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: none; }
.lang-switch {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 3px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--ink); }
html[lang="en"] .lang-switch { font-family: var(--font-ar-ui); }
html[lang="ar"] .lang-switch { font-family: var(--font-sans); }
.header-cta { display: none; }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 3px; background: var(--ink); color: var(--night); font-weight: 500; font-size: 15px;
}
.js .menu-toggle { display: inline-flex; }
.menu-toggle__icon { width: 16px; height: 10px; position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; inset-inline: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-toggle__icon::before { top: 1px; }
.menu-toggle__icon::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }
.menu-panel {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; overscroll-behavior: contain;
  background: var(--night); padding: 18px var(--gutter) 48px;
}
.menu-panel__group { border-top: 1px solid var(--line); padding-block: 14px 8px; }
.menu-panel__label { font: 500 14px/1.4 var(--font-sans); color: var(--mark-text); margin-bottom: 6px; }
html[lang="ar"] .menu-panel__label { font-size: 15px; }
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px;
  text-decoration: none; font-weight: 500; font-size: 21px; letter-spacing: -.01em;
}
.menu-panel li a small { font-size: 14px; font-weight: 300; letter-spacing: 0; color: var(--ink-2); text-align: end; }
.menu-panel__cta { display: grid; gap: 12px; margin-top: 18px; }
/* Small phones (360px class): keep the logo, language switch and menu on one line. */
@media (max-width: 389px) {
  .site-header__bar { gap: 6px; }
  .lang-switch { padding: 0 10px; }
  .menu-toggle { padding: 0 11px; gap: 6px; }
  html[lang="ar"] .brand img { height: 18px; }
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { height: 25px; }
  .nav { display: flex; gap: 30px; margin-inline-end: 22px; }
  .header-cta { display: inline-flex; }
  .js .menu-toggle { display: none; }
  .menu-panel { display: none !important; }
}
body.menu-is-open { overflow: hidden; }

/* Reading progress: a hairline along the top edge. */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: var(--mark); transform: scaleX(0); transform-origin: left center;
}
[dir="rtl"] .progress { transform-origin: right center; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress-grow linear both; animation-timeline: scroll(root); }
  }
}
@keyframes progress-grow { to { transform: scaleX(1); } }

/* ---------- Hero: the stage ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(20px, 4vw, 36px) clamp(30px, 4vw, 40px); }
.hero__inner { display: grid; gap: 22px; grid-template-areas: "copy" "routes" "actions"; }
.hero__copy { grid-area: copy; }
.hero__actions { grid-area: actions; }
.routes-wrap { grid-area: routes; }
.hero__copy .lead { margin: 16px 0 0; color: #d3c9bf; }
.hero__title { text-shadow: 0 2px 30px rgba(21, 17, 14, .45); }
.hero__title .tone { font-weight: 300; }
.hero__title .ed { font-weight: inherit; }
.hero__title .kinetic .w { display: inline-block; }
html[lang="ar"] .hero__title { font-size: clamp(34px, 5vw, 84px); line-height: 1.3; }
@media (max-width: 699px) { html[lang="ar"] .hero__copy .lead { line-height: 1.7; margin-top: 12px; } }
.routes-label { margin: 0 0 8px; font: 500 14px/1.4 var(--font-sans); color: var(--mark-text); }
.routes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.route a {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 58px; padding-block: 6px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.route__thumb { width: 44px; height: 50px; border-radius: var(--arch); object-fit: cover; background: var(--night-2); }
.route__thumb--type {
  display: grid; place-items: center; padding-top: 6px; background: var(--mark); color: var(--on-mark);
  font: 600 12px/1 var(--font-sans);
}
.route__text { display: grid; gap: 1px; min-width: 0; }
.route__name { font-weight: 500; font-size: 16.5px; line-height: 1.3; }
.route__output { font-size: 14px; font-weight: 300; line-height: 1.4; color: var(--ink-2); }
html[lang="ar"] .route__output { font-size: 14.5px; }
.route__num { font: 400 13px/1 var(--font-sans); color: var(--mark-text); display: none; }
.route .i { color: var(--ink-2); transition: transform .25s var(--ease), color .2s; }
.route a:hover .i { transform: translateX(4px); color: var(--mark-text); }
[dir="rtl"] .route a:hover .i { transform: scaleX(-1) translateX(4px); }
.route a:hover .route__name { color: var(--mark-text); }

/* Phones and tablets: the stage glows behind the headline (only the home layer is used). */
.stage { position: absolute; z-index: -1; inset: 0 0 auto; height: min(560px, 74%); overflow: hidden; pointer-events: none; }
.stage::after {
  content: ""; position: absolute; z-index: 3; inset: 0;
  background: linear-gradient(180deg, rgba(21, 17, 14, .45) 0%, rgba(21, 17, 14, .72) 50%, var(--night) 100%);
}
.stage__layer { position: absolute; inset: 0; overflow: hidden; }
.stage__layer:not([data-layer="home"]) { display: none; }
.stage__layer > img, .stage__layer > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__layer--home > img, .stage__layer--home > video { object-position: 64% 50%; }
.stage__layer > video { opacity: 0; transition: opacity .8s ease; }
.stage__layer.is-playing > video { opacity: 1; }
.stage-bar { position: absolute; z-index: 4; top: 12px; inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 14px; }
.stage__caption { display: none; }
.stage__toggle, .ambient-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; min-width: 40px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(21, 17, 14, .5); color: var(--ink);
  font: 500 14px/1 var(--font-sans); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.stage__toggle:hover, .ambient-toggle:hover { border-color: var(--ink); }
.stage__toggle svg, .ambient-toggle svg { width: 13px; height: 13px; }
@media (max-width: 1023px) {
  .stage__toggle [data-stage-toggle-label], .ambient-toggle [data-ambient-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .hero .kicker { padding-inline-end: 52px; }
}
@media (max-width: 699px) {
  html[lang="en"] .hero__title { font-size: 36px; }
  html[lang="ar"] .hero__title { font-size: 31px; line-height: 1.28; }
  html[lang="ar"] .hero__copy .lead { line-height: 1.65; }
  .hero .kicker { font-size: 13px; margin-bottom: 16px; }
  .hero__copy .lead { font-size: 16.5px; }
  .route a { min-height: 52px; padding-block: 5px; grid-template-columns: 38px minmax(0, 1fr) auto; }
  .route__thumb { width: 38px; height: 42px; }
}
/* Shorter phones (e.g. 360 × 740): keep all six services on the first screen. */
@media (max-width: 699px) and (max-height: 780px) {
  .hero .kicker { margin-bottom: 10px; }
  .route a { min-height: 47px; padding-block: 3px; }
  .route__thumb { width: 34px; height: 38px; }
}

@media (min-width: 1024px) {
  .hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; padding-block: 0 26px; }
  .hero__inner { flex: 1; width: 100%; gap: 0; grid-template-areas: "copy" "actions" "." "routes"; grid-template-rows: auto auto minmax(24px, 1fr) auto; }
  .hero__copy { max-width: min(50rem, 60%); padding-top: clamp(28px, 6vh, 84px); }
  .hero__title { font-size: clamp(40px, 5.3vw, 88px); }
  .hero__copy .lead { max-width: 28em; margin-top: 22px; }
  .hero__actions { margin-top: 30px; }
  .routes-label { margin-bottom: 0; padding-bottom: 14px; }
  .routes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
  .route a {
    position: relative; grid-template-columns: 1fr; align-content: start; gap: 3px; height: 100%; min-height: 108px;
    padding: 16px 18px 12px; border: 0; border-inline-end: 1px solid var(--line);
  }
  .route:first-child a { padding-inline-start: 0; }
  .route:last-child a { border-inline-end: 0; }
  .route a::before {
    content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--mark);
    transform: scaleX(0); transform-origin: left center; transition: transform .5s var(--ease-out);
  }
  [dir="rtl"] .route a::before { transform-origin: right center; }
  .route a:hover::before, .route a.is-staged::before { transform: none; }
  .route a.is-staged .route__name { color: var(--mark-text); }
  .route__thumb, .route .i { display: none; }
  .route__num { display: block; margin-bottom: 10px; }
  .route__name { font-size: 17px; transition: color .25s; }

  /* The stage: the work fills the far side of the screen. */
  .stage {
    inset: 0 0 0 auto; height: auto; width: 64%; pointer-events: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .22) 26%, rgba(0, 0, 0, .55) 42%, #000 62%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .22) 26%, rgba(0, 0, 0, .55) 42%, #000 62%);
  }
  [dir="rtl"] .stage {
    inset: 0 auto 0 0;
    -webkit-mask-image: linear-gradient(270deg, transparent 0, rgba(0, 0, 0, .22) 26%, rgba(0, 0, 0, .55) 42%, #000 62%);
    mask-image: linear-gradient(270deg, transparent 0, rgba(0, 0, 0, .22) 26%, rgba(0, 0, 0, .55) 42%, #000 62%);
  }
  .stage::after { inset: auto 0 0; height: 48%; background: linear-gradient(0deg, var(--night) 10%, rgba(21, 17, 14, 0)); }
  .stage__layer:not([data-layer="home"]) { display: block; }
  .stage__layer {
    opacity: 0; visibility: hidden; transform: scale(1.04);
    transition: opacity .7s var(--ease), transform 1.2s var(--ease-out), visibility 0s linear .7s;
  }
  .stage__layer.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .7s var(--ease), transform 1.2s var(--ease-out), visibility 0s; }
  .stage__layer--home > img, .stage__layer--home > video { object-position: 62% 50%; }

  .stage-bar { top: 22px; max-width: min(760px, 62%); }
  .stage__caption { margin: 0; display: flex; align-items: baseline; gap: 10px; min-width: 0; font: 300 14px/1.4 var(--font-sans); color: #ece4da; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
  .stage__caption b { font-weight: 500; color: var(--mark-text); white-space: nowrap; }
  .stage__toggle, .ambient-toggle { padding: 0 14px 0 11px; flex: none; }
  [dir="rtl"] .stage__toggle, [dir="rtl"] .ambient-toggle { padding: 0 11px 0 14px; }

  /* Stage compositions: what each service hands over. */
  .stage__layer--web { background: radial-gradient(120% 90% at 70% 35%, #2b3237 0%, var(--night) 70%); }
  .stage-browser {
    position: absolute; top: 14%; inset-inline-end: 5%; width: 63%; aspect-ratio: 16 / 10;
    display: grid; grid-template-rows: auto 1fr; border-radius: 6px; overflow: hidden;
    background: #f6f3ec; color: #1c2124; transform: rotate(-2deg);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9);
  }
  [dir="rtl"] .stage-browser { transform: rotate(2deg); }

  .stage__layer--posts { background: radial-gradient(110% 90% at 65% 40%, #2a31c9 0%, var(--cobalt) 45%, #070944 100%); }
  .stage-post {
    position: absolute; top: 14%; width: 24%; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: #c5d0ea;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8);
  }
  .stage-post img { width: 100%; height: 100%; object-fit: cover; }
  .stage-post b { position: absolute; inset-inline: 12px; top: 12px; color: var(--cobalt); font: 600 clamp(16px, 1.5vw, 22px)/1.1 var(--font-sans); letter-spacing: -.02em; }
  .stage-post--1 { inset-inline-end: 57%; transform: rotate(-6deg) translateY(18px); }
  .stage-post--2 { inset-inline-end: 32%; z-index: 1; transform: translateY(-8px); }
  .stage-post--3 { inset-inline-end: 7%; transform: rotate(6deg) translateY(18px); }
  .stage-post--2 b, .stage-post--3 b { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 40, .6); }
  .stage-post--3 b { top: auto; bottom: 14px; }

  .stage__layer--film > img { object-position: 72% 50%; }
  .stage__layer--brand > img { object-position: 60% 50%; }
  .stage__layer--slip > img { object-position: 40% 50%; filter: brightness(.8); }
  .stage-slip { position: absolute; top: 16%; inset-inline-end: 9%; width: min(380px, 44%); border-radius: 4px; background: #fffdf8; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); transform: rotate(2.5deg); }
  [dir="rtl"] .stage-slip { transform: rotate(-2.5deg); }

  .stage__layer--ask { background: radial-gradient(90% 80% at 70% 40%, #3a1a13 0%, var(--night) 72%); }
  .stage-chat { position: absolute; top: 12%; inset-inline-end: 9%; width: min(460px, 56%); display: grid; gap: 12px; }
  .stage-chat__q { justify-self: end; max-width: 88%; padding: 12px 16px; border-radius: 14px 14px 3px 14px; background: var(--mark); color: var(--on-mark); font-weight: 500; font-size: 15.5px; line-height: 1.4; }
  [dir="rtl"] .stage-chat__q { border-radius: 14px 14px 14px 3px; }
  .stage-chat__a { justify-self: start; max-width: 92%; display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px 14px 14px 3px; background: #fffdf8; color: #1e1b21; font-size: 15px; font-weight: 300; line-height: 1.5; }
  [dir="rtl"] .stage-chat__a { border-radius: 14px 14px 3px 14px; }
  .stage-chat__a small { font: 500 12.5px/1.3 var(--font-sans); color: #a63a26; }
  .stage-chat__a small.is-person { justify-self: start; padding: 4px 10px; border-radius: 3px; background: var(--warn-bg); color: var(--warn); }
}
@media (min-width: 1024px) and (max-height: 760px) {
  .hero__copy { padding-top: 28px; }
  .h1.hero__title { font-size: clamp(40px, 5vw, 74px); }
}

/* Mini handoff slip (used on the stage) */
.mini-slip { padding: 16px 18px 18px; display: grid; gap: 10px; color: #1e1b21; font-family: var(--font-sans); }
.mini-slip .status-pill { justify-self: start; }
.mini-slip__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #565059; padding-bottom: 10px; border-bottom: 1px dashed #a99f92; }
.mini-slip__route { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.mini-slip__meta { font-size: 14px; font-weight: 300; color: #565059; }
.mini-slip__owner { font-size: 14px; }

/* Hero intro: the headline settles once, then everything holds still. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .kinetic .w { animation: word-in .9s var(--ease-out) both; animation-delay: calc(60ms + var(--i, 0) * 45ms); }
  .js .hero .kicker, .js .hero__copy .lead, .js .hero__actions, .js .routes-label { animation: fade-up .8s var(--ease-out) both; }
  .js .hero__copy .lead { animation-delay: .45s; }
  .js .hero__actions { animation-delay: .6s; }
  .js .routes-label { animation-delay: .55s; }
  .js .routes .route { animation: fade-up .7s var(--ease-out) both; animation-delay: calc(.6s + var(--k, 0) * 50ms); }
  .js .stage__layer--home.is-on > img { animation: stage-in 1.6s var(--ease-out) both; }
}
.route:nth-child(2) { --k: 1; } .route:nth-child(3) { --k: 2; } .route:nth-child(4) { --k: 3; }
.route:nth-child(5) { --k: 4; } .route:nth-child(6) { --k: 5; }
@keyframes word-in { from { opacity: 0; transform: translateY(.35em); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes stage-in { from { opacity: 0; transform: scale(1.08); } }

/* ---------- Outputs band: moves only as you scroll ---------- */
.marquee {
  --dir: 1;
  overflow: clip; padding-block: clamp(30px, 5vw, 64px); border-block: 1px solid var(--line);
  display: grid; gap: clamp(2px, .6vw, 10px);
}
[dir="rtl"] .marquee { --dir: -1; }
.marquee__track {
  display: flex; align-items: center; gap: .34em; width: max-content; white-space: nowrap;
  font: 600 clamp(40px, 7.6vw, 116px)/1.12 var(--font-sans); letter-spacing: -.035em;
}
html[lang="ar"] .marquee__track { line-height: 1.45; }
.marquee__track .o { font-weight: 300; color: var(--ink-2); }
.marquee__mark { width: .34em; height: auto; fill: var(--mark); flex: none; }
.marquee__row--rev .marquee__track { transform: translateX(calc(-22% * var(--dir))); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .marquee__track { animation: marquee-a linear both; animation-timeline: view(); animation-range: cover; }
    .marquee__row--rev .marquee__track { animation-name: marquee-b; }
  }
}
@keyframes marquee-a { from { transform: translateX(0); } to { transform: translateX(calc(-22% * var(--dir))); } }
@keyframes marquee-b { from { transform: translateX(calc(-22% * var(--dir))); } to { transform: translateX(0); } }

/* ---------- Sections & colour worlds ---------- */
.section { padding-block: clamp(76px, 11vw, 160px); }
.section--cobalt { background: var(--cobalt); color: #f4f6ff; --focus: #ffffff; --line: rgba(201, 211, 245, .26); --line-strong: rgba(201, 211, 245, .45); --ink-2: var(--cobalt-ice); --mark-text: #ffb59f; }
.section--freight { background: var(--asphalt); color: #edeae3; --focus: var(--sodium); --line: rgba(237, 234, 227, .16); --ink-2: #c9c5bd; --mark-text: var(--sodium); }
.section--sand { background: var(--ember); --ink-2: #bcaea4; --line: rgba(255, 240, 225, .14); }
.section--mark { background: var(--mark-band); color: #fff; --focus: #fff; --ink-2: #fff; --mark-text: #fff; --line: rgba(255, 255, 255, .32); }
/* With script, dark sections let the page colour show through so the colours cross-fade; sand pages stay printed. */
.js main > section:not(.section--paper), .js main > .marquee { background: transparent; }
.section-head { display: grid; gap: 16px; }
.section-head > * { max-width: 58rem; }
.section-head p { margin: 0; }
.section-head .lead { margin-top: 4px; }
@media (min-width: 1024px) {
  /* Editorial header: the label sits in its own column, the statement takes the rest. */
  .section-head--split { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 32px; align-items: start; }
  .section-head--split > .kicker { grid-column: 1; grid-row: 1 / span 3; margin-top: .7em; }
  .section-head--split > :not(.kicker) { grid-column: 2; }
}
.section--cobalt .lead { color: var(--cobalt-ice); }
.section--freight .lead { color: #c9c5bd; }
.section--cobalt .tag { color: var(--cobalt-ice); }
.section--freight .tag { color: var(--sodium); }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.work-intro { padding-block: clamp(76px, 10vw, 140px); }
.work-intro .h2 { max-width: 14em; }

/* Chapter titles: huge, quiet words that open each featured study. */
.chapter {
  display: flex; align-items: flex-start; gap: .12em; margin: 0 0 clamp(18px, 3vw, 40px); overflow: clip;
  font: 700 clamp(76px, 18vw, 290px)/.86 var(--font-sans); letter-spacing: -.05em; white-space: nowrap;
}
.chapter__num { padding-top: .5em; font: 400 clamp(13px, 1.2vw, 16px)/1 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.chapter__word { color: var(--chapter-fill, rgba(242, 236, 227, .1)); padding-bottom: .06em; }
html[lang="ar"] .chapter { line-height: 1.15; }
.section--cobalt .chapter { --chapter-fill: rgba(201, 211, 245, .17); }
.section--freight .chapter { --chapter-fill: rgba(242, 179, 61, .2); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .chapter__word { animation: chapter-in linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes chapter-in { from { transform: translateX(calc(10% * var(--dir, 1))); opacity: .3; } to { transform: none; opacity: 1; } }
[dir="rtl"] .chapter { --dir: -1; }

/* ---------- Cobalt feature ---------- */
.cobalt-grid { display: grid; gap: 32px; margin-top: 28px; grid-template-areas: "intro" "player" "kit"; }
.cobalt-intro { grid-area: intro; }
.cobalt-grid .player { grid-area: player; }
.cobalt-kit { grid-area: kit; }
@media (min-width: 1024px) {
  .cobalt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "intro player" "kit player"; gap: 8px 72px; align-items: start; }
  .cobalt-grid .player { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* The Cobalt film sits in an arch, like a niche in an arcade. */
.cobalt-grid .player__frame { border-radius: 50% 50% 4px 4px / 42% 42% 4px 4px; }
.cobalt-intro > p { color: var(--cobalt-ice); font-size: 19px; max-width: 32em; margin: 24px 0 0; }
html[lang="ar"] .cobalt-intro > p { font-size: 19px; }
.cobalt-kit .kit-title { margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-inline-end: 12px; }
.facts dt { font-size: 13.5px; font-weight: 300; opacity: .85; }
.facts dd { margin: 4px 0 0; font-weight: 500; }

/* Film player (visitor-controlled) */
.player { margin: 0; }
.player__frame {
  position: relative; overflow: hidden; border-radius: 4px; background: #0b0e5c; aspect-ratio: 756 / 900;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 20, .9);
}
.player__frame > img, .player__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__frame > video { opacity: 0; transition: opacity .45s ease; }
.player.is-live .player__frame > video { opacity: 1; }
.player__toggle {
  position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 6px;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #1e1b21;
  font: 500 15px/1 var(--font-sans); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --focus: #ffffff;
}
[dir="rtl"] .player__toggle { padding: 0 6px 0 18px; }
.player__toggle:focus-visible { outline-offset: 4px; }
.player__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); color: #fff; }
.player__icon svg { width: 13px; height: 13px; }
.player__meta { font: 300 13px/1 var(--font-sans); color: #565059; }
.player figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: 14px; font-weight: 300; color: var(--cobalt-ice); }
.player__fallback { margin-top: 12px; padding: 12px 14px; border-radius: 4px; background: rgba(255, 255, 255, .1); font-size: 15px; }
.player__fallback a { font-weight: 600; }

/* Deliverable kit */
.kit-title { margin: 34px 0 8px; font: 500 14px/1.4 var(--font-sans); color: var(--cobalt-ice); }
.kit { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.kit li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.kit img { width: 54px; height: 54px; object-fit: cover; border-radius: 3px; }
.kit__name { display: block; font-weight: 500; line-height: 1.35; }
.kit__spec { display: block; margin-top: 2px; font: 13px/1.4 var(--font-mono); color: var(--cobalt-ice); }
html[lang="ar"] .kit__spec { font: 300 14px/1.5 var(--font-ar-ui); }
.kit__action {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px;
  border: 1px solid rgba(201, 211, 245, .5); border-radius: 3px; background: transparent; color: #fff;
  font-weight: 500; font-size: 14px; text-decoration: none; white-space: nowrap;
}
.kit__action:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.kit__new { display: inline-block; margin-inline-start: 8px; padding: 1px 7px; border-radius: 3px; background: #ffb59f; color: #1a0f0b; font: 500 11.5px/1.6 var(--font-sans); vertical-align: 2px; }

/* Social sequence */
.posts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-top: clamp(56px, 8vw, 104px); }
.posts-head p { margin: 0; color: var(--cobalt-ice); max-width: 34em; font-size: 18px; }
.posts {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 14px;
  margin-top: 24px; padding-bottom: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: rgba(201, 211, 245, .5) transparent;
}
.posts:focus-visible { outline-offset: 6px; }
.post { margin: 0; scroll-snap-align: start; }
.post__art { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5; background: #c5d0ea; }
.post__art > img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.post:hover .post__art > img { transform: scale(1.03); }
.post__text {
  position: absolute; z-index: 1; inset-inline: 16px; top: 16px; margin: 0; pointer-events: none;
  font: 600 clamp(24px, 2.3vw, 31px)/1.1 var(--font-sans); letter-spacing: -.025em; color: var(--cobalt);
}
html[lang="ar"] .post__text { line-height: 1.35; }
.post--detail .post__text { color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 40, .55); }
.post--invite .post__text { top: auto; bottom: 64px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 40, .55); }
.post__pill {
  position: absolute; inset-inline-start: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 3px; background: #fff; color: var(--cobalt); font-weight: 500; font-size: 14px;
}
/* Post 2 is a moving post: a short detail film that plays when you press play. */
.post__art.player .player__frame { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #c5d0ea; }
.post__art.player .player__toggle { inset-inline-start: 12px; bottom: 12px; min-height: 42px; font-size: 14px; padding-inline-end: 14px; }
[dir="rtl"] .post__art.player .player__toggle { padding-inline: 14px 6px; }
.post__art.player .player__icon { width: 30px; height: 30px; }
.post__art.player .player__fallback { position: absolute; inset-inline: 12px; bottom: 64px; margin: 0; background: rgba(0, 0, 40, .7); color: #fff; }
.post__step { display: block; margin-top: 12px; font: 500 13.5px/1.4 var(--font-sans); color: var(--cobalt-ice); }
.post figcaption { font-size: 16px; color: #e6eafc; margin-top: 4px; }
@media (min-width: 900px) {
  .posts { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 24px; }
}
.feature-cta { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.feature-cta p { margin: 0; max-width: 28em; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.35; }

/* ---------- Freight feature + routing demo ---------- */
.freight-top { display: grid; gap: 24px; }
@media (min-width: 1024px) { .freight-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: end; } }
.freight-photo { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--asphalt-2); }
.freight-photo img { width: 100%; height: 100%; object-fit: cover; }
.try-line {
  display: flex; align-items: center; gap: 12px; margin: clamp(40px, 6vw, 64px) 0 0;
  font: 500 clamp(17px, 1.6vw, 20px)/1.4 var(--font-sans); color: var(--sodium);
}
.try-line::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }

.demo { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 1024px) { .demo { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 22px; align-items: start; } }
.slip {
  position: relative; border-radius: 4px; padding: clamp(18px, 2.2vw, 26px);
  background: #fbf8f2; --line: #dcd3c5;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8);
}
.slip__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px dashed #bdb2a2;
}
.slip__title { font: 600 19px/1.3 var(--font-sans); }
.slip__ref { font: 400 12px/1.3 var(--font-mono); letter-spacing: .03em; color: var(--ink-2); }
.slip__note { font-size: 14px; color: var(--ink-2); margin: -6px 0 16px; }

.field { display: grid; gap: 6px; margin: 0 0 16px; min-width: 0; }
.field__label, .choices legend { font-weight: 500; font-size: 14.5px; padding: 0; }
html[lang="ar"] :is(.field__label, .choices legend) { font-size: 15.5px; }
.field__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.input {
  width: 100%; min-width: 0; height: 48px; padding: 0 12px; border-radius: 3px;
  border: 1px solid #a1968a; background: #fff; color: #1e1b21; font-size: 16px;
}
select.input { appearance: none; padding-inline-end: 38px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] select.input { background-position: 15px 21px, 20px 21px; }
textarea.input { height: auto; min-height: 140px; padding: 12px; line-height: 1.5; resize: vertical; }
.input:hover { border-color: #1e1b21; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: #1e1b21; }
.input[aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.hint { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.error { font-size: 13.5px; color: var(--error); font-weight: 500; margin: 0; }
.text-btn {
  border: 0; background: none; padding: 6px 2px; min-height: 36px; font-weight: 500; font-size: 14px;
  text-decoration: underline; text-underline-offset: 4px; color: var(--ink);
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

.choices { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.choices legend { margin-bottom: 8px; }
.choices__grid { display: grid; gap: 8px; }
.choices__grid--3 { grid-template-columns: 1fr; }
.choices__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slip--form { container-type: inline-size; }
@container (min-width: 620px) { .choices__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice { position: relative; display: block; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; align-items: start; height: 100%;
  padding: 11px 12px; min-height: 50px; border-radius: 3px; border: 1px solid #b6ab9d; background: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice__box::before {
  content: ""; grid-row: span 2; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  border: 1.5px solid #8d8276; background: #fff; transition: border .15s, box-shadow .15s;
}
.choice__title { font-weight: 500; font-size: 15px; line-height: 1.3; }
.choice__sub { font-size: 13.5px; font-weight: 300; line-height: 1.35; color: var(--ink-2); grid-column: 2; }
.choice:hover .choice__box { border-color: #1e1b21; }
.choice input:checked + .choice__box { border-color: #1e1b21; background: #fff4e6; box-shadow: inset 0 0 0 1px #1e1b21; }
.choice input:checked + .choice__box::before { border: 5.5px solid #1e1b21; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--focus); outline-offset: 2px; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 3px; font: 500 13.5px/1.2 var(--font-sans); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-pill[data-state="clarify"] { background: var(--warn-bg); color: var(--warn); }
.status-pill[data-state="ready"] { background: var(--ok-bg); color: var(--ok); }

/* The handoff is a dark routing console beside the paper enquiry. */
.slip--handoff {
  background: #0f1315; color: #edeae3; color-scheme: dark;
  --ink: #edeae3; --ink-2: #a9a59c; --line: rgba(237, 234, 227, .13); --focus: var(--sodium);
  border: 1px solid rgba(242, 179, 61, .24);
}
.slip--handoff .slip__head { border-bottom-color: rgba(237, 234, 227, .22); }
.slip--handoff .status-pill[data-state="clarify"] { background: rgba(242, 179, 61, .16); color: #ffd27a; }
.slip--handoff .status-pill[data-state="ready"] { background: rgba(84, 214, 140, .15); color: #8be3ae; }
.slip--handoff .gap-word { color: #ff9d87; }
.slip--handoff .is-updated { animation-name: flash-dark; }
.switchboard { margin: 0 0 18px; }
.switchboard__from { display: flex; align-items: center; gap: 10px; font: 400 13px/1.3 var(--font-sans); color: var(--ink-2); margin-bottom: 8px; }
.switchboard__from::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sodium); }
.branches { position: relative; list-style: none; margin: 0; padding: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.branches::before { content: ""; position: absolute; inset-inline-start: 4px; top: -8px; bottom: 22px; width: 2px; background: rgba(237, 234, 227, .18); }
.branch {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 40px; padding: 7px 12px; border-radius: 3px; border: 1px solid var(--line);
  font-size: 14px; line-height: 1.3; color: var(--ink-2); background: rgba(255, 255, 255, .03);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.branch::before { content: ""; position: absolute; inset-inline-end: 100%; width: 18px; height: 2px; top: 50%; background: rgba(237, 234, 227, .18); transform-origin: left center; }
[dir="rtl"] .branch::before { transform-origin: right center; }
.branch__state { font: 500 12px/1 var(--font-sans); opacity: 0; }
.branch.is-active { background: var(--sodium); border-color: var(--sodium); color: #15191b; font-weight: 500; }
.branch.is-active::before { background: var(--sodium); height: 3px; }
.branch.is-active .branch__state { opacity: 1; color: #15191b; }
.branch.is-active.is-clarify { background: #ffd88a; border-color: #ffd88a; }
.branch.is-pulse { animation: pulse .7s var(--ease); }
.branch.is-pulse::before { animation: wire .55s var(--ease-out); }
@keyframes pulse { 0% { transform: scale(.985); } 60% { transform: scale(1.01); } 100% { transform: none; } }
@keyframes wire { from { transform: scaleX(0); } }
.handoff { margin: 0; }
.handoff > div { display: grid; grid-template-columns: minmax(0, 7.2em) minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.handoff dt { font: 400 13px/1.6 var(--font-sans); color: var(--ink-2); }
.handoff dd { margin: 0; font-size: 15.5px; line-height: 1.5; }
html[lang="ar"] .handoff dd { font-size: 16.5px; line-height: 1.7; }
.handoff dd strong { font-weight: 600; }
.gap-word { color: var(--error); font-weight: 500; }
.is-updated { animation: flash 1.3s var(--ease); border-radius: 3px; }
@keyframes flash { 0% { background: #ffe8a8; } 100% { background: transparent; } }
@keyframes flash-dark { 0% { background: rgba(242, 179, 61, .4); } 100% { background: transparent; } }
@media (max-width: 559px) { .handoff > div { grid-template-columns: 1fr; gap: 2px; } }
/* Phone only: a live strip that stays in view while the visitor edits the form above the result. */
.live-strip {
  position: sticky; bottom: 12px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin: 18px -6px 0; padding: 10px 12px; border-radius: 4px; background: #0f1315; color: #fff;
  border: 1px solid rgba(242, 179, 61, .35); font-size: 14px; line-height: 1.35; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6);
}
html[lang="ar"] .live-strip { font-size: 15px; }
.live-strip .status-pill { font-size: 12.5px; }
.live-strip .status-pill[data-state="clarify"] { background: rgba(242, 179, 61, .18); color: #ffd27a; }
.live-strip .status-pill[data-state="ready"] { background: rgba(84, 214, 140, .16); color: #8be3ae; }
.live-strip__owner { flex: 1 1 10em; }
.live-strip__hint { font-size: 12.5px; color: #c9c3cc; }
.live-strip .is-updated { animation-name: flash-dark; }
@media (min-width: 1024px) { .live-strip { display: none; } }
.demo-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.demo-note { font-size: 13.5px; font-weight: 300; color: var(--ink-2); margin: 0; }
.demo-reset { display: inline-flex; align-items: center; gap: 8px; }
.noscript-note { padding: 14px 16px; border-radius: 4px; background: rgba(255, 255, 255, .08); }

.deliver-row { display: grid; gap: 16px; margin-top: clamp(40px, 6vw, 64px); }
@media (min-width: 760px) { .deliver-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.deliver {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 4px; text-decoration: none;
  background: var(--asphalt-2); color: inherit; transition: transform .45s var(--ease-out);
}
.deliver:hover { transform: translateY(-4px); }
.deliver__media { position: relative; aspect-ratio: 16 / 9; background: #11161a; overflow: hidden; }
.deliver__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.deliver:hover .deliver__media > img { transform: scale(1.04); }
.deliver__play { position: absolute; inset-inline-start: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 3px; background: rgba(255, 255, 255, .94); color: #1e1b21; font: 500 13.5px/1 var(--font-sans); }
.deliver__play svg { width: 11px; height: 11px; }
.deliver__body { padding: 16px 18px 20px; display: grid; gap: 4px; align-content: start; }
.deliver__kind { font: 500 13.5px/1.4 var(--font-sans); color: var(--sodium); }
.deliver__name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.deliver__text { font-size: 16px; color: #c9c5bd; margin: 0; }
.site-mock__bar { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #e7e2d8; color: #1c2124; }
.site-mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #b9b0a2; }
.site-mock__bar b { margin-inline-start: 8px; font-size: 11px; font-weight: 600; }
.site-mock__bar u { margin-inline-start: auto; padding: 3px 12px; border-radius: 99px; background: #fff; color: #7a7068; text-decoration: none; font: 400 10px/1.3 var(--font-sans); }

/* ---------- Services: an index you open one row at a time ---------- */
.services-list { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.service { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.service__head {
  display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; grid-template-areas: "num name plus" "num outs plus";
  gap: 6px 18px; align-items: center; padding: clamp(22px, 2.8vw, 32px) 0; cursor: pointer; list-style: none;
}
.service__head::-webkit-details-marker { display: none; }
.service__head::marker { content: ""; }
.service__num { grid-area: num; align-self: start; padding-top: .7em; font: 400 14px/1 var(--font-sans); color: var(--mark-text); }
.service__name { grid-area: name; font: 600 clamp(26px, 4.2vw, 62px)/1.08 var(--font-sans); letter-spacing: -.03em; transition: color .3s, transform .5s var(--ease-out); }
html[lang="ar"] .service__name { line-height: 1.45; }
.service__outs { grid-area: outs; display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: 15.5px; font-weight: 300; color: var(--ink-2); }
.service__outs > span { display: inline-flex; align-items: center; gap: 8px; }
.service__outs > span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mark); flex: none; }
.service__plus { grid-area: plus; position: relative; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.service__plus::before, .service__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; background: currentColor; transition: transform .4s var(--ease-out); }
.service__plus::after { transform: rotate(90deg); }
.service__head:hover .service__name { color: var(--mark-text); transform: translateX(8px); }
[dir="rtl"] .service__head:hover .service__name { transform: translateX(-8px); }
.service__head:hover .service__plus { border-color: var(--mark); background: var(--mark); color: var(--on-mark); }
.service__fold[open] .service__plus { transform: rotate(180deg); }
.service__fold[open] .service__plus::after { transform: rotate(0deg); }
.service__fold[open] .service__name, .service:target .service__name { color: var(--mark-text); }
.service__body { display: grid; gap: 18px; padding: 0 0 clamp(30px, 4vw, 46px); padding-inline-start: calc(2.6em + 18px); }
.service__body > p { margin: 0; max-width: 34em; }
.service__body > p:first-child { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
@media (min-width: 900px) {
  .service__body { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); column-gap: 56px; align-items: start; }
  .service__body > :not(.example):not(.ask) { grid-column: 1; }
  .service__body > .example, .service__body > .ask { grid-column: 2; grid-row: 1 / span 3; }
}
@media (max-width: 599px) { .service__body { padding-inline-start: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .service__fold::details-content { block-size: 0; overflow: clip; transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete; }
  .service__fold[open]::details-content { block-size: auto; }
}
.service__includes { font-size: 16px; color: var(--ink-2); }
.example { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 0 0 14px; border-bottom: 1px solid var(--line); text-decoration: none; transition: border-color .25s; }
.example:hover { border-color: var(--mark); }
.example img { width: 84px; height: 96px; object-fit: cover; border-radius: var(--arch); }
.example__label { display: block; font-size: 13px; font-weight: 300; color: var(--ink-2); }
.example__title { display: block; font-weight: 500; font-size: 18px; line-height: 1.35; }
.service__cta { justify-self: start; }
.outputs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.outputs li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 3px; border: 1px solid var(--line); font-size: 14.5px; }

/* Floating preview that follows the pointer over the services index (large screens with a mouse). */
.peek {
  position: fixed; top: 0; left: 0; z-index: 70; width: 210px; aspect-ratio: 4 / 5; pointer-events: none;
  border-radius: var(--arch); overflow: hidden; background: var(--night-2); opacity: 0;
  transform: translate3d(calc(var(--x, 0) * 1px - 50%), calc(var(--y, 0) * 1px - 50%), 0) scale(.86);
  transition: opacity .3s, transform .5s var(--ease-out);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.peek.is-on { opacity: 1; transform: translate3d(calc(var(--x, 0) * 1px - 50%), calc(var(--y, 0) * 1px - 50%), 0) scale(1); }
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* Assistant mini demo (on paper) */
.ask { display: grid; gap: 12px; padding: 18px; border-radius: 4px; background: var(--card); border: 1px solid var(--line-strong); }
.ask__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.ask__title { font-weight: 600; font-size: 16px; }
.ask__badge { font-size: 13px; font-weight: 300; color: var(--ink-2); }
.ask__answer { display: grid; gap: 10px; padding: 14px; border-radius: 3px; background: var(--ground); border: 1px solid var(--line); }
.ask__answer p { margin: 0; }
.ask__answer blockquote { margin: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--mark); color: var(--ink-2); font-size: 15px; }
.ask__source { font-size: 14px; font-weight: 500; }
.ask__person { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1.2 var(--font-sans); color: var(--warn); background: var(--warn-bg); padding: 5px 10px; border-radius: 3px; justify-self: start; }
.ask__fine { font-size: 13px; font-weight: 300; color: var(--ink-2); margin: 0; }

/* ---------- More studies: an arcade of arches ---------- */
.studies-grid { display: grid; gap: clamp(56px, 9vw, 140px); margin-top: clamp(44px, 6vw, 88px); }
.study { display: grid; gap: 24px; scroll-margin-top: calc(var(--header-h) + 16px); }
.study__media {
  position: relative; display: block; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; justify-self: center;
  border-radius: var(--arch); overflow: hidden; background: #120d0b;
}
.study__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
#bayt .study__media img { object-position: 38% 50%; }
#amber .study__media img { object-position: 70% 50%; }
#paper .study__media img { object-position: 58% 50%; }
.study__body { display: grid; gap: 12px; align-content: start; }
.study__body p { margin: 0; }
@media (min-width: 900px) {
  .study { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
  .study:nth-child(even) .study__media { order: 2; }
}
.study__label { font: 500 14px/1.4 var(--font-sans); color: var(--mark-text); }
.study__title { font: 650 clamp(46px, 7vw, 108px)/1 var(--font-sans); letter-spacing: -.04em; }
html[lang="ar"] .study__title { line-height: 1.35; }
.study__type { color: #d8c8b4; font-size: 17px; font-weight: 300; }
.study__body > p:not([class]) { font-size: clamp(22px, 2.2vw, 29px); line-height: 1.35; color: var(--ink); max-width: 22em; }
html[lang="ar"] .study__body > p:not([class]) { font-size: clamp(20px, 2vw, 26px); line-height: 1.7; }
.notes { border-top: 1px solid var(--line); padding-top: 4px; max-width: 40em; }
.notes summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 500; font-size: 15px; cursor: pointer; list-style: none; }
.notes summary::-webkit-details-marker { display: none; }
.notes summary::after { content: "+"; font: 300 24px/1 var(--font-sans); color: var(--mark-text); }
.notes[open] summary::after { content: "−"; }
.notes__body { display: grid; gap: 10px; padding-bottom: 6px; font-size: 16.5px; }
html[lang="ar"] .notes__body { font-size: 16.5px; }
.notes__body h4 { font-size: 14px; font-weight: 600; }
.notes__body p { color: var(--ink-2); }
.study__actions { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 4px; }

/* Film studies: three vertical AI-assisted films. On large screens they play silently while in view
   (ambient component, with a Pause button each); on phones they scroll sideways and play on tap. */
.film-studies { margin-top: clamp(64px, 9vw, 132px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.film-studies__head { max-width: 46rem; display: grid; gap: 14px; }
.film-studies__head .kicker, .film-studies__head .h2, .film-studies__head .lead { margin: 0; }
.film-tiles { list-style: none; max-width: 1060px; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.film-tile { min-width: 0; }
.film-tile__frame { position: relative; }
.film-tile__media { aspect-ratio: 9 / 16; border-radius: 6px; background: #100c0a; box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .9); }
.film-tile__media > img { width: 100%; height: 100%; object-fit: cover; }
.film-tile__kind { margin: 16px 0 0; font: 500 13.5px/1.4 var(--font-sans); color: var(--mark-text); }
.film-tile__title { margin: 4px 0 10px; font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--font-sans); letter-spacing: -.01em; }
html[lang="ar"] .film-tile__title { letter-spacing: 0; }
.film-studies__cta { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 899px) {
  .film-tiles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(70vw, 290px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; }
  .film-tile { scroll-snap-align: start; }
}

/* ---------- Studio ---------- */
.studio-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .studio-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }
.studio-mark { width: 76px; height: auto; margin-bottom: 26px; }
.keeps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.keep { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 4px 14px; padding: 26px 0; border-top: 1px solid var(--line-strong); }
.keep:last-child { border-bottom: 1px solid var(--line-strong); }
.keep__num { font: 400 14px/2 var(--font-sans); color: var(--mark-text); grid-row: span 2; }
.keep strong { font: 600 clamp(22px, 2.3vw, 31px)/1.2 var(--font-sans); letter-spacing: -.02em; }
.keep span { color: var(--ink-2); font-size: 17px; }
.studio-copy p { font-size: 19px; line-height: 1.55; max-width: 32em; color: var(--ink); }
.download { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 0; border-block: 1px solid var(--line); text-decoration: none; max-width: 30rem; transition: border-color .2s; }
.download:hover { border-color: var(--mark); }
.download__icon { display: grid; place-items: center; width: 44px; height: 52px; padding-top: 8px; border-radius: var(--arch); background: var(--mark); color: var(--on-mark); font: 600 11px/1 var(--font-sans); flex: none; }
.download__text { display: grid; }
.download__text strong { font-weight: 600; }
.download__text span { font-size: 14px; font-weight: 300; color: var(--ink-2); }
.download-alt { display: inline-block; margin-top: 12px; font-size: 14.5px; font-weight: 500; }

/* ---------- Start band: the closing call, with the arcade film behind it ---------- */
.start-band { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 15vw, 210px); }
.start-band__film { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.start-band__film img, .start-band__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.start-band__film video { opacity: 0; transition: opacity 1.2s ease; }
.start-band__film video.is-on { opacity: 1; }
/* A terracotta veil keeps the white text readable over the film. */
.start-band__film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(150, 50, 30, .93) 0%, rgba(168, 56, 34, .86) 55%, rgba(176, 60, 36, .8) 100%); }
[dir="rtl"] .start-band__film::after { background: linear-gradient(270deg, rgba(150, 50, 30, .93) 0%, rgba(168, 56, 34, .86) 55%, rgba(176, 60, 36, .8) 100%); }
.js main > .start-band { background: var(--mark-band); }
.start-band__mark { position: absolute; z-index: -1; inset-inline-end: -8%; bottom: -16%; width: min(78vw, 980px); height: auto; fill: none; stroke: rgba(255, 255, 255, .26); stroke-width: .3; pointer-events: none; }
[dir="rtl"] .start-band__mark { inset-inline-end: auto; inset-inline-start: -8%; }
.ambient-toggle { position: absolute; z-index: 3; top: 22px; inset-inline-end: var(--gutter); border-color: rgba(255, 255, 255, .5); background: rgba(120, 36, 20, .45); color: #fff; }
/* Ambient films (closing call, Quayline photo and website concept). */
.film-frame { position: relative; overflow: hidden; }
[data-ambient] > video, [data-ambient] > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
[data-ambient] > video { opacity: 0; transition: opacity 1.2s ease; }
[data-ambient] > video.is-on { opacity: 1; }
[data-ambient] > canvas { opacity: 0; }
.ambient-toggle--inset { top: auto; bottom: 14px; inset-inline-end: 14px; border-color: rgba(255, 255, 255, .45); background: rgba(15, 19, 21, .55); }
.ambient-toggle--plain { position: static; border-color: var(--line-strong); background: transparent; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ambient-toggle--plain:hover { border-color: var(--ink); }
.mock-note { margin: 12px 0 0; font-size: 13.5px; font-weight: 300; color: var(--ink-2); }
.start-band .h2 { font-size: clamp(50px, 9.6vw, 150px); line-height: .98; max-width: 9em; }
html[lang="ar"] .start-band .h2 { line-height: 1.3; }
.start-band__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .start-band__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: end; gap: 56px; } }
.start-band p { margin: 0; font-size: 19px; max-width: 30em; }
.start-band .actions { margin-top: 22px; }
.start-band .btn--light { min-height: 58px; padding: 0 28px; font-size: 17px; }
.start-band .mail { color: #fff; font-weight: 500; text-underline-offset: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: #0d0a08; color: #ddd5cc; padding-block: 72px 32px; --focus: #ffffff; --line: rgba(255, 255, 255, .12); font-size: 15px; position: relative; }
html[lang="ar"] .site-footer { font-size: 16px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.footer-logo img { height: 28px; width: auto; }
.site-footer h2 { font: 500 14px/1.4 var(--font-sans); color: var(--mark-text); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; color: #fff; font-weight: 300; }
.site-footer li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-mail { display: inline-block; margin-top: 22px; color: #fff; font: 300 clamp(22px, 2.4vw, 32px)/1.2 var(--font-sans); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-footer .social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .social a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 3px; color: #fff; font-weight: 400; text-decoration: none; transition: border-color .2s, background-color .2s; }
[dir="rtl"] .site-footer .social a { padding: 0 12px 0 16px; }
.site-footer .social a:hover { border-color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
.site-footer .social svg { width: 17px; height: 17px; }

/* ---------- Privacy page ---------- */
.legal-page { padding-block: clamp(44px, 7vw, 100px) clamp(64px, 9vw, 130px); }
.legal { max-width: 52rem; }
.legal .h1 { font-size: clamp(40px, 6vw, 84px); }
.legal .lead { margin: 22px 0 0; }
.legal__body { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line-strong); }
.legal__body h2 { margin: 36px 0 10px; }
.legal__body p { margin: 0; max-width: 38em; font-size: 19px; line-height: 1.6; }
html[lang="en"] .legal__body p { font-family: var(--font-text); }
.legal__body a { text-underline-offset: 4px; }
.legal__body p.legal__date { margin-top: 40px; font: 400 14px/1.5 var(--font-sans); color: var(--ink-2); }
/* Shown on an AI-assisted film while it plays (the still underneath is not labelled). */
.film-label { position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(15, 19, 21, .55); color: #fff; font: 400 12.5px/1 var(--font-sans); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .8s ease; pointer-events: none; }
[data-ambient] > video.is-on ~ .film-label { opacity: 1; }

.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: 13.5px; font-weight: 300; color: #a69c94; }
html[lang="ar"] .footer-base { font-size: 14.5px; }
.footer-base p { margin: 0; }
.footer-base a { color: #e3ddd4; }

/* ---------- Film dialog & studio reel ---------- */
.film-dialog {
  width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 6px;
  background: #110e0c; color: #f3efe8; --focus: #ffffff; overflow: auto;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9);
}
.film-dialog::backdrop { background: rgba(10, 8, 6, .88); }
@media (prefers-reduced-motion: no-preference) { .film-dialog[open] { animation: dialog-in .4s var(--ease-out); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } }
.film-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; }
[dir="rtl"] .film-dialog__bar { padding: 12px 20px 12px 12px; }
.film-dialog__title { font: 500 18px/1.35 var(--font-sans); }
.film-dialog__close { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-weight: 500; flex: none; }
.film-dialog__close:hover { background: rgba(255, 255, 255, .1); }
.film-dialog video { width: 100%; max-height: min(68dvh, 620px); background: #000; }
.film-dialog__caption { padding: 14px 20px 6px; margin: 0; color: #d3cbc4; font-size: 15.5px; font-weight: 300; }
.film-dialog__fallback { margin: 8px 20px 0; padding: 12px 14px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.film-dialog__fallback a { font-weight: 600; color: #fff; }
.film-dialog__file { padding: 6px 20px 20px; margin: 0; font-size: 14px; }
.film-dialog__file a { color: #d3cbc4; }
.reel { list-style: none; margin: 6px 0 0; padding: 4px 20px 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.reel__item { width: 100%; height: 100%; display: grid; gap: 2px; align-content: start; text-align: start; min-height: 58px; padding: 9px 12px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #f3efe8; font: 500 14.5px/1.3 var(--font-sans); transition: border-color .2s, background-color .2s; }
.reel__item small { font-size: 12.5px; font-weight: 300; color: #b9afb4; }
.reel__item:hover { border-color: rgba(255, 255, 255, .5); }
.reel__item[aria-current="true"] { border-color: var(--mark); background: rgba(224, 103, 74, .16); }
.reel__item[aria-current="true"] small { color: var(--mark-text); }
.reel-end { margin: 10px 20px 4px; padding: 20px 22px; border-radius: 4px; background: var(--mark-band); color: #fff; display: grid; gap: 6px; }
.reel-end strong { font: 600 clamp(24px, 2.8vw, 34px)/1.15 var(--font-sans); letter-spacing: -.02em; }
.reel-end p { margin: 0; }
.reel-end .actions { margin-top: 8px; }
@media (max-width: 699px) {
  .film-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .film-dialog video { max-height: 62dvh; }
}

/* ---------- Case pages ---------- */
.player__frame > picture { position: absolute; inset: 0; }
.player__frame > picture img { width: 100%; height: 100%; object-fit: cover; }
.player--case { margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 700px) { .player--case .player__frame { aspect-ratio: 16 / 9; } }
.deliver-grid { display: grid; gap: 32px; margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 1024px) { .deliver-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } }
.stills { display: grid; gap: 16px; }
@media (min-width: 700px) { .stills { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: end; } }
.stills figure { margin: 0; }
.stills img { width: 100%; border-radius: 4px; }
.stills figure:last-child img { border-radius: var(--arch); }
.stills figcaption { margin-top: 8px; font-size: 14px; font-weight: 300; color: var(--cobalt-ice); }
.case-hero .lead, .case-hero .case-deck { color: inherit; }
.section--cobalt .case-deck { color: var(--cobalt-ice); }
.section--freight .case-deck { color: #d6d2ca; }
.case-photo { margin: clamp(32px, 4vw, 56px) 0 0; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--asphalt-2); }
.case-photo img { width: 100%; height: 100%; object-fit: cover; }
/* The Quayline website concept, drawn as a real page in the study's own brand (navy, sea, the Q mark)
   and scaled to its frame with container units, so it keeps its proportions from phone to desktop. */
.site-concept { margin: clamp(32px, 4.5vw, 56px) 0 0; }
.qsite { container: qsite / inline-size; overflow: hidden; border-radius: 10px; background: #102936; color: #fff; font-family: var(--font-sans); box-shadow: 0 0 0 1px rgba(29, 24, 20, .14), 0 2px 6px rgba(29, 24, 20, .08), 0 48px 90px -44px rgba(16, 41, 54, .65); }
.qsite__bar { position: relative; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #ebe6dc; }
.qsite__bar > i { width: 11px; height: 11px; border-radius: 50%; background: #d3cabd; }
.qsite__bar u { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: min(46%, 380px); padding: 6px 14px; border-radius: 8px; background: #fbf9f5; color: #5d6a70; text-decoration: none; font: 400 12.5px/1 var(--font-sans); direction: ltr; }
.qsite__bar u svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.qsite__hero { position: relative; display: block; aspect-ratio: 16 / 8.6; overflow: hidden; }
.qsite__hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* In English the scene is mirrored so the truck drives into the open side of the frame, away from the copy. */
html[lang="en"] .qsite__hero > :is(img, video, canvas) { transform: scaleX(-1); }
.qsite__hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 41, 54, .92) 0%, rgba(16, 41, 54, .76) 36%, rgba(16, 41, 54, .2) 60%, rgba(16, 41, 54, 0) 80%),
              linear-gradient(0deg, rgba(16, 41, 54, .8) 0%, rgba(16, 41, 54, 0) 34%),
              linear-gradient(180deg, rgba(16, 41, 54, .6) 0%, rgba(16, 41, 54, 0) 20%); }
[dir="rtl"] .qsite__hero::after {
  background: linear-gradient(270deg, rgba(16, 41, 54, .92) 0%, rgba(16, 41, 54, .76) 36%, rgba(16, 41, 54, .2) 60%, rgba(16, 41, 54, 0) 80%),
              linear-gradient(0deg, rgba(16, 41, 54, .8) 0%, rgba(16, 41, 54, 0) 34%),
              linear-gradient(180deg, rgba(16, 41, 54, .6) 0%, rgba(16, 41, 54, 0) 20%); }
.qsite__nav { position: absolute; z-index: 2; top: 0; inset-inline: 0; display: flex; align-items: center; gap: 2.8cqi; padding: 2cqi 4cqi; border-bottom: 1px solid rgba(255, 255, 255, .14); font: 400 1.2cqi/1 var(--font-sans); }
.qsite__nav b { margin-inline-end: auto; display: inline-flex; align-items: center; gap: .3em; font-size: 1.75cqi; font-weight: 700; letter-spacing: -.04em; }
html[lang="ar"] .qsite__nav b { letter-spacing: 0; }
.qsite__nav b > span:last-child { font-weight: 300; }
.qsite__nav i { font-style: normal; color: rgba(255, 255, 255, .86); }
.qsite__nav em { font-style: normal; padding: .75cqi 1.4cqi; border: 1px solid rgba(255, 255, 255, .45); border-radius: 99px; }
.qsite__logo { position: relative; flex: none; width: 1.1em; height: 1.13em; margin-inline-end: .25em; border-radius: 42% 42% 0 42%; background: #b9dfdc; overflow: hidden; }
.qsite__logo::before { content: ""; position: absolute; inset: 23% 24% 22% 22%; border-radius: 40%; background: #102936; }
.qsite__logo::after { content: ""; position: absolute; width: 63%; height: 9%; left: 47%; top: 66%; background: #102936; transform: rotate(42deg); }
.qsite__copy { position: absolute; z-index: 2; inset-inline-start: 4cqi; top: 19%; width: 44cqi; display: grid; justify-items: start; gap: 1.5cqi; text-shadow: 0 1px 14px rgba(16, 41, 54, .6); }
.qsite__cta { text-shadow: none; }
.qsite__copy small { display: inline-flex; align-items: center; gap: 1cqi; color: #b9dfdc; font: 500 1.1cqi/1.2 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; }
.qsite__copy small::before { content: ""; width: 3cqi; height: 1px; background: currentColor; }
html[lang="ar"] .qsite__copy small { font-size: 1.3cqi; letter-spacing: 0; }
.qsite__copy strong { font: 650 5.6cqi/1 var(--font-sans); letter-spacing: -.045em; text-wrap: balance; }
html[lang="ar"] .qsite__copy strong { font-size: 4.6cqi; line-height: 1.32; letter-spacing: 0; }
.qsite__copy em { max-width: 33cqi; color: rgba(255, 255, 255, .84); font: 300 1.5cqi/1.5 var(--font-sans); font-style: normal; }
.qsite__cta { display: inline-flex; align-items: center; gap: 1cqi; margin-top: .6cqi; padding: 1.15cqi 2cqi; border-radius: 99px; background: #b9dfdc; color: #102936; font: 600 1.25cqi/1 var(--font-sans); }
.qsite__services { position: absolute; z-index: 2; inset-inline: 4cqi; bottom: 3.2cqi; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border-radius: 1cqi; background: rgba(255, 255, 255, .2); }
.qsite__services > span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .25cqi 1.3cqi; padding: 1.5cqi 1.8cqi; background: rgba(16, 41, 54, .66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.qsite__services > span.is-on { background: #fbf9f5; color: #102936; box-shadow: inset 0 .3cqi 0 #378c9b; }
.qsite__services svg { grid-row: span 2; width: 2.6cqi; height: 2.6cqi; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .qsite__truck { transform: scaleX(-1); }
.qsite__services b { font: 600 1.35cqi/1.2 var(--font-sans); }
.qsite__services small { font: 300 1.1cqi/1.3 var(--font-sans); opacity: .8; }
@container qsite (max-width: 900px) {
  .qsite__nav { padding: 2.6cqi 4.5cqi; font-size: 1.7cqi; }
  .qsite__nav b { font-size: 2.4cqi; }
  .qsite__nav i { display: none; }
  .qsite__copy { inset-inline-start: 4.5cqi; top: 17%; width: 60cqi; gap: 2cqi; }
  .qsite__copy small { font-size: 1.6cqi; }
  .qsite__copy strong { font-size: 7cqi; }
  html[lang="ar"] .qsite__copy strong { font-size: 6cqi; }
  .qsite__copy em { display: none; }
  .qsite__cta { padding: 1.6cqi 2.6cqi; font-size: 1.8cqi; }
  .qsite__services { inset-inline: 4.5cqi; }
  .qsite__services > span { gap: .4cqi 1.6cqi; padding: 2cqi; }
  .qsite__services svg { width: 3.4cqi; height: 3.4cqi; }
  .qsite__services b { font-size: 1.9cqi; }
  .qsite__services small { display: none; }
}
@container qsite (max-width: 560px) {
  .qsite__hero { aspect-ratio: 4 / 5; }
  .qsite__nav { padding: 4cqi 5cqi; font-size: 3.4cqi; }
  .qsite__nav b { font-size: 4.6cqi; }
  .qsite__nav em { padding: 1.6cqi 3cqi; }
  .qsite__copy { inset-inline: 5cqi; top: 16%; width: auto; gap: 3.4cqi; }
  .qsite__copy small { font-size: 3cqi; }
  html[lang="ar"] .qsite__copy small { font-size: 3.4cqi; }
  .qsite__copy small::before { width: 6cqi; }
  .qsite__copy strong { font-size: 11cqi; }
  html[lang="ar"] .qsite__copy strong { font-size: 9.4cqi; }
  .qsite__cta { padding: 3cqi 4.6cqi; font-size: 3.6cqi; }
  .qsite__services { inset-inline: 5cqi; bottom: 5cqi; grid-template-columns: minmax(0, 1fr); border-radius: 2.4cqi; }
  .qsite__services > span { gap: .6cqi 3cqi; padding: 3cqi 4cqi; }
  .qsite__services svg { width: 6cqi; height: 6cqi; }
  .qsite__services b { font-size: 3.8cqi; }
  .qsite__services small { display: block; font-size: 3.2cqi; }
}
@media (max-width: 560px) { .qsite__bar u { width: 62%; font-size: 11px; } }
/* The same page as a thumbnail on the home page card. Its own container name keeps the phone layout out. */
.qsite--card { container: qcard / inline-size; position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); border-radius: 0; box-shadow: none; }
.qsite--card .qsite__bar { height: 24px; gap: 5px; padding: 0 10px; }
.qsite--card .qsite__bar > i { width: 7px; height: 7px; }
.qsite--card .qsite__bar u { width: 50%; padding: 3px 8px; border-radius: 5px; font-size: 9.5px; }
.qsite--card .qsite__bar u svg { width: 8px; height: 8px; }
.qsite--card .qsite__hero { display: block; aspect-ratio: auto; }
.qsite--card .qsite__nav { gap: 4cqi; padding: 3cqi 5cqi; font-size: 2.7cqi; }
.qsite--card .qsite__nav b { font-size: 3.7cqi; }
.qsite--card .qsite__copy { inset-inline-start: 5cqi; top: 27%; width: 62cqi; gap: 2.4cqi; }
.qsite--card .qsite__copy small { font-size: 2.3cqi; }
html[lang="ar"] .qsite--card .qsite__copy small { font-size: 2.7cqi; }
.qsite--card .qsite__copy small::before { width: 5cqi; }
.qsite--card .qsite__copy strong { font-size: 7.4cqi; }
html[lang="ar"] .qsite--card .qsite__copy strong { font-size: 6.4cqi; }
.qsite--card .qsite__cta { margin-top: .4cqi; padding: 2cqi 3.4cqi; font-size: 2.8cqi; }
/* The same page on the hero stage (Websites route): desktop proportions, its own container name. */
.qsite--stage { container: qstage / inline-size; border-radius: 8px; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); }
.qsite--stage .qsite__bar { height: 34px; }
.qsite--stage .qsite__hero { display: block; aspect-ratio: auto; }
.qsite--stage .qsite__nav { font-size: 1.4cqi; }
.qsite--stage .qsite__copy em { font-size: 1.65cqi; }
.qsite--stage .qsite__services b { font-size: 1.55cqi; }
.qsite--stage .qsite__services small { font-size: 1.25cqi; }
.deliver:hover .qsite--card .qsite__hero > img { transform: scaleX(-1) scale(1.04); }
html[lang="ar"] .deliver:hover .qsite--card .qsite__hero > img { transform: scale(1.04); }
.site-concept__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 16px; }
.site-concept__foot .mock-note { margin: 0; }
.desk-needs { max-width: 1040px; margin-top: clamp(36px, 5vw, 72px); }
.made-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.made-list li { display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.made-list b { font: 400 13px/1.6 var(--font-sans); color: var(--mark-text); grid-row: span 2; }
.made-list strong { font-weight: 600; }
.made-list span { color: var(--ink-2); font-size: 15.5px; }
.section--freight .req-table { color: #edeae3; }
.section--freight .req-table caption { color: #fff; }
.section--freight .req-table ol { color: #d6d2ca; }
.case-hero { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 112px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; font-size: 14.5px; font-weight: 300; }
.crumbs a { font-weight: 500; }
.crumbs span[aria-hidden] { opacity: .6; }
.case-hero__grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .case-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; } }
.case-title { font: 650 clamp(62px, 13.5vw, 214px)/.92 var(--font-sans); letter-spacing: -.05em; margin: 16px 0 0; padding-bottom: .12em; }
html[lang="ar"] .case-title { line-height: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  .js .case-title { animation: word-in 1s var(--ease-out) both; }
  .js .case-deck { animation: fade-up .8s var(--ease-out) .2s both; }
}
.case-deck { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.4; margin: 20px 0 0; max-width: 26em; }
html[lang="ar"] .case-deck { line-height: 1.75; }
.case-body { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 1024px) { .case-body--split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } }
.prose { max-width: 38em; }
.prose h3 { margin: 0 0 8px; }
.prose p { font-size: 19px; line-height: 1.6; color: var(--ink); }
.section--cobalt .prose p { color: var(--cobalt-ice); }
html[lang="ar"] .prose p { font-size: 18.5px; }
.prose > * + h3 { margin-top: 30px; }
.notes-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .notes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.note-card { padding-top: 18px; border-top: 1px solid var(--mark); }
.section--cobalt .note-card { border-top-color: var(--cobalt-ice); }
.section--freight .note-card { border-top-color: var(--sodium); }
.note-card h3 { font: 600 19px/1.3 var(--font-sans); margin-bottom: 8px; }
.note-card p { margin: 0; color: var(--ink-2); font-size: 17px; }
.section--cobalt .note-card p { color: var(--cobalt-ice); }
.section--freight .note-card p { color: #c9c5bd; }
.req-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.req-table caption { text-align: start; font-weight: 600; margin-bottom: 10px; }
.req-table th, .req-table td { text-align: start; vertical-align: top; padding: 12px 14px 12px 0; border-top: 1px solid var(--line); }
[dir="rtl"] .req-table th, [dir="rtl"] .req-table td { padding: 12px 0 12px 14px; }
.req-table th { font-weight: 600; width: 24%; }
.req-table ol { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; font-weight: 300; }
.req-table th .muted { display: block; font-weight: 300; font-size: 14px; margin-top: 2px; }
@media (max-width: 759px) {
  .req-table caption { display: block; width: 100%; }
  .req-table, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; width: 100%; }
  .req-table th { border-top: 1px solid var(--line); padding-bottom: 4px; }
  .req-table td { border-top: 0; padding-top: 0; }
}
.next-study { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 0; border-block: 1px solid var(--line-strong); text-decoration: none; transition: border-color .25s; }
.next-study:hover { border-color: var(--mark); }
.next-study:hover strong { color: var(--mark-text); }
.next-study small { display: block; font: 500 14px/1.4 var(--font-sans); color: var(--mark-text); }
.next-study strong { display: block; font: 600 clamp(32px, 5vw, 72px)/1.05 var(--font-sans); letter-spacing: -.035em; transition: color .3s; }
html[lang="ar"] .next-study strong { line-height: 1.4; }
.next-study img { width: 120px; height: 150px; object-fit: cover; border-radius: var(--arch); }

/* ---------- Start (enquiry) page ---------- */
.brief-page { padding-block: clamp(28px, 5vw, 64px) clamp(56px, 8vw, 110px); position: relative; isolation: isolate; }
.brief-grid { display: grid; gap: 28px; grid-template-areas: "intro" "card" "notes"; }
.brief-intro { grid-area: intro; }
.brief-intro .h1 { font-size: clamp(50px, 7.2vw, 110px); }
.brief-intro .lead { margin-top: 18px; margin-bottom: 0; }
.brief-card { grid-area: card; }
.brief-notes { grid-area: notes; }
.brief-notes .honest { margin-top: 0; }
@media (min-width: 1024px) {
  .brief-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-rows: auto 1fr; grid-template-areas: "intro card" "notes card"; gap: 28px 72px; align-items: start; }
}
.honest { margin-top: 24px; padding: 18px 0; border-block: 1px solid var(--line); display: grid; gap: 8px; font-size: 15.5px; font-weight: 300; }
html[lang="ar"] .honest { font-size: 16.5px; }
.honest ol { margin: 0; padding-inline-start: 1.25em; display: grid; gap: 6px; }
.honest strong { font-weight: 600; }
.brief-card { padding: clamp(20px, 3vw, 36px); border-radius: 4px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 50px 100px -60px rgba(0, 0, 0, .9); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 15px; border-radius: 3px; border: 1px solid #b6ab9d; background: #fff; font-weight: 400; font-size: 15px; line-height: 1.25; transition: background-color .2s, color .2s, border-color .2s; }
.chip span::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid #8d8276; flex: none; background: #fff center / 10px no-repeat; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { border-color: #fff; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%231e1b21' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.ref-chip { justify-self: start; display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 3px; background: var(--ground); border: 1px solid var(--line); font-weight: 500; font-size: 15px; }
[dir="rtl"] .ref-chip { padding: 4px 14px 4px 4px; }
.ref-chip button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 3px; border: 0; background: transparent; font-size: 20px; line-height: 1; }
.ref-chip button:hover { background: var(--ground-2); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brief-card .choices__grid--2 { max-width: 26rem; }
.brief-submit { margin-top: 8px; }
.brief-submit .btn[aria-disabled="true"] { opacity: .72; cursor: progress; }
.send-error { margin-top: 14px; }
.sent-text { margin: 12px 0 0; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
/* A box only bots fill in: off screen, out of the tab order and hidden from assistive technology. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.counter { font: 12.5px/1.3 var(--font-mono); color: var(--ink-2); }
.draft-meta { margin: 0 0 14px; display: grid; gap: 0; }
.draft-meta > div { display: grid; grid-template-columns: minmax(0, 5.5em) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.draft-meta dt { font: 400 13px/1.6 var(--font-sans); color: var(--ink-2); }
.draft-meta dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.draft-body { width: 100%; min-height: 260px; padding: 16px; border-radius: 3px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font: 14.5px/1.6 var(--font-mono); white-space: pre-wrap; resize: vertical; }
html[lang="ar"] .draft-body { font: 16px/1.8 var(--font-ar-ui); }
.review-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.status-line { min-height: 1.5em; margin: 14px 0 0; font-weight: 500; color: var(--ok); }
.fine { font-size: 14px; font-weight: 300; color: var(--ink-2); margin: 12px 0 0; }
html[lang="ar"] .fine { font-size: 15px; }

/* ---------- Scroll reveals (content below the fold only, never under reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--k, 0) * 80ms); }
  .will-reveal.is-in { opacity: 1; transform: none; }
  /* The image inside opens like a curtain (the frame itself stays observable). */
  .img-reveal img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
  .img-reveal.is-in img { clip-path: inset(0 0 0 0); }
  .img-reveal.zoom-in img { transform: scale(1.1); }
  .img-reveal.zoom-in.is-in img { transform: none; }
  .study:hover .study__media.is-in img { transform: scale(1.04); }
}

/* ---------- Page transitions between pages of the site ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .25s ease both; }
  ::view-transition-new(root) { animation: vt-in .45s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track, .chapter__word { animation: none !important; }
}

/* ---------- Small utilities (the site uses no inline styles, so a strict Content Security Policy can apply) ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.footer-about { margin: 16px 0 0; max-width: 26em; }
.u-flush { margin: 0 !important; }
.u-flush-b8 { margin: 0 0 8px !important; }
.u-mt8 { margin-top: 8px !important; }
.u-mt24 { margin-top: 24px !important; }
.u-self-start { justify-self: start; }
.u-grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.kinetic .w1 { --i: 1; } .kinetic .w2 { --i: 2; } .kinetic .w3 { --i: 3; } .kinetic .w4 { --i: 4; }
.kinetic .w5 { --i: 5; } .kinetic .w6 { --i: 6; } .kinetic .w7 { --i: 7; } .kinetic .w8 { --i: 8; }
.kinetic .w9 { --i: 9; } .kinetic .w10 { --i: 10; } .kinetic .w11 { --i: 11; }

@media print {
  .site-header, .menu-panel, .film-dialog, .skip, .stage, .stage-bar, .marquee, .peek, .progress, .start-band__mark, .start-band__film, .ambient-toggle { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  .section--cobalt, .section--freight, .section--mark, .section--sand, .section--paper, .site-footer { background: #fff !important; color: #000 !important; }
}
