/* saifuddin.dev — "First light over the river". Hand-written, no framework. DRAFT. */

/* ---------- Tokens ---------- */
:root {
  --paper: #f3eee4;
  --paper-2: #ebe3d4;
  --ink: #17150f;
  --ink-2: #474238;
  --mute: #6f685b;
  --faint: rgba(23, 21, 15, .2);
  --rule: rgba(23, 21, 15, .14);
  --ember: #c65d1e;
  --ember-text: #a44a12;
  --glow: rgba(236, 140, 60, .22);
  --sun-1: #ffd59a;
  --sun-2: #f39a47;
  --sun-3: #cf5418;
  --line-rgb: 23, 21, 15;
  --ember-rgb: 214, 108, 40;
  --img-filter: saturate(.92) contrast(1.02);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4.4vw, 56px);
  --band: 84px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0e0b;
    --paper-2: #18160f;
    --ink: #efe8da;
    --ink-2: #c7bead;
    --mute: #958c7c;
    --faint: rgba(239, 232, 218, .2);
    --rule: rgba(239, 232, 218, .13);
    --ember: #ef9356;
    --ember-text: #f2a46c;
    --glow: rgba(240, 140, 70, .16);
    --line-rgb: 239, 232, 218;
    --ember-rgb: 244, 150, 88;
    --img-filter: saturate(.88) brightness(.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0e0b;
  --paper-2: #18160f;
  --ink: #efe8da;
  --ink-2: #c7bead;
  --mute: #958c7c;
  --faint: rgba(239, 232, 218, .2);
  --rule: rgba(239, 232, 218, .13);
  --ember: #ef9356;
  --ember-text: #f2a46c;
  --glow: rgba(240, 140, 70, .16);
  --line-rgb: 239, 232, 218;
  --ember-rgb: 244, 150, 88;
  --img-filter: saturate(.88) brightness(.9);
  color-scheme: dark;
}
html[lang="ar"] {
  --serif: "Amiri", "Noto Naskh Arabic", serif;
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s ease, color .5s ease;
}
html[lang="ar"] body { font-size: 1.075rem; line-height: 1.85; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
::selection { background: var(--ember); color: var(--paper); }

/* ---------- Bar ---------- */
.bar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 0;
  height: 68px;
}
.mark { display: inline-flex; width: 34px; height: 34px; color: var(--ink); }
.mark svg { width: 100%; height: 100%; }
.bar nav { display: flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; min-width: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); font: 500 .9rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.chip:hover { border-color: var(--ink); }
.chip.icon { padding: 0; }
.chip svg { width: 18px; height: 18px; }
html[lang="ar"] .chip { font-family: "Instrument Sans", system-ui, sans-serif; }
html[lang="en"] .chip[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Noto Naskh Arabic", system-ui, sans-serif; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { /* the morning light */
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 46% at var(--glow-x, 50%) var(--glow-y, 36%), var(--glow), transparent 70%);
}
.river { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr;
  padding-top: 76px; padding-bottom: 48px;
}
.art {
  position: relative; clip-path: inset(-100vh -100vw 0 -100vw);
  height: clamp(220px, 33svh, 300px);
  display: flex; justify-content: center; align-items: flex-end;
  margin-bottom: var(--band);
}
.sun {
  position: absolute; z-index: 0; left: 50%; bottom: 0;
  width: var(--sd, 150px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 46% 40%, var(--sun-1), var(--sun-2) 48%, var(--sun-3) 100%);
  box-shadow: 0 0 80px 18px rgba(240, 140, 60, .28), 0 0 220px 70px rgba(240, 140, 60, .12);
  transform: translate(calc(-50% + var(--sx, 60px)), calc(50% - var(--alt, 140px)));
  transition: transform 2.8s var(--ease), background .6s, box-shadow .6s, width .6s;
}
.sun.moon {
  --sun-1: #fbf7ec; --sun-2: #e6dfcd; --sun-3: #bfb59f;
  box-shadow: 0 0 60px 10px rgba(230, 222, 200, .25), 0 0 180px 50px rgba(230, 222, 200, .08);
}
.js .sun.pre { transform: translate(calc(-50% + var(--sx, 60px)), 60%); }
.arch {
  position: relative; z-index: 1; margin: 0;
  width: clamp(150px, 41vw, 200px); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--paper-2);
  outline: 1px solid rgba(var(--ember-rgb), .55); outline-offset: 9px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: var(--img-filter); }
.js .arch img { clip-path: inset(100% 0 0 0); transform: scale(1.08); transition: clip-path 1.6s var(--ease) .25s, transform 2.4s var(--ease) .25s; }
.js .ready .arch img { clip-path: inset(0 0 0 0); transform: none; }
.js .arch { outline-color: transparent; transition: outline-color 1.2s ease 1.2s; }
.js .ready .arch { outline-color: rgba(var(--ember-rgb), .55); }

.who { position: relative; }
.name {
  font-family: var(--serif); font-size: clamp(3.2rem, 14.2vw, 5.6rem);
  line-height: .9; letter-spacing: -.012em;
}
.name > span { display: block; overflow: hidden; padding-bottom: .06em; }
.name > span > span { display: block; }
.name em { font-style: italic; }
.js .name > span > span { transform: translateY(108%); transition: transform 1.25s var(--ease); }
.js .ready .name > span > span { transform: none; }
.js .ready .name > span:nth-child(2) > span { transition-delay: .09s; }
.js .ready .name > span:nth-child(3) > span { transition-delay: .18s; }
html[lang="ar"] .name { line-height: 1.2; font-size: clamp(2.9rem, 13.6vw, 5.2rem); letter-spacing: 0; font-weight: 400; }
html[lang="ar"] .name > span { padding-bottom: .02em; }

.say { margin-top: 14px; color: var(--mute); font-size: .95rem; }
.role { margin-top: 14px; font-size: 1.12rem; color: var(--ink-2); }
.say + .role { margin-top: 4px; }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 2px; color: var(--ink-2); font-size: 1.02rem; }
.where .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(var(--ember-rgb), .18); }
.where time { color: var(--mute); font-variant-numeric: tabular-nums; }
.where time::before { content: "\00B7"; margin-inline-end: 10px; }
.where time:empty { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font: 500 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--ember); border-color: var(--ember); color: #fff; }

.links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 22px; font-size: .98rem; }
.links a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.links a::after {
  content: ""; width: 11px; height: 11px; background: currentColor; opacity: .5;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 11 11 3M5 3h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 11 11 3M5 3h6v6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s var(--ease), opacity .25s;
}
html[dir="rtl"] .links a::after { transform: scaleX(-1); }
.links a:hover { color: var(--ink); }
.links a:hover::after { opacity: 1; transform: translate(2px, -2px); }
html[dir="rtl"] .links a:hover::after { transform: translate(-2px, -2px) scaleX(-1); }

.js .fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .ready .fade { opacity: 1; transform: none; }
.js .ready .fade.d1 { transition-delay: .45s; }
.js .ready .fade.d2 { transition-delay: .6s; }
.js .ready .fade.d3 { transition-delay: .75s; }

@media (min-width: 900px) {
  :root { --band: clamp(120px, 19svh, 210px); }
  .hero .wrap {
    min-height: 100svh; min-height: max(100svh, 680px);
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: clamp(24px, 4vw, 72px);
    padding-top: 96px; padding-bottom: var(--band);
    align-items: end;
  }
  .who { order: 1; align-self: center; padding-bottom: 12px; }
  .art { order: 2; height: min(64svh, 600px); margin-bottom: 0; }
  .arch { width: min(25vw, 340px); outline-offset: 14px; }
  .name { font-size: clamp(4.6rem, 8.1vw, 8.6rem); }
  html[lang="ar"] .name { font-size: clamp(4rem, 7.2vw, 7.6rem); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.h2 {
  font-family: var(--serif); font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1; letter-spacing: -.01em;
}
html[lang="ar"] .h2 { line-height: 1.3; letter-spacing: 0; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Statement: words light up as you read down */
.statement { padding-block: clamp(96px, 16vw, 200px) clamp(40px, 6vw, 80px); }
.statement p {
  font-family: var(--serif); font-size: clamp(1.9rem, 5.6vw, 3.9rem);
  line-height: 1.16; letter-spacing: -.005em; max-width: 19.5em;
}
html[lang="ar"] .statement p { line-height: 1.6; letter-spacing: 0; font-size: clamp(1.75rem, 5vw, 3.4rem); }
.statement .w { transition: color .6s ease; }
.js .statement .w { color: var(--faint); }
.js .statement .w.lit { color: var(--ink); }
.statement em { font-style: italic; }
.js .statement .w.lit.hl { color: var(--ember-text); }

/* Work: chapters in arched windows */
.work-head { margin-bottom: clamp(40px, 8vw, 96px); }
.chapter {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding-block: clamp(40px, 7vw, 88px);
  border-top: 1px solid var(--rule);
}
.window {
  position: relative; width: min(52%, 190px); aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
}
.window svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.window .stroke { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.window .thin { stroke-width: .8; opacity: .55; }
.window .ember { fill: var(--ember); }
.window .ember-s { fill: none; stroke: var(--ember); stroke-width: 1.4; stroke-linecap: round; }
.chapter h3 {
  font-family: var(--serif); font-size: clamp(2.4rem, 7.4vw, 4.4rem);
  line-height: 1; letter-spacing: -.01em;
}
html[lang="ar"] .chapter h3 { line-height: 1.3; letter-spacing: 0; }
.kind { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.22rem; color: var(--mute); }
html[lang="ar"] .kind { font-style: normal; font-size: 1.2rem; }
.chapter .desc { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: 1.08rem; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.go a.t { font-weight: 500; text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 1.5px; min-height: 32px; display: inline-flex; align-items: center; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badges a { display: inline-flex; border-radius: 8px; }
.badges .gp img { width: 156px; height: auto; margin: -9px -10px -9px -9px; }
.badges .ms img { width: 132px; height: auto; }
@media (min-width: 760px) {
  .chapter { grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
  .window { width: 100%; }
}
@media (min-width: 1100px) {
  .chapter { grid-template-columns: 340px minmax(0, 1fr); }
}

/* Emblem motion (runs only while in view) */
.em-sun { transform: translateY(46px); transition: transform 2.4s var(--ease) .2s; }
.in .em-sun, .no-motion .em-sun { transform: none; }
.em-rays { transform-origin: 75px 98px; animation: spin 40s linear infinite; animation-play-state: paused; opacity: 0; transition: opacity 1.4s ease 1.4s; }
.in .em-rays { animation-play-state: running; opacity: 1; }
.no-motion .em-rays { opacity: 1; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.draw { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); transition: stroke-dashoffset 2.2s var(--ease) var(--dl, 0s); }
.in .draw, .no-motion .draw { stroke-dashoffset: 0; }
.travel { offset-rotate: 0deg; animation: travel 5.5s var(--ease) infinite; animation-play-state: paused; }
.in .travel { animation-play-state: running; }
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 80% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.bars rect { transform-box: fill-box; transform-origin: center; }
.link-line { stroke-dasharray: 80; stroke-dashoffset: 80; }
.in .link-line { animation: link 6s var(--ease) infinite; animation-delay: var(--dl, 0s); }
.no-motion .link-line { stroke-dashoffset: 0; }
@keyframes link { 0% { stroke-dashoffset: 80; } 25%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -80; } }
.pulse { transform-box: fill-box; transform-origin: center; }
.in .pulse { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.35); } }

/* Two-column editorial sections */
.split { display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: clamp(40px, 6vw, 110px); }
  .split > .h2 { position: sticky; top: 48px; align-self: start; }
}

/* Research */
.lede { font-family: var(--serif); font-size: clamp(1.6rem, 4.2vw, 2.7rem); line-height: 1.22; max-width: 22em; }
html[lang="ar"] .lede { line-height: 1.65; }
.sub { margin-top: 22px; max-width: 36em; color: var(--ink-2); }
.orcid { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; min-height: 44px; text-decoration: none; font-weight: 500; border-bottom: 1.5px solid var(--ember); }
.orcid svg { width: 22px; height: 22px; color: #7a9c1f; }
html[data-theme="dark"] .orcid svg { color: #a6ce39; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .orcid svg { color: #a6ce39; } }

/* Journey: a river through the years */
.journey { position: relative; padding-inline-start: 46px; }
.thread { position: absolute; top: 0; inset-inline-start: 0; width: 40px; height: 100%; overflow: visible; }
html[dir="rtl"] .thread { transform: scaleX(-1); }
.thread .bed { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.thread .flow { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; }
.journey li { position: relative; padding-block: 18px 22px; }
.journey li::before {
  content: ""; position: absolute; inset-inline-start: -32px; top: 29px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--mute);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.journey li.on::before { background: var(--ember); border-color: var(--ember); box-shadow: 0 0 0 5px rgba(var(--ember-rgb), .16); }
.yr { display: block; font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.2; color: var(--ember-text); }
html[lang="ar"] .yr { font-style: normal; font-family: "Instrument Serif", var(--serif); }
html[lang="ar"] span.yr { font-family: var(--serif); font-size: 1.25rem; }
.journey strong { display: block; margin-top: 4px; font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.journey .d { display: block; margin-top: 4px; color: var(--mute); max-width: 36em; }
.journey .d a { color: var(--ink-2); }

/* Elsewhere */
.else { display: grid; grid-template-columns: 1fr; column-gap: 40px; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .else { grid-template-columns: 1fr 1fr; } }
.else a {
  display: flex; align-items: baseline; gap: 12px;
  padding: 15px 2px; border-bottom: 1px solid var(--rule);
  text-decoration: none; min-height: 52px;
}
.else .n { font-weight: 500; font-size: 1.04rem; }
.else .h { color: var(--mute); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.else .arr { margin-inline-start: auto; flex: none; width: 14px; height: 14px; align-self: center; color: var(--mute); transition: transform .3s var(--ease), color .3s; }
html[dir="rtl"] .else .arr { transform: scaleX(-1); }
.else a:hover .n { color: var(--ember-text); }
.else a:hover .arr { color: var(--ember); transform: translate(3px, -3px); }
html[dir="rtl"] .else a:hover .arr { transform: translate(-3px, -3px) scaleX(-1); }

/* Coda */
.coda { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(96px, 16vw, 200px); padding-bottom: 0; }
.coda .river { z-index: -1; }
.dusk-clip { position: absolute; inset: 0 0 auto 0; height: 0; overflow: hidden; z-index: -2; pointer-events: none; }
.dusk {
  position: absolute; top: 0; left: 0; width: var(--dr, 120px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 46% 40%, var(--sun-1), var(--sun-2) 48%, var(--sun-3) 100%);
  will-change: transform;
}
.coda::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(34% 30% at var(--dx, 80%) var(--dy, 70%), rgba(240, 140, 60, .26), transparent 72%);
}
.coda .h2 { font-size: clamp(3rem, 11vw, 7.5rem); }
.mail {
  display: inline-block; margin-top: 18px;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
  font-size: clamp(1.75rem, 7.6vw, 4.4rem); line-height: 1.15;
  text-decoration: none; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 4px; transition: background-size .5s var(--ease), color .3s; word-break: break-all;
}
.mail:hover { color: var(--ember-text); }
.coda .actions { margin-top: 32px; }
.coda-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  margin-top: clamp(220px, 30vw, 300px); padding-bottom: max(28px, env(safe-area-inset-bottom));
  color: var(--mute); font-size: .92rem;
}
.qr { display: none; align-items: center; gap: 12px; }
.qr img { border-radius: 8px; background: #fff; padding: 5px; }
@media (min-width: 900px) and (hover: hover) { .qr { display: inline-flex; } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 140%); opacity: 0;
  background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px;
  font-size: .95rem; transition: transform .45s var(--ease), opacity .45s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Reduced motion: everything present, nothing moving */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .js .reveal, .js .fade { opacity: 1; transform: none; }
  .js .name > span > span { transform: none; }
  .js .arch { clip-path: none; }
  .em-sun { transform: none; }
  .em-rays { opacity: 1; }
  .draw { stroke-dashoffset: 0; }
  .js .statement .w { color: var(--ink); }
}

@media print {
  .bar, .river, .sun, .dusk-clip, .actions, .toast, .qr, .window, .thread { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
  .js .reveal, .js .fade, .js .statement .w { opacity: 1; transform: none; color: #000; }
}

/* ---------- Refinements ---------- */
@media (max-width: 560px) {
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero .actions .btn { justify-content: center; padding: 0 12px; }
  .hero .actions .primary { grid-column: 1 / -1; }
  .who { padding-top: 10px; }
}
.work-head + .chapter { border-top: 0; padding-top: 0; }
html[lang="ar"] .statement em, html[lang="ar"] em { font-style: normal; }
html[lang="ar"] .chapter .desc, html[lang="ar"] .sub { font-size: 1.1rem; }
html[lang="ar"] .journey strong { font-weight: 600; }
html[lang="ar"] .journey li::before { top: 33px; }

/* About, services, call to action */
.prose p { max-width: 36em; color: var(--ink-2); font-size: 1.12rem; }
.prose p + p { margin-top: 18px; }
html[lang="ar"] .prose p { font-size: 1.16rem; }
.prose .sig {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  line-height: 1.3; color: var(--ember-text); max-width: 24em;
}
html[lang="ar"] .prose .sig { font-style: normal; line-height: 1.7; }
.services { display: grid; grid-template-columns: 1fr; column-gap: clamp(32px, 6vw, 96px); }
@media (min-width: 760px) { .services { grid-template-columns: 1fr 1fr; } }
.services li { border-top: 1px solid var(--rule); padding: 28px 0 34px; }
.services h3 {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.2rem); line-height: 1.15;
}
html[lang="ar"] .services h3 { line-height: 1.5; }
.services .glyph { flex: none; width: 12px; height: 16px; color: var(--ember); transform: translateY(1px); }
.services p { margin-top: 12px; color: var(--ink-2); max-width: 32em; }
.about { padding-top: clamp(40px, 6vw, 80px); }
.cta { margin-top: 18px; max-width: 30em; font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-2); }
.cta + .mail { margin-top: 22px; }

/* Certifications */
.creds { border-top: 1px solid var(--rule); }
.creds li > a, .creds li > div { display: flex; align-items: center; gap: 16px; padding: 18px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.creds .c-t { display: block; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.creds .c-m { display: block; margin-top: 3px; color: var(--mute); font-size: .95rem; }
.creds .c-b { flex: 1; min-width: 0; }
.creds .arr { flex: none; width: 14px; height: 14px; color: var(--mute); transition: transform .3s var(--ease), color .3s; }
html[dir="rtl"] .creds .arr { transform: scaleX(-1); }
.creds a:hover .c-t { color: var(--ember-text); }
.creds a:hover .arr { color: var(--ember); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.h3s { margin: 44px 0 14px; font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.2; }
html[lang="ar"] .h3s { line-height: 1.6; }
.creds li > div { display: block; }
html[lang] .prose .sig { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }

/* Case studies, proof lines, events */
.case { margin: 18px 0 0; max-width: 38em; }
.case > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); }
.case > div:first-child { border-top: 0; padding-top: 4px; }
.case dt { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ember-text); }
html[lang="ar"] .case dt { font-style: normal; font-size: 1.15rem; }
.case dd { margin: 0; color: var(--ink-2); }
@media (min-width: 1100px) { .case > div { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: baseline; } }
.services .proof { margin-top: 10px; font-size: .92rem; color: var(--mute); }
.events li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 18px 2px; border-bottom: 1px solid var(--rule); }
.events { border-top: 1px solid var(--rule); }
.events .c-t { display: block; font-weight: 500; font-size: 1.08rem; line-height: 1.4; }
.events .c-m { display: block; margin-top: 3px; color: var(--mute); font-size: .95rem; }
.events .yr { font-size: 1.35rem; }
bdi { white-space: nowrap; }
