/*
 * Saidu Bello: portfolio.
 * The foundations come from the Bayan design system: its colour tokens (css/tokens.css), Neue Montreal for every word,
 * a fixed type hierarchy, fills never outlines, no drop shadows. The layout is its own: a white page, numbered
 * sections on hairlines, the section name on the left and the content on the right.
 */

@import url("tokens.css");

@font-face { font-family: "Neue Montreal"; src: url("../fonts/NeueMontreal-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Montreal"; src: url("../fonts/NeueMontreal-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }

:root {
  --g: 24px;
  --gap: 128px;
  --max: 1200px;
  --r: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Neue Montreal", -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* only BC8.AI's card uses it, as bc8.ai sets its labels */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Lenis smooth scroll (lenis@1.3.20/dist/lenis.css) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.lenis { scroll-behavior: auto; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px; scrollbar-gutter: stable; }
html.panel-open { overflow: hidden; }
body {
  margin: 0; background: var(--black); color: var(--ink);
  font: 400 18px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
/* a section that takes focus after an in-page link shows no ring around the whole section */
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--ink); color: var(--black); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--black); }
.skip:focus { top: 16px; }
.wrap { width: min(var(--max), 100% - 2 * var(--g)); margin-inline: auto; }

/* ---------- type: the hero heading is the largest; then the statement, the closing line, the section leads, body ---------- */
h1 { font-weight: 500; font-size: clamp(44px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }
h2 { font-weight: 500; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 17px; line-height: 1.3; }
.body { color: var(--soft); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; text-wrap: pretty; }
.small { color: var(--mute); font-size: 15px; line-height: 1.4; }

/* ---------- buttons: solid fills, never outlined ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 28px; border-radius: 999px;
  font-weight: 500; font-size: 18px; line-height: 1; white-space: nowrap;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}
.btn svg { width: 20px; height: 20px; margin-left: -4px; }
.btn.solid { background: var(--ink); color: var(--black); }
.btn.quiet { background: var(--panel2); color: var(--ink); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 16px; gap: 7px; }
.btn.sm svg { width: 15px; height: 15px; margin: 0 -2px 0 0; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { opacity: 0.86; } }

/* ---------- hero: the words on the left, the portrait on the right ---------- */
.hero { padding: 72px 0 var(--gap); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 72px; align-items: center; }
.kicker { display: flex; flex-direction: column; gap: 2px; font-size: 17px; }
.kicker b { font-weight: 500; }
.kicker span { color: var(--mute); }
.hero h1 { margin-top: 64px; max-width: 12ch; }
.lede { margin-top: 28px; max-width: 30em; color: var(--soft); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
/* the portrait: the photo in black and white, the current role under it */
.portrait .frame { overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--fill); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1); }
.portrait figcaption { display: flex; gap: 10px; margin-top: 14px; font-size: 15px; color: var(--ink); }
.portrait figcaption span { color: var(--mute); }

/* ---------- sections: a hairline, the number and name on the left, the content on the right ---------- */
.sec { padding: 0 0 var(--gap); }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px 48px; padding-top: 28px; border-top: 1px solid var(--line); }
/* the section's name is its h2, set small: the hierarchy is carried by the hero and the lead lines */
.label { position: sticky; top: 32px; align-self: start; display: flex; gap: 14px; font-weight: 500; font-size: 16px; line-height: 1.5; letter-spacing: 0; text-wrap: wrap; }
.label span { color: var(--mute); font-variant-numeric: tabular-nums; }
.statement { max-width: 24ch; font-weight: 500; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.033em; text-wrap: balance; }
.lead-h { max-width: 26ch; margin-bottom: 48px; font-weight: 500; font-size: clamp(24px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -0.025em; text-wrap: balance; }

/* ---------- experience: a role per row; open one to read it ---------- */
.roles { border-top: 1px solid var(--line); }
.role { border-bottom: 1px solid var(--line); }
.role summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; grid-template-areas: "what when pm";
  align-items: center; gap: 6px 32px; padding: 24px 0;
}
.role summary::-webkit-details-marker { display: none; }
.role-what { grid-area: what; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.role-what b { font-weight: 500; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; letter-spacing: -0.02em; transition: opacity .2s; }
.role-what span { color: var(--mute); font-size: 16px; }
.role-when { grid-area: when; color: var(--mute); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) { .role summary:hover .role-what b { opacity: .62; } }
/* plus, and minus once it's open (it turns at once, before the role closes) */
.pm { grid-area: pm; position: relative; display: block; width: 20px; height: 20px; }
.pm::before, .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--ink); transition: transform .3s var(--ease); }
.pm::after { transform: rotate(90deg); }
.role[open]:not(.closing) .pm::after { transform: rotate(0deg); }
.role-body { overflow: hidden; }
.role-in { display: grid; gap: 20px; padding: 0 52px 32px 0; }

/* a list of points: a small dot in the muted ink, the text on one left edge */
.points { display: grid; gap: 12px; max-width: 46em; }
.points li { position: relative; padding-left: 22px; color: var(--read); font-size: 18px; line-height: 1.55; text-wrap: pretty; }
.points li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
/* "leads": the name on its own line, the explanation beneath */
.points.leads { gap: 18px; }
.points.leads li b { display: block; color: var(--ink); font-weight: 500; }
/* the tools, as a quiet line */
.tools { display: flex; flex-wrap: wrap; row-gap: 4px; color: var(--mute); font-size: 15px; }
/* the dot ends an item, so a wrapped line never starts with one */
.tools li:not(:last-child)::after { content: "·"; margin: 0 9px; }

/* earlier roles and education: one line each */
.earlier { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; margin-top: 72px; }
.earlier h3 { color: var(--mute); font-size: 16px; margin-bottom: 12px; }
.rows { border-top: 1px solid var(--line); }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows span { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--mute); font-size: 15px; line-height: 1.4; }
.rows b { color: var(--ink); font-weight: 500; font-size: 17px; }
.rows .when { color: var(--mute); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- projects: cards of one fill; ZERO first, in its own look. Each opens its panel ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.proj {
  display: flex; flex-direction: column; min-height: 280px; padding: 28px; border-radius: var(--r);
  background: var(--fill); color: var(--ink); text-align: left;
  transition: background-color .3s var(--ease), transform .25s var(--ease);
}
.proj-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: auto; }
.proj-kind { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; font-weight: 500; }
/* the BlackBit symbol, as supplied (media kit): light on dark, dark on light, never altered */
.bb { width: 24px; height: 18px; flex: none; }
.proj .go { width: 20px; height: 20px; color: var(--mute); transition: transform .35s var(--ease), color .2s; }
.proj-title { margin-top: 56px; font-weight: 500; font-size: clamp(30px, 3vw, 42px); line-height: 1.02; letter-spacing: -0.03em; }
.proj-line { margin-top: 12px; max-width: 30em; color: var(--soft); font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.proj:active { transform: scale(.99); }
@media (hover: hover) {
  .proj:hover { background: var(--field); }
  .proj:hover .go { transform: translate(3px, -3px); color: var(--ink); }
}

/* ZERO, in the look of blackbit.sh/zero: black, a soft light, hairline columns, and the swarm — a grid of agents,
   a few lit at a time as they run */
.proj.zero { position: relative; overflow: hidden; isolation: isolate; grid-column: 1 / -1; min-height: 360px;
  background: var(--zero-ground); color: var(--zero-ink); box-shadow: inset 0 0 0 1px var(--zero-line); }
.proj.zero::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: opacity .6s var(--ease); opacity: .85;
  background: radial-gradient(ellipse 55% 75% at 80% 45%, rgba(var(--zero-glow-rgb), .14), rgba(var(--zero-glow-rgb), 0) 70%); }
.proj.zero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(90deg, rgba(var(--zero-glow-rgb), 0) 0 calc(25% - 1px), var(--zero-line) calc(25% - 1px) 25%);
  -webkit-mask-image: linear-gradient(180deg, var(--zero-ink), rgba(var(--zero-glow-rgb), 0) 90%); mask-image: linear-gradient(180deg, var(--zero-ink), rgba(var(--zero-glow-rgb), 0) 90%); }
.proj.zero .proj-kind, .proj.zero .proj-line, .proj.zero .go { color: var(--zero-soft); }
.proj.zero .proj-line { max-width: 26em; }
.swarm { position: absolute; right: 56px; top: 50%; translate: 0 -50%; z-index: -1; display: grid; grid-template-columns: repeat(8, 10px); gap: 14px; }
.swarm i { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--zero-dot); }
.swarm i.on { background: var(--zero-ink); animation: agent 4s var(--ease) infinite both; animation-delay: var(--d, 0s); }
@keyframes agent { 0%, 100% { opacity: .18; } 35%, 60% { opacity: 1; } }
@media (hover: hover) {
  .proj.zero:hover { background: var(--zero-ground); }
  .proj.zero:hover::before { opacity: 1; }
  .proj.zero:hover .go { color: var(--zero-ink); }
}
.proj.zero:focus-visible { outline-color: var(--ink); }

/* VOID, in the look of blackbit.sh/void: black, and many model tiles around one lit hub (BlackBit's), running off the
   card's edge. The tiles are left plain: other companies' model marks aren't BlackBit's to lend */
.proj.void { position: relative; overflow: hidden; isolation: isolate;
  background: var(--zero-ground); color: var(--zero-ink); box-shadow: inset 0 0 0 1px var(--zero-line); }
.proj.void::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .8; transition: opacity .6s var(--ease);
  background: radial-gradient(circle at 84% 78%, rgba(var(--zero-glow-rgb), .12), rgba(var(--zero-glow-rgb), 0) 55%); }
.proj.void .proj-kind, .proj.void .proj-line, .proj.void .go { color: var(--zero-soft); }
.proj.void .proj-title, .proj.void .proj-line { max-width: calc(100% - 104px); }
.proj.void .proj-line { max-width: min(15em, calc(100% - 104px)); }
.tiles { position: absolute; right: -30px; bottom: -18px; z-index: -1; display: grid; grid-template-columns: repeat(3, 44px); gap: 8px;
  -webkit-mask-image: linear-gradient(90deg, rgba(var(--zero-glow-rgb), 0), var(--zero-ink) 55%); mask-image: linear-gradient(90deg, rgba(var(--zero-glow-rgb), 0), var(--zero-ink) 55%); }
.tiles i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(180deg, var(--void-tile-top), var(--void-tile-bottom)); box-shadow: inset 0 0 0 1px var(--zero-line); }
.tiles i.hub { background: linear-gradient(180deg, var(--void-hub-top), var(--void-hub-bottom)); box-shadow: inset 0 0 0 1px var(--void-hub-line); }
.tiles img { width: 22px; height: 16px; }
@media (hover: hover) {
  .proj.void:hover { background: var(--zero-ground); }
  .proj.void:hover::before { opacity: 1; }
  .proj.void:hover .go { color: var(--zero-ink); }
}
.proj.void:focus-visible { outline-color: var(--ink); }

/* BC8.AI, in the look of bc8.ai: black, a fine grid, the BC8 wordmark as its title, small uppercase mono labels,
   cut corners, and the arrow on a white cut-corner chip like the site's buttons */
.proj.bc8 { position: relative; isolation: isolate; border-radius: 0; background: var(--bc8-ground); color: var(--bc8-ink);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px)); }
.proj.bc8::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    repeating-linear-gradient(0deg, var(--bc8-line) 0 1px, rgba(var(--zero-glow-rgb), 0) 1px 24px),
    repeating-linear-gradient(90deg, var(--bc8-line) 0 1px, rgba(var(--zero-glow-rgb), 0) 1px 24px);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, var(--bc8-ink), rgba(var(--zero-glow-rgb), 0) 75%); mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, var(--bc8-ink), rgba(var(--zero-glow-rgb), 0) 75%); }
.proj.bc8 .proj-kind { color: var(--bc8-soft); font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.proj.bc8 .proj-title { line-height: 0; }
.bc8-mark { width: 136px; height: 32px; }
.proj.bc8 .proj-line { margin-top: 18px; max-width: 24em; color: var(--bc8-soft); font-family: var(--mono); font-size: 14px; line-height: 1.55; letter-spacing: .01em; }
.proj.bc8 .chip { display: grid; place-items: center; width: 34px; height: 30px; margin-right: 6px; background: var(--bc8-ink); color: var(--bc8-chip-ink);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.proj.bc8 .chip .go { width: 16px; height: 16px; color: var(--bc8-chip-ink); }
@media (hover: hover) {
  .proj.bc8:hover { background: var(--bc8-ground); }
  .proj.bc8:hover .go { color: var(--bc8-chip-ink); }
}
/* the cut corners clip an outline, so focus shows on the inside edge */
.proj.bc8:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--bc8-ink); }

/* Bayan, in the look of getbayan.app: its dark ground under a warm blurred light, its mark, and the app's own home
   screen in a phone rising from the bottom. It stands two cards tall, beside VOID and BC8.AI */
.proj.bayan { position: relative; overflow: hidden; isolation: isolate; grid-row: span 2; min-height: 572px;
  background: var(--bayan-ground); color: var(--bayan-ink); }
.bayan-light { position: absolute; inset: -60px -60px auto; height: 420px; z-index: -2; pointer-events: none;
  background: url("../img/bayan/light.jpg") center 35% / cover no-repeat; filter: blur(28px); opacity: .62; }
.proj.bayan::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(var(--bayan-ground-rgb), .18) 0%, rgba(var(--bayan-ground-rgb), .55) 34%, var(--bayan-ground) 62%); }
.proj.bayan .proj-top { margin-bottom: 0; }
.proj.bayan .proj-kind, .proj.bayan .go { color: var(--bayan-soft); }
.bayan-mark { width: 20px; height: 20px; flex: none; }
.proj.bayan .proj-title { margin-top: 40px; }
.proj.bayan .proj-line { color: var(--bayan-soft); max-width: 22em; }
.bayan-sub { margin: 14px 0 28px; color: var(--bayan-mute); font-size: 15px; }
/* the phone: the app's real screen, cropped by the card's bottom edge */
.bayan-phone { --w: 236px; position: relative; display: block; width: var(--w); margin: auto auto calc(var(--w) * -1.1); aspect-ratio: 393 / 852;
  padding: calc(var(--w) * .03); border-radius: calc(var(--w) * .17); background: var(--bayan-phone-body);
  box-shadow: inset 0 0 0 calc(var(--w) * .006) var(--bayan-phone-edge-hi), inset 0 0 0 calc(var(--w) * .012) var(--bayan-phone-edge);
  transition: transform .6s var(--ease); }
.bayan-phone img { width: 100%; height: 100%; border-radius: calc(var(--w) * .14); object-fit: cover; object-position: top; }
@media (hover: hover) {
  .proj.bayan:hover { background: var(--bayan-ground); }
  .proj.bayan:hover .go { color: var(--bayan-ink); }
  .proj.bayan:hover .bayan-phone { transform: translateY(-10px); }
}
.proj.bayan:focus-visible { outline-color: var(--ink); }

.panel-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sq { width: 18px; height: 18px; flex: none; }

/* OnSell and Hush: a pair of cards, each showing its real app as a whole window within the card's margins, running
   off only its foot, as onsell.ai shows its workspace */
.proj.onsell, .proj.hush { position: relative; overflow: hidden; isolation: isolate; }
.proj.onsell .proj-top, .proj.hush .proj-top { margin-bottom: 0; }
.proj.onsell .proj-title, .proj.hush .proj-title { margin-top: 28px; }
.app-window { position: relative; display: block; flex: none; border-radius: 10px; overflow: hidden; transition: transform .6s var(--ease); }
.app-window img { display: block; width: 100%; height: auto; }
@media (hover: hover) { .proj.onsell:hover .app-window, .proj.hush:hover .app-window { transform: translateY(-8px); } }

/* OnSell, as onsell.ai shows itself: its wordmark, the black-and-grey headline, the orange dot, and its real workspace
   in front of the Doha coast; the skyline shows in the band between the words and the window */
.proj.onsell { background: var(--onsell-ground); color: var(--onsell-ink); box-shadow: inset 0 0 0 1px var(--onsell-line); }
.proj.onsell .proj-kind { color: var(--onsell-soft); }
.onsell-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--onsell-accent); }
.proj.onsell .proj-title { line-height: 0; }
.onsell-logo { width: auto; height: 34px; }
.proj.onsell .proj-line { margin-top: 14px; color: var(--onsell-soft); max-width: 24em; }
.onsell-tag { display: block; margin-bottom: 6px; color: var(--onsell-ink); font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -0.03em; }
.onsell-tag span { color: var(--onsell-grey); }
.onsell-stage { position: relative; display: block; isolation: isolate; overflow: hidden; margin: auto -28px -28px; padding: 66px 28px 0; }
.onsell-scene { position: absolute; top: -100px; left: 0; z-index: -1; width: 100%; height: 390px; object-fit: cover; object-position: 84% 50%;
  -webkit-mask-image: linear-gradient(180deg, rgba(var(--onsell-ground-rgb), 0) 100px, var(--onsell-ink) 130px); mask-image: linear-gradient(180deg, rgba(var(--onsell-ground-rgb), 0) 100px, var(--onsell-ink) 130px); }
.onsell-window { margin-bottom: -36px; box-shadow: 0 0 0 1px var(--onsell-line), 0 18px 48px rgba(var(--onsell-shadow-rgb), .16); }
@media (hover: hover) {
  .proj.onsell:hover { background: var(--onsell-ground); }
  .proj.onsell:hover .go { color: var(--onsell-ink); }
}

/* Hush, in its own tokens: paper, ink, monospace, the Quiet Fold icon; its mascot (blindfolded, mouth taped: it can't
   see or tell who you are) sits on its real, dark app */
.proj.hush { background: var(--hush-paper); color: var(--hush-ink); box-shadow: inset 0 0 0 1px var(--hush-line); }
.proj.hush .proj-kind { color: var(--hush-muted); font-family: var(--mono); font-size: 13px; font-weight: 400; }
.hush-icon { width: 22px; height: 22px; flex: none; }
.proj.hush .proj-title { font-family: var(--mono); font-weight: 600; letter-spacing: -0.06em; }
.proj.hush .proj-line { margin-bottom: 18px; color: var(--hush-muted); font-family: var(--mono); font-size: 15px; line-height: 1.55; max-width: 26em; }
.proj.hush .go { color: var(--hush-muted); }
.hush-bot { position: relative; z-index: 1; align-self: flex-end; width: auto; height: 96px; margin: auto 18px -13px 0; transition: transform .6s var(--ease); }
.hush-window { margin: 0 0 -64px; min-height: 0; box-shadow: 0 0 0 1px var(--hush-line); }
@media (hover: hover) {
  .proj.hush:hover { background: var(--hush-paper); }
  .proj.hush:hover .go { color: var(--hush-ink); }
  .proj.hush:hover .hush-bot { transform: translateY(-8px); }
}

/* ---------- skills: four groups, two columns ---------- */
.skill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.skill h3 { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
/* two columns while there's room, one when they'd get narrow; a wrapped name sits tighter than the gap between names */
.list { columns: 2 200px; column-gap: 24px; }
.list li { break-inside: avoid; padding-block: 5px; color: var(--soft); font-size: 17px; line-height: 1.35; }

/* ---------- contact ---------- */
.closing { max-width: 15ch; font-weight: 500; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.contact .body { margin-top: 20px; max-width: 30em; }
.contact .ctas { margin-top: 36px; }
.elsewhere { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; }
.elsewhere a { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 17px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: text-decoration-color .2s; }
.elsewhere svg { width: 15px; height: 15px; color: var(--mute); }
@media (hover: hover) { .elsewhere a:hover { text-decoration-color: var(--ink); } }

/* ---------- footer: the name across the bottom, outlined from Neue Montreal Medium (img/wordmark.svg) ---------- */
.footer { padding: 0 0 40px; }
/* the mask is on the shape inside the link, so the link's focus ring still shows */
.bigmark { display: block; }
.bigmark-shape { display: block; width: 100%; aspect-ratio: 4403 / 745; background: var(--ink);
  -webkit-mask: url("../img/wordmark.svg") center / contain no-repeat; mask: url("../img/wordmark.svg") center / contain no-repeat; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- a project's panel: white, on a dimmed page ---------- */
dialog.panel {
  width: min(640px, 100% - 24px); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0;
  border-radius: 24px; background: var(--panel); color: var(--ink); overflow: hidden;
  opacity: 0; translate: 0 24px; transition: opacity .3s var(--ease), translate .45s var(--ease);
}
dialog.panel.open { opacity: 1; translate: 0 0; }
dialog.panel::backdrop { background: var(--backdrop); opacity: 0; transition: opacity .3s var(--ease); }
dialog.panel.open::backdrop { opacity: 1; }
.panel-in { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 36px 40px 40px; }
.close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--fill); color: var(--ink); transition: background-color .2s, transform .16s ease-out; }
.close svg { width: 20px; height: 20px; }
.close:active { transform: scale(.94); }
@media (hover: hover) { .close:hover { background: var(--raised); } }
.panel-kind { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 15px; font-weight: 500; padding-right: 48px; }
.panel-intro { margin-top: 14px; max-width: 34em; color: var(--soft); font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.panel h2 { margin-top: 8px; padding-right: 48px; font-size: clamp(32px, 4vw, 44px); }
.panel .points { margin-top: 26px; }
.panel .tools { margin-top: 22px; }
.panel-link { margin-top: 28px; }

/* ---------- motion: gentle, and still under reduced motion ---------- */
.rise { animation: rise 1s var(--ease) both; }
.hero-copy .rise:nth-child(2) { animation-delay: 0.06s; }
.hero-copy .rise:nth-child(3) { animation-delay: 0.12s; }
.hero-copy .rise:nth-child(4) { animation-delay: 0.18s; }
.portrait.rise { animation-delay: 0.14s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(3) { transition-delay: 0.08s; }
.skill-grid .reveal:nth-child(2n) { transition-delay: 0.08s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  dialog.panel, dialog.panel::backdrop, .proj, .proj .go, .proj.zero::before, .proj.void::before, .bayan-phone, .app-window, .hush-bot, .pm::before, .pm::after { transition: none; }
  .swarm i.on { animation: none; }
}

/* ---------- printing, and Windows contrast themes ---------- */
@media print {
  .js .reveal, .rise { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .label { position: static; }
}
@media (forced-colors: active) {
  .pm::before, .pm::after, .bigmark-shape { background: CanvasText; forced-color-adjust: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .earlier { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  :root { --gap: 104px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { margin-top: 48px; }
  .portrait { max-width: 440px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .label { position: static; }
}
@media (max-width: 640px) {
  :root { --g: 16px; --gap: 88px; }
  body { font-size: 17px; }
  .hero { padding-top: 40px; }
  .hero h1 { margin-top: 40px; }
  .lede { margin-top: 20px; }
  .btn { height: 56px; }
  .ctas { flex-direction: column; align-items: stretch; max-width: 340px; }
  .lead-h { margin-bottom: 36px; }
  .role summary { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "what pm" "when pm"; padding: 20px 0; }
  .role-when { font-size: 15px; }
  .role-in { padding-right: 0; }
  .points li { font-size: 17px; }
  .earlier { margin-top: 56px; }
  .rows li { flex-direction: column; gap: 4px; }
  .grid { grid-template-columns: 1fr; }
  .proj { min-height: 240px; padding: 24px; }
  .proj.zero { min-height: 320px; }
  .swarm { right: 24px; top: 72px; translate: none; grid-template-columns: repeat(6, 8px); gap: 10px; }
  .swarm i { width: 8px; height: 8px; }
  .swarm i:nth-child(n+25) { display: none; }
  .tiles { right: -26px; grid-template-columns: repeat(3, 36px); gap: 7px; }
  .tiles i { width: 36px; height: 36px; border-radius: 10px; }
  .tiles img { width: 18px; height: 13px; }
  .proj.void .proj-title, .proj.void .proj-line { max-width: calc(100% - 86px); }
  .proj.bayan { grid-row: auto; min-height: 520px; }
  .onsell-stage { margin: auto -24px -24px; padding: 56px 24px 0; }
  .hush-bot { height: 88px; }
  .bayan-phone { --w: 210px; }
  .proj-title { margin-top: 40px; }
  .skill-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .panel-in { padding: 28px 22px 32px; }
}
