/* chadibraidy.com · one stylesheet for every page (built by build.py)
   Identity v3 (2026-09-28): cinematic. Dark full-bleed openings, light reading sections.
   Type: Manrope (UI, body, headings) + Cormorant Garamond italic for ONE accent word per title.
   Never Jad's own fonts (Instrument Serif, Inter Tight), never navy + gold. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #0b1726;
  --ink-2: #3b4a5c;
  --ink-3: #6a7787;
  --line: #e2e7ed;
  --line-2: #cdd5de;
  --accent: #0b7a93;
  --accent-ink: #075e72;
  --accent-tint: #e3f2f6;
  --night: #05080b;
  --night-2: #0a1016;
  --glow: #7fd6e6;
  --on-night: #eef3f7;
  --on-night-2: #a4b1bf;
  --on-night-3: #6f7c8a;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1240px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 23, 38, .04), 0 8px 24px rgba(11, 23, 38, .05);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; }

/* ---------------------------------------------------------------- cinematic image treatment (v3.1)
   Portrait: fades in from black and comes into focus, drifts slowly closer, one light sweep, parallax.
   Scenes and page heads: full-bleed graded stills with letterbox bars and slow drift. */
@keyframes kb { from { transform: scale(1.0) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.2%, -1%, 0); } }
@keyframes develop { from { opacity: 0; filter: blur(14px) brightness(.4); } to { opacity: 1; filter: blur(0) brightness(1); } }
@keyframes sweep-light { 0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(260%) skewX(-18deg); opacity: 0; } }
.hero-photo { will-change: transform; }
.hero-photo img { animation: kb 26s ease-in-out infinite alternate; transform-origin: 62% 30%; filter: contrast(1.06) saturate(.92); }
.js .hero-photo { animation: develop 2.6s var(--ease) var(--intro-d, 0s) both; }
.hero-photo::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(90deg, transparent, rgba(127, 214, 230, .14), rgba(255, 255, 255, .10), transparent);
  animation: sweep-light 3.4s var(--ease) calc(1.6s + var(--intro-d, 0s)) both;
}
.hero::after { box-shadow: inset 0 0 180px 40px rgba(0, 0, 0, .55); }
.bar { position: absolute; left: 0; right: 0; height: 4.5vh; max-height: 44px; background: #000; z-index: 5; pointer-events: none; }
.bar.top { top: 0; } .bar.bottom { bottom: 0; }

.scene { min-height: 86vh; min-height: 86svh; display: flex; align-items: flex-end; }
.scene-img { position: absolute; top: calc(min(4.5vh, 44px) + 28px); bottom: -14%; left: 0; right: 0; z-index: 0; will-change: transform; }
.scene-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) 0%; animation: kb 30s ease-in-out infinite alternate; transform-origin: var(--fx, 50%) 25%; filter: contrast(1.06) saturate(.88);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%); mask-image: linear-gradient(180deg, transparent 0, #000 7%); }
.scene::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 8, 11, .92) 0%, rgba(5, 8, 11, .35) 42%, rgba(5, 8, 11, .1) 70%), linear-gradient(90deg, rgba(5, 8, 11, .55), transparent 55%); }
.scene .wrap { position: relative; z-index: 4; padding-top: 18vh; padding-bottom: calc(clamp(56px, 8vw, 110px) + 4.5vh); }
.scene { min-height: max(86svh, 780px); }
.scene h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: .98; letter-spacing: -0.05em; margin: 0 0 26px; max-width: 14ch; }
@media (min-width: 901px) {
  .scene:not(.text-right) .scene-img { left: 28%; }
  .scene:not(.text-right) .scene-img img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, transparent 0, #000 7%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 26%), linear-gradient(180deg, transparent 0, #000 7%); mask-composite: intersect; }
}
.scene.text-right .wrap { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.scene.text-right .wrap > * { max-width: min(560px, 42vw); }
.scene.text-right::before { background: linear-gradient(0deg, rgba(5, 8, 11, .9) 0%, rgba(5, 8, 11, .25) 40%, rgba(5, 8, 11, .05) 70%), linear-gradient(270deg, rgba(5, 8, 11, .7), transparent 55%); }
.scene + .scene { border-top: 1px solid rgba(255, 255, 255, .04); }

.page-head.has-img { min-height: 72vh; min-height: 72svh; display: flex; align-items: flex-end; }
.page-head.has-img::before { background: linear-gradient(90deg, rgba(5, 8, 11, .94) 0%, rgba(5, 8, 11, .8) 30%, rgba(5, 8, 11, .22) 50%, rgba(5, 8, 11, 0) 62%), linear-gradient(0deg, rgba(5, 8, 11, .85), transparent 40%); }
.ph-img { position: absolute; inset: 64px 0 -8% var(--phl, 22%); z-index: 0; will-change: transform; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 60%) var(--fy, 20%); transform-origin: var(--fx, 60%) 25%; animation: kb 28s ease-in-out infinite alternate; filter: contrast(1.05) saturate(.85);  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%); mask-image: linear-gradient(90deg, transparent 0%, #000 20%); }
.js .ph-img { animation: develop 2.2s var(--ease) both; }
.page-head.has-img .wrap { width: 100%; }
@media (min-width: 901px) { .page-head.has-img .wrap > * { max-width: min(640px, 46vw); } .page-head.has-img h1 { font-size: clamp(46px, 5.6vw, 88px); } }

/* the accent word: one per title, Cormorant italic */
h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.14em; letter-spacing: -0.005em; line-height: .9; color: var(--accent);
}
.night h1 em, .night h2 em { color: var(--glow); }

/* every outlined or filled box of text centres its text (Jad 2026-09-28) */
.btn, .chips li, .filters button, .badge, .label, .tile .ico, .card .code, .pub-group h2 small, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-align: center;
}

.nw { white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  gap: 8px; margin: 0 0 22px; padding: 9px 12px 7px 10px;
  background: var(--accent-tint); color: var(--accent-ink); border-radius: 8px; font-size: 13.5px; font-weight: 700;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.night .label { background: rgba(127, 214, 230, .1); color: var(--glow); }
.night .label::before { background: var(--glow); box-shadow: 0 0 10px var(--glow); }

/* dark, cinematic surfaces */
.night { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.night::after {
  content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------- header: light, open, over the scene */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--on-night); transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; transition: min-height .35s var(--ease); }
.site-header.scrolled { background: rgba(255, 255, 255, .82); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.site-header.scrolled .wrap { min-height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand .brand-mark { width: auto; height: 42px; color: var(--glow); --sw: 1.6; transition: color .35s var(--ease); }
.brand-rule { width: 1px; height: 30px; background: currentColor; opacity: .22; flex-shrink: 0; }
.brand-name { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; }
.brand-role { display: block; font-size: 12px; font-weight: 500; opacity: .62; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  position: relative; font-size: 14.5px; font-weight: 600; text-decoration: none; opacity: .78; padding: 6px 0;
  transition: opacity .2s;
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--glow); }
.site-header.scrolled .nav a[aria-current="page"]::after { background: var(--accent); }
.lang { flex-shrink: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-decoration: none; opacity: .78; padding: 6px 0 6px 22px; border-left: 1px solid rgba(127, 140, 155, .45); }
.lang:hover { opacity: 1; }
.menu-btn { display: none; gap: 10px; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: inherit; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.menu-btn i { display: grid; gap: 5px; width: 22px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; border-radius: 2px; }

/* full-screen menu (phones) */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; padding: 22px var(--gutter) 32px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.menu nav { margin: auto 0; display: grid; gap: 6px; }
.menu nav a {
  font-size: clamp(34px, 9vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; text-decoration: none;
  display: flex; align-items: baseline; gap: 14px;
  transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.menu.open nav a { transform: none; opacity: 1; }
.menu nav a span { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; color: var(--on-night-3); }
.menu nav a[aria-current="page"] { color: var(--glow); }
.menu-foot { display: grid; gap: 6px; font-size: 15px; color: var(--on-night-2); }
.menu-foot a { text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  gap: 10px; font-size: 15.5px; font-weight: 700; text-decoration: none;
  padding: 17px 22px 15px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn span[aria-hidden] { transition: transform .25s var(--ease); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.night .btn { background: transparent; color: var(--on-night); border-color: rgba(238, 243, 247, .28); }
.night .btn:hover { border-color: var(--on-night); }
.night .btn.primary { background: var(--glow); border-color: var(--glow); color: var(--night); }
.night .btn.primary:hover { background: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- hero: the opening scene */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 11, .92) 0%, rgba(5, 8, 11, .72) 34%, rgba(5, 8, 11, .15) 62%, rgba(5, 8, 11, 0) 78%),
    radial-gradient(60% 70% at 72% 48%, rgba(127, 214, 230, .16) 0%, rgba(127, 214, 230, 0) 60%),
    radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .7) 100%);
}
/* Jad 2026-09-28: portrait 10% smaller -> the photo box starts 10% lower, so cover draws him at 0.9x */
.hero-photo { position: absolute; top: 10%; right: 0; bottom: 0; width: 64%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 6%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 6%); mask-composite: intersect; }
.hero .scan { opacity: .32; mix-blend-mode: screen; }
.scan {
  position: absolute; top: 50%; left: 72%; width: min(118vh, 1180px); aspect-ratio: 1; transform: translate(-50%, -50%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-51.5%, -49%) scale(1.04); } }
.scan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan .sweep {
  position: absolute; inset: 9%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 280deg, rgba(127, 214, 230, .06) 330deg, rgba(127, 214, 230, .3) 359deg, transparent 360deg);
  animation: rotate 12s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.scan .pulse { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: .95; } }
.scanline {
  position: absolute; left: 0; right: 0; height: 120px; top: -140px; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(127, 214, 230, .07) 60%, rgba(127, 214, 230, .28) 99%, transparent);
  animation: acquire 7.5s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes acquire { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(100svh + 160px)); opacity: 0; } }
.hero-inner { position: relative; z-index: 4; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 140px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(56px, 8.4vw, 124px); line-height: .96; letter-spacing: -0.05em; margin: 0; font-weight: 800; max-width: 12ch; }
.hero h1 em { display: inline-block; font-size: 1.12em; padding-right: .06em; }
.hero .lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; margin: 30px 0 0; max-width: 38ch; font-weight: 500; color: var(--on-night); }
.hero .sub { margin: 12px 0 0; color: var(--on-night-2); max-width: 48ch; }
.hero-meta {
  position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding-bottom: 28px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-3);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-night-2); }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--glow), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40px; width: 1px; height: 40px; background: #fff; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { transform: translateY(80px); } }

/* opening animation */
.js .hero .rise { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease) calc(var(--d, 0s) + var(--intro-d, 0s)) forwards; }
.hero .rise:nth-child(1) { --d: .05s; }
.hero .rise:nth-child(3) { --d: .75s; }
.hero .rise:nth-child(4) { --d: .9s; }
.hero .rise:nth-child(5) { --d: 1.05s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* institutions marquee, continuing the scene */
.marquee { border-top: 1px solid rgba(238, 243, 247, .08); padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; }
.marquee li { font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); letter-spacing: -0.01em; color: var(--on-night-2); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.marquee li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); opacity: .6; }
.marquee-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 44px 0 var(--gutter); font-size: 12.5px; font-weight: 700; color: var(--on-night-3); background: linear-gradient(90deg, var(--night) 75%, transparent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- page head (inner pages): a shorter scene */
.page-head .ring {
  position: absolute; right: -12%; top: 50%; width: min(90vh, 820px); aspect-ratio: 1; transform: translateY(-50%); z-index: 0; opacity: .9;
}
.page-head .ring svg { width: 100%; height: 100%; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(70% 90% at 85% 50%, rgba(127, 214, 230, .12), transparent 60%), linear-gradient(90deg, var(--night) 35%, rgba(5, 8, 11, .2)); pointer-events: none; }
.page-head .wrap { position: relative; z-index: 2; padding-top: clamp(150px, 16vw, 210px); padding-bottom: clamp(64px, 8vw, 110px); }
.page-head h1 { font-size: clamp(46px, 6.6vw, 96px); line-height: 1; letter-spacing: -0.045em; margin: 0; font-weight: 800; max-width: 16ch; }
.page-head .intro { margin: 24px 0 0; max-width: 58ch; color: var(--on-night-2); font-size: clamp(17px, 1.4vw, 19.5px); }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(72px, 9vw, 132px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .label { margin-bottom: 16px; }
.section-head h2, h2.plain { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; margin: 0; max-width: 20ch; letter-spacing: -0.04em; }
.link { font-weight: 800; font-size: 15px; color: var(--accent-ink); text-decoration: none; border-bottom: 2px solid var(--accent-tint); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-bottom-color: var(--accent); }
.night .link { color: var(--glow); border-bottom-color: rgba(127, 214, 230, .25); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(26px, 2.8vw, 38px); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin: 0; }
.tile p { margin: 0; color: var(--ink-2); }
.tile .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.tile .fig { font-size: clamp(44px, 4.4vw, 62px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.tile.accent { background: var(--night); border-color: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.tile.accent::before { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(127, 214, 230, .25); box-shadow: 0 0 0 30px rgba(127, 214, 230, .04), 0 0 0 60px rgba(127, 214, 230, .025); }
.tile.accent .fig { color: var(--glow); position: relative; }
.tile.accent p { color: var(--on-night-2); position: relative; }
a.tile { transition: border-color .25s, transform .35s var(--ease); }
a.tile:hover { border-color: var(--accent); transform: translateY(-3px); }
a.tile .go { margin-top: auto; font-weight: 800; font-size: 14.5px; color: var(--accent-ink); }

/* at-work gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 20px; color: #fff; font-weight: 700; font-size: 15.5px; background: linear-gradient(transparent, rgba(5, 8, 11, .78)); }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }

/* career path band */
.journey { padding: clamp(80px, 10vw, 140px) 0; }
.journey .bgring { position: absolute; left: 50%; top: 50%; width: 1400px; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(127, 214, 230, .06); box-shadow: 0 0 0 120px rgba(127, 214, 230, .015), 0 0 0 240px rgba(127, 214, 230, .01); pointer-events: none; }
.journey .wrap { position: relative; z-index: 2; }
.journey h2 { font-size: clamp(34px, 4.6vw, 66px); line-height: 1.04; margin: 0 0 clamp(44px, 6vw, 80px); max-width: 18ch; letter-spacing: -0.045em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, rgba(127, 214, 230, .6), rgba(127, 214, 230, .15)); }
.step { position: relative; padding-top: 34px; }
.step::before { content: ""; position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--night); border: 1.5px solid var(--glow); }
.step:last-child::before { background: var(--glow); box-shadow: 0 0 0 5px rgba(127, 214, 230, .15), 0 0 18px var(--glow); }
.step .yr { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-3); }
.step h3 { margin: 10px 0 10px; font-size: clamp(22px, 1.9vw, 28px); letter-spacing: -0.035em; line-height: 1.1; }
.step p { margin: 0; color: var(--on-night-2); font-size: 15.5px; }

/* cards (expertise) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 3vw, 42px); display: flex; flex-direction: column; gap: 14px; }
.card .code { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 800; font-size: 14px; }
.card h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; margin: 4px 0 0; }
.card p { margin: 0; color: var(--ink-2); }
.card .evidence-label { margin: 10px 0 0; font-size: 13px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card .evidence { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.card .evidence li { position: relative; padding-left: 22px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.card .evidence li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-tint); border: 2px solid var(--accent); }

/* rows */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; padding: 22px clamp(20px, 2.6vw, 32px); border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row h3 { margin: 0; font-size: 17.5px; line-height: 1.4; letter-spacing: -0.015em; }
.row p { margin: 0; color: var(--ink-2); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tl-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 24px clamp(20px, 2.6vw, 32px); border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: 0; }
.tl-date { font-size: 14px; font-weight: 800; color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.tl-item.current { background: linear-gradient(90deg, var(--accent-tint) 0%, rgba(227, 242, 246, 0) 70%); }
.tl-item.current .tl-date { color: var(--accent-ink); }
.tl-body h3 { margin: 0; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.4; letter-spacing: -0.015em; }
.tl-body p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; }
.badge { margin-left: 10px; vertical-align: 2px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--accent); padding: 5px 9px; border-radius: 6px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px; align-items: start; }
.two-col > .side h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; margin: 0; letter-spacing: -0.035em; }
.two-col > .side p { margin: 10px 0 0; color: var(--ink-3); font-size: 15px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 15px; font-weight: 700; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; }

/* publications */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink-2); gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.filters .n { font-size: 12px; font-weight: 800; opacity: .75; }
.pub-group { margin-bottom: 48px; }
.pub-group[hidden] { display: none; }
.pub-group h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 16px; }
.pub-group h2 small { font-size: 14px; font-weight: 800; color: var(--accent-ink); background: var(--accent-tint); border-radius: 6px; padding: 6px 9px; letter-spacing: 0; }
.pubs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.pub { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; padding: 20px clamp(20px, 2.6vw, 30px); border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub .year { font-weight: 800; font-size: 15px; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.pub .title { display: block; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.pub .authors { display: block; margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }
.pub .venue { display: block; margin-top: 3px; color: var(--ink-3); font-size: 14px; font-style: italic; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 38px); transition: border-color .25s, transform .35s var(--ease); }
a.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.contact-card .k { font-size: 13px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.contact-card strong { display: block; margin-top: 10px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
a.contact-card:hover strong { color: var(--accent-ink); }

/* contact form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 40px); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 800; color: var(--ink-2); letter-spacing: -0.005em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); width: 100%;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; line-height: 1.4;
  transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%233b4a5c' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-tint); }
.field input:invalid.touched, .field select:invalid.touched, .field textarea:invalid.touched { border-color: #c2413b; }
.form-foot { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 16px; }
.form-status { margin: 0; font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* news */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.news-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 38px); }
.news-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.news-meta .kind { display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 12.5px; font-weight: 800; color: var(--accent-ink); background: var(--accent-tint); border-radius: 6px; padding: 7px 9px 5px; }
.news-meta time { font-size: 14px; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.news-body h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.035em; }
.news-body p { margin: 10px 0 16px; color: var(--ink-2); }

/* closing scene */
.cta { padding: clamp(96px, 12vw, 170px) 0; }
.cta .glowring { position: absolute; left: 50%; top: 50%; width: min(760px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(127, 214, 230, .18); box-shadow: 0 0 0 60px rgba(127, 214, 230, .03), 0 0 0 120px rgba(127, 214, 230, .02), inset 0 0 120px rgba(127, 214, 230, .08); pointer-events: none; }
.cta .wrap { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.cta h2 { font-size: clamp(48px, 7.4vw, 110px); line-height: .98; letter-spacing: -0.05em; margin: 0; }
.cta p { margin: 18px auto 0; color: var(--on-night-2); max-width: 40ch; }
.cta .actions { margin-top: 0; justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 38px; }
.site-footer .brand-name { font-size: 20px; }
.site-footer h4 { margin: 0 0 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--accent-ink); }
.site-footer .fine { color: var(--ink-3); font-size: 15px; margin: 12px 0 0; max-width: 36ch; }
.site-footer .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.credit { margin: 0; text-align: right; }
.credit a { color: var(--ink-2); font-weight: 800; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.credit a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }

/* scroll reveals (only when JS is running; without it everything is simply visible) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- v4 (2026-09-28): the CB signature, the opening, cinematic motion
   Jad: "the whole website make it more impressice", "make some signature CB something very insperational". */
.sig { display: block; overflow: visible; }
.sig path { fill: currentColor; stroke: currentColor; stroke-width: 0; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@keyframes inkfill { to { fill-opacity: 1; stroke-width: 0; } }
/* each pen stroke is normalised to length 1 (pathLength), so the dash trick writes it from start to end */
.js .brand-mark path, .sig.draw path, .intro-sig path { fill-opacity: 0; stroke-width: var(--sw, 1.2); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .brand-mark path { animation: ink .9s var(--ease) calc(.2s + var(--intro-d, 0s) + var(--i) * .1s) forwards, inkfill .6s ease calc(.75s + var(--intro-d, 0s) + var(--i) * .1s) forwards; }
.sig.draw.on path { animation: ink 1.3s var(--ease) calc(var(--i) * .07s) forwards, inkfill .7s ease calc(.9s + var(--i) * .07s) forwards; }
.foot-sig { height: clamp(62px, 6.4vw, 86px); width: auto; color: var(--ink); margin: 0 0 12px -4px; --sw: 1.1; }

/* the opening: first visit of the session, home only. Pure CSS timeline, so it ends even if the script never runs. */
.intro { display: none; }
.intro-on { --intro-d: 2.1s; }
.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 90; animation: gone 0s linear 3.4s forwards; }
@keyframes gone { to { visibility: hidden; } }
.intro-half { position: absolute; left: 0; right: 0; height: 50.2%; background: var(--night); }
.intro-half.top { top: 0; animation: open-up 1.15s cubic-bezier(.76, 0, .24, 1) 2.1s forwards; }
.intro-half.bottom { bottom: 0; animation: open-down 1.15s cubic-bezier(.76, 0, .24, 1) 2.1s forwards; }
@keyframes open-up { to { transform: translateY(-100%); } }
@keyframes open-down { to { transform: translateY(100%); } }
.intro-mark { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 22px; color: var(--glow); animation: mark-out .7s ease 1.85s forwards; }
@keyframes mark-out { to { opacity: 0; transform: scale(1.04); } }
.intro-sig { width: min(52vw, 280px); height: auto; --sw: .8; }
.intro-sig path { animation: ink 1.1s var(--ease) calc(.15s + var(--i) * .13s) forwards, inkfill .6s ease calc(.85s + var(--i) * .13s) forwards; }
.intro-mark p { margin: 0; padding-left: .42em; font-family: var(--mono); font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--on-night-2); opacity: 0; animation: fadein .8s ease 1s forwards; }
@keyframes fadein { to { opacity: 1; } }
.intro-skip .intro { display: none !important; }

/* a cut to black between pages, and the fade up on arrival */
.veil { position: fixed; inset: 0; z-index: 88; background: var(--night); pointer-events: none; visibility: hidden; opacity: 0; }
.js .veil { animation: veil-out .65s ease both; }
@keyframes veil-out { from { visibility: visible; opacity: 1; } to { visibility: hidden; opacity: 0; } }
.leaving .veil { animation: veil-in .3s ease both; }
@keyframes veil-in { from { visibility: visible; opacity: 0; } to { visibility: visible; opacity: 1; } }

/* reading progress hairline */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--glow)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px rgba(127, 214, 230, .6); }

/* header: steps aside while reading down, returns on the way up; never a hard bar across his photo */
.site-header { transition: transform .5s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.away { transform: translateY(-105%); }
.site-header.scrolled[data-over="photo"] { background: linear-gradient(180deg, rgba(5, 8, 11, .78), rgba(5, 8, 11, .32) 72%, rgba(5, 8, 11, 0)); color: var(--on-night); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.scrolled[data-over="night"] { background: rgba(5, 8, 11, .66); color: var(--on-night); box-shadow: 0 1px 0 rgba(238, 243, 247, .07); }
.site-header.scrolled[data-over="light"] .brand-mark { color: var(--accent); }
.site-header.scrolled:not([data-over="light"]) .nav a[aria-current="page"]::after { background: var(--glow); }

/* the name: each word comes into focus, Braidy is written */
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; filter: blur(16px); transform: translateY(.14em); animation: focus-in 1.3s var(--ease) calc(var(--wd, 0s) + var(--intro-d, 0s)) forwards; }
.hero-title .w:nth-child(1) { --wd: .15s; }
.hero-title .w:nth-child(2) { --wd: .32s; }
.hero-title em.w { --wd: .5s; }
.js .hero-title em.w { clip-path: inset(-30% 104% -45% -10%); animation: focus-in 1.3s var(--ease) calc(var(--wd) + var(--intro-d, 0s)) forwards, write 1.5s cubic-bezier(.6, 0, .2, 1) calc(var(--wd) + var(--intro-d, 0s)) forwards; }
@keyframes focus-in { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes write { to { clip-path: inset(-30% -14% -45% -10%); } }

/* big titles: word by word, like a focus pull */
.split .wd { display: inline-block; }
.js .split .wd { opacity: 0; filter: blur(9px); transform: translateY(.3em); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--k, 0) * 70ms + 80ms); }
.js .split.in .wd { opacity: 1; filter: blur(0); transform: none; }

/* film stills: viewfinder corners and a slate whose image number runs with the scroll, like paging through a CT series */
.scene .frame { position: absolute; z-index: 5; top: calc(min(4.5vh, 44px) + 16px); bottom: calc(min(4.5vh, 44px) + 16px); left: var(--gutter); right: var(--gutter); pointer-events: none; }
.scene .frame i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(238, 243, 247, .55); }
.scene .frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.scene .frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.scene .frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.scene .frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.scene .slate { position: absolute; z-index: 6; top: calc(min(4.5vh, 44px) + 26px); left: calc(var(--gutter) + 38px); margin: 0; display: flex; align-items: center; gap: 10px; padding: 7px 11px 6px; border-radius: 7px; background: rgba(5, 8, 11, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-2); }
.scene.text-right .slate { left: auto; right: calc(var(--gutter) + 38px); }
.scene .slate b { font-weight: 500; color: var(--on-night); font-variant-numeric: tabular-nums; }
.scene .slate .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* a soft light that follows the pointer over the opening scene */
.hero .spot { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease); background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 40%), rgba(127, 214, 230, .12), transparent 70%); mix-blend-mode: screen; }
@media (hover: hover) and (pointer: fine) { .hero.lit .spot { opacity: 1; } }

/* cards and buttons respond */
.card { transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(11, 23, 38, .05), 0 22px 48px rgba(11, 23, 38, .10); border-color: var(--line-2); }
.card-media { border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: var(--night); }
.card-media .card-img { margin: 0; border-radius: 0; transition: transform 1.4s var(--ease); }
.card:hover .card-media .card-img { transform: scale(1.05); }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); transition: left .8s var(--ease); pointer-events: none; }
.btn.primary:hover::after { left: 130%; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) { .brand-role { display: none; } }
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.span-3, .tile.span-2 { grid-column: span 1; }
  .tile.wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .steps::before { display: none; }
}
@media (max-width: 900px) {
  .nav, .site-header .lang { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .site-header .wrap { min-height: 70px; }
  .brand .brand-mark { height: 36px; }
  .brand-rule { height: 26px; }
  .scan { left: 62%; top: 40%; width: 150vw; }
  /* Phones (Jad 2026-09-28: "make sure his face is visible on mobiel phone"): the portrait hangs below the header and the
     text starts under his chin (60% of the photo height, his chin sits at 46%), so no line of text ever crosses his face. */
  .hero { --hp: min(64vh, 128vw); }
  .hero-photo { width: 100%; left: 0; right: 0; top: 62px; bottom: auto; height: var(--hp); }
  .hero-photo img { object-position: var(--fx) var(--fy); transform-origin: var(--fx) 30%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 60%, transparent 97%); -webkit-mask-composite: source-over; mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 60%, transparent 97%); mask-composite: add; }
  .gallery { grid-template-columns: 1fr; }
  .hero-inner { padding-top: calc(62px + var(--hp) * .6); justify-content: flex-start; }
  .page-head .ring { right: -45%; width: 120vw; opacity: .6; }
  /* inner page photos: same rule as the hero, the photo sits under the header and the title starts under his chin */
  .page-head.has-img { --php: min(60vh, 112vw); min-height: 0; display: block; }
  .ph-img { inset: auto; top: 62px; left: 0; right: 0; height: var(--php); }
  .ph-img img { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 58%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 58%, transparent 96%); }
  .page-head.has-img::before { background: linear-gradient(180deg, rgba(5, 8, 11, .45) 0, rgba(5, 8, 11, 0) 96px); }
  .page-head.has-img .wrap { padding-top: calc(62px + var(--php) * .62); }
  .ph-img::after, .scene-img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 11, 0) 50%, rgba(5, 8, 11, .62) 64%, rgba(5, 8, 11, .9) 84%); }
  /* scenes stack on phones: the still on top, framed on his face, the title below his chin */
  .scene { --sh: min(118vw, 88vh); display: block; min-height: 0; }
  .scene-img { top: calc(min(4.5vh, 44px) + 14px); bottom: auto; height: var(--sh); }
  .scene-img img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 62%, transparent 96%); }
  .scene .wrap { padding-top: calc(min(4.5vh, 44px) + 14px + var(--sh) * .64); }
  .scene::before { background: linear-gradient(0deg, rgba(5, 8, 11, .7) 0%, rgba(5, 8, 11, 0) 30%); }
  .scene.text-right .wrap { align-items: flex-start; text-align: left; }
  .scene.text-right .wrap > * { max-width: none; }
  .scene.text-right::before { background: linear-gradient(0deg, rgba(5, 8, 11, .7) 0%, rgba(5, 8, 11, 0) 30%); }
  .scene .slate, .scene.text-right .slate { top: auto; left: auto; right: calc(var(--gutter) + 30px); bottom: calc(min(4.5vh, 44px) + 26px); }
  .two-col { grid-template-columns: 1fr; gap: 18px; }
  .cards, .contact-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-meta { flex-direction: row; align-items: center; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-role { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; padding-left: 4px; }
  .steps::before { display: block; left: 11px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(127, 214, 230, .6), rgba(127, 214, 230, .15)); }
  .step { padding: 0 0 0 40px; }
  .step::before { left: 4px; top: 3px; }
  .pub { grid-template-columns: 1fr; gap: 2px; }
  .form { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .site-footer .bottom { flex-direction: column; align-items: flex-start; }
  .credit { text-align: left; }
  .hero-meta .axial { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-title .w { animation: none; opacity: 1; filter: none; transform: none; clip-path: none; }
  .js .split .wd { opacity: 1; filter: none; transform: none; transition: none; }
  .js .brand-mark path, .sig.draw path { animation: none; fill-opacity: 1; stroke-width: 0; }
  .js .veil { animation: none; }
  .intro { display: none !important; }
  .scene .slate .rec { animation: none; }
  .scan, .scan .sweep, .scan .pulse, .scanline, .marquee-track, .scroll-cue i::after, .hero-photo, .hero-photo img, .hero-photo::after, .scene-img img, .ph-img, .ph-img img { animation: none; }
  .hero-photo::after { display: none; }
  .scanline { display: none; }
  .js .hero .rise { animation: none; opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .menu nav a { transform: none; opacity: 1; }
}
