/* Archivo, served from the site (variable: width 62-125%, weight 100-900, Latin). Preloaded by every page. SIL OFL. */
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: block; 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; }
/* NLMTS — website + brand guidelines
   Layout concept: the container is the limit. Dashed guides mark the edges of the
   1200px container down the whole page; the brand moments (the phone, the blue
   panels, the contact band, the symbol in the footer) break past them.
   Night only: the brand commits to one dark look, whatever the viewer's system setting. */

:root {
  /* Color: one bold blue on a deep navy night */
  --paper: #070A1F;          /* page background: Night */
  --surface: #0E1334;        /* cards, panels, forms: Deep Navy */
  --ink: #EEF0FF;            /* text: Mist */
  --muted: #A0A6CC;
  --line: #1F2550;
  --guide: #283062;
  --guide-strong: #3E4784;
  --blue: #2434FF;
  --blue-hover: #3A49FF;
  --blue-text: #8C96FF;      /* blue for text on dark: Blue Light */
  --on-blue: #FFFFFF;
  --on-blue-soft: #CDD1FF;
  --on-blue-fill: rgb(255 255 255 / 0.14);
  --sky: #151C4A;
  --device: #03050F;
  --device-edge: rgb(140 150 255 / 0.22);
  --code-bg: #0B1030;
  --code-fg: #E6E8FF;
  --code-key: #8C96FF;
  --code-mute: #6B7199;
  --code-edge: rgb(255 255 255 / 0.08);
  --shadow: 0 0 0;
  --ok: #3DD69B;
  --error: #FF7A88;

  /* Fixed brand colors, used where the brand is displayed */
  --c-blue: #2434FF;
  --c-blue-light: #8C96FF;
  --c-ink: #0B0F2E;
  --c-night: #070A1F;
  --c-navy: #0E1334;
  --c-mist: #EEF0FF;
  --c-paper: #F5F6FA;
  --c-sky: #E6E8FF;
  --c-guide: #283062;
  --c-white: #FFFFFF;

  /* Logo symbol: tile and the N inside it */
  --tile: #2434FF;
  --on: #FFFFFF;

  /* Type */
  --font-display: "Unbounded", "Readex Pro", system-ui, sans-serif;
  --font-body: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --cut: 12px;
  --dir: 1;
  color-scheme: dark;
}

html[dir="rtl"] { --dir: -1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[data-lang="ar"] body { line-height: 1.85; }

img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
html[data-lang="ar"] :is(h1, h2, h3, h4) { font-family: var(--font-body); font-weight: 700; letter-spacing: 0 !important; line-height: 1.35; }

:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }

/* Language switching: content is written in both languages side by side */
html[data-lang="ar"] .en,
html:not([data-lang="ar"]) .ar { display: none !important; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gut));
  margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
}

/* The limit: dashed guides at the container edges, behind everything */
.guides { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: flex; justify-content: center; }
.guides span { width: calc(100% - 2 * var(--gut)); max-width: var(--container); height: 100%; border-inline: 1px dashed var(--guide); }

main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
section[id] { scroll-margin-top: 84px; }

/* ---------- Shared pieces ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12.5px/1.2 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-text);
}
.kicker::before { content: "//"; opacity: 0.55; letter-spacing: 0; }
html[data-lang="ar"] .kicker { font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; }

.h2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; }
.sec-head { display: grid; gap: 18px; justify-items: start; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-lede { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 38em; }
.section { padding-block: clamp(72px, 10vw, 140px); }

/* The cut: a 45° corner taken from the N's rising stem */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
html[dir="rtl"] .cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding-block: 0; padding-inline: 24px;
  font: 600 15.5px/1.1 var(--font-body);
  text-decoration: none; border: 0; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.btn-primary { background: var(--blue); color: var(--on-blue); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-soft { background: var(--sky); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.btn-light { background: var(--on-blue); color: var(--c-blue); }
.btn-light:hover { background: var(--c-sky); }
.arr { flex: none; transition: translate 0.2s ease; }
html[dir="rtl"] .arr { rotate: 180deg; }
.btn:hover .arr { translate: calc(3px * var(--dir)) 0; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 34px; padding-block: 0; padding-inline: 12px;
  font: 600 13px/1 var(--font-body);
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--sky); color: var(--ink);
}
.chip-btn:hover { background: var(--line); }
[data-copied] .c-idle, [data-copy]:not([data-copied]) .c-done, [data-copy-target]:not([data-copied]) .c-done { display: none; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; color: var(--ink); padding-block: 6px; text-decoration: none; }
.logo svg { display: block; height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 6px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--sky); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  height: 40px; min-width: 48px; padding-block: 0; padding-inline: 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  font: 600 14px/1 var(--font-body); cursor: pointer;
}
.lang-btn:hover { border-color: var(--guide-strong); }
.nav .btn { min-height: 42px; padding-inline: 18px; font-size: 14.5px; }
.menu-btn { display: none; width: 42px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-tools { margin-inline-start: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; inset-inline: calc(-1 * var(--gut));
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding-block: 8px 16px;
    padding-left: max(var(--gut), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gut), env(safe-area-inset-right, 0px));
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
}
@media (max-width: 520px) { .nav .btn-cta { display: none; } }

/* ---------- Hero: real work first ---------- */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 7vw, 104px); }
.hero-copy { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--line); background: var(--surface);
  font: 500 12.5px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
html[data-lang="ar"] .eyebrow { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; }
.eyebrow .sq { width: 8px; height: 8px; background: var(--blue); flex: none; }
.display { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.display .line { display: block; }
.display .hl { color: var(--blue-text); }
html[data-lang="ar"] .display { line-height: 1.3; }
.lede { color: var(--muted); font-size: clamp(17px, 1.35vw, 19.5px); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.sk { display: block; height: 9px; border-radius: 3px; background: var(--line); }

.hb-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hb-stage:focus-visible { outline-offset: -4px; }
.hb-frame { position: relative; border: 1.5px dashed var(--guide-strong); padding: clamp(12px, 1.8vw, 20px); }
.hb-label { position: absolute; top: 0; inset-inline-start: 14px; translate: 0 -50%; background: var(--paper); padding: 2px 8px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); white-space: nowrap; }
.hb-label s { text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.hb-label b { color: var(--blue-text); }
.hb-browser { border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.8), 0 0 0 1px var(--line); transition: translate 0.25s ease-out; }
.hb-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; border-bottom: 1px solid var(--line); }
.hb-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hb-bar span { margin-inline: auto; font: 500 11px/1 var(--font-mono); color: var(--muted); }
.hb-cap { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--surface); border: 1px solid var(--line); font: 500 11.5px/1.2 var(--font-mono); color: var(--ink); white-space: nowrap; box-shadow: 0 14px 30px -18px rgb(0 0 0 / 0.8); }
.hb-cap i { width: 7px; height: 7px; background: var(--blue); }

.live-wrap { margin-top: clamp(28px, 4vw, 48px); }
.live-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.live-label { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 4px; font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[data-lang="ar"] .live-label { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; }
.live-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(61 214 155 / 0.15); }
.live-row a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.live-row a:hover { border-color: var(--blue-text); }
.live-row small { font: 500 11px/1 var(--font-mono); color: var(--muted); }

@media (max-width: 980px) { .hb-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Services ---------- */
.core { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { --cut: 22px; display: grid; gap: 22px; align-content: start; padding: clamp(24px, 3.4vw, 44px); background: var(--surface); min-width: 0; }
.panel h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.panel p { color: var(--muted); max-width: 34em; }
.panel-app { background: var(--blue); color: var(--on-blue); }
.panel-app p { color: var(--on-blue-soft); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.panel-app .tags li { background: var(--on-blue-fill); color: var(--on-blue); }
.viz { min-height: 168px; display: flex; align-items: flex-end; }

/* Breakpoint frames: real viewport widths */
.bp { display: flex; align-items: flex-end; gap: 12px; width: 100%; }
.bp-item { display: grid; gap: 8px; min-width: 0; }
.bp-item:nth-child(1) { flex: 1440 1 0; }
.bp-item:nth-child(2) { flex: 768 1 0; }
.bp-item:nth-child(3) { flex: 390 1 0; }
.bp-frame { display: grid; align-content: start; gap: 5px; padding: 8px; border: 1.5px solid var(--guide-strong); border-radius: 6px; aspect-ratio: var(--ar); max-width: 100%; }
.bp-frame .sk { height: 5px; }
.bp-frame .sk.ink { background: var(--ink); height: 7px; }
.bp-frame .sk.blue { background: var(--blue); width: 40%; height: 9px; margin-top: 3px; }
.bp-label { font: 500 11px/1 var(--font-mono); color: var(--muted); }

/* Home-screen grid for the app panel */
.home { display: grid; grid-template-columns: repeat(5, minmax(0, 52px)); gap: 14px; }
.ic { aspect-ratio: 1; max-width: 100%; border-radius: 13px; background: var(--on-blue-fill); }
.ic-main { display: grid; place-items: center; background: var(--on-blue); box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.45); }
.ic-main svg { width: 100%; height: 100%; color: var(--c-blue); }

.more { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr) minmax(0, 0.75fr); gap: 24px; align-items: baseline; padding-block: 26px; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.row p { color: var(--muted); }
.row .keys { font: 500 12.5px/1.6 var(--font-mono); color: var(--blue-text); text-align: end; }
html[data-lang="ar"] .row .keys { font-family: var(--font-body); font-size: 14px; }

@media (max-width: 860px) {
  .core { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .row .keys { text-align: start; }
}

/* ---------- Limits we remove ---------- */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.limit { display: grid; gap: 14px; align-content: start; padding-block: clamp(28px, 3.4vw, 44px); padding-inline-end: clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line); min-width: 0; }
.limit:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.limit:nth-child(even) { padding-inline-start: clamp(20px, 4vw, 56px); }
.struck { position: relative; justify-self: start; font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; color: var(--muted); line-height: 1.3; }
.struck::after { content: ""; position: absolute; left: -6px; right: -6px; top: 54%; height: 3px; background: var(--blue); }
html[data-lang="ar"] .struck { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.limit h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.015em; }
.limit p { color: var(--muted); max-width: 32em; }
@media (max-width: 760px) {
  .limits { grid-template-columns: minmax(0, 1fr); }
  .limit:nth-child(odd) { border-inline-end: 0; }
  .limit:nth-child(even) { padding-inline-start: 0; }
}

/* ---------- Process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 38px; padding-inline-end: 22px; min-width: 0; }
.step::before { content: ""; position: absolute; top: 7px; inset-inline: 0; height: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; top: 0; inset-inline-start: 0; width: 16px; height: 16px; background: var(--paper); border: 2px solid var(--blue); }
.step:last-child::before { background: var(--blue); inset-inline-end: -100vw; }
.step:last-child::after { background: var(--blue); }
.step .num { font: 500 13px/1 var(--font-mono); color: var(--blue-text); }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--muted); font-size: 15.5px; }
.get { margin-top: auto; align-self: flex-start; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.get b { font-weight: 600; color: var(--muted); margin-inline-end: 4px; }
@media (max-width: 980px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding-top: 0; padding-inline-start: 40px; padding-inline-end: 0; padding-bottom: 36px; }
  .step::before { top: 0; bottom: 0; inset-inline-start: 7px; inset-inline-end: auto; width: 2px; height: auto; }
  .step::after { top: 2px; }
  .step:last-child::before { inset-inline-end: auto; bottom: -40px; }
  .get { margin-top: 4px; }
}

/* ---------- Stack ---------- */
.stack-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.stack-copy { display: grid; gap: 18px; justify-items: start; }
.code { background: var(--code-bg); color: var(--code-fg); border-radius: 10px; overflow: hidden; border: 1px solid var(--code-edge); box-shadow: 0 40px 80px -48px rgb(var(--shadow) / 0.6); min-width: 0; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--code-edge); font: 500 12px/1 var(--font-mono); color: var(--code-mute); }
.code-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--code-edge); }
.code-bar span { margin-inline-start: 8px; }
.code pre { margin: 0; padding: 20px 22px 24px; overflow-x: auto; font: 400 13.5px/1.8 var(--font-mono); tab-size: 2; }
.code .k { color: var(--code-key); }
.code .p { color: var(--code-mute); }
@media (max-width: 860px) { .stack-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact band ---------- */
.contact { background: var(--blue); color: var(--on-blue); padding-block: clamp(72px, 9vw, 128px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.contact-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.contact .kicker { color: var(--on-blue-soft); }
.contact h2 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
html[data-lang="ar"] .contact h2 { line-height: 1.3; }
.contact-copy p { color: var(--on-blue-soft); max-width: 30em; font-size: 18px; }
.email-box { display: grid; gap: 10px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--on-blue-fill); width: 100%; }
.email-box small { font-size: 13px; color: var(--on-blue-soft); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.email { font: 500 clamp(18px, 2vw, 24px)/1.3 var(--font-mono); color: var(--on-blue); user-select: all; word-break: break-all; }
.contact .chip-btn { background: var(--on-blue-fill); color: var(--on-blue); }
.contact .chip-btn:hover { background: rgb(255 255 255 / 0.24); }

.brief { --cut: 22px; display: grid; gap: 18px; padding: clamp(22px, 3vw, 36px); background: var(--surface); color: var(--ink); min-width: 0; }
.brief h3 { font-size: 20px; font-weight: 600; }
.field { display: grid; gap: 8px; }
.field label, .choices legend { font-size: 14px; font-weight: 600; }
.brief input[type="text"], .brief textarea {
  width: 100%; padding: 12px 14px;
  font: 400 16px/1.45 var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px;
}
.brief input[type="text"]:focus, .brief textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(36 52 255 / 0.22); }
.brief textarea { min-height: 120px; resize: vertical; }
.brief ::placeholder { color: var(--muted); opacity: 0.8; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice > span { display: inline-flex; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 14.5px; font-weight: 500; }
.choice input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.choice input:focus-visible + span { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.form-error { color: var(--error); font-size: 14px; font-weight: 500; }
.brief-out { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.brief-out .ok { color: var(--ok); font-weight: 600; font-size: 15px; }
.brief-text { margin: 0; padding: 14px 16px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--paper); border: 1px solid var(--line); font: 400 14px/1.6 var(--font-body); }
.out-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.out-actions .btn { min-height: 42px; padding-inline: 16px; font-size: 14.5px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(64px, 8vw, 112px) 28px; }
.foot-mark { color: var(--ink); }
.foot-mark svg { display: block; width: 100%; height: auto; }
.foot-mark .limit-line { stroke: var(--guide-strong); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Brand guidelines page
   ========================================================= */
.b-hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.b-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.b-hero .display { font-size: clamp(38px, 5.4vw, 72px); }
.b-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.b-meta div { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); }
.b-meta dt { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[data-lang="ar"] .b-meta dt { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; }
.b-meta dd { margin: 0; font-weight: 600; }
.b-section { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.b-section .sec-head { margin-bottom: clamp(32px, 4vw, 48px); }
@media (max-width: 860px) { .b-hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Construction */
.construct { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.construct-fig { background: var(--surface); padding: clamp(12px, 2vw, 24px); min-width: 0; }
.construct-fig svg { display: block; width: 100%; height: auto; }
.construct-fig .g-grid { stroke: var(--line); }
.construct-fig .g-line { stroke: var(--blue-text); }
.construct-fig .g-soft { stroke: var(--guide-strong); }
.construct-fig .g-ink { fill: var(--ink); }
.construct-fig .g-blue { fill: var(--blue); }
.construct-fig .g-dim { stroke: var(--ink); }
.construct-fig .g-mk { fill: var(--ink); }
.construct-fig .g-num { fill: var(--muted); font: 500 3.2px var(--font-mono); }
.construct-fig .g-mk-t { fill: var(--paper); font: 600 3.4px var(--font-mono); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.legend li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.legend .mk { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 12px/1 var(--font-mono); }
.legend b { display: block; font-weight: 600; }
.legend span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .construct { grid-template-columns: minmax(0, 1fr); } }

/* Logo tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: grid; place-items: center; min-height: 220px; padding: 40px 28px 48px; min-width: 0; }
.tile svg { width: min(78%, 260px); height: auto; display: block; }
.tile .t-label { position: absolute; bottom: 14px; inset-inline-start: 16px; font: 500 11.5px/1.2 var(--font-mono); opacity: 0.72; }
html[data-lang="ar"] .tile .t-label { font-family: var(--font-body); font-size: 13px; }
.t-paper { background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--line); }
.t-blue { background: var(--c-blue); color: var(--c-white); }
.t-night { background: var(--c-night); color: var(--c-white); box-shadow: inset 0 0 0 1px var(--line); }
.t-sky { background: var(--c-sky); color: var(--c-blue); }
.tile .appicon { width: 112px; }
.tile .markonly { width: 70px; }
.sizes { display: flex; align-items: flex-end; gap: 22px; }
.sizes figure { margin: 0; display: grid; justify-items: center; gap: 8px; font: 500 11px/1 var(--font-mono); }
.sizes svg { width: auto; }
.rules { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.rule { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 32px); background: var(--surface); min-width: 0; }
.rule h3 { font-size: 18px; font-weight: 600; }
.rule p { color: var(--muted); font-size: 15.5px; }
.rule svg { width: 100%; height: auto; display: block; }
.rule .cs-box { stroke: var(--blue-text); }
.rule .cs-ink { fill: var(--ink); }
.rule .cs-t { fill: var(--blue-text); font: 500 5px var(--font-mono); }
.minsize { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; color: var(--ink); }
.minsize figure { margin: 0; display: grid; gap: 8px; font: 500 11.5px/1 var(--font-mono); color: var(--muted); }
.minsize svg { display: block; color: var(--ink); }
@media (max-width: 860px) { .tiles, .rules { grid-template-columns: minmax(0, 1fr); } }

/* Color */
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sw { display: grid; grid-template-rows: auto 1fr; padding: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; font: inherit; cursor: pointer; min-width: 0; }
.sw:hover { border-color: var(--guide-strong); }
.sw-color { min-height: 132px; background: var(--c); border-bottom: 1px solid var(--line); position: relative; }
.sw.wide { grid-column: span 2; }
.sw.wide .sw-color { min-height: 200px; }
.sw-color .copy-hint { position: absolute; top: 12px; inset-inline-end: 12px; padding: 5px 9px; background: var(--surface); color: var(--ink); font: 600 11.5px/1 var(--font-body); border-radius: 4px; opacity: 0; transition: opacity 0.15s; }
.sw:hover .copy-hint, .sw:focus-visible .copy-hint, .sw[data-copied] .copy-hint { opacity: 1; }
.sw-info { display: grid; gap: 4px; align-content: start; padding: 14px 16px 16px; }
.sw-name { font-weight: 600; font-size: 16px; }
.sw-hex { font: 500 13.5px/1.4 var(--font-mono); }
.sw-rgb { font: 400 12px/1.4 var(--font-mono); color: var(--muted); }
.sw-use { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ratio-wrap { display: grid; gap: 12px; margin-top: 40px; }
.ratio-wrap h3, .contrast-wrap h3 { font-size: 18px; font-weight: 600; }
.ratio { display: flex; height: 52px; border: 1px solid var(--line); overflow: hidden; }
.ratio span { display: block; height: 100%; }
.ratio-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); }
html[data-lang="ar"] .ratio-legend { font-family: var(--font-body); font-size: 14px; }
.ratio-legend i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 7px; vertical-align: -1px; background: var(--c); box-shadow: inset 0 0 0 1px var(--line); }

.contrast-wrap { display: grid; gap: 12px; margin-top: 40px; }
.contrast { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cpair { display: grid; gap: 10px; padding: 16px; background: var(--bg-c); color: var(--fg-c); min-width: 0; box-shadow: inset 0 0 0 1px var(--line); }
.cpair .aa { font: 700 30px/1 var(--font-display); }
.cpair .ratio-n { font: 500 13px/1.3 var(--font-mono); }
.cpair .pf { justify-self: start; padding: 4px 8px; border-radius: 4px; font: 600 11.5px/1 var(--font-body); background: var(--c-white); color: var(--c-ink); }
.cpair .pf.no { background: #FFE1E5; color: #8A1426; }
@media (max-width: 980px) { .contrast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Type */
.specimens { border-top: 1px solid var(--line); }
.spec { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.6fr); gap: clamp(20px, 4vw, 56px); padding-block: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); align-items: start; }
.spec-meta { display: grid; gap: 6px; align-content: start; }
.spec-meta h3 { font-size: 22px; font-weight: 600; }
html[data-lang="ar"] .spec-meta h3 { font-family: var(--font-display); }
.spec-meta span { color: var(--muted); font-size: 15px; }
.spec-meta code { font: 500 12.5px/1.4 var(--font-mono); color: var(--blue-text); }
.spec-body { display: grid; gap: 14px; min-width: 0; }
.s-display { font: 800 clamp(40px, 5.6vw, 76px)/1.02 var(--font-display); letter-spacing: -0.04em; }
.s-glyphs { font: 400 clamp(15px, 1.6vw, 20px)/1.5 var(--font-display); color: var(--muted); word-break: break-all; }
.s-ar { font: 700 clamp(30px, 4vw, 52px)/1.4 var(--font-body); }
.s-text { font: 400 17px/1.65 var(--font-body); color: var(--muted); max-width: 38em; }
.s-mono { font: 500 clamp(16px, 2vw, 24px)/1.5 var(--font-mono); word-break: break-word; }
.s-mono .v { color: var(--blue-text); }
.scale-wrap { margin-top: 36px; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.scale { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.scale th, .scale td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.scale th { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[data-lang="ar"] .scale th { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; }
.scale tr:last-child td { border-bottom: 0; }
.scale td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.note { margin-top: 16px; padding: 14px 16px; background: var(--sky); font-size: 15px; }
@media (max-width: 760px) { .spec { grid-template-columns: minmax(0, 1fr); } }

/* Graphic language */
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.device { display: grid; gap: 18px; align-content: start; padding: clamp(20px, 3vw, 32px); background: var(--surface); min-width: 0; }
.device h3 { font-size: 20px; font-weight: 600; }
.device p { color: var(--muted); font-size: 15.5px; }
.demo { position: relative; height: 200px; background: var(--paper); overflow: hidden; }
.demo-limit { position: absolute; inset: 22px 18%; border-inline: 1.5px dashed var(--guide-strong); }
.demo-limit::before { content: ""; position: absolute; inset-inline: 0; top: 34px; border-top: 1.5px dashed var(--guide-strong); }
.demo-bar { position: absolute; inset-inline-start: 26%; bottom: 22px; width: 56%; height: 34px; background: var(--ink); }
.demo-break { position: absolute; inset-inline-end: 8%; bottom: 22px; width: 34px; height: 170px; background: var(--blue); --cut: 34px; }
.demo-cut { display: grid; place-items: center; gap: 0; }
.demo-cut .btn { pointer-events: none; }
.cut-zoom { position: absolute; top: 16px; inset-inline-start: 16px; display: grid; gap: 6px; font: 500 11.5px/1 var(--font-mono); color: var(--muted); }
.cut-zoom div { width: 64px; height: 64px; background: var(--blue); --cut: 28px; }
@media (max-width: 760px) { .devices { grid-template-columns: minmax(0, 1fr); } }

/* Voice */
.voice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.voice-h { padding-block: 14px; font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
html[data-lang="ar"] .voice-h { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
.voice-h.say { color: var(--ok); }
.voice-h.avoid { color: var(--error); }
.voice q { quotes: none; display: block; padding-block: 18px; padding-inline-end: 24px; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.voice .avoid-q { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--error); text-decoration-thickness: 1.5px; }

/* Misuse */
.misuse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mis { display: grid; gap: 12px; align-content: start; min-width: 0; }
.mis-box { position: relative; display: grid; place-items: center; height: 150px; background: var(--surface); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.mis-box svg { width: 62%; height: auto; display: block; }
.mis-box .x { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--error); color: var(--surface); font: 700 13px/1 var(--font-body); }
.mis p { font-size: 14.5px; color: var(--muted); }
.mis .stretch svg { transform: scaleX(1.45) scaleY(0.8); }
.mis .offpal { color: #F26B1D; }
.mis .fx svg { filter: drop-shadow(3px 4px 0 #FF3DAA) drop-shadow(0 0 6px rgb(36 52 255 / 0.6)); }
@media (max-width: 980px) { .misuse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Files */
.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); align-items: baseline; }
.files code { font: 500 14px/1.4 var(--font-mono); color: var(--blue-text); word-break: break-all; }
.files span { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .files li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Brand page additions for the final symbol */
.tile .lock { width: min(82%, 300px); height: auto; display: block; }
.tile .sym-only { width: auto; height: 120px; display: block; }
.tile .app { width: 112px; aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; background: var(--c-blue); color: var(--c-white); }
.tile .app svg { width: 100%; height: 100%; display: block; }
.tile .sizes { display: flex; align-items: flex-end; gap: 22px; }
.tile .sizes figure { margin: 0; display: grid; justify-items: center; gap: 10px; font: 500 11px/1 var(--font-mono); }
.tile .sizes svg { width: auto; display: block; }
.demo-type { display: grid; place-content: center; gap: 6px; padding: 20px; font: 800 clamp(20px, 2.2vw, 28px)/1.05 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.demo-type .hl { color: var(--blue-text); }
html[data-lang="ar"] .demo-type { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.demo-type .btn { margin-top: 10px; justify-self: start; min-height: 40px; padding-inline: 16px; font-size: 14px; pointer-events: none; }
.mis-box svg.sym-mis { width: auto; height: 96px; }
.mis .nobreak svg { height: 84px; }
@media (max-width: 980px) { .devices { grid-template-columns: minmax(0, 1fr); } }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot-brand svg { height: 30px; width: auto; display: block; color: var(--ink); }
.legend b span { color: var(--ink); font-size: inherit; }

/* ---------- Work ---------- */
.cases { display: grid; gap: 20px; }
.case { --cut: 22px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); background: var(--case-bg); color: var(--case-fg); overflow: hidden; min-width: 0; }
.case.flip .case-media { order: -1; }
.case-info { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags > span { padding: 6px 10px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12); font: 500 12px/1.2 var(--font-mono); letter-spacing: 0.04em; color: var(--case-fg); }
html[data-lang="ar"] .case-tags > span { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; }
.case h3 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--case-fg); }
html[data-lang="ar"] .case h3 { line-height: 1.3; }
.case-lede { color: var(--case-muted); max-width: 34em; }
.case-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; border-top: 1px solid rgb(255 255 255 / 0.12); padding-top: 18px; }
.case-facts li { display: grid; gap: 6px; align-content: start; min-width: 0; }
.case-facts b { font: 700 clamp(22px, 2.2vw, 30px)/1 var(--font-display); color: var(--case-acc); letter-spacing: -0.02em; }
.case-facts span { font-size: 13.5px; line-height: 1.45; color: var(--case-muted); }
.case-stack { font: 500 12.5px/1.5 var(--font-mono); color: var(--case-muted); }
.case-links { display: flex; flex-wrap: wrap; gap: 10px; }
.case-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 14px; background: rgb(255 255 255 / 0.1); color: var(--case-fg); text-decoration: none; font-weight: 600; font-size: 14px; border-radius: 6px; transition: background-color 0.2s; }
.case-links a:hover { background: var(--case-acc); color: var(--case-bg); }
.case-links a:hover .arr { translate: calc(3px * var(--dir)) 0; }

.phones { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 1.6vw, 18px); min-width: 0; }
.phones img { display: block; width: 31%; max-width: 220px; height: auto; border-radius: clamp(12px, 1.6vw, 20px); box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.08); }
.phones img:nth-of-type(2), .phones img.en:nth-of-type(2), .phones img.ar:nth-of-type(5) { width: 35%; max-width: 250px; }

.case-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-web { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 28px; }
.case-browser { border-radius: 10px; overflow: hidden; background: rgb(255 255 255 / 0.06); box-shadow: 0 30px 60px -32px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(255 255 255 / 0.1); }
.cb-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.cb-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgb(255 255 255 / 0.2); }
.cb-bar span { margin-inline: auto; font: 500 11px/1 var(--font-mono); color: var(--case-muted); }
.case-browser img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .case { grid-template-columns: minmax(0, 1fr); }
  .case.flip .case-media { order: 0; }
  .case-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .case-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .case-facts li { grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; }
}
.sw-color { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07); }
.cpair .pf.no { background: #3A1520; color: #FF9AA6; }

/* ---------- Why: drag the limit (C) ---------- */
.lim { display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(72px, 8vw, 96px); }
.lim-box { position: relative; width: min(var(--w, 560px), 100%); padding: clamp(18px, 2.6vw, 34px) clamp(14px, 2.2vw, 28px); border: 1.5px dashed var(--guide-strong); text-align: center; transition: border-color 0.35s ease; }
.lim-label { position: absolute; top: 0; left: 14px; translate: 0 -50%; background: var(--paper); padding: 2px 8px; font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); white-space: nowrap; }
html[dir="rtl"] .lim-label { left: auto; right: 14px; }
.lim-label b { color: var(--ink); font-weight: 600; }
.lim-title { display: inline-block; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--fs, 64px); line-height: 1.05; letter-spacing: -0.045em; white-space: nowrap; color: var(--ink); transition: color 0.35s; }
html[data-lang="ar"] .lim-title { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.lim-handle { position: absolute; bottom: -13px; right: -13px; width: 26px; height: 26px; padding: 0; border: 0; background: var(--blue); cursor: ew-resize; touch-action: none; --cut: 9px; }
html[dir="rtl"] .lim-handle { right: auto; left: -13px; }
.lim-handle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lim-hint { position: absolute; bottom: -44px; right: -6px; display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px/1 var(--font-mono); color: var(--blue-text); white-space: nowrap; animation: lim-nudge 1.6s ease-in-out infinite; }
html[dir="rtl"] .lim-hint { right: auto; left: -6px; }
html[data-lang="ar"] .lim-hint { font-family: var(--font-body); font-size: 14px; }
@keyframes lim-nudge { 0%, 100% { translate: 0 0; } 50% { translate: calc(6px * var(--dir)) 0; } }
.lim-box.broken { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); border-color: transparent; }
.lim-box.broken .lim-title, .lim-box.broken .lim-label b { color: var(--blue-text); }
.lim-box.broken .lim-handle, .lim-box.broken .lim-hint { display: none; }
.lim-box.snap { animation: lim-snap 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
@keyframes lim-snap { 0% { scale: 0.985; } 60% { scale: 1.01; } 100% { scale: 1; } }
.lim-reset { margin-top: 30px; padding: 6px; border: 0; background: none; color: var(--muted); font: 500 12.5px/1 var(--font-mono); cursor: pointer; }
.lim-reset:hover { color: var(--ink); }
.lim-h2 { margin-bottom: clamp(28px, 4vw, 44px); max-width: 780px; }
#why .sec-head { margin-bottom: 40px; }

/* ---------- Motion: the stem rises (A) ---------- */
.logo-svg .stem, .foot-mark .stem { transform-box: fill-box; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .logo-svg .stem { animation: stem-rise 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.35) 0.35s both; }
  .logo:hover .logo-svg .stem { animation: stem-bump 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3); }
  @supports (animation-timeline: view()) {
    .foot-mark .stem { animation: stem-rise linear both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
  }
}
@keyframes stem-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes stem-bump { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(1.7); } }

/* ---------- Motion: sections slide in as they scroll into view ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section .sec-head, .core .panel, .more .row, .cases .case, .limits .limit, .steps .step, .stack-grid > *, .contact-grid > * {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Case study pages ---------- */
.cs-hero { position: relative; z-index: 1; padding-block: clamp(32px, 5vw, 64px) 0; background: var(--case-bg); color: var(--case-fg); overflow: hidden; }
.cs-hero-in { display: grid; gap: 20px; justify-items: start; }
.cs-crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--case-muted); text-decoration: none; font: 500 13px/1 var(--font-mono); }
html[data-lang="ar"] .cs-crumb { font-family: var(--font-body); font-size: 14px; }
.cs-crumb:hover { color: var(--case-fg); }
.cs-crumb .arr { rotate: 180deg; }
html[dir="rtl"] .cs-crumb .arr { rotate: 0deg; }
.cs-title { font-size: clamp(48px, 8vw, 120px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--case-fg); }
html[data-lang="ar"] .cs-title { line-height: 1.25; }
.cs-lede { max-width: 36em; font-size: clamp(18px, 1.6vw, 22px); color: var(--case-muted); }
.cs-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 920px; }
.cs-hero-media { width: 100%; margin-top: clamp(20px, 3vw, 36px); }
.cs-hero-media .case-browser, .cs-hero-media .cs-wide { border-radius: 14px 14px 0 0; box-shadow: 0 -20px 80px -30px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.1); }
.cs-wide { overflow: hidden; border-radius: 12px; }
.cs-wide img { display: block; width: 100%; height: auto; }

.cs-section { padding-block: clamp(56px, 7vw, 104px); }
.cs-brief { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cs-brief-text { max-width: 30em; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }
html[data-lang="ar"] .cs-brief-text { font-family: var(--font-body); letter-spacing: 0; line-height: 1.6; }
.cs-blocks { display: grid; gap: clamp(56px, 7vw, 96px); }
.cs-block { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.cs-block.flip .cs-block-media { order: -1; }
.cs-block-text { display: grid; gap: 14px; align-content: center; min-width: 0; }
.cs-block-text h2 { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.cs-block-text p { max-width: 30em; color: var(--muted); font-size: 17.5px; }
.cs-block-media { min-width: 0; }
.cs-block-media .phones.n1 img { width: 48%; max-width: 280px; }
.cs-block-media .phones.n2 img { width: 40%; max-width: 250px; }
.cs-block-media .phones.n3 img { width: 30%; max-width: 220px; }
.cs-phone { width: min(300px, 70%); margin-inline: auto; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7), 0 0 0 1px var(--line); }
.cs-phone img { display: block; width: 100%; height: auto; }

.cs-tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-tech-item { display: grid; gap: 10px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cs-tech-item h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.cs-tech-item h3::before { content: ""; display: block; width: 10px; height: 10px; margin-bottom: 14px; background: var(--case-acc); }
.cs-tech-item p { color: var(--muted); font-size: 15px; }
.cs-stack { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 24px; font: 500 13.5px/1.6 var(--font-mono); color: var(--ink); }
.cs-stack-label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
html[data-lang="ar"] .cs-stack-label { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; }

.cs-gallery-sec .sec-head { margin-bottom: 24px; }
.cs-gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 4px 20px; padding-inline-start: max(var(--gut), calc((100% - var(--container)) / 2)); padding-inline-end: var(--gut); scrollbar-width: thin; }
.cs-gallery:focus-visible { outline-offset: -4px; }
.cs-g-phone, .cs-g-web { flex: none; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); }
.cs-g-phone { width: clamp(180px, 20vw, 250px); border-radius: 16px; }
.cs-g-web { width: clamp(300px, 46vw, 640px); border-radius: 10px; }
.cs-g-phone img, .cs-g-web img { display: block; width: 100%; height: auto; }

.cs-end { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cs-next { display: grid; gap: 14px; align-content: space-between; min-height: 240px; padding: clamp(24px, 3.4vw, 44px); background: var(--case-bg); color: var(--case-fg); text-decoration: none; border: 1px solid rgb(255 255 255 / 0.08); }
.cs-next .kicker { color: var(--case-muted); }
.cs-next-name { font: 800 clamp(32px, 4vw, 56px)/1.05 var(--font-display); letter-spacing: -0.03em; }
html[data-lang="ar"] .cs-next-name { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.cs-next .arr { color: var(--case-acc); transition: translate 0.2s ease; }
.cs-next:hover .arr { translate: calc(6px * var(--dir)) 0; }
.cs-cta { --cut: 22px; display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(24px, 3.4vw, 44px); background: var(--blue); color: var(--on-blue); }
.cs-cta h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.cs-cta p { color: var(--on-blue-soft); }
@media (max-width: 900px) {
  .cs-brief, .cs-block, .cs-end { grid-template-columns: minmax(0, 1fr); }
  .cs-block.flip .cs-block-media { order: 0; }
  .cs-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .cs-tech { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .cs-block, .cs-tech-item, .cs-brief { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
.case-links a.cl-main { background: var(--case-acc); color: var(--case-bg); }
.case-links a.cl-main:hover { background: var(--case-fg); color: var(--case-bg); }
.cs-gallery { scroll-padding-inline-start: max(var(--gut), calc((100% - var(--container)) / 2)); }

/* Single-column grids never grow wider than their container */
.cs-hero-in, .hero-copy, .case-info, .contact-copy, .stack-copy, .sec-head, .cs-block-text, .lim, .spec-body, .spec-meta, .device, .rule { grid-template-columns: minmax(0, 1fr); }
.cs-hero-in > *, .hero-copy > *, .case-info > *, .contact-copy > * { max-width: 100%; }
.case-facts b { white-space: nowrap; }

/* ---------- WhatsApp ---------- */
.reach { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: start; width: 100%; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--on-blue-fill); }
.wa-btn { gap: 10px; }
.wa-btn .wa-ico { color: #128C4A; }
.reach-rows { display: grid; gap: 10px; width: 100%; }
.reach-rows .email-line { gap: 10px 12px; }
.reach-rows small { min-width: 72px; font-size: 13px; color: var(--on-blue-soft); }
.reach-rows .email { font-size: clamp(16px, 1.7vw, 20px); }
/* Small phones: the label goes above its value, so the longer email and its Copy button stay on one line */
@media (max-width: 380px) { .reach-rows .email-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; } .reach-rows small { grid-column: 1 / -1; min-width: 0; } }
.wa-send { gap: 8px; }
.wa-float { position: fixed; z-index: 25; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: calc(20px + env(safe-area-inset-right, 0px)); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #FFFFFF; box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.65); transition: transform 0.2s ease; }
html[dir="rtl"] .wa-float { inset-inline-end: calc(20px + env(safe-area-inset-left, 0px)); }
.wa-float:hover { transform: scale(1.07); }
.wa-float:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (max-width: 520px) { .wa-float { width: 52px; height: 52px; } }

/* =========================================================
   Polish pass: rhythm, precision and motion
   ========================================================= */

/* Rhythm: one section spacing, no doubled gaps */
.section { padding-block: clamp(64px, 7.5vw, 112px); }
.hero { padding-block: clamp(32px, 4.5vw, 64px) clamp(40px, 5vw, 64px); }
p { text-wrap: pretty; }

/* Guides frame the content instead of running through it */
.guides span { width: calc(100% - 2 * var(--gut) + 56px); max-width: calc(var(--container) + 56px); }
@media (max-width: 700px) { .guides { display: none; } }

/* Section headers use the full width on large screens */
.sec-head.split { max-width: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); column-gap: clamp(32px, 6vw, 96px); row-gap: 18px; align-items: end; }
.sec-head.split > .kicker { grid-column: 1 / -1; }
.sec-head.split > .sec-lede { justify-self: end; max-width: 24em; }
.sec-head-main { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 900px) {
  .sec-head.split { grid-template-columns: minmax(0, 1fr); }
  .sec-head.split > .sec-lede { justify-self: start; }
}

/* Numbers that count up */
.stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); min-width: 0; }
.stats div { display: grid; gap: 6px; align-content: start; padding: 18px 20px; background: var(--paper); }
.stats dt { font: 800 clamp(30px, 3.2vw, 44px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats div:first-child dt { color: var(--blue-text); }
.stats dd { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* The endless band */
.marquee { position: relative; z-index: 1; overflow: hidden; padding-block: clamp(18px, 2.4vw, 28px); border-block: 1px solid var(--line); background: var(--paper); }
.marquee-track { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); width: max-content; animation: marquee 96s linear infinite; } /* one loop = 18 words (9 services, twice, so filled and outlined keep alternating); 96 s keeps the old speed */
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 800 clamp(28px, 3.6vw, 52px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink); white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.2px var(--guide-strong); }
.mq-dot { flex: none; width: 16px; height: 16px; background: var(--blue); --cut: 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Mobile apps panel: the home screen fills the panel */
.home { grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 440px; gap: clamp(10px, 1.4vw, 16px); }
.ic { border-radius: 22%; }

/* Hero: one orchestrated entrance, and a light that follows the cursor */
.hero { position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(640px circle at var(--mx, 72%) var(--my, 38%), rgb(36 52 255 / 0.16), transparent 62%); transition: background-position 0.2s; }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow { animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both; }
  .hero .display .line { animation: line-in 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero .display .line:nth-child(1) { animation-delay: 0.12s; }
  .hero .display .line:nth-child(2) { animation-delay: 0.24s; }
  .hero .display .line:nth-child(3) { animation-delay: 0.36s; }
  .hero .lede { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both; }
  .hero .cta-row { animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.65s both; }
  .hb-frame { animation: frame-in 1.1s cubic-bezier(0.65, 0, 0.2, 1) 0.2s both; }
  .hb-meta { animation: rise 0.6s ease 0.9s both; }
  .hb-slide.on .ph-l, .hb-slide.on .ph-r, .hb-slide.on .ph-m { animation: card-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.1) 0.15s both; }
  .live-row > * { animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .live-row > *:nth-child(1) { animation-delay: 0.9s; }
  .live-row > *:nth-child(2) { animation-delay: 0.96s; }
  .live-row > *:nth-child(3) { animation-delay: 1.02s; }
  .live-row > *:nth-child(4) { animation-delay: 1.08s; }
  .live-row > *:nth-child(5) { animation-delay: 1.14s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes line-in { from { clip-path: inset(0 0 100% 0); transform: translateY(45%); } to { clip-path: inset(-20% -5% -20% -5%); transform: none; } }
@keyframes frame-in { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(-120px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* Section titles arrive word by word as they scroll in */
.h2 .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .h2 .w { animation: word-in linear both; animation-timeline: view(); animation-range: entry calc(4% + var(--i) * 3%) entry calc(42% + var(--i) * 3%); }
    .section .sec-head { animation: none; }
  }
}
@keyframes word-in { from { opacity: 0; transform: translateY(0.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Process: the line fills as you scroll, and each step lights up when reached */
.steps { position: relative; }
.steps::after { content: ""; position: absolute; z-index: 1; top: 7px; left: 0; width: 100%; height: 2px; background: var(--blue); transform-origin: left center; transform: scaleX(1); pointer-events: none; }
.step::after { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .steps::after { animation: fill-x linear both; animation-timeline: view(); animation-range: entry 70% cover 60%; }
    .step::after { animation: node-on linear both; animation-timeline: view(); animation-range: entry 85% entry 100%; }
  }
}
@keyframes fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes node-on { from { background: var(--paper); } to { background: var(--blue); } }
@media (max-width: 980px) {
  .steps::after { top: 0; left: 7px; width: 2px; height: 100%; transform-origin: center top; }
  @keyframes fill-x { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* Work: cards tilt toward the cursor, screenshots lift */
.case { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); transform-style: preserve-3d; }
.case.tilting { transition: transform 0.08s linear; }
.case .case-browser img, .case .phones img { transition: scale 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.case:hover .case-browser img { scale: 1.025; }
.case:hover .phones img { translate: 0 -6px; }

/* Primary buttons lean toward the cursor */
.btn.magnetic { transition: background-color 0.2s ease, color 0.2s ease, translate 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.case-web { align-content: start; }
.section { padding-block: clamp(56px, 6vw, 92px); }

/* ---------- Launch prep: skip link, FAQ, footer links, simple pages ---------- */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; background: var(--blue); color: var(--on-blue); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; list-style: none; cursor: pointer; font: 600 clamp(17px, 1.5vw, 20px)/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--ink); transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--blue-text), var(--blue-text)) center / 100% 2px no-repeat, linear-gradient(var(--blue-text), var(--blue-text)) center / 2px 100% no-repeat; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue-text); }
.faq summary:focus-visible { outline-offset: 4px; }
.faq details p { max-width: 38em; padding-bottom: 22px; color: var(--muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq-grid .sec-head { position: static; } }

.foot-brand-links { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-brand-links a { color: var(--muted); text-decoration: none; }
.foot-brand-links a:hover { color: var(--ink); }

.doc { padding-block: clamp(48px, 7vw, 96px); }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: calc(760px + 2 * var(--gut)); }
.doc h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.doc h2 { margin-top: 18px; font-size: 20px; font-weight: 600; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font: 500 13px/1.4 var(--font-mono); color: var(--muted); }
.nf { padding-block: clamp(56px, 9vw, 140px); }
.nf .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; }
.nf-code { font: 800 clamp(96px, 18vw, 240px)/0.9 var(--font-display); letter-spacing: -0.06em; color: var(--ink); }
.nf-code span { color: var(--blue-text); }

/* ---------- Mobile fixes ---------- */
/* Older iPhones (before iOS 16) ignore overflow: clip; hidden comes first as their fallback. */
main { overflow-x: hidden; overflow-x: clip; }
/* Buttons in a row share the width; when they wrap, each takes the full line. */
.cta-row .btn { flex: 1 1 auto; }
@media (max-width: 520px) {
  /* Live projects scroll sideways instead of stacking three rows */
  .live-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); padding-block: 4px; -webkit-overflow-scrolling: touch; }
  .live-row::-webkit-scrollbar { display: none; }
  .live-row > * { flex: none; }
  /* Project cards: the case study button on its own line, the store links share the next */
  .case-links a { flex: 1 1 auto; justify-content: center; }
  .case-links .cl-main { flex-basis: 100%; }
  /* Facts: number column sized to the number, so "AR · EN" never overlaps */
  .case-facts li { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .case-facts b { min-width: 52px; font-size: 24px; }
  /* Code wraps instead of running off the screen */
  .code pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; padding: 16px; }
}

/* ---------- Hero showcase: one complete project at a time ---------- */
.hb-stage { position: relative; display: grid; min-width: 0; padding: 24px clamp(16px, 2.6vw, 40px) 0; color: inherit; }
.hb-slides { position: relative; aspect-ratio: 16 / 11; max-width: 100%; }
.hb-slide { position: absolute; inset: 0; display: block; color: inherit; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.985); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.7s; }
.hb-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s; }
.hb-slide:focus-visible { outline-offset: 8px; }
.hb-slide .ph { position: absolute; display: block; height: auto; max-width: none; object-fit: cover; border-radius: clamp(10px, 1.4vw, 18px); background: var(--surface); box-shadow: 0 40px 70px -30px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.1); transition: translate 0.25s ease-out; }
/* Apps: three screens of the same app, the middle one stepping out of the frame */
.hb-apps .ph { aspect-ratio: 9 / 16; }
.hb-apps .ph-c { z-index: 2; width: 40%; left: 30%; top: 4%; }
.hb-apps .ph-l { width: 31%; left: 2%; top: 14%; rotate: -5deg; }
.hb-apps .ph-r { width: 31%; right: 2%; top: 14%; rotate: 5deg; }
/* Websites: the desktop page with the same site on a phone */
.hb-web .hb-browser { position: absolute; left: 0; top: 0; width: 88%; }
.hb-web .hb-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.hb-web .ph-m { z-index: 2; width: 24%; right: -2%; bottom: -12%; aspect-ratio: 390 / 844; }
/* Name of the project on show, and the dots to pick one */
.hb-meta { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: clamp(24px, 3.4vw, 40px); }
.hb-cap { position: static; display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 500 12.5px/1.2 var(--font-mono); white-space: nowrap; box-shadow: none; transition: border-color 0.2s; }
.hb-cap b { font: 700 14px/1 var(--font-body); }
.hb-cap span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.hb-cap b, .hb-cap i, .hb-cap .arr { flex: none; }
.hb-cap .arr { color: var(--blue-text); }
.hb-cap:hover { border-color: var(--blue-text); }
.hb-dots { position: static; flex: none; display: flex; gap: 4px; }
.hb-dots button { display: grid; place-items: center; width: 30px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.hb-dots button::before { content: ""; width: 100%; height: 3px; background: var(--line); transition: background-color 0.3s; }
.hb-dots button.on::before { background: var(--blue-text); }
.hb-dots button:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; }
@media (max-width: 520px) {
  .hb-stage { padding: 20px 6px 0; }
  .hb-meta { gap: 8px; }
  .hb-cap { font-size: 11px; padding: 8px 9px; gap: 8px; }
  .hb-cap b { font-size: 13px; }
  .hb-dots { flex: none; gap: 2px; }
  .hb-dots button { width: 22px; height: 30px; }
}

/* ---------- The limit breaks ----------
   Without script (or with reduced motion) this is a still wall of our work under "No limits".
   With script, .live pins it: a box grows to the site's 1200px limit, the limit lines turn blue,
   then the box breaks past them and fills the screen. */
.brk { position: relative; z-index: 1; background: var(--paper); }
.brk-pin { position: relative; height: min(88vh, 860px); height: min(88svh, 860px); min-height: 520px; overflow: hidden; isolation: isolate; }
.brk-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--paper); }
.brk-grid { position: absolute; left: 50%; top: 50%; width: max(124vw, 900px); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); align-items: start; translate: -50% -50%; rotate: -8deg; }
.brk-col { display: grid; gap: clamp(10px, 1.2vw, 18px); translate: 0 calc(60px - var(--p, 0.5) * 120px); will-change: translate; }
.brk-col:nth-child(even) { margin-top: -14vw; translate: 0 calc(var(--p, 0.5) * 120px - 60px); }
.bt { display: block; width: 100%; height: auto; object-fit: cover; border-radius: clamp(8px, 1vw, 14px); background: var(--surface); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); }
.bt-p { aspect-ratio: 9 / 16; }
.bt-w { aspect-ratio: 16 / 10; object-position: top; }
.brk-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(var(--paper), transparent 16%, transparent 80%, var(--paper)),
    radial-gradient(ellipse 80% 66% at 50% 50%, rgb(7 10 31 / 0.93), rgb(7 10 31 / 0.72) 60%, rgb(7 10 31 / 0.48)); }
.brk-end { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: clamp(14px, 2vw, 22px); padding: var(--gut); text-align: center; }
.brk-big { display: flex; align-items: flex-end; gap: 0.05em; font: 800 clamp(56px, 13vw, 210px)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--ink); }
.brk-big i { flex: none; width: 0.17em; height: 0.17em; margin-bottom: 0.06em; background: var(--blue); --cut: 0.06em; }
.brk-sub { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.5vw, 20px); color: color-mix(in srgb, var(--ink) 80%, transparent); }
.brk-limit, .brk-box, .brk-intro { display: none; }

.brk.live { height: 280vh; height: 280svh; }
.brk.live .brk-pin { --t: 30%; --r: 30%; --b: 20%; --l: 30%; --rad: 14px; --k: 0; --o: 0; --push: 0px; --lw: 1200px; --hh: 64px;
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.brk.live .brk-wall { clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad)); }
.brk.live .brk-grid { scale: calc(1.1 - var(--k) * 0.1); }
.brk.live .brk-shade { opacity: var(--o); }
.brk.live .brk-limit { display: block; position: absolute; z-index: 2; inset-block: 0; left: 50%; width: var(--lw); translate: -50% 0; pointer-events: none; opacity: calc(1 - var(--k)); }
.brk-limit i { position: absolute; inset-block: 0; border-left: 1px dashed var(--guide-strong); transition: border-color 0.3s, filter 0.3s; }
.brk-limit i:first-child { left: calc(-1 * var(--push)); }
.brk-limit i:last-child { right: calc(-1 * var(--push)); }
.brk.hit .brk-limit i, .brk.broken .brk-limit i { border-color: var(--blue-text); filter: drop-shadow(0 0 6px var(--blue)); }
.brk.live .brk-box { display: block; position: absolute; z-index: 2; inset: var(--t) var(--r) var(--b) var(--l); border: 1px solid rgb(255 255 255 / calc(0.18 * (1 - var(--k)))); border-radius: var(--rad); pointer-events: none; }
.brk-label { position: absolute; left: 14px; top: max(0px, calc(var(--hh) + 14px - var(--t))); translate: 0 -50%; padding: 3px 9px; background: var(--paper); border: 1px solid var(--line); font: 500 12px/1.4 var(--font-mono); color: var(--muted); white-space: nowrap; opacity: calc(1 - var(--o)); }
.brk-label .brk-val { color: var(--ink); }
.brk.hit .brk-label .brk-val { color: var(--blue-text); }
.brk-label s { color: var(--muted); text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.brk-label b { color: var(--blue-text); font-weight: 500; }
.brk-handle { position: absolute; right: -7px; top: 50%; width: 14px; height: 30px; translate: 0 -50%; background: var(--blue); --cut: 5px; opacity: calc(1 - var(--k) * 3); }
.brk.live .brk-intro { display: grid; position: absolute; z-index: 2; inset-inline: 0; top: calc(var(--hh) + clamp(18px, 4vh, 48px)); justify-items: center; gap: 10px; margin: 0; padding-inline: var(--gut); text-align: center; opacity: calc(1 - var(--k) * 2.5); translate: 0 calc(var(--k) * -30px); pointer-events: none; }
.brk-intro .kicker { margin: 0; }
.brk-intro-line { max-width: 22ch; font: 600 clamp(22px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.brk.live .brk-end { opacity: var(--o); translate: 0 calc((1 - var(--o)) * 30px); visibility: hidden; }
.brk.live.end .brk-end { visibility: visible; }
.brk.live .brk-big { scale: calc(0.92 + var(--o) * 0.08); }
@media (max-width: 700px) {
  /* phones: a narrower wall with smaller tiles, so the middle of the screen shows every project, not two columns */
  .brk-grid { width: 175vw; }
  .brk-col:nth-child(even) { margin-top: -16vw; }
  .brk-label { left: 10px; font-size: 11px; }
}

/* ---------- Work by category: apps, websites, film ---------- */
.cases { gap: clamp(56px, 7vw, 96px); }
.wk-nav { position: sticky; top: calc(80px + env(safe-area-inset-top, 0px)); z-index: 6; display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 clamp(28px, 4vw, 44px); padding: 5px; overflow-x: auto; scrollbar-width: none; background: var(--paper); background: color-mix(in srgb, var(--paper) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); }
.wk-nav::-webkit-scrollbar { display: none; }
.wk-nav a { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--muted); text-decoration: none; font: 600 14px/1 var(--font-body); transition: color 0.2s, background-color 0.2s; }
.wk-nav a b { padding: 4px 6px; background: var(--surface); color: var(--muted); font: 500 11px/1 var(--font-mono); transition: inherit; }
.wk-nav a:hover { color: var(--ink); }
.wk-nav a.on { background: var(--blue); color: var(--on-blue); }
.wk-nav a.on b { background: rgb(255 255 255 / 0.18); color: var(--on-blue); }
.wk-nav a:focus-visible { outline: 2px solid var(--blue-text); outline-offset: -2px; }
.wk-group { display: grid; gap: 20px; min-width: 0; scroll-margin-top: calc(150px + env(safe-area-inset-top, 0px)); }
.wk-head { display: flex; align-items: center; gap: 14px; min-width: 0; margin-bottom: 4px; }
.wk-num { font: 500 12px/1 var(--font-mono); color: var(--blue-text); }
.wk-title { font: 700 clamp(22px, 2.4vw, 32px)/1.1 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; }
.wk-line { flex: 1; min-width: 24px; border-top: 1px dashed var(--guide-strong); }
.wk-note { font: 500 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.case h4 { font-size: clamp(28px, 3.2vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--case-fg); margin: 0; font-family: var(--font-display); }
@media (max-width: 520px) {
  .wk-note { display: none; }
  .wk-nav { margin-inline: calc(-1 * var(--gut)); max-width: none; width: auto; border-inline: 0; padding-inline: var(--gut); top: calc(70px + env(safe-area-inset-top, 0px)); }
  .wk-nav a { padding: 10px 12px; font-size: 13.5px; }
}

/* ---------- Services: Photo & film, with a camera viewfinder ---------- */
.panel-film { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; column-gap: clamp(28px, 4vw, 64px); }
.pf-copy { display: grid; gap: 22px; align-content: start; min-width: 0; }
.panel-film .viz { display: block; min-height: 0; min-width: 0; }
.vf { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: radial-gradient(ellipse 70% 80% at 50% 45%, #1B2356, var(--paper) 78%); box-shadow: inset 0 0 0 1px var(--line); }
.vf-thirds, .vf-thirds::before, .vf-thirds::after { position: absolute; }
.vf-thirds { inset: 0; }
.vf-thirds::before { content: ""; inset: 0 33.333%; border-inline: 1px solid rgb(255 255 255 / 0.07); }
.vf-thirds::after { content: ""; inset: 33.333% 0; border-block: 1px solid rgb(255 255 255 / 0.07); }
.vf-c { position: absolute; width: clamp(14px, 2vw, 24px); aspect-ratio: 1; border: 2px solid var(--ink); }
.vf-c.tl { top: 7%; left: 4%; border-right: 0; border-bottom: 0; }
.vf-c.tr { top: 7%; right: 4%; border-left: 0; border-bottom: 0; }
.vf-c.bl { bottom: 7%; left: 4%; border-right: 0; border-top: 0; }
.vf-c.br { bottom: 7%; right: 4%; border-left: 0; border-top: 0; }
.vf-crop { position: absolute; top: 12%; bottom: 12%; left: 50%; aspect-ratio: 9 / 16; translate: -50% 0; border: 1.5px dashed var(--blue-text); }
.vf-crop em { position: absolute; top: 0; left: 50%; translate: -50% -50%; padding: 2px 6px; background: #151C47; color: var(--blue-text); font: 500 10.5px/1 var(--font-mono); font-style: normal; white-space: nowrap; }
.vf-rec, .vf-tc, .vf-ar { position: absolute; font: 600 clamp(10px, 1.1vw, 12px)/1 var(--font-mono); letter-spacing: 0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vf-rec { top: calc(7% + 4px); left: calc(4% + clamp(22px, 3vw, 34px)); display: flex; align-items: center; gap: 7px; }
.vf-rec i { width: 8px; height: 8px; border-radius: 50%; background: #FF4B4B; }
.vf-tc { top: calc(7% + 4px); right: calc(4% + clamp(22px, 3vw, 34px)); }
.vf-ar { bottom: calc(7% + 4px); right: calc(4% + clamp(22px, 3vw, 34px)); color: var(--muted); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .vf-rec i { animation: rec-blink 1.2s steps(1) infinite; }
}
@keyframes rec-blink { 50% { opacity: 0; } }
@media (max-width: 860px) {
  .panel-film { grid-template-columns: minmax(0, 1fr); }
  .panel-film .viz { order: -1; }
}

/* ---------- Hero headline: "apps & films." is the longest line, sized so it never wraps ---------- */
.hero .display { font-size: clamp(34px, 4.4vw, 64px); }
@media (max-width: 980px) { .hero .display { font-size: clamp(34px, 10.4vw, 64px); } }

/* ---------- Films: vertical reel card and the full-screen player ---------- */
.films { display: grid; gap: 20px; }
.reel { display: flex; justify-content: center; min-width: 0; }
.reel-frame { position: relative; display: block; width: clamp(220px, 24vw, 300px); max-width: 100%; aspect-ratio: 9 / 16; overflow: hidden; border-radius: clamp(14px, 1.6vw, 20px); background: rgb(255 255 255 / 0.06); box-shadow: 0 40px 80px -36px rgb(0 0 0 / 0.85), 0 0 0 1px rgb(255 255 255 / 0.1); }
.reel-frame img, .reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reel-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(0 0 0 / 0.55)); pointer-events: none; }
.reel-play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 68px; height: 68px; --cut: 14px; background: var(--case-acc); color: var(--case-bg); transition: scale 0.25s ease; }
.reel-play svg { margin-left: 3px; }
.reel-tag { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; padding: 5px 8px; background: rgb(0 0 0 / 0.5); color: #FFFFFF; font: 500 11px/1 var(--font-mono); letter-spacing: 0.04em; }
.reel-tag i { width: 7px; height: 7px; border-radius: 50%; background: #FF4B4B; }
.reel-frame:hover img, .reel-frame:hover video { scale: 1.04; }
.reel-frame:hover .reel-play { scale: 1.08; }
.reel-frame:focus-visible { outline: 2px solid var(--case-acc); outline-offset: 4px; }

html.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: max(64px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); background: rgb(4 6 18 / 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-frame { --ar: 1.7778; position: relative; width: min(100%, calc((100dvh - 110px) * var(--ar))); aspect-ratio: var(--ar); overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.1); }
.lb-frame iframe, .lb-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-title { position: fixed; top: max(22px, env(safe-area-inset-top)); left: 20px; margin: 0; display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.lb-title b { color: var(--ink); font: 700 15px/1 var(--font-body); letter-spacing: 0; }
.lb-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.lb-close:hover { border-color: var(--blue-text); }
@media (prefers-reduced-motion: no-preference) {
  .lb:not([hidden]) { animation: lb-in 0.3s ease both; }
  .lb:not([hidden]) .lb-frame { animation: rise 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}
@keyframes lb-in { from { opacity: 0; } }
@media (max-width: 860px) {
  .case-film .reel { order: -1; }
  .reel-frame { width: min(68vw, 300px); }
}
.reel-preview { opacity: 0; transition: opacity 0.6s ease, scale 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reel-frame.playing .reel-preview { opacity: 1; }

/* ---------- Spike: the film slide in the hero, and the film case page ---------- */
.hb-reel { overflow: hidden; background: #000; }
.hb-reel img, .hb-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hb-reel .reel-tag { left: 8px; bottom: 8px; padding: 4px 7px; font-size: 10px; }
.cs-film { display: flex; justify-content: center; padding-bottom: clamp(36px, 5vw, 64px); }
.cs-film-frame { position: relative; width: min(380px, 100%); padding: clamp(10px, 1.6vw, 16px); border: 1.5px dashed rgb(255 255 255 / 0.22); }
.cs-film-label { position: absolute; top: 0; left: 14px; translate: 0 -50%; padding: 2px 8px; background: var(--case-bg); color: var(--case-muted); font: 500 12px/1.4 var(--font-mono); white-space: nowrap; }
.cs-film-label b { color: var(--case-acc); font-weight: 500; }
.cs-film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 14px; background: #000; box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.1); }
@media (max-width: 520px) {
  .hb-dots button { width: 18px; }
  .hb-dots { gap: 1px; }
}

/* =====================================================================
   LETTERBOX — the identity from 2026-11-20
   Black and white only. The colour on the page comes from the work itself.
   One family, Archivo, at two widths: ultra-condensed black for titles,
   regular width for everything you read. Square corners, no dashed guides.
   ===================================================================== */
:root {
  --paper: #000000;
  --surface: #0C0C0C;
  --ink: #FFFFFF;
  --muted: #8F8F8F;
  --line: #222222;
  --guide: #2A2A2A;
  --guide-strong: #3A3A3A;
  --blue: #FFFFFF;
  --blue-hover: #D9D9D9;
  --blue-text: #FFFFFF;
  --on-blue: #000000;
  --on-blue-soft: rgb(0 0 0 / 0.62);
  --on-blue-fill: rgb(0 0 0 / 0.07);
  --sky: #141414;
  --device: #000000;
  --device-edge: rgb(255 255 255 / 0.16);
  --code-bg: #0A0A0A;
  --code-fg: #EDEDED;
  --code-key: #FFFFFF;
  --code-mute: #767676;
  --ok: #FFFFFF;
  --tile: #FFFFFF;
  --on: #000000;
  --c-blue: #000000;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Archivo", system-ui, sans-serif;
  --cond: 62%;
}
body { font-family: var(--font-body); font-stretch: 100%; font-size: 17px; }
.guides { display: none; }
.cut { clip-path: none; }
.arr { display: none !important; }
.kicker::before { content: none; }
.kicker, .eyebrow { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.eyebrow .sq { display: none; }

/* Titles: condensed black capitals, like a film's title cards */
h1, h2, h3, .h2, .display { font-family: var(--font-display); font-stretch: var(--cond); font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; }
.h2 { font-size: clamp(46px, 6.6vw, 104px); line-height: 0.86; }
h3 { line-height: 0.95; }
.lb-mark text { font-family: "Archivo", sans-serif; font-stretch: 62%; font-weight: 900; }
.logo-svg { width: 104px; height: auto; }
.foot-brand svg { height: 34px; }
.foot-mark { color: var(--ink); }
.foot-mark svg { display: block; width: 100%; height: auto; }

/* Buttons and links: white on black, black on white, a line under text links */
.btn { border-radius: 0; font-weight: 600; letter-spacing: 0; }
.btn-soft { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-soft:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: #000; color: #fff; }
.tags li { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.site-header { border-bottom-color: #1A1A1A; }
.nav-links a { font-weight: 500; }
.menu-btn { border-radius: 0; }

/* Contact is the one white "screen" on the page */
.contact { background: #FFFFFF; color: #000000; }
.contact .brief { background: #000; color: #fff; }
.contact .chip-btn { border-radius: 0; }
.choice > span { border-radius: 0; }
.brief input[type="text"]:focus, .brief textarea:focus { box-shadow: 0 0 0 3px rgb(255 255 255 / 0.25); }

/* Case pages: the project's own colours step back; the work carries the colour */
main.cs[style] { --case-bg: #000000 !important; --case-fg: #FFFFFF !important; --case-muted: #8F8F8F !important; --case-acc: #FFFFFF !important; }
.cs-title { font-stretch: var(--cond); font-weight: 900; text-transform: uppercase; font-size: clamp(72px, 13vw, 200px); line-height: 0.82; }
.case-tags > span { border-radius: 0; background: transparent; font-family: var(--font-body); letter-spacing: 0; }
.case-stack, .cs-stack, .cs-film-label, .lb-title, .reel-tag, .brk-label, .lim-label, .hb-label { font-family: var(--font-body); letter-spacing: 0; }
.case-links a { border-radius: 0; }
.cs-next-name { font-stretch: var(--cond); font-weight: 900; text-transform: uppercase; }
.cs-cta { background: #FFFFFF; color: #000; }
.cs-cta .btn-light { background: #000; color: #fff; }
.wa-float { background: #FFFFFF; color: #000000; }

/* ---------- Hero: NLMTS taller than the film strip it sits on ---------- */
.lbx { position: relative; padding: 0; overflow: hidden; }
.lbx-stage { position: relative; display: grid; align-content: center; padding-block: clamp(36px, 7vw, 96px); }
.lbx-strip { display: flex; height: 19vw; overflow: hidden; background: #111; }
.lbx-strip > * { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.72) contrast(1.05); }
.lbx-word { position: absolute; left: 50%; top: 50%; margin: 0; translate: -50% -50%; font: 900 36.5vw/0.8 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; letter-spacing: -0.005em; white-space: nowrap; color: #fff; pointer-events: none; user-select: none; }
.lbx-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; padding-bottom: clamp(28px, 4vw, 48px); }
.lbx-foot h1 { margin: 0 0 14px; font-size: clamp(30px, 3.6vw, 52px); line-height: 0.9; }
.lbx-foot p { margin: 0; max-width: 34em; color: #CFCFCF; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; }
.lbx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lbx-play { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 22px; color: #fff; text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px #fff; }
.lbx-play svg { width: 12px; height: 12px; }
.lbx-play:hover { background: #fff; color: #000; }
.lbx-reel { display: none; }
.lbx .live-wrap { margin-top: 0; padding-bottom: clamp(40px, 6vw, 72px); }
.live-label i { background: #fff; box-shadow: none; }
.live-row a { border-radius: 0; background: transparent; }
@media (max-width: 760px) {
  .lbx-strip { height: 24vw; }
  .lbx-foot { grid-template-columns: minmax(0, 1fr); }
  .lbx-reel { display: block; height: 64svh; margin-bottom: 28px; overflow: hidden; }
  .lbx-reel video { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- Work: every project gets the full width, credits beside it ---------- */
.wk-nav { border-radius: 0; background: rgb(0 0 0 / 0.86); }
.wk-nav a { font-family: var(--font-body); }
.wk-nav a b { font-family: var(--font-body); background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.wk-nav a.on { background: #fff; color: #000; }
.wk-nav a.on b { background: transparent; color: #000; }
.wk-num { display: none; }
.wk-head { margin-bottom: 0; }
.wk-title { font-stretch: var(--cond); font-weight: 900; font-size: clamp(36px, 4.4vw, 64px); }
.wk-line { border-top: 1px solid var(--line); }
.wk-note { font-family: var(--font-body); }
.stats { border-radius: 0; }
.stats dt { font-family: var(--font-display); font-stretch: var(--cond); font-weight: 900; font-size: clamp(40px, 4.4vw, 64px); }
.stats div:first-child dt { color: #fff; }
.wk-group { gap: 0; }
.lbp { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); min-height: min(86svh, 820px); margin-inline: calc(50% - 50vw); border-top: 1px solid #1A1A1A; }
.lbp.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.lbp.flip .lbp-media { order: 2; }
.lbp-media { position: relative; display: flex; overflow: hidden; min-height: 460px; background: #0A0A0A; }
.lbp-media > * { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; }
.lbp-media.web > img { object-position: top; }
.lbp-info { position: relative; display: grid; align-content: end; justify-items: start; gap: 22px; padding: clamp(28px, 4vw, 64px) max(var(--gut), calc((100vw - var(--container)) / 2)); padding-inline-start: clamp(24px, 3.4vw, 56px); }
.lbp.flip .lbp-info { padding-inline-start: max(var(--gut), calc((100vw - var(--container)) / 2)); padding-inline-end: clamp(24px, 3.4vw, 56px); }
.lbp-info h4 { margin: 0; font: 900 clamp(76px, 10.5vw, 168px)/0.8 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; letter-spacing: -0.005em; margin-inline-start: calc(-1 * clamp(44px, 7vw, 120px)); position: relative; z-index: 2; color: #fff; }
.lbp.flip .lbp-info h4 { margin-inline-start: 0; margin-inline-end: calc(-1 * clamp(44px, 7vw, 120px)); justify-self: end; text-align: right; }
.lbp-credits { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 22px; font-size: 15.5px; line-height: 1.45; width: 100%; max-width: 30em; }
.lbp-credits dt { color: var(--muted); }
.lbp-credits dd { margin: 0; color: #fff; }
.lbp-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.lbp-links a { color: #fff; font-weight: 600; text-decoration: none; padding-bottom: 3px; box-shadow: inset 0 -1.5px 0 #fff; }
.lbp-links a.muted { color: #BDBDBD; box-shadow: inset 0 -1px 0 #555; }
.lbp-links a:hover { color: #fff; box-shadow: inset 0 -3px 0 #fff; }
.lbp-media .lbp-play { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; background: #000; color: #fff; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.lbp-media .lbp-play svg { width: 11px; height: 11px; }
.lbp-media .lbp-play:hover { background: #fff; color: #000; }
@media (max-width: 860px) {
  .lbp, .lbp.flip { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lbp.flip .lbp-media { order: 0; }
  .lbp-media { min-height: 0; height: 74svh; }
  .lbp-info, .lbp.flip .lbp-info { padding: 0 var(--gut) 56px; }
  .lbp-info h4, .lbp.flip .lbp-info h4 { margin: calc(-1 * clamp(36px, 11vw, 64px)) 0 0; justify-self: start; text-align: left; }
}

/* ---------- The other sections, in black and white ---------- */
.panel { border-radius: 0; }
.panel h3 { font-size: clamp(34px, 3.6vw, 52px); line-height: 0.9; }
.panel-app { background: #fff; color: #000; }
.panel-app .tags li { background: transparent; color: #000; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.25); }
.bp-frame { border-radius: 0; border-color: #3A3A3A; }
.bp-label, .keys, .step .num, .wk-note, .live-label, .live-row small { font-family: var(--font-body); letter-spacing: 0; }
.more .row h3 { font-size: clamp(24px, 2.4vw, 34px); }
.step h3 { font-size: clamp(26px, 2.4vw, 34px); }
.limit h3 { font-size: clamp(26px, 2.4vw, 34px); }
.marquee span { font-family: var(--font-display); font-stretch: var(--cond); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5.4vw, 80px); letter-spacing: 0; }
.marquee span.o { -webkit-text-stroke: 1.2px #5A5A5A; }
.mq-dot { width: 10px; height: 10px; background: #fff; border-radius: 0; }
.lim-box { border-style: solid; border-color: #3A3A3A; }
.lim-handle { background: #fff; }
.brk-limit i { border-left-style: solid; }
.brk.hit .brk-limit i, .brk.broken .brk-limit i { filter: none; }
.brk-big { font-stretch: var(--cond); font-size: clamp(80px, 18vw, 300px); }
.brk-big i { background: #fff; }
.brk-handle { background: #fff; }
.faq details, .faq summary { border-radius: 0; }
.cs-film-frame { border-style: solid; border-color: rgb(255 255 255 / 0.18); }
.reel-play { background: #fff; color: #000; }
.vf-crop { border-color: #fff; }
.vf-crop em { color: #fff; background: #111; }
.nf-code span { color: #fff; }
.skip-link { border-radius: 0; }
.lbp-media > .lbp-play { flex: none; width: auto; height: auto; }
.lbp-info h4.long { font-size: clamp(56px, 6.6vw, 108px); }
.lim-title { font-family: var(--font-display); font-stretch: var(--cond); font-weight: 900; text-transform: uppercase; letter-spacing: 0; }

/* ---------- Brand guidelines page ---------- */
.bk-sec { border-top: 1px solid var(--line); }
.bk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.bk-text { display: grid; gap: 16px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: #D0D0D0; max-width: 36em; }
.bk-text p { margin: 0; }
.bk-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk-tile { margin: 0; display: grid; gap: 18px; align-content: space-between; min-height: 280px; padding: clamp(22px, 3vw, 40px); }
.bk-tile.dark { background: #000; box-shadow: inset 0 0 0 1px #262626; }
.bk-tile.light { background: #fff; color: #000; }
.bk-tile.sym { justify-items: center; }
.bk-tile figcaption { font-size: 14px; color: #8F8F8F; justify-self: start; }
.bk-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.bk-rules h3, .bk-voice h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 0 0 10px; }
.bk-rules p { margin: 0; color: #BDBDBD; line-height: 1.55; }
.bk-sizes { display: flex; align-items: end; gap: 32px; margin-top: clamp(28px, 4vw, 48px); }
.bk-sizes figure { margin: 0; display: grid; justify-items: center; gap: 10px; font-size: 13px; color: #8F8F8F; }
.bk-colors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bk-sw { display: grid; gap: 8px; align-content: start; font-size: 14.5px; line-height: 1.45; }
.bk-sw i { display: block; aspect-ratio: 4 / 5; }
.bk-sw b { font-size: 16px; }
.bk-sw span { color: #9A9A9A; }
.bk-type { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.bk-spec-t { margin: 0; font: 900 clamp(110px, 16vw, 240px)/0.8 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; }
.bk-spec-b { margin: 0; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; max-width: 22ch; }
.bk-cap { margin: 16px 0 0; color: #8F8F8F; font-size: 15px; }
.bk-voice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); }
.bk-voice ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bk-voice li { padding: 16px 18px; background: #0E0E0E; line-height: 1.45; }
.bk-voice .avoid li { color: #8F8F8F; text-decoration: line-through; text-decoration-color: #555; }
.bk-files { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-files a { padding: 14px 18px; color: #fff; text-decoration: none; font-weight: 600; box-shadow: inset 0 0 0 1.5px #fff; }
.bk-files a:hover { background: #fff; color: #000; }
@media (max-width: 860px) {
  .bk-split, .bk-type, .bk-voice, .bk-rules { grid-template-columns: minmax(0, 1fr); }
  .bk-logos { grid-template-columns: minmax(0, 1fr); }
  .bk-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Letterbox fixes after the full-size review ---------- */
.hero::before { content: none; }
.brk-shade { background: linear-gradient(#000, transparent 16%, transparent 80%, #000), radial-gradient(ellipse 80% 66% at 50% 50%, rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.7) 60%, rgb(0 0 0 / 0.45)); }
.vf { background: radial-gradient(ellipse 70% 80% at 50% 45%, #262626, #000 78%); }
.wa-btn .wa-ico { color: currentColor; }
.logo-svg { width: 132px; }
.lbp-info { align-content: center; }
.lbp.web-row { min-height: 0; }
/* Websites on a computer: one desktop page and one phone page, nothing on top of either. The phone page sits
   in the middle, next to the text. 3.4624 = (844/390) / (10/16): the column ratio that makes a 16:10
   desktop page exactly as tall as the 390x844 phone page beside it. */
.lbp-media.web { display: grid; grid-template-columns: minmax(0, 3.4624fr) minmax(0, 1fr); gap: 6px; align-items: stretch; align-self: stretch; min-height: 0; background: transparent; }
.lbp.flip .lbp-media.web { grid-template-columns: minmax(0, 1fr) minmax(0, 3.4624fr); }
.lbp-media.web > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1); }
.lbp-media.web > .w1 { grid-area: 1 / 1; aspect-ratio: 16 / 10; }
.lbp-media.web > .p1 { grid-area: 1 / 2; aspect-ratio: 390 / 844; }
.lbp.flip .lbp-media.web > .w1 { grid-area: 1 / 2; }
.lbp.flip .lbp-media.web > .p1 { grid-area: 1 / 1; }
.lbp.web-row .lbp-info h4, .lbp.web-row.flip .lbp-info h4 { margin-inline: 0; font-size: clamp(56px, 6.6vw, 108px); }
/* On a computer the site name is sized to its own column, so a long one (OUTREPD.COM) never runs into the pictures. */
/* The pictures set the height of each row, so one site's pictures sit right on the next one's, with no gap
   between rows: the text keeps only a little padding and stays centred beside them. If the text were ever
   taller, the pictures fill the row instead of leaving a gap. */
/* Narrow laptops and tablets on their side (861-1099px): the text would be taller than a desktop + phone pair,
   so these widths show the desktop page alone, bigger, like the phone view does. */
@media (min-width: 861px) and (max-width: 1099px) {
  .lbp-media.web, .lbp.flip .lbp-media.web { grid-template-columns: minmax(0, 1fr); }
  .lbp-media.web > .p1 { display: none; }
  .lbp.flip .lbp-media.web > .w1 { grid-area: 1 / 1; }
}
@media (min-width: 861px) {
  .lbp.web-row .lbp-info { container-type: inline-size; padding-block: 12px; }
  .lbp.web-row .lbp-info h4, .lbp.web-row.flip .lbp-info h4 { font-size: min(108px, 17.5cqi); }
}
@media (max-width: 860px) {
  .lbp-media:not(.web) { height: auto; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lbp-media:not(.web)::-webkit-scrollbar { display: none; }
  .lbp-media:not(.web) > img, .lbp-media:not(.web) > video { flex: none; width: 74vw; height: auto; aspect-ratio: 9 / 16; scroll-snap-align: start; }
  .lbp-media.web { gap: 4px; }
  .lbp-info, .lbp.flip .lbp-info { padding-top: 0; }
  .lbp-info h4, .lbp.flip .lbp-info h4 { margin-top: 18px; }
}
@media (max-width: 860px) { .lbp-media.web { height: auto; } }
/* Websites on phones and tablets: only the desktop page, the full width. */
@media (max-width: 860px) {
  .lbp-media.web { display: block; }
  .lbp-media.web > .w1 { width: 100%; height: auto; }
  .lbp-media.web > .p1 { display: none; }
}
main.cs { --case-bg: #000000; --case-fg: #FFFFFF; --case-muted: #8F8F8F; --case-acc: #FFFFFF; }
.cs-title { letter-spacing: 0; }
/* The hero strip is one wide clip: five moments of the Carducci film side by side. */
.lbx-strip > video { flex: 1 1 auto; object-fit: cover; object-position: center; }
.lbx-strip > video { flex: 1 1 0; }
/* Phones: the hero films cross-fade from one to the next */
.lbx-reel { position: relative; }
.lbx-reel video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.lbx-reel video.on { opacity: 1; }

/* ---------- Hero: the work sits in a film strip with fine light lines, running right to left ---------- */
.lbx-strip { display: block; position: relative; background: #050505; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 -1px 0 rgb(255 255 255 / 0.12); }
.lbx-strip > .fs-track { display: flex; flex: none; width: max-content; height: 100%; min-width: 0; object-fit: initial; filter: none; will-change: transform; }
.fs-frame { position: relative; flex: none; height: 100%; aspect-ratio: 1.08; padding: 2.1vw 0.45vw; }
.fs-frame::before, .fs-frame::after { content: ""; position: absolute; left: 0; right: 0; height: 1vw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Crect x='12' y='4' width='16' height='12' rx='3' fill='none' stroke='white' stroke-opacity='0.42' stroke-width='1.4'/%3E%3C/svg%3E") repeat-x; background-size: 20% 100%; }
.fs-frame::before { top: 0.55vw; }
.fs-frame::after { bottom: 0.55vw; }
.fs-frame > img, .fs-frame > video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0.35vw; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.22); filter: brightness(0.72) contrast(1.05); }
@media (max-width: 760px) {
  .fs-frame { padding: 2.6vw 0.55vw; }
  .fs-frame::before, .fs-frame::after { height: 1.3vw; }
  .fs-frame::before { top: 0.65vw; }
  .fs-frame::after { bottom: 0.65vw; }
}

/* ---------- Films: wide (16:9) rows, the films stacked one under the other, nothing on top of them ---------- */
.lbp.wide-row { min-height: 0; }
.lbp-media.wide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; height: auto; min-height: 0; align-self: center; overflow: visible; background: transparent; scroll-snap-type: none; }
.lbp-media.wide > video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0A0A0A; }

/* ---------- Films: the wall, every film playing in its own frame ---------- */
.fw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-inline: calc(50% - 50vw); padding: clamp(48px, 6vw, 88px) max(var(--gut), calc((100vw - var(--container)) / 2)) clamp(18px, 2vw, 28px); border-top: 1px solid #1A1A1A; }
.fw-head h4 { margin: 0; font: 900 clamp(48px, 6vw, 96px)/0.82 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; color: #fff; }
.fw-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.fw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-inline: calc(50% - 50vw); }
.fw-tile { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #0A0A0A; }
.fw-link { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.fw-link video { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82); transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.3s; }
.fw-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 52%, rgb(0 0 0 / 0.88)); pointer-events: none; }
.fw-cap { position: absolute; z-index: 1; left: clamp(14px, 1.6vw, 24px); right: clamp(14px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 22px); display: grid; gap: 10px; }
.fw-cap b { font: 900 clamp(34px, 3.6vw, 60px)/0.84 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; overflow-wrap: anywhere; }
.fw-cap span { font-size: 14px; line-height: 1.35; color: #CFCFCF; }
.fw-tile:hover .fw-link video { transform: scale(1.04); filter: brightness(1); }
.fw-link:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.fw-play { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; background: #000; color: #fff; }
.fw-play svg { width: 12px; height: 12px; }
.fw-play:hover, .fw-play:focus-visible { background: #fff; color: #000; }
@media (max-width: 860px) {
  .fw { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .fw-cap b { font-size: clamp(28px, 8.4vw, 44px); }
  .fw-cap span { font-size: 12.5px; }
  .fw-play { width: 38px; height: 38px; top: 8px; right: 8px; }
}

/* ---------- Case pages: wide films and projects with several films ---------- */
.cs-film.wide .cs-film-frame { width: min(920px, 100%); }
.cs-film.wide video { aspect-ratio: 16 / 9; }
.cs-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 340px)); gap: clamp(18px, 2.4vw, 32px); align-items: start; }
.cs-films.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.cs-films figure { margin: 0; display: grid; gap: 14px; min-width: 0; }
.cs-films video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12); }
.cs-films.wide video { aspect-ratio: 16 / 9; }
.cs-films figcaption { display: grid; gap: 6px; }
.cs-films figcaption b { font: 900 clamp(26px, 2.4vw, 34px)/0.9 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; }
.cs-films figcaption span { color: var(--muted); font-size: 15px; line-height: 1.45; }

/* ---------- Mobile apps: coming soon, the name shown and the idea kept under wraps ---------- */
.soon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: calc(50% - 50vw); }
.soon-card { position: relative; display: grid; justify-items: center; align-content: center; gap: 22px; min-height: min(62svh, 540px); padding: clamp(72px, 8vw, 112px) var(--gut); text-align: center; overflow: hidden; background: #000; }
.soon-card + .soon-card { border-inline-start: 1px solid #1A1A1A; }
/* letterbox bands, top and bottom, like a trailer that has not started */
.soon-card::before, .soon-card::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(30px, 4vw, 54px); background: #0A0A0A; }
.soon-card::before { top: 0; box-shadow: inset 0 -1px 0 #1F1F1F; }
.soon-card::after { bottom: 0; box-shadow: inset 0 1px 0 #1F1F1F; }
.soon-name { margin: 0; font: 900 clamp(88px, 11vw, 180px)/0.8 var(--font-display); font-stretch: var(--cond); text-transform: uppercase; letter-spacing: -0.005em; color: #fff; }
.soon-redact { display: grid; justify-items: center; gap: 9px; margin: 0; }
.soon-redact i { display: block; height: 13px; background: #262626; }
.soon-redact i:first-child { width: min(15em, 64vw); }
.soon-redact i + i { width: min(10em, 44vw); }
.soon-redact small { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.soon-where { margin: 0; font-size: 15.5px; font-weight: 600; color: #fff; }
@media (max-width: 860px) {
  .soon { grid-template-columns: minmax(0, 1fr); }
  .soon-card { min-height: 0; }
  .soon-card + .soon-card { border-inline-start: 0; border-top: 1px solid #1A1A1A; }
}
.soon-logo { display: block; width: clamp(76px, 7.2vw, 104px); height: auto; aspect-ratio: 1; margin-bottom: 4px; box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.9), 0 0 0 1px rgb(255 255 255 / 0.08); border-radius: 23%; }

/* ---------- Films: a row with one vertical film shows it whole, centred in black ---------- */
.lbp-media.solo { display: grid; place-items: center; background: #050505; }
.lbp-media.solo > video { flex: none; width: auto; height: min(86svh, 820px); max-width: 100%; aspect-ratio: 9 / 16; }
@media (max-width: 860px) {
  .lbp-media.solo { justify-content: center; overflow: visible; }
  .lbp-media.solo > video { width: 74vw; height: auto; }
}

/* ---------- Films: three vertical films side by side, each one whole ---------- */
.lbp.trio-row { min-height: 0; }
.lbp-media.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-self: center; min-height: 0; height: auto; background: transparent; }
.lbp-media.trio > video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #0A0A0A; }
@media (max-width: 860px) {
  .lbp-media.trio { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .lbp-media.trio > video { flex: none; width: 74vw; }
}
.lbp.trio-row .lbp-info h4 { margin-inline: 0; }
/* On a computer the three films set the row's height, so they sit right on the films above and below with no
   gap, and stay whole (no cropping). The text keeps only a little padding, and the title uses the same size
   as the other film titles, so it fits beside them. */
@media (min-width: 861px) {
  .lbp.trio-row .lbp-info { padding-block: 12px; }
  .lbp.trio-row .lbp-info h4 { font-size: clamp(56px, 6.6vw, 108px); }
}

/* ---------- Work: the category bar is a set of tabs, one category shows at a time ---------- */
.wk-group[hidden] { display: none !important; }
.wk-group.wk-in { animation: wk-in 0.45s ease both; }
@keyframes wk-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wk-group.wk-in { animation: none; } }
.wk-nav a { cursor: pointer; }
.wk-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Hero: the showreel ----------
   18 seconds of our films, full width, nothing on top of it. On a computer it is a wide 21:9 cut (four vertical
   films side by side, or one wide film); on a phone a 4:5 cut. It opens inside the giant NLMTS: a black layer with
   the letters cut out of it (an SVG mask, not a blend mode, which breaks over video in Chrome), so the film shows
   only through the letters. Then the layer grows from the stem of the T until the whole film is on screen, and
   the layer is removed. */
.sr { position: relative; overflow: hidden; isolation: isolate; width: 100%; aspect-ratio: 1680 / 720; max-height: calc(100svh - 140px); min-height: 280px; background: #000; }
.sr-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
/* The flight is drawn by main.js: it moves the logo shape inside the SVG mask on every frame, so the edges are
   redrawn sharp at every size. (Scaling the whole layer with a CSS transform enlarged a flat image of it and the
   letters went blurry and blocky as they grew.) */
.sr-mask { display: none; position: absolute; inset: -1px; pointer-events: none; } /* 1px past each edge: the box height is often fractional (487.5px), and the film peeked through the last half pixel */
.sr.intro .sr-mask { display: block; }
.sr-svg { display: block; }
.sr + .lbx-foot { padding-top: clamp(26px, 3.4vw, 44px); }
@media (max-width: 760px) {
  .sr { aspect-ratio: 4 / 5; max-height: none; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .sr .sr-mask { display: none; } }

/* ---------- Palette: Silver · Graphite (chosen 2026-11-26) ----------
   The black-and-white letterbox look, made richer: graphite instead of pure black, a brushed-silver finish
   (--metal) on titles, the logo and the main buttons, and platinum instead of pure white for the one light
   section. The logo shapes use the same metal through the #nlMetal gradient that every page carries. */
:root { --paper: #0C0D0F; --surface: #141518; --ink: #E7E8EB; --muted: #8B8E95; --line: #25272C; --guide: #25272C; --guide-strong: #8B8E95;
  --sky: #141518; --device: #0C0D0F; --code-bg: #141518; --blue: #E7E8EB; --blue-hover: #E3E4E7; --blue-text: #E7E8EB; --on-blue: #0C0D0F;
  --tile: #E7E8EB; --on: #0C0D0F; --c-blue: #0C0D0F; --metal: linear-gradient(105deg, #8E9197 0%, #E9EBEE 22%, #FFFFFF 34%, #A6A9AF 52%, #EEF0F2 70%, #9A9DA3 100%); --on-metal: #0C0D0F; --plat: #E3E4E7; --on-plat: #0C0D0F; }
html, body { background: var(--paper); color: var(--ink); }
/* brushed-metal titles */
.lbx-foot h1, .h2, .lbp-info h4, .fw-head h4, .soon-name, .brk-big, .cs-title, .contact h2, .foot-mark svg {
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-mark svg path, .logo-svg path { fill: url(#nlMetal); }
.contact h2 { background: none; color: var(--on-plat); }
/* metal buttons and marks */
.btn-primary, .wk-nav a.on, .wa-float, .reel-play, .cs-cta .btn-light, .bar nav b { background: var(--metal); color: var(--on-metal); }
.btn-primary:hover { filter: brightness(1.06); }
.wk-nav a.on b { color: var(--on-metal); }
.lbx-play { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--muted); }
.lbx-play:hover, .lbp-media .lbp-play:hover, .fw-play:hover, .bk-files a:hover { background: var(--metal); color: var(--on-metal); }
.live-label i, .mq-dot, .lim-handle, .brk-big i, .brk-handle { background: var(--metal); }
/* the one light section is platinum, not white */
.contact, .cs-cta, .panel-app, .bk-tile.light { background: var(--plat); color: var(--on-plat); }
.contact .brief, .btn-light { background: #0C0D0F; color: var(--ink); }
/* everything that was pure black or pure white */
.sr, .lbp-media, .lbp-media.wide > video, .lbp-media.trio > video, .fw-tile, .lbp-media.solo, .soon-card::before, .soon-card::after, .bk-tile.dark { background: #0C0D0F; }
.wk-nav { background: color-mix(in srgb, #0C0D0F 88%, transparent); }
.lbp-credits dd, .lbp-links a, .lbp-links a:hover, .fw-link, .soon-where, .stats div:first-child dt, .nf-code span { color: var(--ink); }
.lbp-links a { box-shadow: inset 0 -1.5px 0 var(--muted); }
.lbp-media .lbp-play, .fw-play { background: #0C0D0F; color: var(--ink); }
.lbp { border-top-color: var(--line); }
.brk-shade { background: linear-gradient(#0C0D0F, transparent 16%, transparent 80%, #0C0D0F), radial-gradient(ellipse 80% 66% at 50% 50%, color-mix(in srgb, #0C0D0F 90%, transparent), color-mix(in srgb, #0C0D0F 45%, transparent)); }
.vf { background: radial-gradient(ellipse 70% 80% at 50% 45%, #141518, #0C0D0F 78%); }
main.cs, main.cs[style] { --case-bg: #0C0D0F !important; --case-fg: #E7E8EB !important; --case-muted: #8B8E95 !important; --case-acc: #E7E8EB !important; }
.choice input:checked + span { background: var(--metal); border-color: transparent; color: var(--on-metal); }
/* Section titles are split into word spans (each animates in on its own); the brushed silver has to sit on each
   word, because a clipped background on the title does not reach into inline-block children. */
.h2 { background: none; color: var(--ink); }
.h2 .w { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
:is(.contact, .cs-cta, .panel-app) .h2 .w { background: none; color: var(--on-plat); }
/* Moving silver on the buttons and the logo: the metal is three times wider than the button and drifts back and
   forth, so the highlights glide across like light on a turning piece of metal. Titles stay still. */
:root { --metal-move: linear-gradient(105deg, #8E9197 0%, #E9EBEE 10%, #FFFFFF 16%, #A6A9AF 27%, #EEF0F2 38%, #9A9DA3 50%, #F4F5F7 62%, #A9ACB2 73%, #FFFFFF 84%, #E4E6E9 90%, #9A9DA3 100%); }
:is(.btn-primary, .wk-nav a.on, .wa-float, .reel-play, .cs-cta .btn-light, .choice input:checked + span,
    .lbx-play:hover, .lbp-media .lbp-play:hover, .fw-play:hover, .bk-files a:hover) {
  background: var(--metal-move); background-size: 300% 100%; animation: nl-metal 6s ease-in-out infinite alternate; }
@keyframes nl-metal { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  :is(.btn-primary, .wk-nav a.on, .wa-float, .reel-play, .cs-cta .btn-light, .choice input:checked + span) { animation: none; background-position: 30% 50%; }
}
/* The silver in the titles moves too, on the same 6-second drift as the buttons. Only background-image is set here:
   the shorthand would reset background-clip and fill the whole box with silver. */
.lbx-foot h1, .lbp-info h4, .fw-head h4, .soon-name, .brk-big, .cs-title {
  background-image: var(--metal-move); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text;
  animation: nl-metal 6s ease-in-out infinite alternate; }
/* Section titles are split into words that already run their own entrance animation, so the drift is a
   variable animated on the title and read by every word. */
@property --metal-x { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@keyframes nl-metal-x { from { --metal-x: 0%; } to { --metal-x: 100%; } }
.h2 { animation: nl-metal-x 6s ease-in-out infinite alternate; }
.h2 .w { background-image: var(--metal-move); background-size: 300% 100%; background-position: var(--metal-x) 50%; -webkit-background-clip: text; background-clip: text; }
:is(.contact, .cs-cta, .panel-app) .h2 .w { background: none; color: var(--on-plat); }
@media (prefers-reduced-motion: reduce) {
  .lbx-foot h1, .lbp-info h4, .fw-head h4, .soon-name, .brk-big, .cs-title, .h2 { animation: none; }
}

/* ---------- Header logo, moving: NO LIMITS → NLMTS → NL → NLMTS → NO LIMITS ----------
   Each letter is its own <g> with its x in the three states (--x0, --x1, --x2). Letters that leave (the vowels in
   NLMTS, then M T S in NL) fold to a sliver and fade. The silver is one gradient fixed to the logo box, so the
   letters slide under the same light. main.js steps data-s; with motion turned down it stays on NLMTS. */
.logo-svg.logo-anim { width: auto; height: 34px; overflow: visible; }
.logo-anim path { fill: url(#nlMetalA); }
.logo-anim .lg { transform-box: fill-box; transform-origin: 50% 50%; transform: translateX(var(--x1));
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease; }
.logo-anim[data-s="0"] .lg { transform: translateX(var(--x0)); }
.logo-anim[data-s="1"] .lg.v1 { transform: translateX(var(--x1)) scaleX(0.15); opacity: 0; }
.logo-anim[data-s="2"] .lg { transform: translateX(var(--x2)); }
.logo-anim[data-s="2"] .lg.v2 { transform: translateX(var(--x2)) scaleX(0.15); opacity: 0; }
@media (max-width: 380px) { .logo-svg.logo-anim { height: 28px; } }
@media (prefers-reduced-motion: reduce) { .logo-anim .lg { transition: none; } }

/* ---------- Hero: the 3D logo (js/hero3d.js) ----------
   A canvas over the hero; it fades in once the film is on its face, and the 2D cut-out fades out under it.
   Up/down swipes on a phone still scroll the page (pan-y); a sideways drag turns the logo. */
.sr-3d { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 0.7s ease; touch-action: pan-y; cursor: grab; }
.sr-3d.grabbing { cursor: grabbing; }
.sr.is3d .sr-3d { opacity: 1; }
/* The hand-over to 3D: only the film fades (the cut-out layer stays, so no ghost of the whole film shows through),
   then the cut-out goes, once it is the same colour as the page everywhere. */
.sr .sr-video { transition: opacity 0.7s ease; }
.sr .sr-mask { transition: opacity 0s linear 0.7s; }
.sr.is3d .sr-mask, .sr.is3d .sr-video { opacity: 0; }

/* ---------- Smoothness ----------
   Lenis smooth scrolling (its own rules), a soft cross-fade between pages, and the moving silver only runs while
   it is on screen (main.js marks those elements .shine-on), so the page is not repainting things nobody sees. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.38s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
[data-shine]:not(.shine-on) { animation-play-state: paused !important; }

/* Titles: instead of drifting all the time (each frame repaints every letter, which cost about half the frame
   rate on a laptop), a light sweeps across, rests, sweeps back, rests. While it rests nothing repaints. */
@keyframes nl-sweep { 0% { background-position: 0% 50%; } 15% { background-position: 100% 50%; } 50% { background-position: 100% 50%; } 65% { background-position: 0% 50%; } 100% { background-position: 0% 50%; } }
@keyframes nl-sweep-x { 0% { --metal-x: 0%; } 15% { --metal-x: 100%; } 50% { --metal-x: 100%; } 65% { --metal-x: 0%; } 100% { --metal-x: 0%; } }
.lbx-foot h1, .lbp-info h4, .fw-head h4, .soon-name, .brk-big, .cs-title { animation: nl-sweep 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
.h2 { animation: nl-sweep-x 9s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@media (prefers-reduced-motion: reduce) { .lbx-foot h1, .lbp-info h4, .fw-head h4, .soon-name, .brk-big, .cs-title, .h2 { animation: none; } }
/* No scroll anchoring: with smooth scrolling, and with the work tabs changing the page height, the browser was
   holding the old section in place and pulling the page away from the new one. Every image and video here has
   its size set, so nothing shifts without it. */
html { overflow-anchor: none; }
/* The hero cut-out: the word on computers, the NL on phones (both size themselves in the SVG). */
.sr-fit-mark { display: none; }
@media (max-width: 760px) { .sr-fit-word { display: none; } .sr-fit-mark { display: inline; } }
/* Balanced and "pretty" line breaking make the browser lay text out several times; on the first layout of the
   page that added hundreds of ms. Keep it for the few big titles, use plain wrapping everywhere else. */
h3, h4, p, .brk-intro-line { text-wrap: wrap; }
h1, .h2 { text-wrap: balance; }

/* ---------- The opening (index.html: the film fills the hero, then pulls back into the logo) ----------
   The text under the logo rises in as the opening ends (.op-text). The 3D takes over faster: it arrives flat,
   exactly over the 2D letters, and only then grows its depth. */
.hero.op .lbx-foot h1, .hero.op .lbx-foot p, .hero.op .lbx-actions, .hero.op .live-wrap { opacity: 0; transform: translateY(18px); }
.hero.op.op-text .lbx-foot h1, .hero.op.op-text .lbx-foot p, .hero.op.op-text .lbx-actions, .hero.op.op-text .live-wrap {
  opacity: 1; transform: none; transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero.op.op-text .lbx-foot p { transition-delay: 0.08s; }
.hero.op.op-text .lbx-actions { transition-delay: 0.16s; }
.hero.op.op-text .live-wrap { transition-delay: 0.26s; }
.sr[data-op] .sr-3d, .sr[data-op] .sr-video { transition-duration: 0.35s; }
.sr[data-op] .sr-mask { transition-delay: 0.35s; }

/* ---------- Apps: each app shows its logo only ----------
   The app icon, big and centred, with a soft glow of its own colours filling the frame (the glow is the same file,
   so nothing extra downloads). */
.lbp-media.app { display: block; isolation: isolate; background: #0A0A0A; }
.lbp-media.app > .app-glow { position: absolute; inset: -12%; z-index: -1; width: 124%; height: 124%; object-fit: cover; filter: blur(64px) brightness(0.55) saturate(1.3); }
.lbp-media.app > .app-logo { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(44%, 340px); height: auto; aspect-ratio: 1; border-radius: 22.4%; box-shadow: 0 30px 90px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.1); }
@media (max-width: 860px) {
  .lbp-media.app { height: 92vw; max-height: 560px; overflow: hidden; }
  .lbp-media.app > .app-logo { width: min(50%, 300px); }
}

/* ---------- Why us: three limits (Here after launch left with the Care & growth service) ----------
   Side by side on computers; one per row below 1000px so the titles are not squeezed. */
.limits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.limit:nth-child(odd) { border-inline-end: 0; }
.limit:nth-child(even) { padding-inline-start: 0; }
.limit:not(:last-child) { border-inline-end: 1px solid var(--line); }
.limit:not(:first-child) { padding-inline-start: clamp(20px, 3vw, 44px); }
@media (max-width: 999px) {
  .limits { grid-template-columns: minmax(0, 1fr); }
  .limit:not(:last-child) { border-inline-end: 0; }
  .limit:not(:first-child) { padding-inline-start: 0; }
}
