/* Hallmark · shape: Long Document (swapped to an Index-led profile, see picks) · genre: atmospheric · theme: Terminal (deal 1/3, seed personal-profile-creative-technologist-8f64·38c42359·2026-12-04·r0) · job: hire · draw: f5efd0
 * hero: Poster · nav: masthead · footer: colophon block · imagery: none, the globe is printed in the page's own dots · signature: a dot-matrix planet whose arcs leave Riyadh for each engagement and turn to follow the work index
 * axes: dark/mono/chromatic-green · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the globe, the scramble and the shelf all move; motion is kept to the globe, one scramble per head and a stepped hover */
/* Hallmark · waive 59 · the 65px gap is the figures band directly under the poster hero · the figures strip is a ruled band, not a section; its hairlines part it from the planet */
/* Hallmark · waive 77 · the other half of the work grid is the stage where the fixed planet sits · the planet turns in that half to each city as the work index scrolls */
/* Hallmark · waive 39b · the 60px buttons are whole rows of the work index, not marketing controls · each engagement row is a click target that turns the planet to its city */
/* Placeholder record: every figure, project, award and article is stand-in copy the client asked for, to be replaced with Mohammed's own */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- page ---------- */
body { font-stretch: var(--stretch-body); font-variant-numeric: tabular-nums; line-height: 1.75; }
h1, h2, h3 { font-weight: var(--display-weight); font-stretch: var(--stretch-display); letter-spacing: var(--tracking-display); line-height: 1.25; }
h2 { font-size: var(--text-display-s); }
.muted { color: var(--color-muted); }
code, .num, .session, [dir="ltr"], .certs, .spine span { font-family: var(--font-mono); }
.figure, .log__year, .job__year, .book-note__title { font-family: var(--font-display); }
main { position: relative; z-index: var(--z-base); }

.skip { position: absolute; inset-inline-start: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-accent); color: var(--color-accent-ink); padding: var(--space-xs) var(--space-md); }
.skip:focus-visible { top: var(--space-md); }

#globe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1), border-color var(--dur-micro) steps(1); }
.btn--sm { min-height: 40px; padding: 0 var(--space-md); }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink); }
.btn--primary:active { background: var(--color-ink-2); }
.btn--ghost { border-color: var(--color-ink-2); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--ghost:active { background: var(--color-accent-wash); }
.btn:focus-visible, .chip:focus-visible, .job__btn:focus-visible, .spine:focus-visible, .mast a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }

/* ---------- masthead ---------- */
.mast { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.mast__in { display: flex; align-items: center; gap: var(--space-xl); min-height: 64px; }
.mark { font-weight: 700; font-size: var(--text-md); text-decoration: none; color: var(--color-ink); }
.mast nav { margin-inline-start: auto; }
.mast__links { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.mast__links a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-micro) steps(1); }
.mast__links a:hover { color: var(--color-accent); }
@media (max-width: 48rem) { .mast nav { display: none; } .mast__in { justify-content: space-between; } }

/* ---------- hero: Poster ---------- */
.hero { position: relative; min-height: calc(100svh - 65px); display: grid; align-items: center; padding-block: var(--space-2xl); }
.hero__drag { position: absolute; inset-block: 0; inset-inline-end: 0; width: 55%; z-index: 1; cursor: grab; touch-action: pan-y; }
.hero__drag:active { cursor: grabbing; }
.hero__in { position: relative; z-index: 2; pointer-events: none; }
.hero__text { max-width: 40rem; pointer-events: auto; }
.hero__name { font-size: clamp(3.25rem, 8vw, 7rem); line-height: 1.1; max-width: none; font-weight: 700; }
.hero__line { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__hint { position: absolute; bottom: var(--space-lg); inset-inline: 0; z-index: 2; font-size: var(--text-xs); color: var(--color-muted); text-align: end; pointer-events: none; }
@media (max-width: 48rem) {
  .hero { align-items: end; min-height: calc(92svh - 65px); }
  .hero__drag { width: 100%; height: 55%; }
  .hero__hint { display: none; }
}

/* ---------- figures ---------- */
.figures { position: relative; background: var(--color-paper); border-block: var(--rule-hair) solid var(--color-rule); }
.figures__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fig { display: grid; gap: var(--space-xs); padding: var(--space-xl) var(--space-lg); border-inline-start: var(--rule-hair) solid var(--color-rule); }
.fig:first-child { border-inline-start: 0; padding-inline-start: 0; }
.figure { font-weight: 400; font-size: clamp(3.5rem, 6vw + 1rem, 7rem); line-height: 0.9; color: var(--color-ink); }
.fig__note { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 48rem) { .figures__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fig:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .fig:nth-child(n+3) { border-top: var(--rule-hair) solid var(--color-rule); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap-s); background: var(--color-paper); color: var(--color-ink); border-bottom: var(--rule-hair) solid var(--color-rule); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.split__head { display: grid; gap: var(--space-md); position: sticky; top: 96px; }
.case__head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); max-width: 48rem; }
@media (max-width: 60rem) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .split__head { position: static; } }

/* man-page rows */
.man { margin: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.man__row { display: grid; gap: var(--space-xs); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.man dt { font-size: var(--text-lg); }
.man dd { margin: 0; color: var(--color-ink-2); }
.cmd { color: var(--color-ink); }
.arg { color: var(--color-accent); }

/* ---------- work index + globe ---------- */
.work { background: transparent; }
.work__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); }
.work__list { display: grid; gap: var(--space-md); align-content: start; background: var(--color-paper); padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-block: var(--space-md); }
.chip { min-height: 44px; padding: 0 var(--space-md); background: transparent; color: var(--color-ink-2); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1), border-color var(--dur-micro) steps(1); }
.chip:hover { border-color: var(--color-accent); color: var(--color-ink); }
.chip[aria-pressed="true"] { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn:disabled, .chip:disabled, .job__btn:disabled, .spine:disabled { opacity: 0.45; cursor: not-allowed; }
.chip:active { background: var(--color-accent-wash); }
.index { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.job { border-bottom: var(--rule-hair) solid var(--color-rule); }
.job__btn { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--space-md); align-items: baseline; width: 100%; padding: var(--space-md) var(--space-sm); background: transparent; border: 0; color: var(--color-ink); text-align: start; cursor: pointer; transition: background-color var(--dur-micro) steps(1); }
.job__btn:hover { background: var(--color-paper-3); }
.job.is-active .job__btn { background: var(--color-accent-wash); }
.job.is-active .job__where { color: var(--color-accent); }
.job__year { color: var(--color-muted); font-size: var(--text-lg); }
.job__what { font-size: var(--text-md); }
.job__where { font-size: var(--text-sm); color: var(--color-ink-2); }
.work__stage { min-height: 60vh; }
@media (max-width: 60rem) { .work__grid { grid-template-columns: minmax(0, 1fr); } .work__stage { display: none; } .work__list { margin-inline-start: 0; padding: var(--space-lg); } }
@media (max-width: 40rem) { .job__btn { grid-template-columns: 3.25rem minmax(0, 1fr); } .job__where { grid-column: 2; } }

/* ---------- diff ---------- */
.diff { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lg); }
.diff__head { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-xs); color: var(--color-muted); }
.diff__line { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; padding: var(--space-sm) var(--space-lg); }
.diff__line .ln { font-size: var(--text-xs); color: var(--color-rule-2); }
.diff__line--meta { color: var(--color-muted); font-size: var(--text-sm); }
.diff .del { color: var(--color-muted); }
.diff .del > span:last-child::before { content: "- "; }
.diff .add { background: var(--color-accent-wash); color: var(--color-ink); }
.diff .add > span:last-child::before { content: "+ "; color: var(--color-accent); }
@media (max-width: 40rem) { .diff { font-size: var(--text-md); } .diff__line { grid-template-columns: 2rem minmax(0, 1fr); padding-inline: var(--space-md); } }

/* ---------- record ---------- */
.certs { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; justify-content: flex-end; }
.certs li { padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule-2); font-size: var(--text-sm); color: var(--color-ink-2); }
.log { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.log li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.log__year { font-size: var(--text-2xl); font-stretch: var(--stretch-display); color: var(--color-accent); }
.log h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }

/* ---------- writing ---------- */
.posts { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.post { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto; gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.post h3 { font-size: var(--text-lg); }
.post__date, .post__len { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 40rem) { .post { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); } }

/* ---------- shelf ---------- */
.shelf { display: flex; align-items: flex-end; gap: var(--space-2xs); height: 360px; padding-inline: var(--space-md); border-bottom: 2px solid var(--color-rule-2); overflow-x: auto; overscroll-behavior-x: contain; }
.spine { flex: 0 0 auto; width: 58px; height: var(--h); display: flex; align-items: center; justify-content: center; padding: var(--space-md) 0; background: var(--color-paper-2); color: var(--color-ink-2); border: var(--rule-hair) solid var(--color-rule-2); border-radius: 0; cursor: pointer; transform-origin: bottom center; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1); }
.spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: var(--text-sm); font-stretch: var(--stretch-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.spine--alt { background: var(--color-paper-3); }
.spine--hot { background: var(--color-accent-wash); color: var(--color-ink); border-color: var(--color-accent); }
.spine:hover { transform: translateY(-14px); color: var(--color-ink); }
.spine:active { transform: translateY(-6px); }
.spine[aria-expanded="true"] { transform: translateY(-28px); background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.book-note { display: grid; gap: var(--space-xs); margin-top: var(--space-xl); max-width: 48rem; min-height: 9rem; }
.book-note__title { font-size: var(--text-title); font-stretch: var(--stretch-display); text-align: right; }
.book-note [dir="ltr"] { text-align: right; }
@media (max-width: 40rem) { .shelf { height: 300px; } .spine { width: 48px; } }

/* ---------- contact ---------- */
.contact { border-bottom: 0; }
.well { background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); }
.session { padding: var(--space-xl); font-size: var(--text-sm); line-height: 2; overflow-x: auto; }
.session p { max-width: none; white-space: pre; }
.prompt { color: var(--color-muted); }
.session__fp { color: var(--color-accent); }
.caret { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: text-bottom; background: var(--color-accent); animation: blink 1s steps(1) 5; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- footer ---------- */
.colophon { position: relative; z-index: var(--z-base); background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl); }
.colophon__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--space-lg); align-items: baseline; font-size: var(--text-sm); }
@media (max-width: 48rem) { .colophon__in { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .spine, .spine:hover, .spine[aria-expanded="true"] { transform: none; }
  .caret { animation: none; }
}
