/* ==========================================================================
   RATQ — رَتْق
   Navy and silver, taken from the monogram: deep navy ribbons with slate
   highlights on a pale silver ground. The page is that pale silver ground
   with navy ink, brushed-silver doors at the start, two white "paper"
   chapters (Services, Process) for rhythm, and the monogram on navy only
   where it earns it (the dictionary card, the footer, the video lightbox).
   Gold is the mending thread: stitches, seams and sparks, never surfaces.
   ========================================================================== */

:root {
  /* the brand file */
  --navy: #051928;
  --navy-2: #0E2435;
  --navy-3: #1F3B4C;
  --slate: #536B7A;
  --slate-2: #738695;
  --slate-3: #96A6B4;
  --silver: #C9D0D7;
  --silver-2: #E3E7EB;
  --silver-3: #F2F4F6;
  --ground: #EEF1F4;
  --paper: #FFFFFF;

  /* the golden thread: used sparingly, only where something is mended */
  --gold: #A5803D;
  --gold-hi: #D8BC7A;
  --gold-metal: linear-gradient(135deg, #E2C98D 0%, #B8914A 52%, #8E6B2E 100%);

  --night: #04131F;
  --surface: var(--silver-2);
  --metal-silver: linear-gradient(100deg, #8D9CAA 0%, #F2F4F6 28%, #B7C1CB 48%, #FFFFFF 64%, #96A6B4 100%);
  --metal-navy: linear-gradient(100deg, #051928 0%, #1F3B4C 24%, #536B7A 44%, #0E2435 62%, #536B7A 84%, #051928 100%);

  /* light ground (default) */
  --bg: var(--ground);
  --fg: var(--navy);
  --fg-2: #23404F;
  --fg-3: var(--slate);
  --line: rgba(5, 25, 40, .12);
  --line-strong: rgba(5, 25, 40, .26);
  --accent: var(--navy);
  --metal: var(--metal-navy);
  --stitch: var(--gold);
  --ghost: rgba(255, 255, 255, .62);
  --ghost-hover: #FFFFFF;
  --hover-line: var(--slate);
  --field: #F4F6F8;

  --f-sans: "Geist", "Alexandria", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-serif: "Instrument Serif", "Amiri", Georgia, serif;
  --f-ar: "Alexandria", "Geist", "Segoe UI", sans-serif;
  --f-ar-brand: "Amiri", "Traditional Arabic", serif;

  --wrap: 1320px;
  --gut: clamp(16px, 4.4vw, 56px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .75, .2, 1);
  /* Alexandria's Arabic reads larger than Geist at the same size, so Arabic headings
     and running text are scaled down by these two factors (set under html[lang="ar"]) */
  --disp: 1;
  --text: 1;
  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M0 6 L3 2 L6 6 L9 2 L12 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0C12.9 7.1 16.9 11.1 24 12C16.9 12.9 12.9 16.9 12 24C11.1 16.9 7.1 12.9 0 12C7.1 11.1 11.1 7.1 12 0Z'/%3E%3C/svg%3E");
  color-scheme: light;
}
html { scrollbar-color: var(--slate-3) var(--ground); }
html[lang="ar"] { --disp: .86; --text: .94; }

/* white paper chapters */
.chapter-light { --bg: var(--paper); }

/* navy chapters: the monogram on navy */
.chapter-dark, .footer, .lightbox {
  --bg: var(--night);
  --fg: #E9EDF1;
  --fg-2: #AEBAC5;
  --fg-3: #8395A5;
  --line: rgba(201, 208, 215, .13);
  --line-strong: rgba(201, 208, 215, .28);
  --accent: var(--silver);
  --metal: var(--metal-silver);
  --stitch: var(--gold-hi);
  --ghost: rgba(233, 237, 241, .06);
  --ghost-hover: rgba(233, 237, 241, .14);
  --hover-line: var(--silver);
  color: var(--fg);
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.reduce, html.no-motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  font-weight: 380;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--f-ar); font-weight: 350; line-height: 1.85; font-size: 1rem; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--navy); color: var(--silver-3); }
:is(.chapter-dark, .footer, .lightbox) ::selection { background: var(--silver); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
main { overflow-x: clip; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--navy); color: var(--silver-3); text-decoration: none;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }

/* Arabic joining letters can't take tracking */
:lang(ar) { letter-spacing: 0 !important; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }

/* Polished-silver text, for the serif accents and the big wordmarks */
.metal, .h2 em, .hero__title em, .manifesto__lead em, .founder__hi em, .contact__title em {
  background: var(--metal); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The silver only paints inside a word's box, and Arabic marks and tails (ـَ ـّ ر ق ي)
   reach past it, so the box is stretched to cover them. On inline text, padding moves
   nothing: it only widens the painted area. (Torn words are inline-blocks with their
   own fix in .tear__half, so they are left out.) */
.h2 em:not(.tear) { padding-block: .4em; }
/* The serif accent echoes the ribbon letters of the monogram */
.h2 em, .hero__title em, .manifesto__lead em, .founder__hi em, .contact__title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  padding-inline-end: .06em;
}
html[lang="ar"] .h2 em, html[lang="ar"] .hero__title em, html[lang="ar"] .manifesto__lead em,
html[lang="ar"] .founder__hi em, html[lang="ar"] .contact__title em { font-family: var(--f-ar); font-style: normal; font-weight: 700; }

/* ============ Type ============ */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8em;
  font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
}
html[lang="ar"] .eyebrow { font-family: var(--f-ar); font-size: .92rem; font-weight: 500; }
.spark {
  display: inline-block; width: 13px; height: 13px; flex: none; background: var(--gold-metal);
  -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat;
}
.h2 {
  font-size: calc(clamp(1.8rem, 3vw, 2.8rem) * var(--disp)); line-height: 1.06; letter-spacing: -.035em; font-weight: 600;
  max-width: 20ch; text-wrap: balance;
}
html[lang="ar"] .h2 { font-weight: 700; line-height: 1.35; }
.lede { font-size: calc(clamp(1rem, 1.2vw, 1.12rem) * var(--text)); color: var(--fg-2); max-width: 40em; }
.body-l { font-size: calc(clamp(1.04rem, 1.3vw, 1.18rem) * var(--text)); color: var(--fg-2); max-width: 34em; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 84px); }
.sec-head .h2 { max-width: 20ch; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: 1.05em 1.6em; border: 0; border-radius: 999px;
  font: 560 .98rem/1 var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  position: relative; isolation: isolate;
  transition: background-color .3s, color .3s, box-shadow .4s var(--ease);
}
html[lang="ar"] .btn { font-family: var(--f-ar); font-weight: 600; }
.btn .i-arrow { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .35s var(--ease); }
.btn:hover .i-arrow { translate: .25em 0; }
[dir="rtl"] .btn:hover .i-arrow { translate: -.25em 0; }
/* Primary: a polished navy patch, sewn on with a dashed silver seam */
.btn--light {
  color: var(--silver-3);
  background: linear-gradient(160deg, #23465A 0%, #0E2435 48%, #051928 100%);
  outline: 1.5px dashed rgba(201, 208, 215, .38); outline-offset: -5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 -2px 4px rgba(0, 0, 0, .25), 0 16px 34px -16px rgba(5, 25, 40, .55);
}
.btn--light:hover { background: linear-gradient(160deg, #2E566C 0%, #15303F 48%, #0A1F2F 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -2px 4px rgba(0, 0, 0, .22), 0 20px 44px -14px rgba(5, 25, 40, .6); }
.btn--light:focus-visible { outline: 1.5px dashed var(--silver); outline-offset: -5px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--navy); }
.btn--glass {
  background: var(--ghost); color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { background: var(--ghost-hover); box-shadow: inset 0 0 0 1px var(--hover-line); }
.btn--sm { padding: .8em 1.2em; font-size: .9rem; }
.btn--wide { padding-inline: 2em; }
.round-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--ghost); color: var(--fg); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .25s, box-shadow .25s;
}
.round-btn:hover { background: var(--ghost-hover); box-shadow: inset 0 0 0 1px var(--hover-line); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-prev { transform: scaleX(-1); }
[dir="rtl"] .i-prev { transform: none; }

/* ============ Grain + cursor ============ */
.grain {
  position: fixed; inset: -60%; z-index: 95; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); }
}

.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .6); mix-blend-mode: difference;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .35s, border-color .35s;
}
.cursor__label { font: 600 .7rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-3); opacity: 0; transition: opacity .25s; white-space: nowrap; }
html[lang="ar"] .cursor__label { font-family: var(--f-ar); font-size: .85rem; letter-spacing: 0; }
.cursor.is-link .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; border-color: #fff; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: linear-gradient(160deg, #23465A, #051928); border-color: transparent; mix-blend-mode: normal; box-shadow: 0 14px 30px -12px rgba(5, 25, 40, .5); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 60;
  padding: 14px var(--gut); pointer-events: none;
  transition: transform .5s var(--ease), opacity .5s;
}
.nav.is-hidden { transform: translateY(-120%); }
.nav__bar { display: flex; align-items: center; gap: 12px; height: calc(var(--nav-h) - 28px); }
.nav__bar > * { pointer-events: auto; }
.brand, .nav__links, .nav__lang, .nav__burger {
  background: rgba(250, 251, 252, .8); box-shadow: inset 0 0 0 1px rgba(5, 25, 40, .09), 0 14px 34px -18px rgba(5, 25, 40, .32);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; height: 100%; padding: 0 16px 0 8px; border-radius: 999px;
  text-decoration: none; color: var(--fg); flex: none;
}
[dir="rtl"] .brand { padding: 0 8px 0 16px; }
.brand__mark { width: 40px; height: 40px; margin-block: -4px; fill: url(#mk-navy); transition: transform .7s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-14deg) scale(1.08); }
.brand__word { font-weight: 700; font-size: 1rem; letter-spacing: .16em; }
.brand__ar { font-family: var(--f-ar-brand); font-weight: 700; font-size: 1.25rem; line-height: 1; color: var(--slate); }

.nav__links { display: flex; gap: 2px; height: 100%; align-items: center; margin-inline: auto; padding: 4px; border-radius: 999px; }
.nav__links a {
  position: relative; padding: 8px 15px; border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 450; color: var(--fg-2); transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.is-active { color: var(--silver-3); background: linear-gradient(160deg, #23465A, #051928); }
.nav__tools { display: flex; align-items: center; gap: 8px; height: 100%; margin-inline-start: auto; }
.nav__links + .nav__tools { margin-inline-start: 0; }
.nav__lang {
  height: 100%; min-width: 48px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--fg); font-size: .92rem; font-weight: 600;
}
.nav__lang:hover { box-shadow: inset 0 0 0 1px var(--slate-3); }
.nav__cta { height: 100%; }
.nav__burger { display: none; width: 48px; height: 100%; border: 0; border-radius: 50%; cursor: pointer; place-items: center; }
.nav__burger i { display: block; width: 16px; height: 1.8px; border-radius: 2px; background: var(--fg); grid-area: 1 / 1; transition: transform .3s var(--ease); }
.nav__burger i:first-child { transform: translateY(-3.5px); }
.nav__burger i:last-child { transform: translateY(3.5px); }
.nav__burger[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }
.nav__sheet {
  pointer-events: auto; margin-top: 10px; padding: 10px 22px 22px; border-radius: 26px;
  display: grid; gap: 2px;
  background: rgba(250, 251, 252, .94); box-shadow: inset 0 0 0 1px rgba(5, 25, 40, .09), 0 30px 60px -30px rgba(5, 25, 40, .35);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.nav__sheet a:not(.btn) { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); font-size: calc(1.3rem * var(--disp)); font-weight: 600; letter-spacing: -.02em; }
.nav__sheet .btn { margin-top: 14px; }
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
}
@media (max-width: 420px) { .brand__ar { display: none; } }

/* The intro owns the screen until the logo is assembled */
.is-intro .nav { opacity: 0; transform: translateY(-30px); }
.intro-skip {
  position: fixed; left: 50%; bottom: 26px; z-index: 70; transform: translateX(-50%);
  padding: 9px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .5); color: var(--navy-3); box-shadow: inset 0 0 0 1px rgba(5, 25, 40, .14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 .68rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .4s, color .25s, background-color .25s;
}
html[lang="ar"] .intro-skip { font-family: var(--f-ar); font-size: .85rem; }
.is-intro .intro-skip { opacity: 1; pointer-events: auto; }
.intro-skip:hover { color: var(--navy); background: rgba(255, 255, 255, .8); }

/* ============ Hero ============ */
.hero { position: relative; z-index: 2; --mark: min(56vh, 40vw); --mark-y: 47%; }
.hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.hero__behind { position: absolute; inset: 0; transform-origin: 50% 50%; }
/* the room behind the doors: a loop of the systems we build, cards drifting round an empty
   middle, under a soft pool of light where the promise stands */
.hero__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; background: var(--ground); }
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 50% at 50% 56%, rgba(242, 244, 246, .72), rgba(242, 244, 246, .3) 62%, transparent 90%),
    linear-gradient(to bottom, rgba(238, 241, 244, .55), transparent 26%, transparent 80%, rgba(238, 241, 244, .6));
}
/* light floods in through the opening doors, then settles */
.hero__dark { position: absolute; inset: 0; background: #FFFFFF; opacity: 0; }

.hero__copy {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px;
  padding: calc(var(--nav-h) + 20px) var(--gut) 64px;
}
.hero__eyebrow { color: var(--fg); }
.hero__title {
  max-width: min(1220px, 94vw);
  font-size: calc(clamp(2.1rem, 4vw, 4rem) * var(--disp)); line-height: 1.02; letter-spacing: -.045em; font-weight: 600;
  text-wrap: balance;
}
html[lang="ar"] .hero__title { line-height: 1.3; font-weight: 700; }
.hero__lede { max-width: 40em; font-size: calc(clamp(1rem, 1.25vw, 1.15rem) * var(--text)); color: var(--fg-2); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ---- The doors: two panels of brushed silver ---- */
.doors { position: absolute; inset: 0; z-index: 3; pointer-events: none; perspective: 2000px; perspective-origin: 50% 50%; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.05%; overflow: hidden;
  backface-visibility: hidden; will-change: transform;
}
.door--a { left: 0; transform-origin: 0% 50%; }
.door--b { right: 0; transform-origin: 100% 50%; }
.door__face { position: absolute; inset: 0; color: var(--navy); }
.door--a .door__face {
  background:
    radial-gradient(110% 85% at 100% 50%, rgba(255, 255, 255, .7), transparent 58%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .28) 0 1px, rgba(5, 25, 40, .022) 1px 3px),
    linear-gradient(165deg, #F4F6F8 0%, #DCE1E6 34%, #EEF1F4 52%, #C5CDD5 100%);
  box-shadow: inset -1px 0 0 rgba(5, 25, 40, .2);
}
.door--b .door__face {
  background:
    radial-gradient(110% 85% at 0% 50%, rgba(255, 255, 255, .7), transparent 58%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .28) 0 1px, rgba(5, 25, 40, .022) 1px 3px),
    linear-gradient(195deg, #F4F6F8 0%, #DCE1E6 34%, #EEF1F4 52%, #C5CDD5 100%);
  box-shadow: inset 1px 0 0 rgba(5, 25, 40, .2);
}
/* each door is hemmed with a stitched inner edge */
.door__face::after { content: ""; position: absolute; top: 22px; bottom: 22px; pointer-events: none; }
.door--a .door__face::after { right: 12px; border-right: 1.5px dashed rgba(5, 25, 40, .26); }
.door--b .door__face::after { left: 12px; border-left: 1.5px dashed rgba(5, 25, 40, .26); }
/* light travels slowly across the polished metal */
.door__face::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%) 0 0 / 250% 100%;
  animation: sheen 9s ease-in-out infinite;
}
.door--b .door__face::before { animation-delay: -4.5s; }
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }

.door__word {
  position: absolute; bottom: -.13em; white-space: nowrap; pointer-events: none;
  font-weight: 800; font-size: clamp(7rem, 25vw, 30rem); line-height: .8; letter-spacing: -.05em;
  color: rgba(5, 25, 40, .035); -webkit-text-stroke: 1.2px rgba(5, 25, 40, .2);
  text-shadow: 0 1.5px 0 rgba(255, 255, 255, .85);
}
.door__word > span { display: inline-block; }
.door--a .door__word { right: .04em; }
.door--b .door__word { left: .02em; }

.door__mark {
  position: absolute; top: calc(var(--mark-y) - var(--mark) / 2); width: var(--mark); height: var(--mark); overflow: visible;
}
.door--a .door__mark { left: calc(100% - var(--mark) / 2); }
.door--b .door__mark { left: calc(var(--mark) / -2); }
.mark-live .mk-rib { fill: url(#mk-navy); }
.mark-live .mk-spk { fill: var(--navy); }
.mark-live .mk-shine { fill: url(#mk-glint); }

.door__note {
  position: absolute; z-index: 1; max-width: calc(100% - 2 * var(--gut));
  font: 500 .7rem/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-3);
}
html[lang="ar"] .door__note { font-family: var(--f-ar); font-size: .92rem; letter-spacing: 0; text-transform: none; }
.door__note > span { display: inline-flex; align-items: center; gap: .8em; }
.door__note .spark { background: var(--navy); }
.door__note--top { top: calc(var(--nav-h) + 22px); }
.door__note--bottom { bottom: calc(26px + 24px); }
.door--a .door__note { left: var(--gut); }
.door--b .door__note { right: var(--gut); text-align: right; }
.door__note b { font-family: var(--f-ar-brand); font-size: 1.6rem; font-weight: 700; color: var(--navy); letter-spacing: 0; text-transform: none; vertical-align: -.2em; }
.door__note i { font-family: var(--f-serif); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--slate); }
.door__cue-line { display: inline-block; width: 46px; height: 1px; background: rgba(5, 25, 40, .2); position: relative; overflow: hidden; }
.door__cue-line::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateX(-100%); animation: cue 2.2s var(--ease) infinite; }
[dir="rtl"] .door__cue-line::after { animation-name: cue-rtl; }
@keyframes cue { 60%, 100% { transform: translateX(100%); } }
@keyframes cue-rtl { 0% { transform: translateX(100%); } 60%, 100% { transform: translateX(-100%); } }
.door__shade { position: absolute; inset: 0; z-index: 2; background: var(--navy); opacity: 0; pointer-events: none; }

/* the seam between the doors: a cold line of light from the room behind */
.seam { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 2; transform-origin: 50% 50%; }
.seam__core {
  position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(0);
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .9) 18%, #fff 50%, rgba(255, 255, 255, .9) 82%, transparent);
  box-shadow: 0 0 12px 2px rgba(201, 214, 228, .9), 0 0 60px 12px rgba(150, 170, 190, .45);
}

@media (max-width: 760px) {
  .hero { --mark: min(76vw, 44vh); --mark-y: 44%; }
  .door__note--top { display: none; }
  .door__note--bottom { font-size: .6rem; }
  .door--a .door__note--bottom { display: none; }
  .door--b .door__note--bottom { right: 24px; }
  .door__word { font-size: 31vw; }
  .hero__title { font-size: calc(clamp(1.9rem, 7.6vw, 2.6rem) * var(--disp)); }
}
@media (max-width: 760px) and (max-height: 700px) { .hero__lede { display: none; } }

/* Before the intro plays, the doors are bare metal */
.is-intro .mark-live { visibility: hidden; }
.is-intro .door__word > span, .is-intro .door__note > span { opacity: 0; }

/* Without the motion layer the doors simply stand open */
.reduce .doors, .no-motion .doors, .reduce .intro-skip, .no-motion .intro-skip { display: none; }
.reduce .hero__dark, .no-motion .hero__dark { opacity: 0; }
.reduce.is-intro .nav, .no-motion.is-intro .nav { opacity: 1; transform: none; }
/* ...and the promise fills the room, growing past one screen only if it has to */
:is(.reduce, .no-motion) .hero__stage { height: auto; min-height: 0; }
:is(.reduce, .no-motion) .hero__behind { position: relative; }
:is(.reduce, .no-motion) .hero__copy {
  position: relative; inset: auto; min-height: 100vh; min-height: 100svh;
  padding-block: calc(var(--nav-h) + clamp(40px, 8vh, 90px)) clamp(80px, 12vh, 140px);
}

/* ============ The torn word ============ */
.tear { position: relative; display: inline-block; white-space: nowrap; }
/* once split, the word is read from the hidden "ghost" and seen through its two halves */
.tear.is-ready { background: none; cursor: pointer; }
.tear__ghost { color: transparent; -webkit-text-fill-color: transparent; }
/* the halves reach past the word's box so the fill covers tall marks and deep descenders (Arabic ق, ي, آ) */
.tear__half {
  position: absolute; inset: -.45em -.2em; padding: .45em .2em; pointer-events: none;
  background: var(--metal); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tear__half--a { clip-path: inset(-20% 50% -20% -20%); }
.tear__half--b { clip-path: inset(-20% -20% -20% 50%); }
.tear__stitch {
  position: absolute; left: 50%; top: 8%; height: 84%; width: .36em; transform: translateX(-50%);
  overflow: visible; pointer-events: none;
}
.tear__stitch path { fill: none; stroke: var(--stitch); stroke-width: 4; stroke-linecap: round; opacity: 0; }

/* ============ Why ratq: the word, defined, then three tears sewn shut ============ */
.manifesto { position: relative; z-index: 1; padding-block: clamp(110px, 13vw, 200px) clamp(100px, 11vw, 170px); }

/* the dictionary entry is the statement's headword */
.entry {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: 18px clamp(20px, 3.4vw, 56px); padding-bottom: clamp(24px, 3vw, 38px); margin-bottom: clamp(44px, 6vw, 84px);
}
.entry::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 14px);
  transform: scaleX(var(--seam, 1)); transform-origin: 0 50%;
}
[dir="rtl"] .entry::after { transform-origin: 100% 50%; }
/* solid ink: Chrome misplaces Arabic vowel marks under background-clip text */
.entry__word {
  font-family: var(--f-ar-brand); font-weight: 700; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1.25; color: var(--navy);
  padding-inline-end: clamp(20px, 3.4vw, 56px); border-inline-end: 1px solid var(--line);
}
.entry__def { display: grid; gap: 10px; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 .74rem var(--f-mono); letter-spacing: .08em; color: var(--fg-3); }
html[lang="ar"] .entry__meta { font-family: var(--f-ar); font-size: .9rem; letter-spacing: 0; }
.entry__phon { color: var(--fg); }
.entry__senses { list-style: decimal; padding-inline-start: 1.3em; display: grid; gap: 4px; font-size: calc(clamp(1rem, 1.25vw, 1.15rem) * var(--text)); color: var(--fg); }
.entry__senses li::marker { font: 500 .8em var(--f-mono); color: var(--fg-3); }
.entry__opp { max-width: 16em; font-size: .95rem; color: var(--fg-2); text-align: end; }
.entry__fatq { font-family: var(--f-ar-brand); font-weight: 700; font-size: 1.5em; color: var(--fg); }

/* the claim, and where the tear hides */
.manifesto__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end;
  gap: 22px clamp(32px, 5vw, 88px); margin-bottom: clamp(44px, 5.4vw, 80px);
}
.manifesto__lead {
  font-size: calc(clamp(1.8rem, 3.2vw, 3rem) * var(--disp)); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; color: var(--fg);
  max-width: 13ch; text-wrap: balance;
}
html[lang="ar"] .manifesto__lead { line-height: 1.4; font-weight: 700; max-width: 12ch; }

/* three tears, each a strip of torn paper: the old way on a grey scrap with a ragged edge,
   the new way on clean paper, and a row of gold cross-stitches sewing the two together */
.seams { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.seam-row {
  --r: clamp(18px, 2vw, 28px); --pad-y: clamp(24px, 2.8vw, 40px); --pad-x: clamp(22px, 3vw, 48px); --tooth: 20px;
  --teeth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 120' preserveAspectRatio='none'%3E%3Cpath d='M0 0L10 6L3 13L13 21L2 29L9 36L1 45L12 54L4 61L11 70L0 78L8 86L2 94L13 103L5 110L10 116L0 120Z'/%3E%3C/svg%3E");
  --teeth-rtl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 120' preserveAspectRatio='none'%3E%3Cpath d='M14 0L4 6L11 13L1 21L12 29L5 36L13 45L2 54L10 61L3 70L14 78L6 86L12 94L1 103L9 110L4 116L14 120Z'/%3E%3C/svg%3E");
  --teeth-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0 0L6 10L13 3L21 13L29 2L36 9L45 1L54 12L61 4L70 11L78 0L86 8L94 2L103 13L110 5L116 10L120 0Z'/%3E%3C/svg%3E");
  --xstitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5L17.5 17.5M17.5 6.5L6.5 17.5' fill='none' stroke='%23A5803D' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) 0 minmax(0, 7fr);
}
.seam-row__tear, .seam-row__mend {
  display: grid; align-content: center; gap: 10px; min-height: clamp(130px, 11vw, 168px); padding: var(--pad-y) var(--pad-x);
}
.seam-row__tear {
  position: relative; z-index: 1; margin-inline-end: calc(-1 * var(--tooth)); padding-inline-end: calc(var(--pad-x) + var(--tooth));
  background: #DDE3E8; color: var(--fg-2);
  border-start-start-radius: var(--r); border-end-start-radius: var(--r);
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / calc(100% - var(--tooth)) 100% no-repeat, var(--teeth) 100% 0 / var(--tooth) 120px repeat-y;
  mask: linear-gradient(#000 0 0) 0 0 / calc(100% - var(--tooth)) 100% no-repeat, var(--teeth) 100% 0 / var(--tooth) 120px repeat-y;
}
[dir="rtl"] .seam-row__tear {
  -webkit-mask: linear-gradient(#000 0 0) 100% 0 / calc(100% - var(--tooth)) 100% no-repeat, var(--teeth-rtl) 0 0 / var(--tooth) 120px repeat-y;
  mask: linear-gradient(#000 0 0) 100% 0 / calc(100% - var(--tooth)) 100% no-repeat, var(--teeth-rtl) 0 0 / var(--tooth) 120px repeat-y;
}
.seam-row__tear p { font-size: calc(clamp(1rem, 1.2vw, 1.12rem) * var(--text)); line-height: 1.45; max-width: 24ch; }
.seam-row__mend {
  padding-inline-start: calc(var(--pad-x) + var(--tooth)); background: var(--paper);
  border-start-end-radius: var(--r); border-end-end-radius: var(--r);
  box-shadow: 0 34px 60px -44px rgba(5, 25, 40, .45);
}
.seam-row__mend p { font-size: calc(clamp(1.1rem, 1.4vw, 1.32rem) * var(--disp)); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; color: var(--fg); max-width: 26ch; }
html[lang="ar"] .seam-row__mend p { line-height: 1.55; font-weight: 700; }
html[lang="ar"] .seam-row__tear p { line-height: 1.7; }
.seam-row__k { font: 500 .68rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.seam-row__mend .seam-row__k { color: var(--gold); }
html[lang="ar"] .seam-row__k { font-family: var(--f-ar); font-size: .86rem; font-weight: 600; letter-spacing: 0; }
/* the stitches run along the torn edge, sewn from one end to the other */
.seam-row__stitch { position: relative; z-index: 2; }
.seam-row__stitch::before {
  content: ""; position: absolute; top: 22px; bottom: 22px; inset-inline-start: calc(var(--tooth) / 2 - 12px); width: 24px;
  background: var(--xstitch) 50% 0 / 24px 24px; background-repeat: no-repeat space; filter: drop-shadow(0 1px 0 rgba(5, 25, 40, .18));
  transform: scaleY(var(--stitch, 1)); transform-origin: 50% 0;
}

/* the promise, said once and quietly */
.manifesto__close {
  display: flex; flex-direction: column; align-items: center; gap: 18px; margin: clamp(48px, 6vw, 88px) auto 0; max-width: 36ch;
  font: italic 400 clamp(1.3rem, 1.9vw, 1.75rem)/1.3 var(--f-serif); letter-spacing: -.01em; color: var(--fg); text-align: center; text-wrap: balance;
}
.manifesto__close .spark { width: 16px; height: 16px; }
html[lang="ar"] .manifesto__close { font: 600 clamp(1.1rem, 1.7vw, 1.5rem)/1.7 var(--f-ar); }

@media (max-width: 860px) {
  .manifesto__head { grid-template-columns: minmax(0, 1fr); }
}
/* on a phone each strip tears across instead: the old way on top, the mend below */
@media (max-width: 760px) {
  .seam-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 0 auto; }
  .seam-row__tear, .seam-row__mend { min-height: 0; }
  .seam-row__tear, [dir="rtl"] .seam-row__tear {
    margin: 0 0 calc(-1 * var(--tooth)); padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) + var(--tooth));
    border-radius: var(--r) var(--r) 0 0;
    -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--tooth)) no-repeat, var(--teeth-down) 0 100% / 120px var(--tooth) repeat-x;
    mask: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--tooth)) no-repeat, var(--teeth-down) 0 100% / 120px var(--tooth) repeat-x;
  }
  .seam-row__mend { padding: calc(var(--pad-y) + var(--tooth)) var(--pad-x) var(--pad-y); border-radius: 0 0 var(--r) var(--r); }
  .seam-row__stitch::before {
    top: calc(var(--tooth) / 2 - 12px); bottom: auto; inset-inline: 18px; width: auto; height: 24px;
    background: var(--xstitch) 0 50% / 24px 24px; background-repeat: space no-repeat;
    transform: scaleX(var(--stitch, 1)); transform-origin: 0 50%;
  }
  [dir="rtl"] .seam-row__stitch::before { transform-origin: 100% 50%; }
  .manifesto__close { text-align: start; align-items: flex-start; }
}
@media (max-width: 760px) {
  .entry { grid-template-columns: auto minmax(0, 1fr); }
  .entry__opp { grid-column: 1 / -1; text-align: start; max-width: none; }
}

/* ============ Work: the projects as cards, filtered by kind ============ */
.work { position: relative; z-index: 1; padding-block: clamp(50px, 6vw, 100px) clamp(60px, 7vw, 110px); }
.work__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 5vw, 88px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.work__title { display: grid; gap: 18px; }
.work__intro { display: grid; gap: 20px; justify-items: start; }
@media (max-width: 960px) { .work__head { grid-template-columns: minmax(0, 1fr); } }

/* the filter: all, or one kind of work at a time */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg);
  font-weight: 500; font-size: calc(.94rem * var(--text)); transition: background-color .25s, box-shadow .25s, color .25s;
}
.filter:hover { background: var(--ghost-hover); box-shadow: inset 0 0 0 1px var(--hover-line); }
.filter__n { font: 500 .7rem var(--f-mono); color: var(--fg-3); }
.filter[aria-pressed="true"] { background: linear-gradient(160deg, #23465A, #051928); color: var(--silver-3); box-shadow: 0 12px 24px -14px rgba(5, 25, 40, .6); }
.filter[aria-pressed="true"] .filter__n { color: var(--slate-3); }

/* the grid of projects (the cards themselves are .tcard, shared with the home page) */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 48px) clamp(18px, 2.2vw, 30px); }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
button.tcard__link { width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font: 500 .7rem var(--f-mono); letter-spacing: .04em;
  color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-strong);
}
html[lang="ar"] .chips li { font-family: var(--f-ar); font-size: .82rem; letter-spacing: 0; }
.case__status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font: 500 .64rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  color: var(--fg); background: rgba(5, 25, 40, .06);
}
html[lang="ar"] .case__status { font-family: var(--f-ar); font-size: .78rem; letter-spacing: 0; }
.case__status.is-live { color: #0E7A52; background: rgba(46, 204, 143, .13); }
.case__status.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1FB57C; box-shadow: 0 0 0 0 rgba(31, 181, 124, .55); animation: live 2s infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 8px rgba(31, 181, 124, 0); } }

/* ============ How we work: told once, one thread and five stitches ============ */
.process { position: relative; z-index: 1; padding-block: 0 clamp(40px, 5vw, 80px); }
.process__card {
  background: var(--paper); color: var(--fg);
  border-radius: clamp(22px, 2.6vw, 34px); padding: clamp(24px, 3.4vw, 52px);
  box-shadow: 0 0 0 1px rgba(5, 25, 40, .05), 0 40px 90px -60px rgba(5, 25, 40, .38);
}
.process__head { display: grid; gap: 14px; margin-bottom: clamp(26px, 3.2vw, 44px); }
.made__track { position: relative; }
.thread { position: absolute; top: 17px; inset-inline: 0; height: 0; border-top: 1.5px dashed rgba(5, 25, 40, .26); }
.thread__live {
  position: absolute; top: -2px; inset-inline-start: 0; width: calc(var(--f, 0) * 100%); height: 2.5px; border-radius: 2px;
  background: linear-gradient(90deg, var(--slate-2), var(--navy) 30%);
}
[dir="rtl"] .thread__live { background: linear-gradient(-90deg, var(--slate-2), var(--navy) 30%); }
.thread__needle {
  position: absolute; top: -6px; inset-inline-start: calc(var(--f, 0) * 100%); width: 9px; height: 9px; margin-inline-start: -4.5px;
  border-radius: 50%; background: var(--gold-metal); box-shadow: 0 0 0 2.5px var(--navy), 0 0 0 8px rgba(165, 128, 61, .14);
}
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.step { display: grid; gap: 6px; align-content: start; opacity: .55; transition: opacity .6s; }
.step.is-lit { opacity: 1; }
.step__knot {
  position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(5, 25, 40, .28);
  font: 600 .8rem var(--f-mono); color: var(--fg-3);
  transition: background-color .5s, color .5s, box-shadow .5s, transform .6s var(--ease);
}
.step.is-lit .step__knot { background: var(--navy); color: var(--silver-3); box-shadow: 0 0 0 6px rgba(5, 25, 40, .1); transform: scale(1.08); }
.step__title { font-size: calc(clamp(1.02rem, 1.15vw, 1.12rem) * var(--disp)); letter-spacing: -.015em; line-height: 1.2; }
html[lang="ar"] .step__title { font-weight: 700; line-height: 1.5; }
.step__text { color: var(--fg-2); font-size: calc(.9rem * var(--text)); line-height: 1.55; }
@media (max-width: 960px) {
  .thread { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-inline-start: 52px; }
  .steps::before { content: ""; position: absolute; inset-inline-start: 17px; top: 0; bottom: 0; border-inline-start: 1.5px dashed rgba(5, 25, 40, .28); }
  .steps::after { content: ""; position: absolute; inset-inline-start: 16px; top: 0; height: calc(var(--p, 0) * 100%); width: 3px; background: var(--navy); border-radius: 2px; }
  .step { position: relative; gap: 2px; }
  .step__knot { position: absolute; inset-inline-start: -52px; top: -4px; margin: 0; }
}

/* ============ Work page: its own header, and a way back to the brief ============ */
.work--page { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 130px)); }
.work--page::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 90vh; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 60% at 84% 12%, rgba(255, 255, 255, .92), transparent 70%), radial-gradient(36% 46% at 6% 70%, rgba(150, 166, 180, .16), transparent 70%);
}
.work__h1 { font-size: calc(clamp(1.9rem, 3.4vw, 3.2rem) * var(--disp)); max-width: 18ch; }
.closing { position: relative; z-index: 1; padding-block: clamp(20px, 4vw, 60px) clamp(100px, 11vw, 170px); }
.closing__inner { display: grid; justify-items: start; }
.closing .closing__title { margin: 20px 0 18px; font-size: calc(clamp(1.9rem, 3.4vw, 3.2rem) * var(--disp)); line-height: 1.05; }
.closing__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 38px); }

/* ============ Work, in short (home): every project as a print on the table ============ */
.teaser .work__head { margin-bottom: clamp(38px, 4.6vw, 70px); }
.teaser__reel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 52px) clamp(18px, 2.2vw, 32px); }
.tcard { min-width: 0; }
.tcard__link { display: grid; gap: 18px; color: inherit; text-decoration: none; border-radius: 14px; }
.tcard__link:focus-visible { outline-offset: 8px; }
.tcard__screen {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: clamp(14px, 1.3vw, 20px);
  background: #E9EDF1;
  box-shadow: 0 0 0 1px rgba(5, 25, 40, .08), 0 34px 60px -40px var(--case), 0 22px 40px -30px rgba(5, 25, 40, .42);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tcard__screen > img, .tcard__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the client's own mark, pinned to the corner like a wax seal */
.tcard__screen > .tcard__logo {
  inset: auto; inset-inline-end: clamp(10px, 1.1vw, 16px); bottom: clamp(10px, 1.1vw, 16px); z-index: 1;
  width: clamp(44px, 4.4vw, 64px); height: auto; aspect-ratio: 1; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px var(--paper), 0 10px 22px -8px rgba(5, 25, 40, .45);
  transition: transform .6s var(--ease);
}
.tcard__link:hover .tcard__screen > .tcard__logo { transform: scale(1.06); }
.tcard__screen img { transition: transform 1.2s var(--ease); }
.tcard__screen video { opacity: 0; transition: opacity .5s; }
.tcard__link.is-playing video { opacity: 1; }
.tcard__link:hover .tcard__screen, .tcard__link:focus-visible .tcard__screen {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px rgba(5, 25, 40, .1), 0 48px 80px -40px var(--case), 0 34px 54px -32px rgba(5, 25, 40, .5);
}
.tcard__link:hover .tcard__screen img { transform: scale(1.04); }
.tcard__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; align-items: baseline; }
.tcard__no { grid-row: span 2; font: 500 .72rem var(--f-mono); letter-spacing: .08em; color: var(--fg-3); }
.tcard__name {
  font-weight: 600; font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.3; letter-spacing: -.01em;
  text-decoration: underline 1.5px transparent; text-underline-offset: .28em; transition: text-decoration-color .35s;
}
html[lang="ar"] .tcard__name { font-weight: 700; letter-spacing: 0; }
.tcard__link:hover .tcard__name, .tcard__link:focus-visible .tcard__name { text-decoration-color: var(--gold); }
.tcard__kind { font-size: .9rem; color: var(--fg-3); }
@media (max-width: 960px) { .teaser__reel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* on a phone the prints slide sideways instead of stacking six screens tall */
@media (max-width: 640px) {
  .teaser__reel {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gut)); padding: 8px var(--gut) 22px; scroll-padding-inline: var(--gut); scrollbar-width: none;
  }
  .teaser__reel::-webkit-scrollbar { display: none; }
  .tcard { flex: 0 0 80%; scroll-snap-align: start; }
}

/* ============ Marquee ============ */
.marquee { position: relative; z-index: 1; padding-block: clamp(30px, 5vw, 70px) clamp(70px, 9vw, 130px); overflow: hidden; display: grid; gap: 6px; }
.marquee__row { display: flex; width: max-content; white-space: nowrap; direction: ltr; }
.marquee__track {
  display: flex; align-items: center; gap: .5em; padding-inline-end: .5em;
  font-weight: 600; font-size: calc(clamp(1.7rem, 3.8vw, 3.4rem) * var(--disp)); line-height: 1.15; letter-spacing: -.04em; color: var(--fg);
}
html[lang="ar"] .marquee__track { font-weight: 700; letter-spacing: 0; line-height: 1.55; } /* room for Arabic dots and tails between the rows */
.marquee__track i {
  display: inline-block; width: .42em; height: .42em; flex: none; background: var(--metal);
  -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat;
}
.marquee__row--outline .marquee__track { color: transparent; -webkit-text-stroke: 1.2px rgba(5, 25, 40, .3); }
/* joined Arabic letters can't be outlined cleanly (every join shows a seam), so in Arabic the quiet row is a pale fill */
html[lang="ar"] .marquee__row--outline .marquee__track { color: #D3D9DF; -webkit-text-stroke: 0; } /* solid, so overlapping joins don't darken */
.marquee__row--outline .marquee__track i { background: var(--slate-2); }

/* Without the motion layer, the scroll-driven states start finished:
   every tear mended, every thread sewn, every stitch lit. */
:is(.reduce, .no-motion) .made__track { --f: 1; }
:is(.reduce, .no-motion) .steps { --p: 1; }
:is(.reduce, .no-motion) .step { opacity: 1; }
:is(.reduce, .no-motion) .step__knot { background: var(--navy); color: var(--silver-3); box-shadow: 0 0 0 6px rgba(5, 25, 40, .1); }
:is(.reduce, .no-motion) .thread__needle { display: none; }

/* ============ Voices ============ */
.voices { position: relative; z-index: 1; padding-block: clamp(60px, 8vw, 120px); }
.voices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.voices__faces { display: flex; margin: 28px 0; }
.voices__face {
  width: 64px; height: 64px; border-radius: 50%; margin-inline-start: -14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--silver), var(--slate)); color: var(--navy); font-weight: 600; box-shadow: 0 0 0 3px var(--bg);
  transition: transform .5s var(--ease), opacity .4s; opacity: .45;
}
.voices__face:first-child { margin-inline-start: 0; }
.voices__face.is-on { opacity: 1; transform: translateY(-6px) scale(1.06); }
.voices__nav { display: flex; gap: 10px; }
.voices__stage { margin: 0; min-height: 240px; display: grid; }
.voices__stage blockquote { margin: 0; font-size: calc(clamp(1.3rem, 2.2vw, 2rem) * var(--disp)); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.voices__stage figcaption { margin-top: 22px; color: var(--fg-3); font: 500 .8rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .voices__grid { grid-template-columns: 1fr; } }

/* ============ Contact ============ */
.contact { position: relative; z-index: 1; padding-block: clamp(110px, 12vw, 180px) clamp(70px, 8vw, 120px); }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 85% 30%, rgba(255, 255, 255, .85), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(150, 166, 180, .2), transparent 70%);
}
.contact .wrap { position: relative; }
/* the studio's film: a ribbon threading itself shut, kept quiet and faded into the page at top and bottom */
.contact__film {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}
/* a soft halo in the page colour keeps the ribbon from touching the words */
.contact .eyebrow, .contact__title, .contact__intro .body-l, .contact__plain > span { text-shadow: 0 0 2px var(--ground), 0 0 12px var(--ground), 0 0 26px var(--ground); }
.contact__title .tear { text-shadow: none; filter: drop-shadow(0 0 8px var(--ground)) drop-shadow(0 0 16px var(--ground)); }
.contact__title { margin: 22px 0 clamp(36px, 4.6vw, 64px); font-size: calc(clamp(2.1rem, 4.2vw, 4rem) * var(--disp)); line-height: 1; letter-spacing: -.055em; font-weight: 600; max-width: 12ch; }
html[lang="ar"] .contact__title { line-height: 1.25; font-weight: 700; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__intro { display: grid; gap: 34px; }
.contact__plain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--fg-3); font-size: calc(.92rem * var(--text)); }
.contact__addr { color: var(--fg); font-weight: 500; }
.copy-btn { padding: 6px 12px; border: 0; border-radius: 999px; background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: .78rem; cursor: pointer; transition: background-color .25s; }
.copy-btn:hover { background: var(--ghost-hover); }
.copy-btn.is-done { background: rgba(46, 204, 143, .13); color: #0E7A52; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.socials a { text-decoration: none; color: var(--fg-2); font-weight: 500; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; padding-bottom: 3px; transition: background-size .4s var(--ease), color .25s; }
.socials a:hover { color: var(--fg); background-size: 100% 1px; }

/* the two ways to reach us: a sewn navy patch for Gmail, a paper one for Instagram */
.reach { display: grid; gap: 14px; }
.reach__btn {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 30px); border-radius: 22px; text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background-color .3s;
}
.reach__btn--mail {
  color: var(--silver-3); background: linear-gradient(160deg, #23465A 0%, #0E2435 48%, #051928 100%);
  outline: 1.5px dashed rgba(201, 208, 215, .38); outline-offset: -7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 26px 50px -28px rgba(5, 25, 40, .7);
}
.reach__btn--ig { color: var(--fg); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong), 0 26px 50px -36px rgba(5, 25, 40, .4); }
.reach__btn:hover { transform: translateY(-3px); }
.reach__btn--mail:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 34px 60px -28px rgba(5, 25, 40, .75); }
.reach__btn--ig:hover { box-shadow: inset 0 0 0 1px var(--hover-line), 0 34px 60px -34px rgba(5, 25, 40, .45); }
.reach__btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.reach__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.reach__btn--mail .reach__icon { background: rgba(233, 237, 241, .1); box-shadow: inset 0 0 0 1px rgba(233, 237, 241, .2); }
.reach__btn--ig .reach__icon { background: var(--silver-3); box-shadow: inset 0 0 0 1px var(--line); }
.reach__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reach__icon .dot { fill: currentColor; stroke: none; }
.reach__text { display: grid; gap: 3px; min-width: 0; }
.reach__label { font-weight: 600; font-size: calc(clamp(1.05rem, 1.35vw, 1.22rem) * var(--disp)); line-height: 1.3; }
html[lang="ar"] .reach__label { font-weight: 700; line-height: 1.6; }
.reach__sub { font: 500 .8rem var(--f-mono); letter-spacing: .02em; opacity: .72; overflow-wrap: anywhere; }
html[dir="rtl"] .reach__sub { text-align: right; }
.reach__go { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .35s var(--ease); }
.reach__btn:hover .reach__go { translate: .25em 0; }
[dir="rtl"] .reach__btn:hover .reach__go { translate: -.25em 0; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .reach__btn { gap: 14px; } .reach__icon { width: 44px; height: 44px; } }
/* ============ Footer ============ */
.footer {
  position: relative; z-index: 1; padding-block: clamp(20px, 3vw, 40px) 30px; overflow: hidden;
  background-color: var(--night);
  background-image: radial-gradient(60% 50% at 50% 0%, rgba(83, 107, 122, .35), transparent 70%);
  border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0;
}
.footer__mend {
  display: flex; align-items: center; justify-content: center; gap: .04em; direction: ltr;
  padding: clamp(20px, 4vw, 50px) 0 clamp(20px, 3vw, 40px);
  font-weight: 800; font-size: clamp(4rem, 15vw, 15rem); line-height: .8; letter-spacing: -.06em;
}
.footer__half { display: inline-block; background: linear-gradient(175deg, #FFFFFF 0%, #C9D0D7 40%, #738695 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__half--a { margin-right: .06em; } /* balances the tracking after "A" so the monogram sits centred */
.footer__mark { width: .62em; height: .62em; flex: none; fill: url(#mk-silver); filter: drop-shadow(0 0 40px rgba(201, 214, 228, .25)); }
.footer__row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; padding-block: 30px; border-top: 1px solid var(--line); }
.footer__ar { font-family: var(--f-ar-brand); font-weight: 700; font-size: 2.6rem; line-height: 1.2; color: var(--silver); }
.footer__ar::after { content: ""; display: block; width: 1.1em; height: 1.5px; margin-top: .1em; border-radius: 2px; background: var(--gold-metal); }
.footer__line { color: var(--fg-2); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a { text-decoration: none; color: var(--fg-2); font-weight: 450; }
.footer__nav a:hover { color: var(--fg); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--fg-3); }
.footer__top { text-decoration: none; }
.footer__top:hover { color: var(--fg); }
@media (max-width: 800px) { .footer__row { grid-template-columns: 1fr; } }

/* ============ Project view: the film beside what it does ============ */
html.has-dialog body { overflow: hidden; }
.pview { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.pview__backdrop { position: absolute; inset: 0; background: rgba(5, 25, 40, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pview__sheet {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch;
  width: min(1240px, 100%); max-height: calc(100dvh - 2 * clamp(12px, 3vw, 40px)); overflow: auto; overscroll-behavior: contain;
  border-radius: clamp(18px, 2vw, 26px); background: var(--paper); box-shadow: 0 60px 140px -40px rgba(5, 25, 40, .55);
}
.pview__media { display: grid; place-items: center; background: #0B1620; }
.pview__media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0B1620; }
.pview__info { display: grid; align-content: start; gap: 16px; padding: clamp(22px, 2.6vw, 36px); padding-top: clamp(26px, 3vw, 40px); }
.pview__top { display: flex; align-items: center; gap: 12px; padding-inline-end: 52px; }
.pview__logo { flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong); }
.pview__meta { display: grid; gap: 4px; justify-items: start; }
.pview__kind { font-size: calc(.88rem * var(--text)); color: var(--fg-3); line-height: 1.4; }
.pview__name { font-size: calc(clamp(1.35rem, 1.8vw, 1.7rem) * var(--disp)); line-height: 1.2; letter-spacing: -.02em; }
html[lang="ar"] .pview__name { line-height: 1.5; font-weight: 700; letter-spacing: 0; }
.pview__points { display: grid; gap: 9px; }
.pview__points li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; font-size: calc(.95rem * var(--text)); color: var(--fg); }
.pview__points li::before { content: ""; width: 10px; height: 10px; background: var(--gold); -webkit-mask: var(--spark) center / contain no-repeat; mask: var(--spark) center / contain no-repeat; transform: translateY(1px); }
.pview__more { border-top: 1px solid var(--line); padding-top: 12px; }
.pview__more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: calc(.9rem * var(--text)); font-weight: 500; color: var(--fg-2); }
.pview__more summary::-webkit-details-marker { display: none; }
.pview__more summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); font: 500 .85rem/1 var(--f-mono); }
.pview__more[open] summary::before { content: "−"; }
.pview__more p { margin-top: 10px; color: var(--fg-2); font-size: calc(.92rem * var(--text)); }
.pview__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.pview__nav { display: flex; gap: 8px; }
.pview__nav .round-btn { width: 44px; height: 44px; }
.pview__close { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; width: 42px; height: 42px; background: var(--paper); }
@media (max-width: 900px) {
  .pview__sheet { grid-template-columns: minmax(0, 1fr); width: min(680px, 100%); }
  .pview__top { padding-inline-end: 0; }
  .pview__close { background: rgba(255, 255, 255, .92); }
}
@media (max-width: 640px) {
  .pview { padding: 0; place-items: end stretch; }
  .pview__sheet { width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; }
  .pview__foot .btn { flex: 1; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .grain, .door__face::before, .door__cue-line::after, .case__status.is-live::before { animation: none; }
}
