/* Wissal Lahjouji — portfolio
   Console-style system (light grey page, square corners, Geist + Geist Mono), with:
   a sticky hero, an About band with expertise chips, a three-per-page work carousel, all-dark card visuals,
   scroll motion, bracket labels, Geist for paragraphs (mono only for labels and figures), parallel career rows,
   and one merged contact block. */
:root {
  --bg: #F5F5F5;
  --card: #FAFAFA;
  --ink: #050505;
  --ink-2: #555;
  --ink-3: #6F6F6F;
  --line: #DCDCDC;
  --dk: #0B0B0B;
  --dk-line: #262626;
  --dk-ink: #EDEDED;
  --dk-ink-2: #9A9A9A;
  --or: #EE6A3C;       /* the one accent: every interactive state uses it */
  --gr: #3FA35B;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --maxw: 1200px;
  --gut: clamp(16px, 2.4vw, 24px);
  --inset: clamp(20px, 3vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--or); outline-offset: 3px; }

.shell { max-width: calc(var(--maxw) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-io .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(245,245,245,.8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav--scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 12px; padding-block: 14px; padding-inline: calc(var(--gut) + var(--inset)); }
.mark { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: .06em; white-space: nowrap; transition: opacity .25s; }
.nav--hero .mark { opacity: 0; pointer-events: none; }
.mark i { width: 22px; height: 22px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-style: normal; font-size: 11px; }
.nav__links { margin-left: auto; display: flex; gap: 4px; }
.nav__links a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); padding: 8px 12px; position: relative; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1.5px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-on { color: var(--ink); }
.nav__links a.is-on::after { transform: none; }
.nav__r { margin-left: 16px; display: flex; gap: 8px; }
@media (max-width: 860px) { .nav__links { display: none; } .nav__r { margin-left: auto; } }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; font-family: var(--mono); text-transform: uppercase; font-size: 14px; letter-spacing: .02em; border: 1px solid var(--ink); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; background: none; }
.btn--dk { background: var(--ink); color: var(--bg); }
.btn--dk:hover { background: var(--or); border-color: var(--or); color: var(--ink); }
.btn--ol:hover { background: var(--ink); color: var(--bg); }
.btn--lt { background: var(--dk-ink); color: var(--ink); border-color: var(--dk-ink); text-transform: none; }
.btn--lt:hover { background: var(--or); border-color: var(--or); }
.btn--gh { color: var(--dk-ink); border-color: #3A3A3A; }
.btn--gh:hover { border-color: var(--dk-ink); }
.btn--lg { height: 52px; font-size: 16px; padding: 0 20px; }
@media (max-width: 560px) {
  .nav__in { padding-inline: var(--gut); gap: 8px; }
  .mark { font-size: 15px; gap: 8px; letter-spacing: .04em; }
  .mark i { width: 20px; height: 20px; font-size: 10px; }
  .nav .btn { height: 38px; padding: 0 12px; font-size: 13px; }
}

/* ---------- type ---------- */
.h2 { font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h3 { font-weight: 400; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; margin: 0; }
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 52ch; margin: 16px 0 0; line-height: 1.5; letter-spacing: -.01em; text-wrap: pretty; }
.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.section { padding: clamp(80px, 11vw, 144px) 0 0; }
.head { padding: 0 var(--inset); margin-bottom: 28px; }   /* heading → content: same 28px as the About sentence → chips */

/* ---------- hero (layout and fitting unchanged from the live site) ---------- */
.hero { padding: clamp(40px, 7vw, 88px) var(--inset) clamp(40px, 11vw, 56px); }   /* phones/tablets: room between the statement and the About band */
@media (min-width: 761px) {
  /* fixed, generous padding (not a full-screen hero): ~150px above and ~120px below at 1440, so the hero takes
     about two-thirds of a laptop screen and About starts just above the fold */
  .hero { padding-top: clamp(64px, 10vw, 148px); padding-bottom: calc(clamp(56px, 8.5vw, 120px) + 70px); }   /* +70px: a taller hero before About */
  main .about { padding-top: clamp(40px, 5.5vw, 80px); }   /* beats the base .about rule further down */
}
.name { font-weight: 400; font-size: var(--name-size, clamp(32px, 9.8vw, 79px)); line-height: .95; letter-spacing: -.065em; margin: 0 0 0 -.04em; }
.name span { letter-spacing: -.065em; }
.name, .statement { text-box: trim-both cap alphabetic; }
.hero__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(16px, 4vw, 56px); align-items: stretch; }
.hero__row > div { display: flex; flex-direction: column; justify-content: center; gap: max(20px, calc(var(--name-size, 32px) * .3)); }
.statement { font-weight: 400; font-size: var(--statement-size, clamp(17px, 2.85vw, 26px)); line-height: 1.12; letter-spacing: -.04em; margin: 0; text-wrap: pretty; }
.portrait { margin: 0; width: clamp(104px, 22vw, 250px); align-self: center; }
.keep { white-space: nowrap; }
@media (min-width: 761px) {
  .statement { white-space: nowrap; padding-bottom: .2em; }
  .hero__meta { padding-top: calc(var(--statement-size, 26px) * .2); }
  /* one gap, scaled with the name: labels → name and name → statement are equal, letter to letter */
  .hero__row > div { --hero-gap: calc(var(--name-size, 79px) * .28); gap: var(--hero-gap); }
  .hero__top .hero__meta { margin-bottom: var(--hero-gap); }
}
@media (max-width: 560px) { .portrait { width: clamp(124px, 40vw, 210px); } }
.frame { --c: var(--ink); position: relative; padding: 7px;
  background:
    linear-gradient(var(--c),var(--c)) top left/12px 1px no-repeat, linear-gradient(var(--c),var(--c)) top left/1px 12px no-repeat,
    linear-gradient(var(--c),var(--c)) top right/12px 1px no-repeat, linear-gradient(var(--c),var(--c)) top right/1px 12px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left/12px 1px no-repeat, linear-gradient(var(--c),var(--c)) bottom left/1px 12px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right/12px 1px no-repeat, linear-gradient(var(--c),var(--c)) bottom right/1px 12px no-repeat; }
.frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 20px; }
.hero__meta .eyebrow { margin: 0; display: block; text-box: trim-both cap alphabetic; }
.hero__meta .eyebrow::before { display: inline-block; margin-right: 10px; vertical-align: calc(.36em - 3.5px); }
.eyebrow--live::before { background: var(--gr); animation: blink 1.8s infinite; }   /* "currently": the same soft blink as the original mockup */
@keyframes blink { 50% { opacity: .3; } }
@media (max-width: 760px) {
  .hero__row { grid-template-rows: 1fr auto auto auto 1fr; grid-template-areas: ". photo" "meta photo" "name photo" "stmt photo" ". photo"; row-gap: 0; }
  .hero__row > div, .hero__top { display: contents; }
  .hero__meta { grid-area: meta; }
  .name { grid-area: name; }
  .statement { grid-area: stmt; margin-top: 20px; font-size: var(--statement-size, clamp(18.7px, 3.135vw, 28.6px)); }
  .portrait { grid-area: photo; }
}
@media (max-width: 480px) {
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: none; grid-template-areas: "meta meta" "name photo" "stmt stmt"; }
  .name { align-self: start; margin-top: 7px; }
  .name span { display: block; }
  .statement { align-self: auto; white-space: nowrap; }
  .statement .keep { display: block; }
  .portrait { width: clamp(88px, 27.56vw, 137px); align-self: start; }
}
/* phones and small tablets: the hero takes about two-thirds of the screen before About; more air between
   the labels, the name + photo, and the statement (the name and photo sizes are still fitted by JS) */
@media (max-width: 760px) {
  .hero { min-height: calc(68svh - var(--nav-h, 64px)); display: flex; flex-direction: column; justify-content: center; padding-block: 32px 48px; }
  .hero .hero__meta { margin-bottom: 36px; }
  .hero .statement { margin-top: 36px; }
}
/* first paint: hero rises in */
.hero__row { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }


/* ---------- about: one sentence, three hand-set lines; the longest runs the full content width ---------- */
.about { padding: clamp(64px, 8vw, 96px) var(--inset) 0; }
/* .lead: the About sentence size, also used for section headings that sit under a .label */
.lead, .about__p { margin: 0; font-weight: 400; font-size: clamp(18px, 4.8vw, 20px); line-height: 1.3; letter-spacing: -.03em; color: var(--ink); }
.about__p { color: var(--ink-3); }
.about__p b { font-weight: 400; color: var(--ink); }
@media (min-width: 761px) { .lead, .about__p { font-size: min(24px, 1.95vw); } .about__p { white-space: nowrap; } }   /* ~0.6× the hero statement; longest line is ~28× the font size, so it always fits */
@media (max-width: 760px) { .about__p br { display: none; } }   /* phones: the sentence wraps naturally */
/* expertise: small chips under the About sentence, modelled on the case-card metadata chip (.mchip);
   they fade in one after another */
.skills { margin-top: 28px; }
.skills__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.skills__list li { padding: 4px 9px; border-radius: 6px; background: #F7F7F7; font-family: var(--mono); font-size: 11px; color: var(--ink-2);   /* lighter than .mchip so it shows on the grey band */
  transition: color .2s, opacity .6s var(--ease), transform .6s var(--ease); transition-delay: 0s, calc(var(--i) * 40ms), calc(var(--i) * 40ms); }
.skills__list li:hover { color: var(--ink); }
.skills:not(.in) li { opacity: 0; transform: translateY(6px); }
.no-io .skills li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .skills:not(.in) li { opacity: 1; transform: none; } }

/* ---------- case studies: carousel, three cards per view (two on tablets, one on phones); arrows move a page ---------- */
.rail-panel { background: #EAEAEA; padding: clamp(28px, 4vw, 48px) 0; }   /* same padding top and bottom */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 12px; margin: -4px var(--inset) 0; }   /* clipped at the content edge: no neighbouring card peeks in; the 4px top is hover room, pulled back so it adds no gap */
.rail::-webkit-scrollbar { display: none; }
.rail-ctrl { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 12px var(--inset) 0; }   /* + the rail's 12px = 24px from the cards */
.ccard { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; background: #fff; border: 0; border-radius: 4px; overflow: hidden; text-align: left; padding: 0; cursor: pointer; display: flex; flex-direction: column;
  transition: opacity .7s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease); transition-delay: var(--d, 0s); }
.ccard.reveal.in { transition-delay: 0s, 0s, 0s; }
.ccard:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(0,0,0,.45); }
.ccard__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ccard__k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.ccard__title { font-size: 21px; line-height: 1.2; letter-spacing: -.025em; font-weight: 400; margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.ccard__title::after { content: "→"; font-family: var(--mono); font-size: 16px; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.ccard:hover .ccard__title::after { transform: translateX(4px); color: var(--or); }
.ccard__sum { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.mchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.mchip { background: #F0F0F0; border-radius: 6px; padding: 4px 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 1000px) { .ccard { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .rail { gap: var(--inset); } .ccard { flex-basis: 100%; } }
.rail-dots { display: flex; align-items: center; gap: 4px; width: clamp(96px, 28vw, 168px); }
.rail-dot { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.rail-dot::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: #C9C9C9; transition: background .25s; }
.rail-dot.is-filled::after { background: var(--ink); }
.round { width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--ink); display: grid; place-items: center; cursor: pointer; background: #fff; color: var(--ink); transition: opacity .15s, background .15s; }
.round--dk { background: var(--ink); color: #fff; }
.round:not(:disabled):not(.round--dk):hover { background: var(--ink); color: #fff; }
.round:disabled { opacity: .35; cursor: default; }

/* ---------- case visuals: all dark, animated on first view ---------- */
.bviz { height: 210px; position: relative; overflow: hidden; background: #0F1114; color: #E8E8E8;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 14px 14px; }
.bviz--lg { height: clamp(260px, 40vh, 340px); }
.bviz.bviz--lg .vrows { top: 50%; transform: translateY(-50%); }
.bviz .vrows { position: absolute; inset: 18px 18px auto; display: grid; gap: 8px; font-family: var(--mono); font-size: 11.5px; }
.bviz .vrow { display: grid; grid-template-columns: 8px 1fr 44px 50px; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.05); }
.bviz .vrow i, .bviz .prov i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.bviz .vbar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); position: relative; overflow: hidden; }
.bviz .vbar b { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.bviz .vrow:nth-child(2) b { transition-delay: .1s; } .bviz .vrow:nth-child(3) b { transition-delay: .2s; } .bviz .vrow:nth-child(4) b { transition-delay: .3s; }
.bviz .vrow span:last-child { text-align: right; color: #9A9A9A; }
.bviz .vok { color: #6EE7A8 !important; }
.bviz .prov { position: absolute; left: 18px; top: 18px; display: grid; gap: 7px; }
.bviz .prov span { display: flex; align-items: center; gap: 8px; width: max-content; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: 11.5px; }
.bviz svg.fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.bviz .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.bviz .fade { opacity: 0; transition: opacity .8s .6s; }
.bviz .funnel { position: absolute; inset: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.bviz .funnel div { display: flex; flex-direction: column; gap: 8px; }
.bviz .funnel strong { font-size: 44px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.bviz .funnel em, .bviz .weeks { font-style: normal; font-size: 12px; color: #8A8A8A; font-family: var(--mono); }
.bviz .funnel .b { border-radius: 6px; background: rgba(255,255,255,.14); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease); }
.bviz .funnel .b.on { background: linear-gradient(#6EE7A8, #3FA35B); transition-delay: .25s; }
.bviz .alert { position: absolute; right: 16px; top: 16px; background: #1B1E23; color: #E8E8E8; border-radius: 10px; padding: 6px 10px;
  font-size: 12px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.bviz .alert i { width: 7px; height: 7px; border-radius: 50%; background: #E5484D; }
.bviz .weeks { position: absolute; inset: 30px 22px; display: grid; gap: 18px; align-content: center; }
.bviz .weeks div { display: grid; gap: 7px; }
.bviz .weeks .w { height: 26px; border-radius: 6px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; font-weight: 500; color: #CFCFCF;
  transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.bviz .weeks .w.on { background: #7C9CFF; color: #0F1114; width: 22%; min-width: 64px; transition-delay: .3s; }
.in .bviz .vbar b, .bviz--lg .vbar b, .in .bviz .funnel .b, .bviz--lg .funnel .b, .in .bviz .weeks .w, .bviz--lg .weeks .w { transform: none; }
.in .bviz .draw, .bviz--lg .draw { stroke-dashoffset: 0; }
.in .bviz .fade, .bviz--lg .fade { opacity: 1; }

/* ---------- case dialog ---------- */
dialog.case { border: 0; padding: 0; width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); background: var(--card); color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
dialog.case[open] { animation: pop .35s var(--ease); }
dialog.case::backdrop { background: rgba(10,10,10,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.case__in { padding: clamp(22px, 4vw, 36px); }
.case__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.case__k { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--or); letter-spacing: .04em; }
.case__title { font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.04em; line-height: 1.08; margin: 8px 0 0; }
.case__x { border: 1px solid var(--line); background: #fff; width: 36px; height: 36px; cursor: pointer; font-family: var(--mono); flex: none; transition: border-color .2s; }
.case__x:hover { border-color: var(--ink); }
.body__sum { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; max-width: 52ch; }
.hard { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--or); font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; letter-spacing: -.025em; }
.hard b { display: block; font-family: var(--mono); font-weight: 400; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.body__out { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.body__out li { padding: 14px 14px 0 0; font-size: 15px; line-height: 1.35; }
.body__out li + li { padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 560px) { .body__out { grid-template-columns: 1fr; } .body__out li + li { padding-left: 0; border-left: 0; } .body__out li { padding: 10px 0; border-bottom: 1px solid var(--line); } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px 11px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.case__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.case__nav .btn { height: 40px; font-size: 12.5px; text-transform: none; max-width: 48%; overflow: hidden; }
.case__nav .btn span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .case__nav span { display: none; } }

/* ---------- stage ---------- */
.stagebox { background: var(--dk); color: var(--dk-ink); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .stagebox { grid-template-columns: 1fr; } }
.stagebox .eyebrow { color: var(--dk-ink-2); }
.stagebox .eyebrow::before { background: var(--or); }
.stagebox .lede { color: var(--dk-ink-2); font-size: 16px; }
.stagebox ul { list-style: none; padding: 0; margin: 24px 0 0; }
.stagebox li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--dk-line); font-size: 14.5px; }
.stagebox li span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--dk-ink-2); text-transform: uppercase; text-align: right; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; transition: transform .8s var(--ease); }
.video:hover img { transform: scale(1.03); }
.video .play { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.7)); border: 0; cursor: pointer; display: flex; align-items: flex-end; gap: 14px; padding: clamp(14px, 2.4vw, 22px); }
.play__btn { width: 56px; height: 56px; border-radius: 50%; background: var(--dk-ink); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; padding-left: 3px; }
.video:hover .play__btn { transform: scale(1.08); background: var(--or); }
.play__lbl { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: rgba(10,10,10,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 8px 12px; margin-bottom: 11px; }

/* ---------- career: one row per role, all parallel ---------- */
.career { padding: 0 var(--inset); }
.crow { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.crow:first-child { border-top: 1px solid var(--line); }
.crow .n { font-family: var(--mono); font-size: 13px; color: var(--ink-3); padding-top: 6px; white-space: nowrap; }
.crow .h3 { font-size: clamp(19px, 2.2vw, 24px); }
.crow .h3 span { color: var(--ink-3); }
.dbody { margin: 6px 0 0; font-size: 15.5px; color: var(--ink-2); max-width: 68ch; line-height: 1.5; }
@media (max-width: 560px) { .crow { grid-template-columns: 1fr; gap: 4px; } .crow .n { padding-top: 0; } }   /* phones: year above the role, full width for the text */

/* ---------- contact + footer ---------- */
.cta { margin-top: clamp(80px, 11vw, 144px); color: var(--dk-ink); padding: clamp(36px, 6vw, 72px) var(--inset) clamp(24px, 3vw, 32px); display: grid; gap: clamp(56px, 8vw, 96px);
  background: radial-gradient(70% 90% at 90% 0%, rgba(238,106,60,.22) 0%, transparent 60%), radial-gradient(80% 120% at 85% 0%, #2E2E2E 0%, #121212 55%, #0B0B0B 100%); }
.cta .eyebrow { color: var(--dk-ink-2); }
.cta .eyebrow::before { background: var(--gr); }
.cta__h { font-weight: 400; font-size: clamp(36px, 6.4vw, 84px); line-height: 1; letter-spacing: -.055em; margin: 0; max-width: 14ch; color: #fff; text-wrap: balance; }
.cta__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(24px, 3vw, 36px); }
.fbot { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-top: 20px; border-top: 1px solid var(--dk-line); }
.fbot .wm { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; }
.fbot small { color: var(--dk-ink-2); font-size: 13px; }
@media (max-width: 560px) { .cta__row .btn--lt { width: 100%; justify-content: center; font-size: 14px; } }

/* ---------- sticky hero: it stays put and the rest of the page slides over it ---------- */
.hero { position: sticky; top: var(--nav-h, 70px); z-index: 0; }
.over { position: relative; z-index: 1; background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }   /* the page colour runs edge to edge, covering the hero */

/* about: a full-bleed band in the same grey as the Selected work panel */
.about { --band: #EAEAEA; position: relative; padding-bottom: clamp(56px, 7vw, 96px); background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); }
main .about { padding-top: clamp(56px, 7vw, 96px); }
.about .eyebrow::before { display: none; }   /* no dot on this label */


/* .label: black mono caps with a short rule ("About me", "Selected work") */
.label { --lbl: var(--ink); display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--lbl); }
.label::after { content: ""; width: 48px; height: 1px; background: var(--lbl); }
/* .label--frame: corner brackets like the portrait frame instead of the trailing rule; the left bracket sits on
   the content line, flush with the text below */
.label--frame { --c: var(--lbl); width: fit-content; padding: 3px 6px;
  background:
    linear-gradient(var(--c),var(--c)) top left/6px 1px no-repeat, linear-gradient(var(--c),var(--c)) top left/1px 6px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right/6px 1px no-repeat, linear-gradient(var(--c),var(--c)) bottom right/1px 6px no-repeat; }   /* two opposite corners only */
.label--frame::after { display: none; }
/* on the dark blocks (keynote, contact): light label and heading */
.stagebox .label, .cta .label { --lbl: var(--dk-ink); }
.stagebox .lead { color: var(--dk-ink); }
/* "On stage": a blinking red on-air light before the text; no brackets, no trailing rule */
.label--onair { gap: 10px; }
.label--onair::after { display: none; }
.label--onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 6px rgba(229,72,77,.7); animation: blink 1.4s infinite; }
