:root {
  color-scheme: only light; /* the design is light; stops phone browsers auto-darkening it */
  --paper: #ECEAE5;
  --paper-2: #E4E1DA;
  --ink: #111318;
  --ink-2: #555963;
  --ink-3: #8A8D94;
  --line: rgba(17, 19, 24, .14);
  --night: #0C0E12;
  --night-2: #13161B;
  --night-3: #1B1F26;
  --fog: #E9E7E1;
  --fog-2: #9A9DA4;
  --fog-3: #62666E;
  --line-d: rgba(255, 255, 255, .09);
  --brass: #C9A063;
  --brass-2: #E2C38F;
  --brass-ink: #8A6630;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--brass); color: var(--night); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dark .label { color: var(--fog-3); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brass); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), box-shadow .4s;
}
.topbar.scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(236, 234, 229, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.topbar.on-dark { color: var(--fog); }
.topbar.on-dark.scrolled { background: rgba(12, 14, 18, .72); box-shadow: 0 1px 0 var(--line-d); }

.mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.mark-dots { display: grid; grid-template-columns: repeat(3, 5px); gap: 3px; }
.mark-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; transition: transform .5s var(--ease), background .3s; }
.mark-dots i:nth-child(2n) { transform: scale(.6); }
.mark:hover .mark-dots i { background: var(--brass); }
.mark:hover .mark-dots i:nth-child(2n) { transform: scale(1); }
.mark:hover .mark-dots i:nth-child(2n+1) { transform: scale(.55); }

.topnav { display: flex; gap: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.topnav a { position: relative; opacity: .7; transition: opacity .2s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.topnav a:hover, .topnav a.active { opacity: 1; }
.topnav a:hover::after, .topnav a.active::after { transform: scaleX(1); transform-origin: left; }

.top-actions { display: flex; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid currentColor; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
  white-space: nowrap;
}
.pill-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.on-dark .pill-ghost:hover { background: var(--fog); color: var(--night); border-color: var(--fog); }
.pill-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-solid:hover { background: var(--brass); border-color: var(--brass); color: var(--night); }
.on-dark .pill-solid { background: var(--fog); color: var(--night); border-color: var(--fog); }
.on-dark .pill-solid:hover { background: var(--brass); border-color: var(--brass); }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 86vh; height: 86svh; min-height: 560px; max-height: 1000px;
  overflow: hidden; background: var(--paper);
  touch-action: pan-y;
}
.hero::after { /* soft vignette for depth */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 40%, transparent 55%, rgba(17,19,24,.06) 100%);
}
#dots { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner {
  position: absolute; inset-inline-start: var(--gutter); bottom: clamp(110px, 22vh, 220px); z-index: 2;
  pointer-events: none; max-width: min(720px, 60vw);
}
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 22px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 0 rgba(201,160,99,.6); animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(201,160,99,.55); } 70% { box-shadow: 0 0 0 10px rgba(201,160,99,0); } 100% { box-shadow: 0 0 0 0 rgba(201,160,99,0); } }

.hero-name {
  font-weight: 700; font-stretch: 112%;
  font-size: clamp(48px, 8.4vw, 132px); line-height: .9; letter-spacing: -.035em;
}
.hero-name .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-name .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.hero-name .line:nth-child(2) > span { transition-delay: .09s; }
.loaded .hero-name .line > span { transform: none; }
.hero-name .line:nth-child(2) > span { color: var(--ink); }
.hero-name .line:nth-child(2) > span::after { content: "."; color: var(--brass); }
.hero-role { margin-top: 22px; font-family: var(--mono); font-size: clamp(11px, 1vw, 13px); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.hint { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: opacity .6s; }
.hint.gone { opacity: 0; }
.hint-icon { position: relative; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; }
.hint-icon::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); top: 50%; left: 50%; margin: -2px 0 0 -2px; animation: orbit 2.6s linear infinite; }
@keyframes orbit { from { transform: rotate(0) translateX(6px); } to { transform: rotate(360deg) translateX(6px); } }
.scroll-cue { pointer-events: auto; width: 26px; height: 42px; border: 1px solid var(--ink-3); border-radius: 14px; position: relative; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- layout ---------- */
section.light, section.dark { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
section.light { background: var(--paper); color: var(--ink); }
section.light.alt { background: var(--paper-2); }
section.dark { background: var(--night); color: var(--fog); }
section.dark + section.dark { padding-top: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.5vw, 40px); }
.col-label { grid-column: 1 / span 3; }
.col-main { grid-column: 4 / span 9; }
.col-label.sticky { align-self: start; position: sticky; top: 100px; }
.section-title { margin-top: 10px; font-weight: 650; font-stretch: 108%; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.02em; }

/* ---------- about ---------- */
.about { padding-top: clamp(48px, 6vw, 84px) !important; padding-bottom: clamp(60px, 7vw, 100px) !important; }
.lede { font-size: clamp(26px, 3.3vw, 48px); line-height: 1.12; letter-spacing: -.022em; font-weight: 500; max-width: 22ch; }
.lede em { font-style: normal; color: var(--brass-ink); background: linear-gradient(transparent 62%, rgba(201,160,99,.22) 62%); }
.about-body { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--ink-2); max-width: 900px; }
.direct { margin-top: 44px; }
.direct-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.direct-links a { display: inline-flex; gap: 22px; align-items: center; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: background .25s, border-color .25s, color .25s; }
.direct-links a b { font-weight: 400; transition: transform .3s var(--ease); }
.direct-links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.direct-links a:hover b { transform: translate(2px, -2px); }

/* strengths + impact */
.block { margin-top: clamp(80px, 10vw, 130px); }
.sub-title { margin-top: 10px; font-weight: 650; font-stretch: 108%; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.05; letter-spacing: -.02em; }
.sub-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 24ch; }
.strengths { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
.strength { padding: 26px 0 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 46px 1fr; }
.s-num { font-family: var(--mono); font-size: 12px; color: var(--brass-ink); padding-top: 7px; grid-row: span 2; }
.strength h4 { font-weight: 650; font-stretch: 106%; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.015em; line-height: 1.15; }
.strength p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

.impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.impact { position: relative; background: #F5F3EF; border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s, opacity .9s var(--ease); }
.impact:hover { transform: translateY(-4px); border-color: rgba(138,102,48,.45); box-shadow: 0 18px 36px -22px rgba(17,19,24,.4); }
.i-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.i-big { font-weight: 700; font-stretch: 115%; font-size: clamp(36px, 3.3vw, 50px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.i-from { font-size: .44em; font-weight: 500; color: var(--ink-3); letter-spacing: -.01em; text-decoration: line-through; text-decoration-thickness: 1px; vertical-align: .55em; }
.i-arrow { font-size: .44em; color: var(--brass-ink); margin: 0 8px 0 6px; vertical-align: .55em; }
.i-bar { position: relative; height: 8px; border-radius: 6px; background: rgba(17,19,24,.08); overflow: hidden; }
.i-bar span { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--l, 0); width: var(--w); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .3s; }
.i-bar-base { background: rgba(17,19,24,.38); }
.i-bar-gain { background: var(--brass); }
.i-bar-base + .i-bar-gain { transition-delay: 1.3s; }
.impact.in .i-bar span { transform: none; }
.i-row { display: flex; align-items: center; gap: 16px; }
.ring { width: 54px; height: 54px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(17,19,24,.08); }
.ring-fg { stroke: var(--brass); stroke-linecap: round; stroke-dasharray: 213.63; stroke-dashoffset: 213.63; transition: stroke-dashoffset 1.5s var(--ease) .3s; }
.impact.in .ring-fg { stroke-dashoffset: calc(213.63 * (1 - var(--p))); }
.steps { display: flex; align-items: flex-end; gap: 4px; height: 52px; flex: none; }
.steps i { width: 9px; border-radius: 3px; background: rgba(17,19,24,.1); transition: background .4s; }
.steps i:nth-child(1) { height: 20%; } .steps i:nth-child(2) { height: 40%; } .steps i:nth-child(3) { height: 60%; } .steps i:nth-child(4) { height: 80%; } .steps i:nth-child(5) { height: 100%; }
.impact.in .steps i:nth-child(-n+3) { background: var(--brass); }
.impact.in .steps i:nth-child(1) { transition-delay: .4s; } .impact.in .steps i:nth-child(2) { transition-delay: .7s; } .impact.in .steps i:nth-child(3) { transition-delay: 1s; }
.chips-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-mini span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.i-text { margin-top: auto; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.i-text b { color: var(--ink); font-weight: 600; }
.also { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.also li { padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.also b { color: var(--ink); font-weight: 650; }

.ticker { margin-top: clamp(70px, 9vw, 120px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-weight: 600; font-stretch: 120%; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.02em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.ticker-track span::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); margin-inline-start: 28px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- gantt timeline ---------- */
.gantt { --start: 2005; --end: 2027; --meta: 300px; --time: 150px; position: relative; }
.gantt-axis { position: relative; height: 26px; margin-inline-start: var(--meta); margin-inline-end: var(--time); border-bottom: 1px solid var(--line-d); font-family: var(--mono); font-size: 11px; color: var(--fog-3); }
.gantt-axis span { position: absolute; inset-inline-start: calc((var(--y) - var(--start)) / (var(--end) - var(--start)) * 100%); transform: translateX(-50%); }
.gantt-rows { position: relative; }
.g-row { display: grid; grid-template-columns: var(--meta) 1fr var(--time); align-items: center; min-height: 74px; border-bottom: 1px solid var(--line-d); transition: background .3s; }
.g-row:hover { background: rgba(255,255,255,.025); }
.g-meta { display: flex; flex-direction: column; gap: 3px; padding-inline-end: 20px; }
.g-meta b { font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.g-meta span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--fog-2); }
.g-track { position: relative; height: 10px; }
.g-track::before { content: ""; position: absolute; left: 0; right: 0; top: -40px; bottom: -40px; pointer-events: none; background: repeating-linear-gradient(90deg, var(--line-d) 0 1px, transparent 1px calc(100% * 5 / 22)); }
.g-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; inset-inline-start: calc((var(--from) - var(--start)) / (var(--end) - var(--start)) * 100%); width: calc((var(--to) - var(--from)) / (var(--end) - var(--start)) * 100%); min-width: 10px; background: linear-gradient(90deg, rgba(233,231,225,.25), rgba(233,231,225,.75)); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .15s; }
.g-bar.is-now { background: linear-gradient(90deg, rgba(201,160,99,.35), var(--brass)); }
.g-bar.is-now::after { content: ""; position: absolute; inset-inline-end: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 0 rgba(201,160,99,.6); animation: live 2.4s infinite; }
.g-row.in .g-bar { transform: scaleX(1); }
.g-row time { text-align: end; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--fog-2); }

/* ---------- experience ---------- */
#experience { padding-top: clamp(60px, 8vw, 110px) !important; }
.role { padding: 40px 0 56px; border-top: 1px solid var(--line-d); }
.role:first-child { border-top: 0; padding-top: 0; }
.role-head { display: grid; grid-template-columns: 56px 1fr; gap: 8px; margin-bottom: 34px; }
.role-idx { font-family: var(--mono); font-size: 13px; color: var(--brass); padding-top: 9px; }
.role h3 { font-weight: 650; font-stretch: 104%; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.12; letter-spacing: -.02em; }
.role-org { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fog-2); }
.role-org span { color: var(--fog-3); margin: 0 6px; }
.role-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; padding-inline-start: 64px; }
.rg h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-d); }
.rg ul li, .role-list li { position: relative; padding-inline-start: 20px; margin-bottom: 14px; color: #C9CBD0; font-size: 15.5px; line-height: 1.6; }
.rg ul li::before, .role-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .78em; width: 8px; height: 1px; background: var(--fog-3); }
.role-list { columns: 2; column-gap: 48px; padding-inline-start: 64px; }
.role-list li { break-inside: avoid; }
mark { background: none; color: var(--brass-2); font-weight: 600; white-space: nowrap; }
.earlier { padding-inline-start: 64px; }
.earlier li { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.earlier b { font-weight: 600; }
.earlier span { color: var(--fog-2); }
.earlier time { font-family: var(--mono); font-size: 12px; color: var(--fog-2); }
.role-note { padding-inline-start: 64px; margin-top: 24px; color: var(--fog-2); max-width: 70ch; font-size: 15.5px; }

/* ---------- capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 48px; }
.tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); cursor: default; }
.tags li:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.standards { margin-top: clamp(56px, 7vw, 90px); }
.std-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.std { position: relative; padding: 26px 22px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; overflow: hidden; transition: color .35s; }
.std::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease); z-index: 0; }
.std > * { position: relative; z-index: 1; }
.std b { font-weight: 700; font-stretch: 115%; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; }
.std span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); transition: color .35s; }
.std:hover { color: var(--paper); }
.std:hover::before { transform: none; }
.std:hover span { color: var(--brass); }

/* ---------- credentials ---------- */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cert { padding: 22px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 128px; justify-content: space-between; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.cert b { font-weight: 600; font-size: 16.5px; line-height: 1.3; letter-spacing: -.005em; }
.cert span { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.cert:hover { transform: translateY(-3px); border-color: rgba(138,102,48,.45); box-shadow: 0 14px 30px -18px rgba(17,19,24,.35); }
.edu { margin-top: 56px; }
.cert-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.certs + .cert-head { margin-top: 44px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 10.5px; letter-spacing: 0; }
.cert-wide { grid-column: 1 / -1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 18px; min-height: 0; }
.cert-wide > div { display: flex; flex-direction: column; gap: 8px; }
.oceg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.oceg a { display: block; height: 100%; padding: 11px 13px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.35; transition: background .25s, color .25s; }
.oceg a span { font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.oceg a b { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--brass); white-space: nowrap; }
.oceg a:hover, .oceg a:focus-visible { background: var(--brass); color: var(--night); }
.oceg a:hover b, .oceg a:focus-visible b { color: var(--night); }
.std-badge { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 1; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--brass); color: var(--night); }
.edu-row { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.edu-row b { display: block; font-weight: 650; font-stretch: 106%; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.015em; }
.edu-row span { display: block; margin-top: 6px; color: var(--ink-2); }
.edu-row time { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }

/* ---------- contact ---------- */
.contact { padding-bottom: 0 !important; overflow: hidden; }
.contact-title { margin-top: 24px; font-weight: 700; font-stretch: 112%; font-size: clamp(42px, 7.4vw, 116px); line-height: .95; letter-spacing: -.04em; }
.contact-title em { font-style: normal; color: transparent; -webkit-text-stroke: 1.4px var(--brass); }
.contact-grid { margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.c-item { display: flex; flex-direction: column; gap: 10px; padding-block: 26px 30px; padding-inline: 0 20px; border-inline-end: 1px solid var(--line-d); transition: color .25s; min-width: 0; }
.c-item + .c-item { padding-inline-start: 20px; }
.c-item:last-child { border-inline-end: 0; }
.c-item b { font-weight: 500; font-size: clamp(15px, 1.35vw, 19px); overflow-wrap: anywhere; }
.c-item:hover b { color: var(--brass-2); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid var(--line-d); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fog-3); }
.foot a:hover { color: var(--fog); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .35s; }
.loaded .hero .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .topnav { display: none; }
  .gantt { --meta: 230px; --time: 120px; }
  .impact-grid > .impact:last-child:nth-child(odd) { grid-column: 1 / -1; } /* 9 cards in 2 columns: the last one spans */
  .certs { grid-template-columns: repeat(2, 1fr); }
  .oceg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* 3 columns clipped the cards on tablets */
}
@media (max-width: 860px) {
  .grid-12 { display: block; }
  .col-label { margin-bottom: 36px; }
  .col-label.sticky { position: static; }
  .about-body { grid-template-columns: 1fr; gap: 18px; }
  .impact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-grid > .impact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .also { grid-template-columns: 1fr; gap: 0; }
  .also li { padding: 14px 0; }
  .role-groups, .role-list, .earlier, .role-note { padding-inline-start: 0; }
  .role-groups { grid-template-columns: 1fr; }
  .role-list { columns: 1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .c-item { border-bottom: 1px solid var(--line-d); padding-block: 22px !important; padding-inline: 0 12px !important; }
  .c-item:nth-child(2n) { border-inline-end: 0; padding-inline-start: 12px !important; }
  .c-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .std-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .pill { height: 32px; padding: 0 12px; font-size: 11px; }
  .mark-text { display: none; }
  .hero-inner { bottom: 64px; max-width: none; inset-inline-end: var(--gutter); }
  .hero-foot { bottom: 18px; }
  .hint { font-size: 10px; }
  .kicker { margin-bottom: 14px; }
  .hero-role { margin-top: 16px; }
  .gantt { --meta: 1fr; }
  .gantt-axis { display: none; }
  .g-row { grid-template-columns: 1fr auto; grid-template-areas: "meta time" "track track"; row-gap: 12px; padding: 16px 0; }
  .g-meta { grid-area: meta; }
  .g-row time { grid-area: time; align-self: start; }
  .g-track { grid-area: track; background: rgba(255,255,255,.05); border-radius: 6px; height: 6px; }
  .earlier li { grid-template-columns: 1fr auto; }
  .earlier span { grid-column: 1; grid-row: 2; font-size: 14px; }
  .earlier time { grid-row: 1 / span 2; grid-column: 2; }
  .cap-grid { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-grid > .impact:last-child:nth-child(odd) { grid-column: auto; }
  .oceg { grid-template-columns: 1fr; }
  .g-track::before { display: none; }
  .certs { grid-template-columns: 1fr; }
  .cert { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .c-item, .c-item:nth-child(2n) { border-inline-end: 0 !important; padding-inline-start: 0 !important; }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .std { padding: 20px 14px; }
  .edu-row { flex-direction: column; gap: 8px; }
}

/* stacked hero: portrait on top, name below (phones + upright tablets) */
@media (max-width: 1100px) and (max-aspect-ratio: 20/23) {
  .hero { height: 88vh; height: 88svh; min-height: 540px; }
  .hero-inner { bottom: clamp(64px, 9vh, 130px); max-width: none; inset-inline-end: var(--gutter); }
}

/* ---------- language switcher (English | العربية) ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 4px; margin-inline-end: 4px; white-space: nowrap; }
.lang a { position: relative; display: inline-flex; align-items: center; height: 100%; padding: 0 6px; opacity: .55; transition: opacity .2s; }
.lang a:hover, .lang a:focus-visible { opacity: .9; }
.lang a[aria-current="true"] { opacity: 1; }
.lang a[aria-current="true"]::after { content: ""; position: absolute; inset-inline: 6px; bottom: 6px; height: 1px; background: var(--brass); }
.lang a[lang="en"] { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.lang a[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.lang-sep { opacity: .3; font-size: 12px; }
.lang .l-short { display: none; }

/* hero hint: mouse vs touch wording */
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}

/* keyboard focus (visible only for keyboard users) */
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* smooth cross-fade when switching language (browsers with View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }

@media (max-width: 640px) {
  .lang { margin-inline-end: 0; padding: 0; }
  .lang .l-long { display: none; }
  .lang .l-short { display: inline; }
  .lang a { padding: 0 5px; }
}

/* ---------- impact extras ---------- */
.i-from.i-plain { text-decoration: none; margin-inline-end: 10px; }
.i-unit { font-size: .38em; font-weight: 600; letter-spacing: 0; margin-inline-start: 8px; color: var(--ink-3); }

/* ---------- reference links (certificates, standards) ---------- */
.cert-intro { margin: -2px 0 18px; color: var(--ink-2); font-size: 15px; max-width: 62ch; }
.std-hint { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
a.std { color: inherit; text-decoration: none; }
.std .std-go { position: absolute; bottom: 14px; inset-inline-end: 16px; font-style: normal; font-size: 15px; color: var(--ink-3); transition: color .35s, transform .35s var(--ease); }
.std:hover .std-go, .std:focus-visible .std-go { color: var(--brass); transform: translate(2px, -2px); }
.std:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.cert-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cert-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--brass-ink); border-bottom: 1px solid rgba(138,102,48,.35); padding-bottom: 2px; transition: color .25s, border-color .25s; }
.cert-link span { display: inline; margin: 0; color: inherit; font-size: inherit; letter-spacing: inherit; }
.cert-link i { display: inline-block; font-style: normal; transition: transform .25s var(--ease); }
.cert-link:hover { color: var(--ink); border-color: var(--ink); }
.cert-link:hover i { transform: translate(2px, -2px); }
.edu-row .cert-link { margin-top: 12px; }
.oceg a { position: relative; padding-inline-end: 30px; }
.oceg a::after { content: "↗"; position: absolute; top: 11px; inset-inline-end: 12px; font-size: 12px; opacity: .55; transition: opacity .25s, transform .25s var(--ease); }
.oceg a:hover::after { opacity: 1; transform: translate(2px, -2px); }
html[dir="rtl"] .oceg a::after { transform: scaleX(-1); }
html[dir="rtl"] .oceg a:hover::after { transform: scaleX(-1) translate(2px, -2px); }
html[dir="rtl"] .cert-link i, html[dir="rtl"] .std .std-go { transform: scaleX(-1); }
html[dir="rtl"] .cert-link:hover i, html[dir="rtl"] .std:hover .std-go { transform: scaleX(-1) translate(2px, -2px); }


/* =========================================================
   Phone theme: all white
   The whole phone layout is white, including the sections that are dark on
   desktop (timeline, experience, contact). Those sections are driven by the
   --night / --fog / --line-d tokens, so re-pointing the tokens converts them.
   ========================================================= */
@media (max-width: 640px) {
  :root { --paper: #FFFFFF; --paper-2: #F6F5F2; }
  .hero::after { display: none; }
  section.dark {
    --night: #FFFFFF;
    --fog: var(--ink); --fog-2: var(--ink-2); --fog-3: var(--ink-3);
    --line-d: rgba(17, 19, 24, .12);
    --brass: #8A6630; --brass-2: #8A6630; /* deeper brass keeps contrast on white */
    border-top: 1px solid rgba(17, 19, 24, .08);
  }
  section.dark + section.dark { border-top: 0; }
  section.dark .rg ul li, section.dark .role-list li { color: var(--ink-2); }
  section.dark .g-track { background: rgba(17, 19, 24, .06); }
  section.dark .g-bar { background: linear-gradient(90deg, rgba(17, 19, 24, .16), rgba(17, 19, 24, .5)); }
  html[dir="rtl"] section.dark .g-bar { background: linear-gradient(270deg, rgba(17, 19, 24, .16), rgba(17, 19, 24, .5)); }
  section.dark .g-bar.is-now { background: linear-gradient(90deg, rgba(138, 102, 48, .3), #8A6630); }
  html[dir="rtl"] section.dark .g-bar.is-now { background: linear-gradient(270deg, rgba(138, 102, 48, .3), #8A6630); }
  .impact { background: #FAF9F6; }
  .contact-title { font-size: clamp(28px, 8.4vw, 52px); }
}

/* =========================================================
   Arabic (RTL)
   Layout already uses logical properties (inset-inline, padding-inline…),
   so it mirrors automatically. The rules below handle typography and the
   few genuinely directional visuals (progress fills, time axis, marquee).
   ========================================================= */
html[lang="ar"] {
  --sans: "IBM Plex Sans Arabic", "Archivo", system-ui, "Segoe UI", Tahoma, sans-serif;
  --mono: "IBM Plex Sans Arabic", "JetBrains Mono", ui-monospace, sans-serif;
}
html[lang="ar"] body { line-height: 1.85; }

/* letter-spacing breaks Arabic letter joining; uppercase is meaningless in Arabic */
html[lang="ar"] body *:not(.lang a[lang="en"]):not(.lang a[lang="en"] *) { letter-spacing: 0 !important; }
html[lang="ar"] :is(.label, .topnav, .pill, .kicker, .hero-role, .hint, .i-tag, .chips-mini span, .role-org, .rg h4, .g-meta span, .std span, .cert span, .foot, .direct-links a, .std-badge) { text-transform: none; }

/* Arabic needs larger sizes than the Latin mono labels to stay legible */
html[lang="ar"] .label { font-size: 13.5px; }
html[lang="ar"] .topnav { font-size: 14px; gap: 22px; }
html[lang="ar"] .pill { font-size: 13.5px; font-weight: 500; }
html[lang="ar"] .kicker { font-size: 14px; }
html[lang="ar"] .hero-name { font-size: clamp(54px, 8.2vw, 128px); line-height: 1.12; }
html[lang="ar"] .hero-name .line { padding-block: .04em .16em; }
html[lang="ar"] .hero-role { font-size: clamp(13.5px, 1.15vw, 16px); line-height: 1.75; max-width: 46ch; }
html[lang="ar"] .hint { font-size: 13px; }
html[lang="ar"] .section-title { line-height: 1.3; font-weight: 700; }
html[lang="ar"] .lede { line-height: 1.5; max-width: 24ch; }
html[lang="ar"] .about-body { line-height: 1.95; }
html[lang="ar"] .sub-title { line-height: 1.35; font-weight: 700; }
html[lang="ar"] .sub-note { max-width: 30ch; line-height: 1.8; }
html[lang="ar"] .strength h4 { line-height: 1.4; font-weight: 700; }
html[lang="ar"] .strength p, html[lang="ar"] .i-text, html[lang="ar"] .also li { line-height: 1.85; }
html[lang="ar"] :is(.i-tag, .g-meta span, .role-org, .cert span, .std span, .chips-mini span) { font-size: 13px; }
html[lang="ar"] .rg h4 { font-size: 14px; font-weight: 600; }
html[lang="ar"] .role h3 { line-height: 1.4; font-weight: 700; }
html[lang="ar"] .rg ul li, html[lang="ar"] .role-list li { line-height: 1.9; font-size: 15.5px; }
html[lang="ar"] .rg ul li::before, html[lang="ar"] .role-list li::before { top: .95em; }
html[lang="ar"] .g-meta b { font-weight: 700; }
html[lang="ar"] .ticker-track span { font-weight: 700; }
html[lang="ar"] .i-big.words { font-size: clamp(30px, 2.7vw, 42px); line-height: 1.2; }
html[lang="ar"] .i-row:has(.steps) { gap: 12px; }
html[lang="ar"] .i-row:has(.steps) .i-big { font-size: clamp(30px, 2.6vw, 42px); line-height: 1.2; } /* "المستوى 3" is wider than "Level 3" */
html[lang="ar"] .tags li { font-size: 14.5px; }
html[lang="ar"] .cert b { line-height: 1.45; }
html[lang="ar"] .edu-row b { line-height: 1.45; font-weight: 700; }
html[lang="ar"] .contact-title { line-height: 1.25; font-size: clamp(42px, 7vw, 108px); }
html[lang="ar"] .contact-title em { color: var(--brass); -webkit-text-stroke: 0; }
html[lang="ar"] .foot { font-size: 12.5px; }
html[lang="ar"] .direct-links a { font-size: 13.5px; }
html[lang="ar"] mark { white-space: normal; }
/* Latin-only values (email, phone, URLs, acronym badges) keep the Latin typeface */
html[lang="ar"] :is(.c-item b[dir="ltr"], .pill[dir="ltr"], .oceg li, .mark-text) { font-family: "Archivo", system-ui, sans-serif; }

/* numbers keep their own left-to-right order inside RTL cards, aligned to the RTL edge */
html[dir="rtl"] .i-big[dir="ltr"] { text-align: right; }
/* English certificate titles/issuers stay LTR internally but sit on the RTL edge */
html[dir="rtl"] .cert-wide > div { align-items: flex-start; }

/* genuinely directional visuals mirror in RTL */
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }
html[dir="rtl"] .topnav a::after { transform-origin: left; }
html[dir="rtl"] .topnav a:hover::after, html[dir="rtl"] .topnav a.active::after { transform-origin: right; }
html[dir="rtl"] .hero::after { background: radial-gradient(120% 90% at 40% 40%, transparent 55%, rgba(17,19,24,.06) 100%); }
html[dir="rtl"] .direct-links a:hover b { transform: translate(-2px, -2px); }
html[dir="rtl"] .i-bar span { transform-origin: right; }
html[dir="rtl"] .gantt-axis span { transform: translateX(50%); }
html[dir="rtl"] .g-track::before { transform: scaleX(-1); }
html[dir="rtl"] .g-bar { transform-origin: right; background: linear-gradient(270deg, rgba(233,231,225,.25), rgba(233,231,225,.75)); }
html[dir="rtl"] .g-bar.is-now { background: linear-gradient(270deg, rgba(201,160,99,.35), var(--brass)); }
html[dir="rtl"] .ticker-track { animation-name: tick-rtl; }
@keyframes tick-rtl { to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-name .line > span, .g-bar { transition: none !important; opacity: 1 !important; transform: none !important; }
  .ticker-track, .dot-live, .hint-icon::after, .scroll-cue span, .g-bar.is-now::after { animation: none !important; }
}

/* Phone: Arabic contact headline size (must follow the Arabic base rule above) */
@media (max-width: 640px) {
  html[lang="ar"] .contact-title { font-size: clamp(30px, 9vw, 52px); }
}
