/* AK brand tokens. Honey is an accent only, never text on white. Navy is the logo only. */
:root {
  --white: #FFFFFF;
  --off: #F1F3F5;
  --slate: #1B2733;
  --steel: #5B7691;
  --bluegrey: #AFC1D3;
  --sky: #9DBBD6;
  --honey: #E6B654;
  --ink-2: #3F5368;            /* slate tinted toward steel, for secondary text at 4.5:1 and above */
  --head: "Bricolage Grotesque", "Arial Black", sans-serif;
  --body: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  --r: 28px;
}
:lang(ar) {
  /* Latin names keep the brand faces; Arabic falls through to the approved pairing */
  --head: "Bricolage Grotesque", "Alexandria", sans-serif;
  --body: "Inter", "IBM Plex Sans Arabic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: var(--steel) var(--off); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--off); color: var(--slate);
  font: 400 1.0625rem/1.6 var(--body);
  caret-color: var(--honey); overflow-x: clip;
}
body:lang(ar) { line-height: 1.85; }
::selection { background: var(--honey); color: var(--slate); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 2.5px solid var(--slate); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1; letter-spacing: -0.035em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
section[id] { scroll-margin-top: 84px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--slate); color: var(--white); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 12px; }

/* Reading progress: a thin honey line that fills as you scroll */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--honey); transform-origin: 0 50%; transform: scaleX(0); z-index: 25; }
html[dir="rtl"] .progress { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px);
  padding: 12px var(--edge);
  background: color-mix(in srgb, var(--off) 88%, transparent);
  backdrop-filter: blur(12px);
  border-block-end: 1px solid var(--bluegrey);
}
.mark img { width: 40px; height: 40px; object-fit: contain; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); margin-inline-start: auto; font-weight: 500; font-size: 0.975rem; }
.top nav a { text-decoration: none; padding-block: 10px; background: linear-gradient(var(--honey), var(--honey)) no-repeat 0 85% / 0 2px; transition: background-size 220ms var(--ease); }
html[dir="rtl"] .top nav a { background-position: 100% 85%; }
.top nav a:hover { background-size: 100% 2px; }
.nav-cv { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--slate); color: var(--white); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: transform 160ms var(--ease); }
.nav-cv:hover { transform: translateY(-1px); }
.lang {
  display: inline-flex; align-items: center; gap: 2px; padding: 4px; cursor: pointer;
  background: var(--white); border: 1px solid var(--bluegrey); border-radius: 999px;
  font: 600 0.875rem/1 var(--body); color: var(--ink-2);
}
.lang span { min-width: 34px; padding: 8px; border-radius: 999px; text-align: center; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.lang span:lang(ar) { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 1rem; }
html[lang="en"] .lang-on, html[lang="ar"] .lang-off { background: var(--slate); color: var(--white); }

/* Hero: the name does the talking */
.hero {
  position: relative; min-height: min(86svh, 860px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 5vw, 72px);
  padding: clamp(40px, 7vw, 96px) var(--edge) clamp(72px, 10vw, 136px);
  border-block-end: 2px solid var(--slate);            /* the ground mini me stands on */
}
h1 { font-size: clamp(3.3rem, 9.6vw, 8.6rem); line-height: 0.92; letter-spacing: -0.05em; overflow-wrap: normal; }
:lang(ar) h1 { line-height: 1.22; font-size: clamp(3.2rem, 9.2vw, 8.2rem); }
h1 .w { display: block; overflow: clip; overflow-clip-margin: 0.12em; padding-block-end: 0.06em; }
h1 .w > span { display: block; }
.role { margin-block-start: clamp(20px, 2.6vw, 34px); font-weight: 600; color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34ch; }
.proof { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: clamp(18px, 2.4vw, 28px); }
.proof li {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; padding-inline-start: 13px;
  background: var(--white); border: 1px solid var(--bluegrey); border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; box-shadow: 0 2px 6px rgb(27 39 51 / 0.06);
}
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--honey); box-shadow: inset 0 0 0 3px var(--honey), inset 0 0 0 6px var(--white); flex: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-block-start: clamp(24px, 3vw, 36px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 2px solid var(--slate); border-radius: 999px; text-decoration: none; cursor: pointer;
  font-weight: 600; background: transparent; color: var(--slate);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background-color 180ms var(--ease), color 180ms var(--ease);
}
.btn.primary { background: var(--honey); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(27 39 51 / 0.16); }
.btn:not(.primary):hover { background: var(--slate); color: var(--white); }
.btn:active { transform: translateY(0); box-shadow: none; }
.cv { font-weight: 600; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 0.24em; padding-block: 12px; }

.face { position: relative; width: clamp(150px, 23vw, 320px); aspect-ratio: 1; margin-inline-end: clamp(0px, 2vw, 28px); }
.face::before {                                         /* honey disc, the vlog's score shape */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--honey); transform: translate(8%, 7%);
}
html[dir="rtl"] .face::before { transform: translate(-8%, 7%); }
.face img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; scale: 1.06; clip-path: circle(47.2%); }

/* Mini me: existing pixel frames, swapped in hard steps by app.js */
.minime {
  position: absolute; inset-block-end: -2px; inset-inline-end: var(--edge);
  width: clamp(84px, 11vw, 150px); aspect-ratio: 328 / 463;
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.minime .f { filter: drop-shadow(0 0 1px rgb(27 39 51 / 0.5)); position: absolute; inset-block-end: 0; left: 50%; translate: -50% 0; visibility: hidden; image-rendering: pixelated; max-width: none; }
.minime .f.on { visibility: visible; }
.minime .wave { height: 100%; width: auto; }
.minime .cel { height: 115.3%; width: auto; }             /* celebrate frames are drawn at a larger scale */

/* Moving strip of what he works with */
.ticker { background: var(--slate); color: var(--white); overflow: hidden; padding-block: 18px; }
.ticker-run { display: flex; width: max-content; gap: 0; animation: slide 36s linear infinite; }
.ticker:hover .ticker-run { animation-play-state: paused; }
.ticker-run span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font: 700 clamp(1.1rem, 2.2vw, 1.6rem)/1 var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.ticker-run span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--honey); }
@keyframes slide { to { transform: translateX(-50%); } }

/* The belief, set as a statement */
.belief-band { padding: clamp(72px, 12vw, 168px) var(--edge); }
.belief { font: 800 clamp(2rem, 5.6vw, 4.6rem)/1.04 var(--head); letter-spacing: -0.04em; max-width: 19ch; text-wrap: balance; }
:lang(ar) .belief { letter-spacing: 0; line-height: 1.4; max-width: 17ch; }

/* Work: picture-first grid with tiles of different sizes */
.work, .new, .contact { padding: 0 var(--edge); }
h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); max-width: 16ch; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); margin-block-start: clamp(28px, 4vw, 56px); }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r); text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--bluegrey);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.tile:hover, .tile:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 48px -20px rgb(27 39 51 / 0.35); }
.tile h3 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); }
.tile p { margin-block-start: 12px; color: var(--ink-2); max-width: 52ch; }
.tile-txt { display: block; padding: clamp(20px, 2.4vw, 32px); }
.where { display: block; margin-block-start: 10px; font-size: 0.9rem; font-weight: 500; color: var(--ink-2); }
.go { display: inline-flex; align-items: center; gap: 6px; margin-block-start: 16px; font-weight: 600; font-size: 0.95rem; }
.go > span { text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
.go.soon { color: var(--ink-2); font-weight: 500; }
.go.soon > span { text-decoration: none; }
.arw { transition: transform 200ms var(--ease); }
html[dir="rtl"] .arw { transform: scaleX(-1); }
.tile:hover .arw { transform: translate(3px, -3px); }
html[dir="rtl"] .tile:hover .arw { transform: scaleX(-1) translate(3px, -3px); }

.t-now { grid-column: span 12; background: var(--slate); border-color: var(--slate); color: var(--white); padding: clamp(24px, 3.2vw, 44px); justify-content: flex-end; min-height: clamp(340px, 30vw, 440px); }
.t-now h3 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.t-now p { color: var(--white); font-size: 1.1rem; max-width: 44ch; }
.t-now .where { color: var(--bluegrey); margin-block-start: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 22px; }
.chips i { font: 700 1rem/1.2 "Bricolage Grotesque", sans-serif; font-style: normal; padding: 9px 16px; border-radius: 999px; background: var(--white); color: var(--slate); }
.chips i.alt { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--bluegrey); font-size: 0.9rem; }

.t-reels { grid-column: span 5; grid-row: span 2; background: var(--sky); border-color: var(--sky); }
.phone {
  position: relative; display: block; width: min(72%, 330px); aspect-ratio: 9 / 18.5; margin: clamp(26px, 3.4vw, 44px) auto 0;
  background: var(--slate); border-radius: 38px; padding: 10px;
  box-shadow: 0 30px 50px -22px rgb(27 39 51 / 0.6);
  transition: transform 420ms var(--ease);
}
.t-reels:hover .phone { transform: rotate(-3deg) translateY(-6px); }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 60px; height: 17px; border-radius: 999px; background: var(--slate); z-index: 2; }
.screen { position: absolute; inset: 10px; border-radius: 29px; overflow: hidden; background: var(--off); display: block; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.screen img.on { visibility: visible; }
.t-reels .tile-txt { margin-block-start: auto; }
.t-reels p, .t-reels .where { color: var(--slate); }

.t-film { grid-column: span 7; }
.t-esi { grid-column: span 7; }
.shot { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--off); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.tile:hover .shot > img:only-child { transform: scale(1.06); }
.shot.stack { position: relative; background: var(--steel); }
.shot.stack img { position: absolute; width: 74%; height: auto; aspect-ratio: 842 / 595; left: 13%; top: 16%; border-radius: 6px; box-shadow: 0 8px 18px rgb(27 39 51 / 0.35); }
.shot.stack img:nth-child(1) { transform: rotate(-7deg) translate(-9%, 4%); }
.shot.stack img:nth-child(2) { transform: rotate(5deg) translate(9%, 3%); }
.t-esi:hover .shot.stack img:nth-child(1), .t-esi:focus-visible .shot.stack img:nth-child(1) { transform: rotate(-12deg) translate(-17%, 6%); }
.t-esi:hover .shot.stack img:nth-child(2), .t-esi:focus-visible .shot.stack img:nth-child(2) { transform: rotate(10deg) translate(17%, 5%); }
.t-esi:hover .shot.stack img:nth-child(3), .t-esi:focus-visible .shot.stack img:nth-child(3) { transform: translateY(-4%); }
.shot.stack img { width: 56%; left: 22%; top: 14%; }

/* Weekends band */
.weekends {
  position: relative; margin-block-start: clamp(72px, 11vw, 150px);
  background: var(--sky); border-block: 2px solid var(--slate);
  padding: clamp(56px, 9vw, 120px) var(--edge);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 5vw, 64px); align-items: end;
}
html .wk-h.wk-h { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(2.3rem, 9.4vw, 8rem); letter-spacing: 0.14em; line-height: 1; max-width: none; }
html[dir="rtl"] .wk-h { text-align: right; }
.wk-lead { margin-block-start: 18px; font: 700 clamp(1.4rem, 2.8vw, 2.1rem)/1.2 var(--head); letter-spacing: -0.02em; }
:lang(ar) .wk-lead { letter-spacing: 0; line-height: 1.5; }
.wk-copy p + p { margin-block-start: 14px; max-width: 54ch; font-size: 1.1rem; }
.eps { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 26px 30px; }
html[dir="rtl"] .eps { justify-content: flex-end; }
.eps li { padding: 8px 15px; background: var(--white); border-radius: 999px; font: 700 0.95rem/1.2 "Bricolage Grotesque", sans-serif; box-shadow: 0 2px 5px rgb(27 39 51 / 0.1); }
.wk-me { width: clamp(110px, 17vw, 230px); height: auto; image-rendering: pixelated; margin-block-end: calc(-1 * clamp(56px, 9vw, 120px)); align-self: end; }

/* What's new */
.new { padding-block-start: clamp(72px, 11vw, 150px); }
.log { margin-block-start: clamp(24px, 3.4vw, 44px); }
.log li { display: grid; grid-template-columns: 10ch minmax(0, 1fr); gap: clamp(12px, 3vw, 40px); padding-block: 22px; border-block-start: 1px solid var(--bluegrey); font-size: 1.15rem; }
.log li:last-child { border-block-end: 1px solid var(--bluegrey); }
.log time { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 1rem; }
.log span { max-width: 62ch; }

/* Contact: the close */
.contact { padding-block: clamp(80px, 13vw, 180px) clamp(72px, 10vw, 130px); }
.contact h2 { font-size: clamp(3.6rem, 15vw, 12rem); letter-spacing: -0.05em; max-width: none; }
:lang(ar) .contact h2 { font-size: clamp(3.2rem, 12vw, 9rem); }
.contact p { margin-block-start: 20px; color: var(--ink-2); max-width: 44ch; font-size: 1.15rem; }
.mail { display: block; width: fit-content; margin-block-start: 30px; font: 700 clamp(1.2rem, 4vw, 2.6rem)/1.2 "Bricolage Grotesque", sans-serif; letter-spacing: -0.02em; text-decoration-color: var(--honey); text-decoration-thickness: 0.14em; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
.foot { border-block-start: 1px solid var(--bluegrey); padding: 22px var(--edge); font-size: 0.9rem; color: var(--ink-2); text-align: center; }

/* Motion: content is visible by default; app.js adds .js-motion only when motion is allowed */
.js-motion .rv { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: var(--d, 0ms); }
.js-motion .rv.in { opacity: 1; transform: none; }
.js-motion .tile.rv.in.done { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); transition-delay: 0ms; }
.js-motion .tile.rv.in.done:hover, .js-motion .tile.rv.in.done:focus-visible { transform: translateY(-6px); }
.js-motion h1 .w > span { transform: translateY(105%); transition: transform 900ms var(--ease); }
.js-motion h1 .w:nth-child(2) > span { transition-delay: 90ms; }
.js-motion.ready h1 .w > span { transform: none; }
.js-motion .face { transform: scale(0.86); opacity: 0; transition: transform 900ms var(--ease) 180ms, opacity 500ms linear 180ms; }
.js-motion.ready .face { transform: none; opacity: 1; }

/* Tablets and phones */
@media (max-width: 980px) {
  .t-reels { grid-column: span 12; }
  .t-reels { grid-row: auto; flex-direction: row; align-items: center; }
  .t-reels .phone { width: min(34%, 200px); margin: 24px; margin-inline-end: 0; flex: none; }
  .t-reels .tile-txt { margin-block-start: 0; }
  .t-film, .t-esi { grid-column: span 12; }
}
@media (max-width: 700px) {
  .top nav a:not(:first-child) { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block-end: clamp(130px, 36vw, 180px); }
  .face { order: -1; width: clamp(120px, 34vw, 170px); margin: 0; }
  .t-reels { flex-direction: column; align-items: stretch; }
  .t-reels .phone { width: min(56%, 220px); margin: 26px auto 0; }
  .weekends { grid-template-columns: minmax(0, 1fr); }
  .wk-me { justify-self: end; margin-block-start: -8px; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .ticker-run { animation: none; }
  .progress { animation: none; display: none; }
  .btn:hover, .tile:hover, .t-reels:hover .phone { transform: none; }
}

/* Sections after the first get breathing room; the lede sits under a heading */
#experience { padding-block-start: clamp(72px, 11vw, 150px); }
.lede { margin-block-start: 16px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }
.more { display: inline-flex; align-items: center; gap: 12px; margin-block-start: clamp(22px, 3vw, 36px); padding: 16px 0; font: 700 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--head); letter-spacing: -0.02em; text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
:lang(ar) .more { letter-spacing: 0; }
.more .arw.side { transition: transform 200ms var(--ease); flex: none; }
html[dir="rtl"] .more .arw.side { transform: scaleX(-1); }
.more:hover .arw.side { transform: translateX(5px); }
html[dir="rtl"] .more:hover .arw.side { transform: scaleX(-1) translateX(5px); }

/* Beyond work page */
.page-head { padding: clamp(48px, 8vw, 110px) var(--edge) clamp(40px, 6vw, 80px); border-block-end: 2px solid var(--slate); position: relative; }
.page-head h1 { font-size: clamp(3.2rem, 10vw, 8.6rem); }
.page-head p { margin-block-start: 22px; font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-2); max-width: 48ch; }
.page-head .pose { position: absolute; inset-block-end: -2px; inset-inline-end: var(--edge); width: clamp(84px, 12vw, 170px); height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 1px rgb(27 39 51 / 0.5)); }
.chapter { padding: clamp(64px, 9vw, 120px) var(--edge) 0; }
.chapter:last-of-type { padding-block-end: clamp(72px, 10vw, 130px); }
.chapter h2 { max-width: 18ch; }
.chapter .bento { align-items: stretch; }
.card { grid-column: span 6; padding: clamp(24px, 3vw, 40px); justify-content: flex-start; }
.card.wide { grid-column: span 12; }
.card.dark { background: var(--slate); border-color: var(--slate); color: var(--white); }
.card.dark p, .card.dark li { color: var(--white); }
.card.dark .where { color: var(--bluegrey); }
.card.blue { background: var(--sky); border-color: var(--sky); }
.card.blue p, .card.blue li, .card.blue .where { color: var(--slate); }
.card:hover, .card:focus-visible { transform: none; box-shadow: none; }
.js-motion .tile.card.rv.in.done:hover { transform: none; }
.card h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
.card .where { margin-block-start: 8px; }
.card ul { margin-block-start: 18px; display: grid; gap: 10px; }
.card li { position: relative; padding-inline-start: 24px; color: var(--ink-2); max-width: 60ch; }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--honey); }
.figs { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); margin-block-start: 26px; }
.figs div { display: grid; gap: 4px; }
.figs b { font: 800 clamp(2.6rem, 6vw, 4.6rem)/0.95 "Bricolage Grotesque", sans-serif; letter-spacing: -0.04em; }
.figs span { font-size: 0.95rem; color: var(--bluegrey); max-width: 16ch; }
@media (max-width: 700px) { .card { grid-column: span 12; } .page-head { padding-block-end: clamp(120px, 34vw, 170px); } }


/* ============ Dark look, after his LinkedIn banner: slate ground, white type, honey highlights ============ */
:root { --bg: #1B2733; --fg: #FFFFFF; --fg2: #AFC1D3; --card: #243445; --line: #3A4E63; }
html { scrollbar-color: var(--steel) var(--bg); background: var(--bg); }
body { background: var(--bg); color: var(--fg); }
:focus-visible { outline-color: var(--honey); }
.skip { background: var(--honey); color: var(--slate); }
.top { background: color-mix(in srgb, var(--bg) 86%, transparent); border-block-end-color: var(--line); }
.nav-cv { background: var(--honey); color: var(--slate); }
.lang { background: var(--card); border-color: var(--line); color: var(--fg2); }
html[lang="en"] .lang-on, html[lang="ar"] .lang-off { background: var(--white); color: var(--slate); }
.hero, .page-head { border-block-end-color: var(--bluegrey); }
.role, .lede, .page-head p, .contact p, .foot, .log time, .where, .go.soon { color: var(--fg2); }
.proof li { background: var(--card); border-color: var(--line); box-shadow: none; }
.pin { box-shadow: inset 0 0 0 3px var(--honey), inset 0 0 0 6px var(--card); }
.btn { border-color: var(--white); color: var(--white); }
.btn.primary { background: var(--honey); border-color: var(--honey); color: var(--slate); }
.btn:hover { box-shadow: 0 10px 22px rgb(0 0 0 / 0.35); }
.btn:not(.primary):hover { background: var(--white); color: var(--slate); }
.minime .f, .page-head .pose { filter: none; }
.ticker { background: var(--honey); color: var(--slate); }
.ticker-run span::after { background: var(--slate); }
.belief em { font-style: normal; color: var(--honey); }
.tile { background: var(--card); border-color: var(--line); }
.tile p, .card li { color: var(--fg2); }
.tile:hover, .tile:focus-visible { box-shadow: 0 26px 48px -20px rgb(0 0 0 / 0.6); }
.shot { background: var(--card); }
/* the "now" tile and the lead card flip to white so they stand out on the dark page */
.t-now, .card.dark { background: var(--white); border-color: var(--white); color: var(--slate); }
.t-now p, .card.dark p, .card.dark li { color: var(--slate); }
.t-now .where, .card.dark .where, .card.dark .figs span { color: var(--ink-2); }
.chips i { background: var(--slate); color: var(--white); }
.chips i.alt { background: transparent; color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--steel); }
/* sky tiles and the Weekends band keep dark type */
.t-reels, .card.blue, .weekends { color: var(--slate); }
.t-reels p, .t-reels .where, .card.blue p, .card.blue li, .card.blue .where { color: var(--slate); }
.weekends { border-block-color: var(--sky); }
.weekends .btn.primary { border-color: var(--slate); }
.log li, .log li:last-child, .foot { border-color: var(--line); }
.card:hover, .card:focus-visible { box-shadow: none; }
.t-reels, .card.blue { background: var(--sky); border-color: var(--sky); }
.shot.stack { background: var(--steel); }
.card.blue li::before { background: var(--slate); }

/* Not-found page */
.page-head.lost { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; }

/* ESI proposal page: every page of the manual, in order */
.deck { display: grid; gap: clamp(14px, 2vw, 26px); max-width: 1100px; counter-reset: pg; }
.deck li { border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 18px 40px -22px rgb(0 0 0 / 0.7); }
.deck img { width: 100%; height: auto; }
.deck-wrap { padding-block-end: clamp(72px, 10vw, 130px); }
