/* Hallmark · check · built: the project · redesign: polish · theme: brand (NEUF guidelines v1.0) · genre: editorial · modes: light+dark · languages: en+ar (rtl) · hero: Stage, the real work orbiting the headline in 3D from a low camera · nav: one floating bar, logo, three links, language, theme, one action · footer: a blue mast, links over the wordmark · posture: committed, NEUF Blue on dividers, ribbon and contact */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R3 V4 · weakest: R, the home page still carries many moving parts; each one now runs on transform and opacity, and phones get the lighter versions */
/* Hallmark · waive 24b · fluid clamp() spacing tuned by eye across 18 sections · the NEUF layout is kept at polish depth, so its spacing is the owner's */
/* Hallmark · answered F15 · the work grid, the services path and the contact form keep their own gaps; a polish keeps the layout */
/* Hallmark · waive 80 · the footer mark is the NEUF wordmark drawn from the brand guidelines, four letter shapes · a studio site signs off with its own logo, not an illustration */
/* Hallmark · waive 83 · every picture is a real NEUF project from the studio archive · this is a portfolio, so the work is the content and the words are the frame */
/* Hallmark · waive 71 · the series title heads a sticky index whose large live counter sits right under it · on a project page the title and its counter read as one block beside the set */
/* Hallmark · answered F20 · the thumbnail rows follow how many pieces each series really has; the count comes from the project files */
/* Hallmark · answered F4 · Grid and Index on the work page are one segmented view switch with a pressed state, not two actions */
/* Hallmark · answered F7 · the nav bar, its links, the language switch and the filters are all controls; only they take the pill */
/* Hallmark · dismissed 25 · the about paragraph and the founders' replacement lines are display text set large, not running prose */
/* Hallmark · dismissed 11 · the card image moves 3% only inside its own clipped frame, as the hover answer for the whole card */

/* NEUF: site styles. Tokens from the NEUF brand guidelines v1.0, light + dark, English + Arabic. */
/* IBM Plex Sans for Latin, IBM Plex Sans Arabic for Arabic: one stack, the browser picks by character */
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/plex-sans-latin.woff2) format('woff2'); font-weight: 100 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/fonts/plex-sans-latin-ext.woff2) format('woff2'); font-weight: 100 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Sans Arabic'; src: url(/fonts/plex-arabic-700.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --blue: #0002F7; --paper: #F6F5F1; --ink: #111218; --ice: #DDE5FF;
  --ease: cubic-bezier(0.22, 1, 0.36, 1); --ease-io: cubic-bezier(.76, 0, .24, 1);
  --t: 320ms; --quick: 160ms;
  --g: max(clamp(16px, 3vw, 44px), (100vw - 1520px) / 2); --r: clamp(12px, 1.3vw, 20px);
  --sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, 'Segoe UI', Tahoma, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --white: #FBFBFE; --white-rgb: 251 251 254; --ink-rgb: 17 18 24; --shade-rgb: 5 6 18; --night: #0B0C10; --night-rgb: 8 9 12;
  --on-deep-muted: #B3B7C8; --title-glow: rgb(0 2 120 / .2); --hero-glow: rgb(0 2 247 / .1); --track: -.04em; --display-lh: .9;
  --nav-h: 60px;

  --bg: var(--paper); --fg: var(--ink); --muted: #5B5F6E; --line: rgba(17, 18, 24, .14);
  --accent: var(--blue); --card: #e9e8e2; --bar: var(--white); --chip: var(--ink); --chip-fg: var(--white);
  --deep: var(--ink); --deep-card: #1b1d27; --shadow: 0 24px 48px -24px rgba(17, 18, 24, .45);
  color-scheme: light;

  /* the brand wave (guidelines p.24), as shapes */
  --w-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100'%3E%3Cpath fill='%230002F7' d='M0 50C30 0 90 0 120 50S210 100 240 50V100H0Z'/%3E%3C/svg%3E");
  --w-bot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100'%3E%3Cpath fill='%230002F7' d='M0 50C30 0 90 0 120 50S210 100 240 50V0H0Z'/%3E%3C/svg%3E");
  --w-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 100'%3E%3Cpath fill='none' stroke='%23000' stroke-width='11' d='M0 50C30 0 90 0 120 50S210 100 240 50'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] {
  --bg: #0E0F14; --fg: var(--paper); --muted: #A3A7B8; --line: rgba(246, 245, 241, .14);
  --accent: var(--ice); --card: #1b1d27; --bar: #1b1d27; --chip: var(--paper); --chip-fg: var(--ink);
  --deep: #171923; --deep-card: #222534; --shadow: 0 0 0 1px rgba(246, 245, 241, .08);
  color-scheme: dark;
}
/* dark mode: light text reads heavier on a dark ground, so the body steps down a little */
:root[data-theme="dark"] body { font-weight: 360; }
:root[data-theme="dark"] { --title-glow: rgb(3 5 48 / .9); --hero-glow: rgb(0 2 247 / .26); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 28px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
[data-lenis-prevent] { overscroll-behavior: contain; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 clamp(16px, 1.1vw, 18px)/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.blue :focus-visible, .footer :focus-visible { outline-color: var(--white); }
[hidden] { display: none !important; }
.mono, .label { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--blue); color: var(--white); }
html { caret-color: var(--accent); scrollbar-color: var(--muted) var(--bg); overflow-x: clip; }
h1, h2, h3, .h2, .contact__big, .keep__t, .pcard__title, .card__title, .series__title { text-wrap: balance; }
p { text-wrap: pretty; }
a:active, button:active, .btn:active, .filter:active, .tag:active { transform: scale(.97); }
:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- motion: everything reveals once, on purpose ---------- */
html.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
html.js .rv.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .04em .03em .22em; margin: -.04em -.03em -.22em; }
.split .w > span { display: inline-block; transform: translateY(125%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.split.in .w > span { transform: none; }
html.js .wipe { clip-path: inset(100% 0 0 0 round var(--r)); transition: clip-path 1.3s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
html.js .wipe.in { clip-path: inset(0 0 0 0 round var(--r)); }
html:not(.js) .rv, html:not(.js) .wipe { opacity: 1; transform: none; clip-path: none; }

/* the wave cover: one shape used by the opening, page changes and hero switches */
.wave-cover {
  background:
    var(--w-top) left top / auto var(--wh) repeat-x,
    var(--w-bot) left bottom / auto var(--wh) repeat-x,
    linear-gradient(var(--blue), var(--blue)) center / 100% calc(100% - 2 * var(--wh) + 2px) no-repeat;
}

/* ---------- opening: connect, reveal, settle (guidelines p.33) ---------- */
.intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; --wh: clamp(60px, 9vw, 130px); pointer-events: none; }
.intro__bg { position: absolute; left: 0; right: 0; top: calc(var(--wh) * -1); bottom: calc(var(--wh) * -1); }
.intro { animation: lift .75s var(--ease-io) 1.65s forwards; }
.intro svg { position: relative; width: min(66vw, 780px); height: auto; fill: var(--white); overflow: visible; clip-path: inset(-20% 100% -20% 0); animation: reveal 1.2s var(--ease) .1s forwards; }
.intro path { animation: connectL 1.2s var(--ease) .1s backwards; }
.intro path:nth-child(n+3) { animation-name: connectR; }
.intro__line { position: absolute; left: var(--g); right: var(--g); bottom: 28px; display: flex; justify-content: space-between; color: var(--ice); opacity: 0; animation: fadeIn .5s ease .5s forwards; }
@keyframes reveal { to { clip-path: inset(-20% -5% -20% 0); } }
@keyframes connectL { from { transform: translateX(calc(var(--cn, 3.2vw) * -1)); } }
@keyframes connectR { from { transform: translateX(var(--cn, 3.2vw)); } }
@keyframes lift { to { transform: translateY(-125%); visibility: hidden; } }
@keyframes fadeIn { to { opacity: 1; } }
.no-intro .intro { display: none; }

/* ---------- page change / long jump cover ---------- */
.cover { position: fixed; inset: 0; z-index: 90; overflow: hidden; pointer-events: none; visibility: hidden; --wh: clamp(60px, 9vw, 130px); }
.cover__w { position: absolute; left: 0; right: 0; top: calc(var(--wh) * -1); bottom: calc(var(--wh) * -1); }
.cover.on .cover__w { will-change: transform; }
.cover.on { visibility: visible; pointer-events: auto; }
html.wiping body::after { content: ""; position: fixed; left: 0; right: 0; top: calc(var(--wh) * -1); bottom: calc(var(--wh) * -1); z-index: 95; --wh: clamp(60px, 9vw, 130px);
  background:
    var(--w-top) left top / auto var(--wh) repeat-x,
    var(--w-bot) left bottom / auto var(--wh) repeat-x,
    linear-gradient(var(--blue), var(--blue)) center / 100% calc(100% - 2 * var(--wh) + 2px) no-repeat; }

/* theme switch: circular reveal from the toggle */
html.theming::view-transition-old(root), html.theming::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theming::view-transition-new(root) { animation: circle .55s var(--ease); }
@keyframes circle { from { clip-path: circle(0 at var(--cx, 90%) var(--cy, 4%)); } to { clip-path: circle(150vmax at var(--cx, 90%) var(--cy, 4%)); } }

/* ---------- buttons & pills ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 22px; border-radius: 999px; white-space: nowrap; background: var(--blue); color: var(--white); font-weight: 600; font-size: 15px; overflow: hidden; isolation: isolate; transition: color var(--t), transform var(--t) var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); border-radius: 50% 50% 0 0; transition: transform .45s var(--ease), border-radius .45s var(--ease); }
:root[data-theme="dark"] .btn:not(.btn--white)::before { background: var(--paper); }
:root[data-theme="dark"] .btn:not(.btn--white):hover { color: var(--ink); }
.btn:hover::before { transform: none; border-radius: 0; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t) var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white::before { background: var(--ice); }
.pill { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--chip); color: var(--chip-fg); font-weight: 600; font-size: clamp(13px, 1vw, 15px); white-space: nowrap; }
.pill--blue { background: var(--blue); color: var(--white); }
.pill--white { background: var(--bar); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; transition: background var(--t); }
a.tag:hover { background: var(--bar); }
.sticker { position: absolute; display: inline-block; transform: rotate(var(--rot, 0deg)) scale(0); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--d, 0) * 100ms); }

/* ---------- navigation: one solid bar, readable on every section ---------- */
.nav { position: fixed; inset: 12px var(--g) auto; z-index: 50; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--nav-h); padding: 0 8px 0 22px; border-radius: 999px; background: var(--bar); box-shadow: 0 10px 30px -14px rgb(var(--ink-rgb) / .35), inset 0 0 0 1px var(--line); }
.nav__logo { display: block; width: 78px; color: var(--accent); --cn: 10px; }
.nav__logo svg { width: 100%; height: auto; fill: currentColor; overflow: visible; clip-path: inset(-20% 100% -20% 0); animation: reveal .9s var(--ease) .15s forwards; }
.nav__logo path { transition: transform .4s var(--ease); transform-box: fill-box; animation: connectL .9s var(--ease) .15s backwards; }
.nav__logo path:nth-child(n+3) { animation-name: connectR; }
html.js:not(.no-intro) .nav__logo svg, html.js:not(.no-intro) .nav__logo path { animation-delay: 2.1s; }
.nav__logo:hover path:nth-child(1) { transform: translateY(-8%); }
.nav__logo:hover path:nth-child(2) { transform: translateY(6%); transition-delay: 40ms; }
.nav__logo:hover path:nth-child(3) { transform: translateY(-8%); transition-delay: 80ms; }
.nav__logo:hover path:nth-child(4) { transform: translateY(6%); transition-delay: 120ms; }
.nav__links { display: flex; gap: 2px; position: absolute; left: 50%; translate: -50% 0; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background var(--quick), color var(--quick); }
.nav__link:hover { background: var(--line); }
.nav__link[aria-current] { background: var(--fg); color: var(--bg); }
.nav__right { display: flex; align-items: center; gap: 6px; }
.lang { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: background var(--quick); }
.lang:hover { background: var(--line); }
.lang--menu { justify-self: start; min-width: 0; padding: 0; height: auto; font-size: 18px; color: var(--white); }
.theme, .burger { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background var(--quick); }
.theme:hover, .burger:hover { background: var(--line); }
.theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .5s var(--ease); }
.theme:hover svg { transform: rotate(25deg); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.burger { display: none; position: relative; background: var(--blue); color: var(--white); }
.burger:hover { background: var(--blue); }
.burger i { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 25px; }
.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--blue); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 110px var(--g) 28px; transform: translateY(-101%); visibility: hidden; transition: transform .5s var(--ease-io), visibility 0s .5s; }
.menu-open .menu { transform: none; visibility: visible; transition: transform .5s var(--ease-io), visibility 0s; }
.menu a { font-size: clamp(44px, 13vw, 76px); font-weight: 600; letter-spacing: -.032em; line-height: 1.08; }
.menu__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--ice); }
@media (max-width: 820px) {
  :root { --nav-h: 56px; }
  .nav { inset: 8px 10px auto; }
  .nav__bar { padding: 0 6px 0 16px; }
  .nav__links, .nav .btn { display: none; }
  .burger { display: grid; }
  .nav__logo { width: 66px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 640px); padding: calc(var(--nav-h) + 30px) var(--g) clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; overflow: hidden; }
.hero__head { position: relative; pointer-events: none; transform: translateZ(0); }
/* the stage is one 3D space: the camera sits low, the title stands at its centre, the work circles it */
.hero__stage { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; min-height: 0; perspective: max(2600px, 150vw); perspective-origin: 50% 8%; transform-style: preserve-3d;
  --R: max(62vw, 760px); --tw: clamp(100px, 9.4vw, 172px); --sh: 26svh; --lap: 50s; }
.orbit { position: absolute; left: 50%; top: 54%; width: 0; height: 0; transform-style: preserve-3d; animation: orbit var(--lap) linear infinite; }
.slot { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateY(var(--a)) translate3d(0, calc(var(--y) * var(--sh)), var(--R)) rotateY(calc(var(--a) * -1)); }
.tile { position: absolute; left: 0; top: 0; display: block; width: calc(var(--tw) * min(max(var(--ar), .72), 1.55)); transform: translate(-50%, -50%); animation: counter var(--lap) linear infinite; }
.tile img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; translate: 0 60px; transition: opacity .8s var(--ease), translate 1.2s var(--ease); transition-delay: calc(var(--d) * 80ms); animation: bob 6s ease-in-out infinite alternate; animation-delay: calc(var(--f) * -1); }
.is-ready .tile img { opacity: 1; translate: 0 0; }
html:not(.js) .tile img { opacity: 1; translate: 0 0; }
.tile:focus-visible img { outline: 3px solid var(--accent); outline-offset: 4px; }
.hero__stage.off :is(.orbit, .tile, .tile img) { animation-play-state: paused; }
@keyframes orbit { to { transform: rotateY(360deg); } }
@keyframes counter { to { transform: translate(-50%, -50%) rotateY(-360deg); } }
@keyframes bob { from { transform: translateY(-9px) rotate(-1.5deg); } to { transform: translateY(9px) rotate(1.5deg); } }
.hero__title { margin: 0; text-align: center; color: var(--accent); font-weight: 600; letter-spacing: -.04em; line-height: .88; font-size: min(12.6vw, 23svh); }
.hero__title > span { display: block; }
.hero__title { filter: drop-shadow(0 .05em .16em var(--title-glow)); }
html.js .hero__title:not(.split) { visibility: hidden; }
.hero__stickers .s1 { left: 5%; top: 8%; } .hero__stickers .s2 { right: 4%; top: 54%; } .hero__stickers .s3 { left: 3%; top: 72%; }
.is-ready .sticker { transform: rotate(var(--rot, 0deg)) scale(1); }
.hero__foot { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-top: 16px; opacity: 0; transition: opacity .7s var(--ease) .6s; }
.is-ready .hero__foot { opacity: 1; }
html:not(.js) .hero__foot { opacity: 1; }
.hero__foot p { margin: 0; max-width: 42ch; font-size: clamp(16px, 1.25vw, 19px); font-weight: 500; }
.hero__foot .acts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero__cap { margin: 8px 0 0 !important; font-size: 14px !important; color: var(--muted); }
.hero__cap .touch { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
/* behind the headline: one soft blue light that slowly breathes (compositor only: transform and opacity) */
.hero::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(120vw, 1300px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, var(--hero-glow), transparent); pointer-events: none; animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.82); opacity: .7; } to { transform: scale(1.06); opacity: 1; } }
@media (hover: none) { .hero__cap .mouse { display: none; } .hero__cap .touch { display: inline; } }
@media (max-width: 820px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 28px); }
  .hero__title { font-size: 17.5vw; }
  .hero { min-height: 100svh; }
  .hero__stickers .pill { font-size: 12px; padding: 7px 12px; }
  .hero__stickers .s1 { left: 0; top: -30vw; } .hero__stickers .s2 { right: 0; top: calc(100% + 22vw); } .hero__stickers .s3 { left: 2%; top: calc(100% + 44vw); }
  .hero__stage { flex: 1; min-height: 132vw; perspective: 1500px; perspective-origin: 50% 10%; --R: 70vw; --tw: 20vw; --sh: 118vw; --lap: 42s; }
  .hero__stage .orbit { top: 50%; }
}

/* ---------- wave dividers: the brand pattern, moved by scrolling ---------- */
.wave { position: relative; height: var(--H); background: var(--a); overflow: clip; --H: clamp(30px, 4vw, 60px); margin-block: -1px; }
.wave__b, .wave__c { position: absolute; top: 0; left: 0; height: 100%; width: calc(var(--H) * 76.8); max-width: none; }
.wave__b { color: var(--b); }
.wave__c { display: none; }
.wave__b use, .wave__c use { width: 100%; height: 100%; }
/* the wave travels with the scroll on the compositor, without any JavaScript */
@supports (animation-timeline: view()) {
  .wave__b { animation: waveL linear both; animation-timeline: view(); }
  .wave__c { animation: waveR linear both; animation-timeline: view(); }
}
@keyframes waveL { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--H) * -4.8), 0, 0); } }
@keyframes waveR { from { transform: translate3d(calc(var(--H) * -4.8), 0, 0); } to { transform: translate3d(0, 0, 0); } }

/* ---------- marquee ---------- */
.marquee { background: var(--blue); color: var(--white); overflow: hidden; padding: clamp(10px, 1.4vw, 18px) 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee.off .marquee__track, .marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-size: clamp(26px, 3.6vw, 56px); font-weight: 600; letter-spacing: -.026em; white-space: nowrap; }
.marquee__item i { width: .4em; height: .4em; border-radius: 50%; background: var(--white); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 140px) var(--g); }
.eyebrow, .section > .label, .p-film > .label, .p-body > .label, .p-next2 > .label, .series__side > .label, .pin__stick > .label { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.blue .label, .contact__info .label { color: var(--ice); }
.h2 { margin: 0; font-size: clamp(40px, 7vw, 120px); line-height: .92; letter-spacing: -.036em; font-weight: 600; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 4.5vw, 64px); }
.all-link { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.all-link b { color: var(--accent); }
.blue { background: var(--blue); color: var(--white); }
.blue .eyebrow { color: var(--ice); }
.ink { background: var(--deep); color: var(--paper); }
.ink .eyebrow { color: var(--on-deep-muted); }

/* pinned about */
.pin { position: relative; height: 340vh; }
.pin__stick { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; align-content: center; gap: 22px; padding: 90px var(--g); overflow: hidden; text-align: center; }
.pin__stick .eyebrow { margin: 0; }
.pin__text { margin: 0; max-width: 21ch; font-size: clamp(30px, 4.6vw, 76px); line-height: 1.08; letter-spacing: -.022em; font-weight: 600; }
.pin__text .c { color: var(--fg); opacity: .16; display: inline-block; white-space: pre; transition: opacity .2s linear, color .2s linear, transform .35s var(--ease); }
.pin__text .c.on { opacity: 1; }
.pin__text .c.hot { opacity: 1; color: var(--accent); transform: translateY(-.05em) rotate(-4deg) scale(1.06); }
.pin .sticker.pop { transform: rotate(var(--rot, 0deg)) scale(1); }
.pin .s1 { left: 10%; top: 22%; } .pin .s2 { right: 8%; top: 32%; } .pin .s3 { left: 13%; bottom: 20%; } .pin .s4 { right: 12%; bottom: 15%; }
@media (max-width: 820px) { .pin { height: 280vh; } .pin__text { max-width: 17ch; }
  .pin .s1 { left: 6%; top: 13%; } .pin .s2 { right: 5%; top: 20%; } .pin .s3 { left: 5%; bottom: 17%; } .pin .s4 { right: 6%; bottom: 10%; } .pin .pill { font-size: 12px; padding: 7px 12px; } }

/* ribbon of work, each at its true ratio */
.ribbon { overflow: hidden; padding: 0; }
.ribbon__track { display: flex; gap: clamp(10px, 1.2vw, 18px); width: max-content; align-items: center; height: calc(var(--H) * 1.08); will-change: transform; }
.ribbon__s { flex: none; display: block; width: min(calc(var(--H) * var(--ar)), 64vw); aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; background: rgb(var(--white-rgb) / .08); }
.ribbon__s img { width: 100%; height: 100%; }
.ribbon--css .ribbon__track { animation: marquee 110s linear infinite; padding-inline-end: clamp(10px, 1.2vw, 18px); }
.ribbon--css.off .ribbon__track { animation-play-state: paused; }

/* ---------- a project as a fan of its real pieces, at their true ratios ---------- */
.spread { position: relative; width: 100%; height: 100%; --open: 1; }
.spread__p { position: absolute; left: 50%; top: 50%; height: 76%; width: auto; aspect-ratio: var(--ar); border-radius: clamp(6px, .7vw, 12px);
  box-shadow: 0 20px 44px -20px rgb(var(--shade-rgb) / .55);
  transform: translate(-50%, -50%) translateX(calc(var(--k) * 30% * var(--open))) translateY(calc(var(--ak) * 4% * var(--open))) rotate(calc(var(--k) * 7deg * var(--open))) scale(calc(1 - var(--ak) * .1));
  transition: transform 1.3s cubic-bezier(.65, 0, .35, 1); }
.spread__p.wide { height: auto; width: 62%; }
.spread[data-n="1"] .spread__p { height: 84%; }
.spread[data-n="1"] .spread__p.wide { height: auto; width: 84%; }

.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4.5vw, 72px) clamp(16px, 2vw, 32px); }
.pgrid > :nth-child(even) { margin-top: clamp(60px, 10vw, 170px); }
.pcard { display: block; perspective: 1200px; }
.pcard__stage { position: relative; aspect-ratio: 5 / 4; border-radius: clamp(16px, 1.8vw, 28px); background: var(--stage, var(--ice)); overflow: hidden; transform-origin: 50% 100%; }
html.js .pcard__stage { clip-path: inset(28% 8% 0 8% round clamp(16px, 1.8vw, 28px)); transform: rotateX(16deg) scale(.93); transition: clip-path 1.4s var(--ease), transform 1.4s var(--ease); }
html.js .pcard.in .pcard__stage { clip-path: inset(0 0 0 0 round clamp(16px, 1.8vw, 28px)); transform: none; }
.pcard:hover .spread, .pcard:focus-visible .spread { --open: 1.4; }
.pcard__badge { position: absolute; top: 14px; left: 14px; z-index: 20; }
.pcard__go { position: absolute; right: 14px; bottom: 14px; z-index: 20; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .45s var(--ease); }
.pcard__go svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard:hover .pcard__go, .pcard:focus-visible .pcard__go { transform: none; }
.pcard__meta { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin-top: 16px; }
.pcard__title { font-size: clamp(26px, 2.6vw, 44px); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.pcard__cat { font: 500 14px var(--sans); color: var(--muted); align-self: center; text-align: end; }
.pcard__line { grid-column: 1 / -1; margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .pgrid { grid-template-columns: 1fr; } .pgrid > :nth-child(even) { margin-top: 0; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 90px); border-top: 1px solid var(--line); }
.fact { padding-top: 18px; }
.fact b { display: block; font-size: clamp(46px, 6vw, 100px); line-height: .9; letter-spacing: -.04em; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* more work */
.keep { position: relative; text-align: center; padding: clamp(90px, 12vw, 190px) var(--g); }
.keep__t { margin: 0 auto; max-width: 15ch; font-size: clamp(44px, 7.4vw, 132px); line-height: .94; letter-spacing: -.04em; font-weight: 600; }
.keep.in .sticker { transform: rotate(var(--rot, 0deg)) scale(1); }
.keep .s1 { left: 7%; top: 18%; } .keep .s2 { right: 5%; top: 16%; } .keep .s3 { right: 11%; bottom: 20%; }
.keep .btn { margin-top: clamp(30px, 4vw, 52px); }
@media (max-width: 820px) { .keep .sticker { position: static; margin: 16px 4px 0; } .keep .btn { display: flex; width: fit-content; margin-inline: auto; } }

/* services path */
.path { position: relative; }
.path__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.path__svg path { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; }
.path__head { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); z-index: 0; will-change: transform; }
.path__list { position: relative; z-index: 1; display: grid; gap: clamp(56px, 8vw, 130px); padding: clamp(20px, 3vw, 40px) 0; }
.prog { width: min(560px, 100%); justify-self: start; background: var(--bg); border-radius: var(--r); padding: clamp(20px, 2vw, 30px); box-shadow: inset 0 0 0 1px var(--line); }
.prog:nth-child(even) { justify-self: end; }
html.js .prog { transform: scale(.88) rotate(-2.5deg); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.4, .64, 1), opacity .4s var(--ease); }
html.js .prog:nth-child(even) { transform: scale(.88) rotate(2.5deg); }
html.js .prog.on { transform: none; opacity: 1; }
.prog__n { font: 500 12px var(--mono); color: var(--muted); }
.prog h3 { margin: 10px 0 6px; font-size: clamp(30px, 3.4vw, 56px); line-height: .98; letter-spacing: -.032em; font-weight: 600; }
.prog__line { margin: 0 0 8px; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; color: var(--accent); }
.prog__what { margin: 0; color: var(--muted); font-size: 15px; }
.prog__proof { display: flex; align-items: center; gap: 14px; margin-top: 18px; min-height: 48px; }
.prog__thumbs { display: flex; align-items: center; }
.prog__thumbs img { height: 48px; width: auto; border-radius: 8px; box-shadow: 0 0 0 3px var(--bg); }
.prog__thumbs img + img { margin-inline-start: -10px; }
.prog__proof a { white-space: nowrap; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-block: 8px; }
@media (max-width: 760px) { .prog, .prog:nth-child(even) { justify-self: stretch; width: 100%; } .path__svg path { stroke-width: 8; stroke-opacity: .55; } .path__head { display: none; } }

/* founders */
.duo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: clamp(16px, 3vw, 48px); }
.person h3 { margin: 0; font-size: clamp(64px, 11vw, 200px); line-height: .86; letter-spacing: -.042em; font-weight: 600; color: var(--accent); }
.person .role { margin: 18px 0 6px; font-weight: 600; font-size: clamp(18px, 1.5vw, 22px); }
.person p { margin: 0; color: var(--muted); max-width: 36ch; }
.person:last-child { text-align: end; }
.person:last-child p { margin-inline-start: auto; }
.duo__bridge { width: clamp(80px, 12vw, 200px); margin-bottom: clamp(40px, 6vw, 110px); overflow: visible; }
.duo__bridge path { fill: none; stroke: var(--fg); stroke-width: 14; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1.3s var(--ease) .25s; }
.duo.in .duo__bridge path { stroke-dashoffset: 0; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } .duo__bridge { margin: 0; width: 90px; } .person:last-child { text-align: start; } .person:last-child p { margin-inline-start: 0; } }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--deep-card); border-radius: var(--r); padding: clamp(20px, 2vw, 30px); min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .4s var(--ease), background var(--t); }
.step:hover { transform: translateY(-6px); background: var(--blue); }
.step:hover p { color: var(--ice); }
.step span { font-family: var(--mono); color: var(--ice); font-size: 13px; }
.step h3 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 42px); letter-spacing: -.03em; font-weight: 600; }
.step p { margin: 0; color: var(--on-deep-muted); font-size: 15px; transition: color var(--t); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; gap: 36px; } }

/* faq */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.faq .head { grid-column: 1 / span 4; display: block; }
.faq__list { grid-column: 6 / -1; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .faq .head, .faq__list { grid-column: 1 / -1; } }
details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; min-height: 44px; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
summary i { flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; transition: transform var(--t) var(--ease), background var(--t), color var(--t); }
summary i::before, summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] summary i { transform: rotate(45deg); background: var(--blue); color: var(--white); box-shadow: none; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
details[open]::details-content { block-size: auto; }
details p { margin: 0 0 22px; max-width: 60ch; color: var(--muted); }

/* contact + footer */
.contact__big { margin: 0; font-size: clamp(56px, 11vw, 210px); line-height: .9; letter-spacing: -.042em; font-weight: 600; }
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: clamp(44px, 5.5vw, 90px); }
.contact__info { grid-column: 1 / span 4; display: grid; gap: 24px; align-content: start; }
.contact__info .label { display: block; margin-bottom: 6px; }
.contact__info a { font-size: clamp(20px, 2vw, 30px); font-weight: 600; border-bottom: 2px solid rgb(var(--white-rgb) / .4); transition: border-color var(--t); }
.contact__info a:hover { border-color: var(--white); }
.form { grid-column: 6 / -1; display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label, .chips legend { font-size: 15px; font-weight: 500; color: var(--ice); }
.field input, .field textarea { width: 100%; background: transparent; color: var(--white); border: 0; border-bottom: 1.5px solid rgb(var(--white-rgb) / .8); border-radius: 0; padding: 10px 0; font: 500 clamp(18px, 1.6vw, 24px) var(--sans); outline: none; resize: vertical; transition: border-color var(--t); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 4px; border-radius: 2px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { width: 100%; margin-bottom: 10px; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgb(var(--white-rgb) / .5); font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--quick), color var(--quick), transform var(--t) var(--ease); }
.chip span:active { transform: scale(.95); }
.chip input:checked + span { background: var(--white); color: var(--blue); }
.chip input:focus-visible + span { outline: 2px solid var(--white); outline-offset: 2px; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__status { margin: 0; font-weight: 600; min-height: 1.5em; }
@media (max-width: 860px) { .contact__info, .form { grid-column: 1 / -1; } }
.footer { background: var(--blue); color: var(--white); padding: 0 var(--g) 22px; }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 26px 0; border-top: 1px solid rgb(var(--white-rgb) / .3); }
.footer__links { display: flex; gap: 8px 24px; flex-wrap: wrap; font-weight: 600; }
.footer__links a { padding-block: 8px; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.footer__links a:hover { background-size: 100% 1.5px; }
.footer__mark { overflow: hidden; }
.footer__mark svg { width: 100%; height: auto; fill: var(--white); }
.footer__mark path { transform-box: fill-box; transform: translateY(105%); transition: transform 1s var(--ease); }
.footer__mark path:nth-child(2) { transition-delay: .07s; } .footer__mark path:nth-child(3) { transition-delay: .14s; } .footer__mark path:nth-child(4) { transition-delay: .21s; }
.footer__mark.in path { transform: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; color: var(--ice); }

/* ---------- work index ---------- */
.page-head { padding: calc(var(--nav-h) + clamp(60px, 9vw, 130px)) var(--g) clamp(28px, 3.5vw, 48px); }
.page-head h1 { margin: 0; font-size: clamp(64px, 14vw, 250px); line-height: .88; letter-spacing: -.042em; font-weight: 600; color: var(--accent); }
.page-head p { max-width: 46ch; color: var(--muted); font-size: clamp(16px, 1.3vw, 20px); margin: 22px 0 0; }
.index-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--fg); font-weight: 600; font-size: 14px; transition: background var(--quick), color var(--quick); }
.filter sup { font-family: var(--mono); font-size: 10px; margin-inline-start: 3px; }
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filter:not([aria-pressed="true"]):hover { background: var(--bar); }
.view { display: flex; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.view button { min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: background var(--quick), color var(--quick); }
.view button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.index { padding: 0 var(--g) clamp(72px, 9vw, 140px); }
/* masonry: every cover keeps the ratio it was designed at */
.cards { columns: 3; column-gap: clamp(14px, 1.6vw, 24px); }
.card { display: block; break-inside: avoid; margin-bottom: clamp(28px, 3vw, 44px); }
.card__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: var(--ar, 4 / 5); background: var(--card); color: var(--fg); }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .9s var(--ease), opacity .3s; }
.card__media video { opacity: 0; }
.card__media.playing video { opacity: 1; }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.03); }
.card__media .pill { position: absolute; top: 12px; left: 12px; font-size: 12px; padding: 6px 11px; z-index: 2; }
.card__view { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: var(--white); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease); }
.card__view svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__view, .card:focus-visible .card__view { transform: none; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.card__title { font-size: clamp(20px, 1.9vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.card__cat { font-size: 14px; color: var(--muted); text-align: end; }
.cards.fade .card { animation: cardIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 1000px) { .cards { columns: 2; } }
@media (max-width: 560px) { .cards { columns: 1; } }
.rows { border-top: 1px solid var(--line); }
.rowp { display: grid; grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, .8fr) 64px; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); transition: color var(--quick); }
.rowp > * { transition: transform .4s var(--ease); }
.rowp:hover { color: var(--accent); }
.rowp:hover > * { transform: translateX(14px); }
[dir="rtl"] .rowp:hover > * { transform: translateX(-14px); }
.rowp__n, .rowp__y { font: 500 13px var(--mono); color: var(--muted); }
.rowp__y { text-align: end; }
.rowp__t { font-size: clamp(22px, 2.4vw, 40px); font-weight: 600; letter-spacing: -.026em; line-height: 1.05; }
.rowp__l { color: var(--muted); font-size: 15px; line-height: 1.4; }
.rowp__c { font: 500 14px var(--sans); color: var(--muted); }
@media (max-width: 860px) { .rowp { grid-template-columns: 1fr auto; } .rowp__n, .rowp__l, .rowp__c { display: none; } }
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(200px, 18vw, 290px); border-radius: 12px; overflow: hidden; pointer-events: none; opacity: 0; scale: .8; transition: opacity .2s, scale .3s var(--ease); box-shadow: 0 24px 50px -20px rgb(var(--shade-rgb) / .5); }
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: auto; }
@media (hover: none) { .peek { display: none; } }

/* ---------- project page ---------- */
.p-open { padding: calc(var(--nav-h) + clamp(44px, 6vw, 90px)) var(--g) 0; }
.p-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.p-open h1 { margin: 0; font-size: clamp(50px, 8vw, 140px); line-height: .9; letter-spacing: -.04em; font-weight: 600; color: var(--accent); }
.p-open__line { margin: 18px 0 0; max-width: 48ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; color: var(--muted); }
.p-open__stage { height: max(380px, min(66svh, 100svh - 470px)); border-radius: clamp(18px, 2vw, 32px); background: var(--stage, var(--ice)); overflow: hidden; margin-top: clamp(26px, 3vw, 44px); }
.p-open__stage .spread__p { cursor: zoom-in; }
.p-meta-wrap { padding: clamp(30px, 4vw, 56px) var(--g) 0; }
.p-meta { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin: 0; }
.p-meta > div { grid-column: span 3; border-top: 1.5px solid var(--fg); padding-top: 12px; }
.p-meta > div:last-child { grid-column: span 6; }
.p-meta dt { margin-bottom: 4px; color: var(--muted); }
.p-meta dd { margin: 0; font-weight: 600; }
.p-film { padding: clamp(48px, 6vw, 90px) var(--g) 0; }
.p-film video { width: 100%; max-height: 86vh; border-radius: var(--r); background: var(--night); }
.p-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; padding: clamp(56px, 7vw, 110px) var(--g); }
.p-body .eyebrow { grid-column: 1 / span 3; }
.p-body__text { grid-column: 4 / span 7; }
.p-body__text p { margin: 0 0 1em; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; }
.p-body__text p:first-child { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; }
@media (max-width: 760px) { .p-meta > div, .p-meta > div:last-child { grid-column: 1 / -1; } .p-body .eyebrow, .p-body__text { grid-column: 1 / -1; } }
.sets { display: grid; gap: clamp(72px, 9vw, 150px); padding: 0 var(--g); }
/* the work alone, centred: no side panel */
.series { width: 100%; max-width: 1120px; margin-inline: auto; min-width: 0; }
.series__side { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 14px; align-content: start; }
.series__side .eyebrow { margin: 0; }
.series__title { margin: 0; font-size: clamp(28px, 3vw, 48px); line-height: 1; letter-spacing: -.03em; font-weight: 600; }
.series__count { display: none; margin: 6px 0 0; font-weight: 600; letter-spacing: -.032em; line-height: 1; font-size: clamp(48px, 5vw, 88px); color: var(--accent); font-variant-numeric: tabular-nums; }
.series__count span { color: var(--muted); font-size: .4em; letter-spacing: 0; }
.series__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 260px; }
.series__thumbs a { aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--card); opacity: .45; display: grid; place-items: center; transition: opacity var(--quick), box-shadow var(--quick); }
.series__thumbs a:hover { opacity: .8; }
.series__thumbs a.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.series__thumbs img { max-width: 100%; max-height: 100%; }
.series__hint { margin: 0; font-size: 13px; color: var(--muted); }
.series__media { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: clamp(10px, 1.2vw, 18px); align-items: start; min-width: 0; }
.series__item { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--card); }
.series__item img, .series__item video { width: 100%; height: auto; }
.series__item img { cursor: zoom-in; }
.series--short .series__media { --cols: 2; }
@media (max-width: 900px) {
  .series { grid-template-columns: 1fr; }
  .series__side { position: static; grid-template-columns: 1fr auto; align-items: end; }
  .series__count { grid-column: 2; grid-row: 1 / span 2; }
  .series__thumbs, .series__hint { display: none; }
  .series__media[style*="--cols:3"] { --cols: 2 !important; }
}
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--g) clamp(48px, 6vw, 96px); }
.compare-wrap h2 { grid-column: 1 / -1; margin: 0 0 8px; font-size: clamp(28px, 3.4vw, 54px); letter-spacing: -.03em; font-weight: 600; }
@media (max-width: 700px) { .compare-wrap { grid-template-columns: 1fr; } }
.compare { position: relative; border-radius: var(--r); overflow: hidden; user-select: none; --p: 50%; background: var(--card); }
.compare img { width: 100%; height: auto; pointer-events: none; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.compare__after img { height: 100%; }
.compare__bar { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-inline-start: -1px; background: var(--white); pointer-events: none; }
.compare__bar::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111218' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 6px 20px rgb(var(--shade-rgb) / .25); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; touch-action: pan-y; }
.compare .pill { position: absolute; top: 12px; font-size: 12px; padding: 6px 10px; pointer-events: none; }
.compare .l { left: 12px; } .compare .r { right: 12px; }
.compare input:focus-visible ~ .compare__bar::after { outline: 3px solid var(--blue); }
.p-next2 { padding: clamp(72px, 9vw, 140px) var(--g) clamp(40px, 5vw, 80px); }
@media (max-width: 760px) {
  /* phone: the fan is sized by width, so every piece stays whole inside its stage */
  .p-open__stage, .p-next2 .pcard__stage { height: auto !important; aspect-ratio: 1 / 1 !important; }
  .p-open__stage .spread__p, .p-next2 .spread__p { height: auto; width: 54%; }
  .p-open__stage .spread__p.wide, .p-next2 .spread__p.wide { width: 74%; }
  .p-open__stage .spread[data-n="1"] .spread__p { width: 80%; }
  .p-open__stage .spread__p[style*="--ak:2"] { display: none; }
}

/* lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(var(--night-rgb) / .97); color: var(--white); overflow: hidden; }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbIn .3s var(--ease); }
.lb::backdrop { background: transparent; }
@keyframes lbIn { from { opacity: 0; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--g); font: 500 13px var(--mono); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; }
.lb__stage img { width: auto; height: auto; max-height: calc(100dvh - 172px); max-width: min(100%, 1400px); border-radius: 8px; user-select: none; -webkit-user-drag: none; transition: opacity .2s, transform .3s var(--ease); }
html.js .lb__stage img.swap { opacity: 0; transform: translateX(var(--dx, 0)); }
.arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background var(--quick), color var(--quick); }
.arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb .arrow { box-shadow: inset 0 0 0 1.5px rgb(var(--white-rgb) / .3); color: var(--white); }
.lb .arrow:hover { background: var(--white); color: var(--ink); }
.lb__prev, .lb__next { position: absolute; top: 50%; translate: 0 -50%; }
.lb__prev { left: var(--g); } .lb__next { right: var(--g); }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--g) 18px; scrollbar-width: none; justify-content: safe center; }
.lb__thumbs button { flex: none; height: 52px; min-width: 40px; border-radius: 6px; overflow: hidden; opacity: .4; transition: opacity var(--quick); }
.lb__thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--white); }
.lb__thumbs img { height: 100%; width: auto; max-width: none; }
@media (max-width: 600px) { .lb__prev, .lb__next { display: none; } .lb__stage img { max-height: calc(100dvh - 160px); } }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--blue); color: var(--white); padding: var(--g); }
.nf h1 { margin: 0; font-size: clamp(120px, 30vw, 420px); line-height: .8; letter-spacing: -.045em; font-weight: 600; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .rv, html.js .wipe, .split .w > span, html.js .prog, html.js .prog:nth-child(even), html.js .pcard__stage { opacity: 1; transform: none; clip-path: none; transition: none; }
  .footer__mark path { transform: none; }
  .sticker, .pin .sticker { transform: rotate(var(--rot, 0deg)); }
  .intro, .ink-canvas { display: none; }
  .orbit, .tile, .tile img { animation: none !important; }
  .tile img { opacity: 1; translate: 0 0; }
  .nav__logo svg { clip-path: none; animation: none; } .nav__logo path { animation: none; }
  .pin { height: auto; } .pin__stick { position: static; height: auto; padding-block: 120px; }
  .pin__text .c { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- phones: only animate what the GPU can do alone (transform, opacity) ---------- */
@media (hover: none) {
  .hero__cap { display: none; }
  html.js .wipe, html.js .wipe.in { clip-path: none; }
  html.js .wipe { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
  html.js .wipe.in { opacity: 1; transform: none; }
  html.js .pcard__stage, html.js .pcard.in .pcard__stage { clip-path: inset(0 0 0 0 round clamp(16px, 1.8vw, 28px)); }
  html.js .pcard__stage { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  html.js .pcard.in .pcard__stage { opacity: 1; transform: none; }
  .pin__text .c { transition: opacity .25s linear, color .25s linear; }
  .pin__text .c.hot { transform: none; }
  .intro { animation-delay: 1.15s; animation-duration: .55s; }
  .intro svg { animation-duration: .9s; }
  .intro path { animation-duration: .9s; }
  .tile img, .spread__p { box-shadow: 0 12px 24px -14px rgb(var(--shade-rgb) / .5); }
}

/* ---------- the wave carries the name of the language you are going to ---------- */
html.js .cover__label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-inline: var(--g); text-align: center; color: var(--white); font-weight: 600; font-size: clamp(52px, 11vw, 190px); letter-spacing: var(--track); line-height: 1.2; opacity: 0; }

html.js .cover__label { translate: 0 28px; transition: opacity .4s var(--ease), translate .7s var(--ease); }
html.js .cover.labelled.on .cover__label { opacity: 1; translate: 0 0; transition-delay: .16s; }
html.js .cover.arrived .cover__label { transition: none; }
.cover__label:lang(ar) { letter-spacing: 0; }

/* ---------- Arabic: right to left, joined letters, room for the marks above and below ---------- */
html[lang="ar"] { --track: 0; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] * { letter-spacing: 0 !important; }
html[lang="ar"] :is(.hero__title, .h2, .contact__big, .page-head h1, .p-open h1, .keep__t, .menu a, .person h3, .nf h1) { line-height: 1.22; }
html[lang="ar"] :is(.pin__text, .prog h3, .pcard__title, .series__title, .marquee__item, .card__title, .rowp__t, .step h3, .fact b, .series__count, .p-body__text p:first-child) { line-height: 1.35; }
html[lang="ar"] .hero__title { font-size: min(10.5vw, 15.5vh); }
html[lang="ar"] .split .w { padding: .1em .04em .4em; margin: -.1em -.04em -.4em; }
html[lang="ar"] .pin__text { max-width: 24ch; }
html[lang="ar"] .person h3 { font-size: clamp(56px, 9vw, 168px); }
/* decorative strips keep their left-to-right motion; their words still read right to left */
[dir="rtl"] :is(.marquee__track, .ribbon__track, .spread, .lb, .compare) { direction: ltr; }
[dir="rtl"] :is(.marquee__item, .lb__top) > * { direction: rtl; }
/* arrows point the way you read */
[dir="rtl"] :is(.btn, .all-link, .pcard__go, .card__view, .prog__proof) svg { transform: scaleX(-1); }
[dir="rtl"] .card__meta, [dir="rtl"] .pcard__meta { text-align: start; }

/* ---------- services: separate offers side by side, nothing implies an order ---------- */
.progs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.progs .prog { width: auto; justify-self: stretch; display: flex; flex-direction: column; opacity: 1; }
.progs .prog .prog__proof { margin-top: auto; padding-top: 18px; }
.progs .prog h3 { margin-top: 0; }
html.js .progs .prog:nth-child(n) { transform: translateY(28px); opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
html.js .progs .prog.in { transform: none; opacity: 1; }
@media (max-width: 1000px) { .progs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .progs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html.js .progs .prog:nth-child(n) { opacity: 1; transform: none; } }

/* service cards: a soft blue light follows the cursor, the card lifts, the brand wave draws itself in */
.progs .prog { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(220px, 20vw, 290px); padding: clamp(24px, 2.4vw, 36px); }
html.js .progs .prog.in { transition: opacity 1s var(--ease), transform 1s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease); }
.progs .prog::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(0 2 247 / .14), transparent 60%); opacity: 0; transition: opacity .5s var(--ease); }
:root[data-theme="dark"] .progs .prog::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(70 90 255 / .28), transparent 60%); }
.progs .prog:hover { translate: 0 -6px; box-shadow: inset 0 0 0 1px var(--accent), 0 24px 48px -28px rgb(0 2 247 / .45); }
.progs .prog:hover::before { opacity: 1; }
.prog__wave { width: 72px; height: 14px; margin-bottom: clamp(22px, 2.4vw, 34px); overflow: visible; }
.prog__wave path { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.4s var(--ease) .25s; }
.prog.in .prog__wave path { stroke-dashoffset: 0; }
.progs .prog:hover .prog__wave path { animation: waveRun 1.1s var(--ease); }
@keyframes waveRun { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
.progs .prog h3 { margin-top: auto; }
@media (prefers-reduced-motion: reduce) { .prog__wave path { stroke-dashoffset: 0; } .progs .prog:hover { translate: none; } }

/* ---------- carousel of work ---------- */
.car { position: relative; --cw: clamp(150px, 14vw, 250px); height: calc(var(--cw) * 1.25 * 1.5 + clamp(56px, 7vw, 110px)); }
.car__item { position: absolute; left: 50%; top: 50%; width: var(--cw); margin: calc(var(--cw) * -.625) 0 0 calc(var(--cw) / -2); aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: rgb(var(--white-rgb) / .08); box-shadow: 0 30px 60px -30px rgb(var(--shade-rgb) / .6); will-change: transform, opacity; }
.car__item img { width: 100%; height: 100%; object-fit: cover; }
.car__item:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }
@media (max-width: 760px) { .car { --cw: 32vw; } }

/* ---------- service icons ---------- */
.prog__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: clamp(22px, 2.4vw, 34px); border-radius: 16px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); transition: background .6s var(--ease), color .6s var(--ease), rotate .8s var(--ease), scale .8s var(--ease); }
.prog__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prog__icon svg > * { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 120ms + .2s); }
.prog.in .prog__icon svg > * { stroke-dashoffset: 0; }
html:not(.js) .prog__icon svg > * { stroke-dashoffset: 0; }
.progs .prog:hover .prog__icon { background: var(--blue); color: var(--white); rotate: -6deg; scale: 1.08; }
@media (prefers-reduced-motion: reduce) { .prog__icon svg > * { stroke-dashoffset: 0; } .progs .prog:hover .prog__icon { rotate: none; scale: none; } }
