/* Portfolio — October 2026, Swiss grid edition.
   One stylesheet; the older globals/white-study/portrait-editorial files are no longer built. */

@font-face {
  font-family: 'Host Grotesk';
  src: url(fonts/host-grotesk-latin-wght-normal.woff2) format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Megan';
  src: url(fonts/megan-display.woff2) format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Year of The Camel';
  src: url(fonts/year-of-the-camel-bold-latin.woff2) format('woff2');
  font-weight: 700; font-style: normal; font-display: block;
  unicode-range: U+0020-007E, U+00A0, U+2013-2014, U+2019, U+201C-201D;
}
@font-face {
  font-family: 'Guesswhat Exceptional';
  src: url(fonts/guesswhat-exceptional-arabic.woff2) format('woff2');
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: 'Alexandria';
  src: url(fonts/alexandria-arabic-wght-normal.woff2) format('woff2');
  font-weight: 100 900;
  font-style: normal;
  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+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  color-scheme: light;
  --paper: #ececea;
  --ink: #000;
  --muted: #5d5d59;
  --rule: rgb(0 0 0 / .16);
  --line: rgb(0 0 0 / .07);
  --signal: #1f3bff;
  --on-tint: #efede7;
  --on-tint-muted: rgb(239 237 231 / .66);
  --m: clamp(16px, 2.6vw, 40px);
  --g: clamp(10px, 1.5vw, 24px);
  --bar: 56px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --serif: 'Megan', 'Year of The Camel', 'Times New Roman', serif;
  --arabic-display: 'Guesswhat Exceptional', 'Alexandria', serif;
  --font: 'Host Grotesk', 'Alexandria', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[lang='ar'] { font-family: 'Alexandria', var(--font); }
.arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* One rule for every image group: no mats, nothing cropped. Wide work alone, portrait and
   square work side by side, all standing on the same bottom line inside a fixed box. */
.media-set { --gap: clamp(8px, .9vw, 14px); position: relative; display: block; width: 100%; height: 100%; container-type: size; }
/* Widths follow each image's proportions, so every image in a group shares one height,
   and the group grows until it meets the box's width or height. */
.media-row { position: absolute; left: 0; bottom: 0; display: flex; gap: var(--gap); width: min(100cqw, calc(100cqh * var(--sum) + (var(--n) - 1) * var(--gap))); }
.media-row img { display: block; flex: var(--r) 1 0; min-width: 0; width: 0; height: auto; }

.skip-link { position: fixed; left: 12px; top: 10px; z-index: 90; padding: 10px 14px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus-visible { transform: none; }

/* 12-column grid shared by every section */
.hero-info, .hero-middle, .section-head, .plate-inner, .case-head, .about-grid, .contact-row, .bar {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
}
.grid-lines { position: absolute; inset: 0 var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); pointer-events: none; }
.grid-lines i { border-left: 1px solid var(--line); transform-origin: top; }
.grid-lines i:nth-child(12) { border-right: 1px solid var(--line); }
.grid-lines i:nth-child(13) { display: none; }

/* Header: inverts against whatever sits under it */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar); align-items: center; padding: 0 var(--m);
  color: #fff; mix-blend-mode: difference; font-size: 14px; transition: opacity .3s;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wordmark { grid-column: 1 / 4; font-weight: 600; letter-spacing: -.01em; }
.bar .clock { grid-column: 5 / 8; }
.bar nav { grid-column: 9 / 13; display: flex; justify-content: flex-end; gap: clamp(14px, 2vw, 32px); }
.bar nav a { position: relative; padding: 6px 0; }
.bar nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.bar nav a:hover::after, .bar nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.bar :focus-visible { outline-color: #fff; }
.clock { font-variant-numeric: tabular-nums; white-space: nowrap; }
.clock-city { opacity: .6; }
.case-open .bar { opacity: 0; pointer-events: none; }

/* Hero: Swiss poster on the grid */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar) + clamp(18px, 3vh, 36px)) var(--m) 0; display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.hero-info { position: relative; padding-top: 14px; border-top: 1px solid var(--ink); font-size: 14px; line-height: 1.38; }
.hero-info .cell { position: relative; grid-column: span 3; }
.hero-info .cell::before, .hero-info::after { content: '+'; position: absolute; top: -14px; left: 0; transform: translate(-50%, -50%); font-size: 15px; line-height: 1; font-weight: 400; }
.hero-info::after { left: auto; right: 0; top: 0; transform: translate(50%, -50%); }
.cell-contact { display: flex; flex-direction: column; align-items: flex-start; }
.cell-contact a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.cell-contact a:hover { text-decoration-color: currentColor; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 2.4s ease-in-out infinite; }
.hero-middle { position: relative; grid-template-rows: auto auto; align-content: center; padding: clamp(28px, 5vh, 64px) 0 clamp(36px, 7vh, 88px); }
.hero-statement { grid-column: 7 / 13; grid-row: 1; font-size: clamp(24px, 2.5vw, 44px); line-height: 1.1; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; }
.hero-statement > span { display: block; }
.hero-statement .st-tail { color: var(--muted); }
.rotor { color: var(--signal); min-height: 1.1em; }
.rotor::after { content: ','; }
.rotor-visual { display: inline-block; white-space: nowrap; }
.hero-statement .w { display: inline-block; white-space: nowrap; overflow: clip; overflow-clip-margin: .2em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-actions { grid-column: 7 / 13; grid-row: 2; display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 3vh, 32px); }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color .3s, color .3s, transform .3s var(--ease); transform: translate(var(--mx, 0px), var(--my, 0px)); }
.button:hover { background: var(--ink); color: var(--paper); }
.button-solid { background: var(--ink); color: var(--paper); }
.button-solid:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.hero-name {
  position: relative; display: flex; flex-wrap: wrap; column-gap: .24em; margin: 0 -.02em; padding-bottom: calc(.16em + clamp(4px, 1vh, 12px));
  font-family: var(--serif); font-size: min(calc((100vw - 2 * var(--m)) / 7.45), 320px); font-weight: 400; font-synthesis: none; line-height: .9; letter-spacing: -.02em; white-space: nowrap;
}
.hy { margin-inline: 0; }
.ch { display: inline-block; text-align: center; }
.count { font-variant-numeric: tabular-nums; }
.line { display: inline-block; overflow: hidden; padding: .14em .06em .22em 0; margin: -.14em -.06em -.22em 0; vertical-align: top; }
.line > span { display: inline-block; }

/* Client marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--ink); padding: 16px 0 14px; font-size: clamp(26px, 3.4vw, 54px); font-weight: 600; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span { display: flex; }
.marquee-track > span > span { display: inline-flex; align-items: center; }
.marquee i { font-style: normal; color: var(--signal); margin: 0 .5em; font-weight: 400; }

/* Section heads */
.section-head { align-items: end; padding: clamp(56px, 9vh, 100px) var(--m) clamp(20px, 3vh, 32px); }
.section-head h2 { grid-column: 1 / 9; font-family: var(--serif); font-weight: 400; font-synthesis: none; font-size: clamp(54px, 9vw, 168px); letter-spacing: -.025em; line-height: .9; }
#about-title { font-size: clamp(40px, 3.8vw, 76px); }
.section-head p { grid-column: 9 / 11; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.section-link { grid-column: 11 / 13; justify-self: end; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule); }
.section-link:hover { text-decoration-color: currentColor; }

/* Selected work: plates that stack as you scroll */
.plates { position: relative; }
.plate { position: sticky; top: 0; height: 100svh; background: var(--tint); color: var(--on-tint); overflow: hidden; }
.plate-inner {
  position: relative; height: 100%; grid-template-rows: auto 1fr auto; row-gap: 20px; padding: calc(var(--bar) + 20px) var(--m) var(--m);
  transform: scale(calc(1 - var(--p, 0) * .06)); transform-origin: 50% 0; transition: none;
}
.plate::after { content: ''; position: absolute; inset: 0; background: #000; opacity: calc(var(--p, 0) * .5); pointer-events: none; }
.plate-number { position: absolute; left: calc(var(--m) - .06em); bottom: calc(var(--m) - .16em); font-size: clamp(140px, 24vw, 420px); font-weight: 700; letter-spacing: -.07em; line-height: .8; color: color-mix(in srgb, var(--on-tint) 9%, transparent); pointer-events: none; }
.plate-text { grid-column: 1 / 5; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: relative; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--on-tint) 40%, transparent); }
.plate-meta { font-size: 14px; color: var(--on-tint-muted); }
.plate-name { font-family: var(--serif); font-weight: 400; font-synthesis: none; font-size: clamp(46px, 6.2vw, 112px); letter-spacing: -.02em; line-height: .92; text-wrap: balance; }
.plate-headline { max-width: 20ch; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -.015em; }
.plate-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 11px 18px; border-radius: 999px; background: var(--on-tint); color: var(--tint); font-size: 14px; font-weight: 600; transition: transform .35s var(--ease); }
.plate-inner:hover .plate-cta { transform: translateX(6px); }
.plate-media { grid-column: 5 / 13; grid-row: 1 / 4; position: relative; z-index: 1; }
.plate-media img { transition: transform 1.1s var(--ease); transform-origin: 50% 100%; }
.plate-inner:hover .plate-media img { transform: scale(1.02); }
.plate-progress { white-space: nowrap; grid-column: 11 / 13; grid-row: 1; justify-self: end; position: absolute; right: var(--m); top: calc(var(--bar) + 20px); font-size: 13px; color: var(--on-tint-muted); font-variant-numeric: tabular-nums; }
.plate-inner:focus-visible { outline: 2px solid var(--on-tint); outline-offset: -8px; }

/* Index: one reel. Every cover shares one height and one baseline; only the width changes. */
.index { position: relative; padding-bottom: clamp(8px, 2vh, 24px); }
.section-head .reel-steps { grid-column: 11 / 13; justify-self: end; align-self: end; display: none; gap: 8px; }
.js .section-head .reel-steps { display: flex; }
.reel-steps button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer; border: 1px solid var(--ink); border-radius: 50%; background: transparent; transition: background-color .25s, color .25s; }
.reel-steps button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.reel-steps button:disabled { opacity: .25; cursor: default; }
.reel-wrap { --h: clamp(220px, 44svh, 460px); }
.reel { --gap: clamp(14px, 1.6vw, 28px); position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; padding: 0 var(--m) 6px; -webkit-user-select: none; user-select: none; }
.reel::-webkit-scrollbar { display: none; }
.js .reel { cursor: grab; }
.reel.is-dragging { cursor: grabbing; }
.reel.is-dragging a { pointer-events: none; }
.reel-list { display: flex; gap: var(--gap); width: max-content; }
.reel-item { flex: none; }
.reel-item a { display: grid; row-gap: 12px; justify-items: start; }
.reel-top, .reel-name { width: 0; min-width: 100%; }
.reel-top { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--ink); font-size: 13px; line-height: 1.3; }
.reel-number { font-variant-numeric: tabular-nums; transition: color .3s; }
.reel-category { color: var(--muted); text-align: right; }
.reel-image { display: block; overflow: hidden; }
.reel-image img { width: calc(var(--h) * var(--r)); height: var(--h); max-width: none; transform: translateX(calc(var(--v, 0) * -3%)) scale(1.07); transition: opacity .45s, scale 1s var(--ease); }
.reel-name { font-size: clamp(22px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1; text-wrap: balance; text-decoration: underline 2px transparent; text-underline-offset: .14em; transition: text-decoration-color .3s; }
.reel-item a:hover .reel-number, .reel-item a:focus-visible .reel-number { color: var(--signal); }
.reel-item a:hover .reel-image img, .reel-item a:focus-visible .reel-image img { scale: 1.035; }
.reel-item a:hover .reel-name, .reel-item a:focus-visible .reel-name { text-decoration-color: var(--signal); }
.reel:has(a:hover) .reel-item:not(:hover) .reel-image img, .reel:has(a:focus-visible) .reel-item:not(:focus-within) .reel-image img { opacity: .4; }
.reel-item a:focus-visible { outline: none; }
@property --fade { syntax: '<length>'; inherits: true; initial-value: 0px; }
.reel-wrap { position: relative; }
.js .reel { --fade: 14vw; }
/* The right edge fades so the next covers read as "more this way"; it clears at the end. */
.js .reel { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade, 14vw)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--fade, 14vw)), transparent); transition: --fade .4s; }
.js .reel.at-end { --fade: 0px; }
.reel-more { display: none; position: absolute; right: var(--m); top: calc(34px + var(--h) / 2); translate: 0 -50%; z-index: 2; align-items: center; gap: 10px; padding: 0 20px 0 24px; height: 58px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; box-shadow: 0 10px 30px rgb(0 0 0 / .18); transition: opacity .35s, scale .35s var(--ease), background-color .3s; }
.reel-more svg { animation: nudge 1.6s var(--ease) infinite; }
.js .reel-more { display: inline-flex; }
.reel-more:hover { background: var(--signal); }
.reel-wrap.at-end .reel-more { opacity: 0; scale: .8; pointer-events: none; }
.reel-foot { display: none; align-items: center; gap: 24px; padding: 22px var(--m) 0; }
.js .reel-foot { display: flex; }
.reel-count { flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.reel-count b { font-weight: 600; }
.reel-count span { color: var(--muted); }
.reel-rail { position: relative; flex: 1; height: 4px; border-radius: 2px; background: rgb(0 0 0 / .1); overflow: hidden; }
.reel-thumb { position: absolute; left: 0; top: 0; height: 100%; width: 100%; border-radius: 2px; background: var(--ink); transform-origin: left; }
.reel-hint { flex: none; font-size: 13px; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-mouse { display: none; } .hint-touch { display: inline; } .reel-steps { display: none !important; } .js .reel-more { display: none; } }


/* Case studies. Without JavaScript they read in order; with it they open as a layer. */
.cases { position: relative; }
.case { position: relative; background: var(--tint); color: var(--on-tint); }
.js .case { display: none; }
.js .case.is-open { display: block; position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; }
.case-open { overflow: hidden; }
.case-bar {
  position: sticky; top: 0; z-index: 5; align-items: center; height: var(--bar); padding: 0 var(--m); font-size: 14px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  background: color-mix(in srgb, var(--tint) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--on-tint) 18%, transparent);
}
@supports (backdrop-filter: blur(1px)) { .case-bar { backdrop-filter: blur(16px); } }
.case-close { grid-column: 1 / 4; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--on-tint) 40%, transparent); border-radius: 999px; }
.case-close::before { content: ''; width: 10px; height: 10px; background: linear-gradient(45deg, transparent 45%, currentColor 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45% 55%, transparent 55%); }
.case-close:hover { background: var(--on-tint); color: var(--tint); }
.case-position { grid-column: 4 / 10; justify-self: center; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-position span { color: var(--on-tint-muted); margin-right: 8px; font-variant-numeric: tabular-nums; }
.case-steps { grid-column: 10 / 13; justify-self: end; display: flex; gap: 8px; }
.case-steps a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid color-mix(in srgb, var(--on-tint) 40%, transparent); border-radius: 50%; }
.case-steps a:hover { background: var(--on-tint); color: var(--tint); }
.case :focus-visible { outline-color: var(--on-tint); }
.case-head { position: relative; row-gap: clamp(20px, 3vh, 36px); padding: clamp(40px, 9vh, 110px) var(--m) clamp(40px, 7vh, 80px); }
.case-number { position: absolute; right: var(--m); top: clamp(20px, 4vh, 48px); font-size: clamp(90px, 16vw, 280px); font-weight: 700; letter-spacing: -.07em; line-height: .8; color: color-mix(in srgb, var(--on-tint) 10%, transparent); }
.case-name { grid-column: 1 / 13; position: relative; font-family: var(--serif); font-weight: 400; font-synthesis: none; font-size: clamp(54px, 10.5vw, 200px); letter-spacing: -.025em; line-height: .9; text-wrap: balance; }
.case-facts { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--g); padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--on-tint) 40%, transparent); font-size: 14px; }
.case-facts dt { color: var(--on-tint-muted); margin-bottom: 4px; }
.case-brand dd { display: inline-flex; }
.project-brand { display: flex; align-items: center; height: 38px; }
.project-brand img, .project-brand svg { height: 100%; width: auto; max-width: 190px; object-fit: contain; object-position: left center; }
.brand-monochrome svg { filter: brightness(0); }
.case-headline { grid-column: 1 / 8; font-size: clamp(26px, 2.8vw, 46px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; }
.case-notes { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); }
.case-notes h5 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.case-notes p, .case-lead { font-size: 15.5px; line-height: 1.6; color: var(--on-tint-muted); max-width: 46ch; }
.case-lead { grid-column: 1 / 8; }
.case-body { max-width: 1320px; margin: 0 auto; padding: 0 var(--m); }

/* Galleries inside a case */
.gallery { display: flex; flex-direction: column; gap: clamp(12px, 1.2vw, 18px); min-width: 0; }
.art-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); align-items: start; }
.art-row.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art-row.count-1, .art-row.wide { grid-template-columns: minmax(0, 1fr); }
.artwork { appearance: none; -webkit-appearance: none; display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; position: relative; -webkit-tap-highlight-color: transparent; }
.artwork img { width: 100%; height: auto; max-height: calc(100svh - var(--bar) - 48px); object-fit: contain; margin-inline: auto; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.artwork-panel { aspect-ratio: 632 / 789; overflow: hidden; }
.artwork-panel img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
[data-panel='left'] img { object-position: left center; }
[data-panel='center'] img { object-position: center center; }
[data-panel='right'] img { object-position: right center; }
.connected-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; align-items: start; }
.campaign-story, .congress-story { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.campaign-group { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.campaign-group + .campaign-group { margin-top: clamp(28px, 5vh, 56px); padding-top: clamp(28px, 5vh, 56px); border-top: 1px solid color-mix(in srgb, var(--on-tint) 25%, transparent); }
.kicker { font-size: 13px; color: var(--on-tint-muted); margin-bottom: 8px; }
.campaign-heading h4, .campaign-insight h4 { margin-bottom: 10px; font-size: clamp(26px, 2.6vw, 42px); font-weight: 550; line-height: 1.06; letter-spacing: -.035em; }
.campaign-heading p, .campaign-insight p, .campaign-film > p { max-width: 62ch; font-size: 15px; line-height: 1.6; color: var(--on-tint-muted); }
.campaign-insight { padding: clamp(20px, 2.6vw, 36px); background: color-mix(in srgb, var(--tint) 80%, #fff); }
.campaign-insight blockquote { margin: 22px 0 0; font-family: 'Alexandria', var(--font); font-size: clamp(26px, 3vw, 44px); font-weight: 600; line-height: 1.5; }
.campaign-films { display: grid; gap: 36px; }
.campaign-film { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--on-tint) 25%, transparent); }
.film-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.original-emx { display: flex; flex-direction: column; gap: inherit; }
.film-player { position: relative; width: 100%; isolation: isolate; background: #0b0b0b; }
.film-player video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0b0b0b; }
.film-play { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; padding: 19px; place-items: center; cursor: pointer; border: 1px solid rgb(255 255 255 / .7); border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; transition: transform .35s var(--ease), background-color .3s; }
@supports (backdrop-filter: blur(1px)) { .film-play { backdrop-filter: blur(10px); } }
.film-play svg { width: 100%; height: 100%; fill: currentColor; }
.film-play:hover { background: rgb(255 255 255 / .3); transform: translate(-50%, -50%) scale(1.06); }
.is-enhanced:not(.is-playing) .film-play { display: grid; }
.film-caption { margin-top: 8px; font-size: 12px; color: var(--on-tint-muted); }
.portrait-film { width: min(100%, 360px); }
.carousel-film { min-width: 0; scroll-snap-align: start; }
.carousel-film .film-player { aspect-ratio: 9 / 16; }
.carousel-film video { height: 100%; aspect-ratio: 9 / 16; }
.carousel-film .film-play { width: 54px; height: 54px; padding: 14px; }
.art-carousel { min-width: 0; }
.art-carousel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; font-size: 14px; }
.art-carousel-heading span:last-child { flex: none; font-size: 13px; color: var(--on-tint-muted); }
.art-carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 3); gap: 14px; align-items: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 6px; margin: -6px; }
.art-carousel-track::-webkit-scrollbar { display: none; }
.art-carousel-track > .artwork { scroll-snap-align: start; }
.art-carousel-track .artwork img { max-height: none; }
.art-carousel-controls { display: none; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--on-tint-muted); }
.art-carousel.has-overflow .art-carousel-controls { display: flex; }
.art-carousel-controls div { display: flex; gap: 8px; }
.art-carousel-controls button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; cursor: pointer; border: 1px solid color-mix(in srgb, var(--on-tint) 40%, transparent); border-radius: 50%; background: transparent; color: var(--on-tint); font-size: 18px; }
.art-carousel-controls button:hover:not(:disabled) { background: var(--on-tint); color: var(--tint); }
.art-carousel-controls button:disabled { opacity: .3; cursor: default; }
.case-figure figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--on-tint-muted); }
.congress-moments { display: grid; grid-template-columns: minmax(0, 1.333fr) minmax(0, 1fr) minmax(0, 1.333fr); gap: 14px; align-items: start; }

.case-end { --ask: clamp(22px, 2vw, 30px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px; align-items: stretch; padding: clamp(48px, 7vh, 80px) var(--m) var(--m); }
/* The next-project card is as tall as the contact block beside it, so the two read as one row. */
.case-next { grid-column: 1 / 6; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-rows: auto 1fr auto; column-gap: 20px; row-gap: 6px; padding: 14px; background: var(--tint); color: var(--on-tint); outline: 1px solid color-mix(in srgb, var(--on-tint) 25%, transparent); }
.case-next-label { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--on-tint-muted); }
.case-next-name { grid-column: 1; grid-row: 3; font-family: var(--serif); font-weight: 400; font-synthesis: none; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.01em; line-height: 1.05; }
/* Fixed height (container units need one): the contact block's height minus the card's padding. */
.case-next .plate-media { grid-column: 2; grid-row: 1 / 4; align-self: end; height: calc(var(--ask) * 1.1 + 86px); }
.case-next .media-row { left: auto; right: 0; }
.case-contact { grid-column: 8 / 13; align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 15px; }
.case-contact p { font-size: var(--ask); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 8px; }
.case-contact a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-tint) 40%, transparent); text-underline-offset: 4px; }
.case-contact a:hover { text-decoration-color: currentColor; }
.case-back { margin-top: 16px; }

/* About */
.about { position: relative; padding-bottom: clamp(60px, 10vh, 120px); }
.about-grid { padding: 0 var(--m); row-gap: clamp(40px, 7vh, 90px); }
.about-portrait { grid-column: 1 / 5; }
.about-portrait img { width: 100%; height: auto; }
.about-lead { grid-column: 5 / 13; align-self: end; font-size: clamp(26px, 3.2vw, 54px); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.about-services { grid-column: 1 / 8; }
.about-experience { grid-column: 9 / 13; }
.about-grid h3 { padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; }
.about-services dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--g); }
.about-services dt { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.about-services dd { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.about-experience li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.about-experience li:first-child { padding-top: 0; }
.about-experience strong { font-weight: 600; }
.about-experience span { grid-column: 1; font-size: 14px; color: var(--muted); }
.about-experience small { grid-column: 2; grid-row: 1 / 3; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Contact */
.contact { position: relative; overflow: hidden; padding: clamp(80px, 14vh, 160px) var(--m) 22px; background: var(--signal); color: #fff; --line: rgb(255 255 255 / .14); }
.contact :focus-visible { outline-color: #fff; }
.contact-kicker { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.contact-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 2.4s ease-in-out infinite; }
.contact-title { position: relative; margin: 18px 0 clamp(28px, 5vh, 56px) -.02em; font-family: var(--serif); font-weight: 400; font-synthesis: none; font-size: clamp(60px, 12vw, 224px); letter-spacing: -.025em; line-height: .9; }
.contact-title .line { display: block; }
.contact-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.contact-email { font-size: clamp(26px, 3.6vw, 60px); font-weight: 500; letter-spacing: -.035em; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; text-decoration-color: rgb(255 255 255 / .45); }
.contact-email:hover { text-decoration-color: #fff; }
.copy-email, .contact-whatsapp { padding: 11px 18px; border: 1px solid rgb(255 255 255 / .55); border-radius: 999px; background: transparent; font-size: 14px; cursor: pointer; }
.copy-email, .contact-whatsapp { transition: background-color .3s, color .3s, transform .3s var(--ease); transform: translate(var(--mx, 0px), var(--my, 0px)); }
.copy-email:hover, .contact-whatsapp:hover { background: #fff; color: var(--signal); }
.contact-row { position: relative; align-items: center; margin-top: clamp(80px, 14vh, 160px); padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .4); font-size: 14px; }
.contact-row > p:first-child { grid-column: 1 / 6; }
.contact-links { grid-column: 6 / 10; display: flex; gap: 22px; }
.contact-links a:hover, .back-to-top:hover { text-decoration: underline; text-underline-offset: 3px; }
.back-to-top { grid-column: 10 / 13; justify-self: end; display: inline-flex; align-items: center; gap: 6px; }

/* Viewer */
.art-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 60px 76px 22px; border: 0; background: rgb(12 12 12 / .96); color: #fff; overflow: hidden; overscroll-behavior: contain; }
.art-lightbox[open] { display: grid; place-items: center; }
.art-lightbox::backdrop { background: rgb(0 0 0 / .6); }
.art-lightbox figure { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 0; }
.lightbox-media { max-width: 100%; min-height: 0; }
.art-lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 128px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox-media[data-panel] { width: min(calc((100dvh - 128px) * 632 / 789), 86vw); aspect-ratio: 632 / 789; overflow: hidden; }
.lightbox-media[data-panel] img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.lightbox-media[data-panel='left'] img { object-position: left center; }
.lightbox-media[data-panel='right'] img { object-position: right center; }
.art-lightbox figcaption { display: flex; gap: 14px; font-size: 13px; color: rgb(255 255 255 / .65); }
.lightbox-title { color: #fff; }
.lightbox-count { font-variant-numeric: tabular-nums; }
.lightbox-close, .lightbox-step { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer; border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: transparent; color: #fff; font-size: 18px; }
.lightbox-close:hover, .lightbox-step:hover { background: #fff; color: #000; }
.lightbox-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 18px; z-index: 2; }
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lightbox-step { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox-step[hidden] { display: none; }
.lightbox-previous { left: 18px; }
.lightbox-next { right: 18px; }
.art-lightbox :focus-visible { outline-color: #fff; }

/* Cursor label (fine pointers only) */
.cursor-label { position: fixed; left: 0; top: 0; z-index: 80; padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; pointer-events: none; opacity: 0; transform: translate3d(var(--x, -100px), var(--y, -100px), 0) scale(.6); transition: opacity .2s, transform .25s var(--ease); white-space: nowrap; }
.cursor-label.is-visible { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }

/* First visit: portrait, star and the two names (from Islam's composition), nothing else.
   Everything is placed in units of the photo's side, --P. Only shown when the head script sets html.intro-on. */
.intro {
  --P: min(58svh, 40vw, 620px);
  display: none; position: fixed; inset: 0; z-index: 100; place-items: center; background: var(--paper); overflow: hidden;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
html.intro-on .intro, .intro.is-leaving { display: grid; }
.intro.is-leaving { transform: translateY(-101%); }
html.intro-on { overflow: hidden; }
.intro-stage { position: relative; width: calc(var(--P) * 1.22); height: calc(var(--P) * 1.22); }
.intro-stage > * { position: absolute; display: block; }
.intro-photo { left: calc(var(--P) * .215); top: calc(var(--P) * .128); width: var(--P); height: var(--P); overflow: hidden; background: #6f6f6d; }
.intro-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-star { left: 0; top: 0; width: calc(var(--P) * .41); height: auto; z-index: 1; }
.intro-en, .intro-ar { left: calc(var(--P) * .215); top: calc(var(--P) * 1.05); width: var(--P); height: auto; }
.intro-en { z-index: 2; }
.intro-ar { z-index: 3; }
/* Nothing moves until the photo has loaded; the script adds .is-ready. */
.intro:not(.is-ready) .intro-stage { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .intro.is-ready .intro-photo { animation: reveal 1.1s var(--ease) both; }
  .intro.is-ready .intro-photo img { animation: settle 2.8s var(--ease) both; }
  .intro.is-ready .intro-star { animation: star-in 1.1s var(--ease) .35s both, spin 60s linear 1.45s infinite; }
  .intro.is-ready .intro-en { animation: wipe-ltr 1.1s cubic-bezier(.65, 0, .35, 1) .5s both; }
  .intro.is-ready .intro-ar { animation: wipe-rtl 1.2s cubic-bezier(.65, 0, .35, 1) .85s both; }
}
/* Hero entrance waits until the counter has lifted. */
html.intro-on [data-intro], html.intro-on .hero-name .line > span, html.intro-on .hero .grid-lines i { animation-play-state: paused; }

/* Motion */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes draw { from { transform: scaleY(0); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-rtl { from { clip-path: inset(-.4em -.3em -.4em 100%); } to { clip-path: inset(-.4em -.3em -.4em -.3em); } }
@keyframes wipe-ltr { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }
@keyframes star-in { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes settle { from { scale: 1.08; } to { scale: 1; } }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-name .line > span { animation: rise 1.05s var(--ease) both; }
  .hero-name .line:nth-child(2) > span { animation-delay: .1s; }
  .hero .grid-lines i { animation: draw 1.2s var(--ease) both; }
  .hero .grid-lines i:nth-child(2n) { animation-delay: .08s; }
  .hero .grid-lines i:nth-child(3n) { animation-delay: .16s; }
  [data-intro] { animation: fade-up .9s var(--ease) both; animation-delay: .35s; }
  [data-intro]:nth-child(2) { animation-delay: .42s; }
  [data-intro]:nth-child(3) { animation-delay: .49s; }
  [data-intro]:nth-child(4) { animation-delay: .56s; }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .section-head h2 { overflow: hidden; padding: .14em 0 .2em; margin: -.14em 0 -.2em; }
  .contact-title .line > span { transition: transform 1s var(--ease); }
  .js .contact:not(.is-in) .contact-title .line > span { transform: translateY(105%); }
  .js .contact .contact-title .line:nth-child(2) > span { transition-delay: .08s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .plate-inner { transform: none; }
  .plate::after { opacity: 0; }
}

/* Tablet */
@media (max-width: 1100px) {
  .hero-info .cell { grid-column: span 6; margin-bottom: 14px; }
  .plate-text { grid-column: 1 / 13; grid-row: 1; }
  .plate-headline { max-width: 32ch; }
  /* The artwork fills the rest of the plate and stands on its bottom margin. */
  .plate-media { grid-column: 1 / 13; grid-row: 2 / 4; min-height: 0; }
  .reel-wrap { --h: clamp(220px, 40svh, 420px); }
  .case-headline, .case-lead { grid-column: 1 / 13; }
  .case-notes { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .case-next { grid-column: 1 / 13; }
  .case-contact { grid-column: 1 / 13; }
  .about-portrait { grid-column: 1 / 7; }
  .about-lead { grid-column: 1 / 13; }
  .about-services, .about-experience { grid-column: 1 / 13; }
}


/* Phone */
@media (max-width: 680px) {
  :root { --bar: 52px; }
  .bar .clock { display: none; }
  .wordmark { grid-column: 1 / 6; }
  .bar nav { grid-column: 6 / 13; gap: 14px; }
  .bar nav a[href='#index'] { display: none; }
  .hero { min-height: 0; padding-bottom: 8px; }
  .hero-info .cell { grid-column: 1 / 13; margin-bottom: 10px; }
  .hero-info .cell + .cell::before { display: none; }
  .hero-info .cell:nth-child(2) { display: none; }
  .hero-name { flex-direction: column; font-size: calc((100vw - 2 * var(--m)) / 5); padding-top: 10px; }
  .hero-middle { padding: 36px 0 32px; }
  .hero-statement, .hero-actions { grid-column: 1 / 13; }
  .hero-statement { font-size: clamp(26px, 7.4vw, 34px); }
  .intro { --P: min(calc((100vw - 2 * var(--m)) / 1.22), 56svh); }
  .marquee { padding: 12px 0 10px; }
  .section-head h2 { grid-column: 1 / 13; }
  .section-head p { grid-column: 1 / 7; margin-top: 12px; }
  .section-link { grid-column: 7 / 13; margin-top: 12px; }
  .section-head .reel-steps { grid-column: 7 / 13; margin-top: 12px; }
  .reel-wrap { --h: min(42svh, 320px, calc((100vw - 2 * var(--m)) / 1.78)); }
  .reel { --gap: 12px; }
  .reel-name { font-size: 20px; }
  .reel-foot { padding-top: 14px; gap: 16px; }
  .about { padding-bottom: 48px; }
  .plate { height: auto; min-height: 100svh; }
  .plate-inner { height: auto; min-height: 100svh; grid-template-rows: auto minmax(240px, 1fr); row-gap: 28px; padding-top: calc(var(--bar) + 12px); }
  .plate-name { font-size: clamp(42px, 13vw, 64px); }
  .plate-number { display: none; }
  .plate-progress { top: calc(var(--bar) + 14px); }
  .plate-media { grid-row: 2; }
  .case-bar { grid-template-columns: auto 1fr auto; }
  .case-close { grid-column: 1; }
  .case-position { grid-column: 2; font-size: 13px; padding: 0 10px; }
  .case-steps { grid-column: 3; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .art-row { gap: 7px; }
  .art-carousel-track { grid-auto-columns: 84%; gap: 10px; }
  .art-carousel-controls { display: flex; }
  .congress-moments { gap: 8px; }
  .about-portrait { grid-column: 1 / 13; }
  .about-services dl { grid-template-columns: minmax(0, 1fr); }
  .contact-row > p:first-child, .contact-links, .back-to-top { grid-column: 1 / 13; justify-self: start; margin-bottom: 10px; }
  .art-lightbox { padding: 60px 12px 84px; }
  .art-lightbox img { max-height: calc(100dvh - 178px); }
  .lightbox-step { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
  .lightbox-previous { left: calc(50% - 52px); }
  .lightbox-next { right: calc(50% - 52px); }
}
@media (hover: none), (pointer: coarse) {
  .cursor-label { display: none; }
}
@media print {
  .bar, .marquee, .cursor-label, .reel-foot, .reel-steps, .film-play, .art-carousel-controls { display: none; }
  .js .case { display: block; }
}

/* Phones and tablets: keep scrolling on the compositor. No blend or blur on the fixed header,
   no sticky stacking plates and no scroll-linked transforms, so the page never stalls under a finger. */
@media (hover: none), (pointer: coarse) {
  .bar { mix-blend-mode: normal; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); color: var(--ink); }
  .plate { position: relative; }
  .plate-inner { transform: none; }
  .plate::after { display: none; }
  .case-bar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--tint); }
  .reel-image img { transform: scale(1.04); }
}