/* ============================================================
   Nabil Attia — executive landing page
   Palette: ink navy ground, stone light ground, brass accent
   Type: Cormorant Garamond (display) + Manrope (body)
   ============================================================ */

:root {
  --ink: #0e1624;
  --ink-2: #141f33;
  --ink-3: #1c2942;
  --stone: #ece7dc;
  --stone-2: #e2dbcc;
  --stone-3: #d3cab7;
  --brass: #b8955a;
  --brass-soft: #d2b783;
  --steel: #8e9aab;
  --text-dark: #1b2230;
  --text-mid: #4d5666;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 6vw, 96px);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--stone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-lead {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  font-style: italic;
}

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1.1rem) var(--gutter) 1.1rem;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
  color: var(--stone);
  mix-blend-mode: difference;
  transition: transform .5s var(--ease);
}
.bar.hidden { transform: translateY(-110%); }
.bar-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; }
.bar-nav { display: flex; gap: 2rem; }
.bar-nav a { position: relative; padding-block: .3rem; }
.bar-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.bar-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar-cv {
  border: 1px solid currentColor; padding: .55rem 1.1rem; border-radius: 999px;
  transition: background .35s, color .35s;
}
.bar-cv:hover { background: var(--stone); color: var(--ink); }
@media (max-width: 760px) { .bar-nav { display: none; } }

/* ---------- curtain (added by JS) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--stone);
  transform-origin: top; pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(env(safe-area-inset-top, 0px) + clamp(7rem, 14vh, 10rem)) var(--gutter) clamp(4rem, 8vh, 6rem);
  min-height: 92svh;
  display: flex; align-items: center;
}
.hero-grid {
  width: min(var(--max), 100%); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
.hero-kicker {
  font-size: .9rem; font-weight: 500; letter-spacing: .04em; color: var(--brass-soft);
  margin-bottom: 1.6rem;
}
.hero-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.3rem, 4.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.012em;
}
.hero-title .line { display: block; }
.hero-sub {
  max-width: 34rem; margin-top: 2rem;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.65; color: #c9c3b6;
}
.line { display: block; overflow: hidden; }
.line > span { display: block; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 2.4rem clamp(1.5rem, 3vw, 3rem);
  margin: 3.5rem 0 0; padding-top: 2.2rem; border-top: 1px solid rgba(236,231,220,.14);
}
.hero-stats dt {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 3.6vw, 3.4rem); line-height: 1;
  color: var(--stone); font-variant-numeric: tabular-nums;
}
.hero-stats dd { margin: .5rem 0 0; font-size: .8rem; color: var(--steel); max-width: 9rem; line-height: 1.4; }

.hero-portrait { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  background: var(--ink-2);
}
.portrait-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait-color { opacity: 0; transition: opacity 1.1s ease; }
.portrait-frame:hover .portrait-color { opacity: 1; }
.hero-portrait figcaption { margin-top: 1rem; font-size: .8rem; color: var(--steel); }

.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 2rem; width: 1px; height: 64px;
  background: rgba(236,231,220,.15); overflow: hidden;
}
.hero-scroll span {
  position: absolute; inset: 0; background: var(--brass);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; max-width: 320px; order: -1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-scroll { display: none; }
}

/* ---------- brands ---------- */
.brands {
  background: var(--stone); color: var(--text-dark);
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.brands .section-lead { margin-bottom: clamp(2rem, 5vw, 3.5rem); color: var(--text-mid); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: clamp(3.5rem, 7vw, 7rem); width: max-content;
  padding-inline: clamp(1.75rem, 3.5vw, 3.5rem);
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: clamp(30px, 4.2vw, 52px); width: auto; flex: none;
  filter: grayscale(1) contrast(1.05); opacity: .55;
  transition: filter .6s ease, opacity .6s ease, transform .6s var(--ease);
}
.marquee-track img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.marquee-track img[alt="Scylla AI"], .marquee-track img[alt="Kanz International Projects"], .marquee-track img[alt="Procter & Gamble"] { height: clamp(44px, 6vw, 72px); }
.marquee-track img[alt="Primagaz"] { height: clamp(40px, 5.4vw, 66px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- career carousel ---------- */
.career { background: var(--ink); padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem); }
.counter-mini { display: none; }
.career-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 901px) {
  .career { height: 100vh; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 4.6rem 0 1.6rem; overflow: hidden; }
  .career .h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
  .career-head { margin-bottom: 1.1rem; align-items: center; }
  .career-intro { font-size: .9rem; max-width: 26rem; }
  .years { margin-bottom: 1rem; padding-bottom: 1rem; }
  .years-line { bottom: 1rem; }
  .years button { padding: .2rem 0 .7rem; }
  .slide-body ul { max-width: 54rem; }
  .slide-inner { padding-top: 1.4rem; }
  .slide-body h3 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
  .slide-lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); margin-top: .7rem; }
  .slide-body ul { margin-top: 1.2rem; gap: .6rem; }
  .slide-body li { font-size: .92rem; line-height: 1.5; }
  .slide-logo, .slide-logo-text { margin-bottom: 1.1rem; }
  .slide-years { margin-bottom: 1.1rem; }
  .controls { margin-top: 1.4rem; padding-top: 1.1rem; }
  .ctrl { width: 44px; height: 44px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .career-intro { display: none; }
  .career .h2 { font-size: 1.9rem; }
  .slide-body h3 { font-size: 1.7rem; }
  .slide-lede { font-size: 1.1rem; }
  .slide-body li { font-size: .88rem; }
  .slide-body ul { gap: .45rem; margin-top: .9rem; }
}
.career-head .h2 { margin-bottom: 0; }
.career-intro { color: #b9b3a6; max-width: 30rem; font-size: 1.05rem; }
@media (max-width: 900px) { .career-head { grid-template-columns: 1fr; gap: 1.5rem; } }

.carousel { position: relative; outline-offset: -2px; }

/* year strip */
.years {
  position: relative; display: flex; justify-content: space-between; gap: .5rem;
  padding-bottom: 1.2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.years li { position: relative; }
.years button {
  position: relative; font-size: .78rem; letter-spacing: .04em; color: var(--steel);
  padding: .3rem 0 .9rem; transition: color .4s;
}
.years button::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brass); transform: translate(-50%, 50%) scale(0); transition: transform .4s var(--ease);
}
.years button:hover { color: var(--stone); }
.years button[aria-current="true"] { color: var(--stone); }
.years button[aria-current="true"]::after { transform: translate(-50%, 50%) scale(1); }
.years-line { position: absolute; left: 0; right: 0; bottom: 1.2rem; height: 1px; background: rgba(236,231,220,.12); }
.years-line::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: var(--p, 0%);
  background: var(--brass); transition: width .7s var(--ease);
}
@media (max-width: 900px) {
  .years { overflow-x: auto; justify-content: flex-start; gap: 1.6rem; scrollbar-width: none; }
  .years::-webkit-scrollbar { display: none; }
  .years button { white-space: nowrap; }
}

/* viewport + slides */
.viewport { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.viewport.dragging { cursor: grabbing; }
.slides { display: flex; align-items: flex-start; will-change: transform; }
.slide { width: 100%; flex: none; }
.slide-inner {
  display: grid; grid-template-columns: minmax(200px, .8fr) 2fr; gap: clamp(2rem, 5vw, 5rem);
  padding-top: 2rem; border-top: 1px solid rgba(236,231,220,.12);
}
.slide-key .slide-inner { border-top-color: var(--brass); }
.slide-years { font-size: .8rem; letter-spacing: .04em; color: var(--brass-soft); font-weight: 500; margin-bottom: 1.6rem; }
.slide-logo { height: 40px; width: auto; filter: grayscale(1) invert(1) brightness(1.05); opacity: .9; margin-bottom: 1.6rem; }
.slide-logo[alt="Scylla AI"] { filter: grayscale(1) brightness(1.5); height: 58px; }
.slide-logo[alt="Procter & Gamble"], .slide-logo[alt="Kanz International Projects"] { height: 58px; }
.slide-logo[alt="Primagaz"] { height: 52px; }
.slide-logo-text { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: #d8d2c5; margin-bottom: 1.6rem; }
.slide-company { font-size: 1rem; font-weight: 500; color: var(--stone); }
.slide-place { font-size: .85rem; color: var(--steel); margin-top: .2rem; }
.slide-body h3 { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.08; font-weight: 400; }
.slide-lede { margin-top: 1rem; font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-style: italic; color: #cfc9bc; line-height: 1.35; }
.slide-body ul { margin-top: 1.8rem; display: grid; gap: .9rem; max-width: 46rem; }
.slide-body li { position: relative; padding-left: 1.6rem; color: #b9b3a6; font-size: .97rem; }
.slide-body li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 1px; background: var(--brass); }
.slide-body li strong { font-weight: 500; color: var(--stone); }
@media (max-width: 900px) {
  .slide-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .slide-logo, .slide-logo-text { margin-bottom: 1rem; }
}

/* controls */
.controls { display: flex; align-items: center; gap: 1.4rem; margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.6rem; border-top: 1px solid rgba(236,231,220,.12); }
.ctrl {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(236,231,220,.25);
  display: grid; place-items: center; transition: background .35s, color .35s, border-color .35s;
}
.ctrl:hover { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.ctrl[disabled] { opacity: .25; cursor: default; }
.ctrl[disabled]:hover { background: none; color: inherit; border-color: rgba(236,231,220,.25); }
.counter { font-family: var(--serif); font-size: 1.5rem; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: .5rem; }
.counter .sep { font-style: italic; font-size: .9rem; color: var(--steel); }
.hint { margin-left: auto; font-size: .78rem; color: var(--steel); }
@media (max-width: 600px) { .hint { display: none; } }

/* ---------- proof ---------- */
.proof { background: var(--stone); color: var(--text-dark); padding: clamp(5rem, 10vw, 9rem) 0; }
.proof-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--stone-3); }
.proof-list li { padding: 2.2rem 2.2rem 2.6rem 0; border-bottom: 1px solid var(--stone-3); }
.proof-list li:nth-child(3n+2) { padding-left: 2.2rem; border-left: 1px solid var(--stone-3); border-right: 1px solid var(--stone-3); }
.proof-list li:nth-child(3n) { padding-left: 2.2rem; padding-right: 0; }
.proof-num {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 3.6vw, 3.6rem); line-height: 1;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-bottom: 1rem; color: var(--ink);
}
.proof-num .to { font-style: italic; font-size: .5em; color: var(--brass); margin-inline: .15em; vertical-align: middle; }
.proof-txt { color: var(--text-mid); font-size: .95rem; max-width: 26rem; }
@media (max-width: 900px) {
  .proof-list { grid-template-columns: 1fr; }
  .proof-list li, .proof-list li:nth-child(3n+2), .proof-list li:nth-child(3n) { padding: 1.8rem 0; border-left: 0; border-right: 0; }
}

/* ---------- pillars ---------- */
.pillars { background: var(--ink-2); padding: clamp(5rem, 10vw, 9rem) 0; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem clamp(2rem, 4vw, 4rem); }
.pillar { position: relative; padding-top: 1.4rem; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: rgba(236,231,220,.14); }
.pillar::after { content: ""; position: absolute; top: 0; left: 0; width: 2.5rem; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.pillar.in::after { transform: scaleX(1); }
.pillar h3 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; margin-bottom: .8rem; }
.pillar p { color: #b3ad9f; font-size: .95rem; }
@media (max-width: 900px) { .pillar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillar-grid { grid-template-columns: 1fr; gap: 2.4rem; } }

/* ---------- voices ---------- */
.voices { background: var(--ink); padding: clamp(5rem, 10vw, 9rem) 0; }
.quote-main { margin-bottom: clamp(3rem, 6vw, 5rem); }
.big-quote { margin: 0; }
.big-quote p {
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 3.3rem);
  line-height: 1.22; max-width: 22ch; text-wrap: pretty;
}
.big-quote .w { display: inline-block; }
.cite { margin-top: 1.4rem; font-size: .85rem; color: var(--steel); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(2rem, 4vw, 4rem); border-top: 1px solid rgba(236,231,220,.12); padding-top: 3rem; }
.quote p:first-child { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; }
.quote .cite { margin-top: 1rem; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- credentials ---------- */
.creds { background: var(--stone); color: var(--text-dark); padding: clamp(5rem, 10vw, 9rem) 0; }
.edu-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-bottom: clamp(3rem, 6vw, 5rem); perspective: 1200px; }
.edu-card {
  position: relative; background: #f4f0e7; border-radius: 3px; padding: 2.2rem 2rem 2rem;
  transform-style: preserve-3d; transition: box-shadow .5s ease;
  box-shadow: 0 1px 0 rgba(27,34,48,.06);
}
.edu-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(184,149,90,.14), transparent 45%);
  opacity: 0; transition: opacity .5s ease;
}
.edu-card:hover { box-shadow: 0 30px 60px -30px rgba(14,22,36,.35), 0 1px 0 rgba(27,34,48,.06); }
.edu-card:hover::before { opacity: 1; }
.edu-logo { height: 72px; display: flex; align-items: center; margin-bottom: 1.8rem; }
.edu-logo img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .6s ease, opacity .6s ease; }
.edu-logo img.edu-tall { height: 72px; }
.edu-card:hover .edu-logo img { filter: none; opacity: 1; }
.edu-degree { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; color: var(--ink); }
.edu-school { margin-top: .5rem; font-size: .92rem; color: var(--text-mid); }
.edu-year { margin-top: 1.4rem; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--brass); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .edu-row { grid-template-columns: 1fr; } }

.cred-tabs { border-top: 1px solid var(--stone-3); padding-top: 2rem; }
.tab-list { position: relative; display: flex; gap: 2.4rem; padding-bottom: .9rem; border-bottom: 1px solid var(--stone-3); }
.tab-list [role="tab"] { font-family: var(--serif); font-size: 1.5rem; color: var(--text-mid); transition: color .35s; }
.tab-list [role="tab"]:hover, .tab-list [role="tab"][aria-selected="true"] { color: var(--ink); }
.tab-ink { position: absolute; bottom: -1px; left: 0; height: 2px; width: 0; background: var(--brass); transition: left .5s var(--ease), width .5s var(--ease); }
.tab-panels { padding-top: .5rem; min-height: 16rem; }
.tab-panel li { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--stone-3); font-size: .97rem; color: var(--text-mid); }
.tab-panel li:last-child { border-bottom: 0; }
.cred-year { font-family: var(--serif); font-size: 1.25rem; color: var(--brass); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .tab-list { gap: 1.4rem; } .tab-list [role="tab"] { font-size: 1.2rem; } .tab-panel li { grid-template-columns: 3.6rem 1fr; gap: .8rem; } }

/* ---------- contact ---------- */
.contact { background: var(--ink); padding: clamp(6rem, 12vw, 11rem) 0 0; }
.contact-title { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 8vw, 7rem); line-height: .98; letter-spacing: -0.015em; }
.contact-sub { margin-top: 2rem; max-width: 34rem; color: #b9b3a6; font-size: 1.05rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3rem; }
.contact-links a { font-family: var(--serif); font-size: 1.5rem; position: relative; padding-bottom: .2rem; }
.contact-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(.35); transform-origin: left; transition: transform .5s var(--ease); }
.contact-links a:hover::after { transform: scaleX(1); }
.foot { margin-top: clamp(5rem, 10vw, 8rem); padding: 2rem var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem); display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--steel); border-top: 1px solid rgba(236,231,220,.1); }

/* ---------- motion prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .hero-scroll span { animation: none; }
  .pillar::after { transform: scaleX(1); }
  .years-line::after, .tab-ink, .years button::after { transition: none; }
}

/* ============================================================
   Phone layout (<= 900px)
   ============================================================ */
@media (max-width: 900px) {
  /* rhythm */
  .h2 { margin-bottom: 1.8rem; }
  .brands, .proof, .pillars, .voices, .creds { padding: 3.5rem 0; }
  .contact { padding-top: 4.5rem; }
  .foot { margin-top: 3.5rem; }

  /* hero: a short landscape crop of the portrait, then the headline, all in the first screen */
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 5.2rem); padding-bottom: 2.5rem; }
  .hero-grid { gap: 1.4rem; }
  /* the whole portrait, uncropped, edge to edge */
  .hero-portrait { max-width: none; width: 100%; }
  .portrait-frame { aspect-ratio: 4 / 5; }
  .portrait-frame img { object-position: 50% 50%; }
  .hero-portrait figcaption { display: none; }
  .hero-kicker { margin-bottom: .8rem; }
  .hero-title { font-size: clamp(2rem, 8.6vw, 2.5rem); line-height: 1.06; }
  .hero-sub { margin-top: 1.1rem; font-size: 1rem; }
  .hero-stats { margin-top: 2rem; padding-top: 1.5rem; gap: 1.4rem 1.5rem; }
  .hero-stats dt { font-size: 2rem; }
  .hero-stats dd { max-width: none; }

  /* brands */
  .brands .section-lead { margin-bottom: 1.6rem; }

  /* career: the section sticks to the screen while a tall track scrolls underneath;
     the scroll position picks the role. No pinning engine involved. */
  .career-track { position: relative; }
  .career {
    position: sticky; top: 0;
    height: 100svh; min-height: 0; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: calc(env(safe-area-inset-top, 0px) + 3.6rem) 0 calc(env(safe-area-inset-bottom, 0px) + .6rem);
    overflow: hidden;
  }
  .career-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
  .career .h2 { font-size: 1.55rem; margin-bottom: 0; }
  .career-intro { display: none; }
  .counter-mini { display: flex; gap: .3rem; align-items: baseline; font-family: var(--serif); font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .counter-mini .sep { color: var(--brass); font-size: .9rem; }
  .carousel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
  .controls { display: none; }
  .viewport { overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .viewport::-webkit-scrollbar { display: none; }
  /* all twelve years visible: two rows of six, no sideways scrolling */
  .years { flex-wrap: wrap; overflow: visible; justify-content: flex-start; gap: 0; margin-bottom: .7rem; padding-bottom: 0; border-bottom: 1px solid rgba(236,231,220,.12); }
  .years li { width: 16.666%; text-align: center; }
  .years-line { display: none; }
  .years button { padding: .3rem 0 .55rem; font-size: .72rem; letter-spacing: .02em; }
  .years button::after { bottom: 0; }
  .viewport { flex: 0 1 auto; }
  .slide-inner { grid-template-columns: 1fr; gap: .9rem; padding-top: 1rem; }
  .slide-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
  .slide-years { width: 100%; margin-bottom: .1rem; }
  .slide-logo, .slide-logo[alt="Scylla AI"], .slide-logo[alt="Procter & Gamble"], .slide-logo[alt="Kanz International Projects"], .slide-logo[alt="Primagaz"] { height: 26px; margin: 0; }
  .slide-logo-text { font-size: 1.2rem; margin: 0; }
  .slide-company { font-size: .9rem; }
  .slide-place { display: none; }
  .slide-body h3 { font-size: 1.45rem; line-height: 1.12; }
  .slide-lede { font-size: 1rem; margin-top: .45rem; }
  .slide-body ul { margin-top: .8rem; gap: .45rem; }
  .slide-body li { font-size: .84rem; line-height: 1.45; padding-left: 1.2rem; }
  .slide-body li::before { width: .55rem; top: .7em; }


  /* results and pillars */
  .proof-num { font-size: 2.2rem; }
  .pillar-grid { gap: 1.8rem; }
  .pillar h3 { font-size: 1.4rem; }

  /* references */
  .big-quote p { font-size: 1.55rem; max-width: none; }
  .quote-grid { gap: 2rem; padding-top: 2rem; }
  .quote p:first-child { font-size: 1.15rem; }

  /* credentials */
  .edu-row { gap: .9rem; margin-bottom: 2.4rem; }
  .edu-card { padding: 1.5rem 1.4rem 1.4rem; }
  .edu-logo { height: 52px; margin-bottom: 1rem; }
  .edu-degree { font-size: 1.3rem; }
  .edu-year { margin-top: .9rem; font-size: 1.6rem; }
  .tab-list [role="tab"] { padding: .4rem 0; }

  /* contact */
  .contact-title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .contact-links { gap: 1rem 1.8rem; margin-top: 2rem; }
  .contact-links a { font-size: 1.3rem; padding: .3rem 0; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .career .h2 { font-size: 1.45rem; }
  .slide-body li { font-size: .8rem; }
  .slide-lede { display: none; }
}
