/* =========================================================
   Khaled Diab — Digital CV
   ========================================================= */
:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #ededed;
  --muted: #8b8b94;
  --faint: #55555c;
  --accent: #ff4100;
  --accent-ink: #0a0a0b;
  --accent-text: #ff4100;
  --accent-soft: rgba(255, 65, 0, 0.13);
  --glow: rgba(255, 65, 0, 0.4);
  --dot: 255, 255, 255;
  --dot-hot: 255, 65, 0;

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --r: 20px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f4f3ee;
  --bg-2: #ebe9e2;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-2: rgba(0, 0, 0, 0.055);
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.2);
  --text: #141414;
  --muted: #64646b;
  --faint: #a3a39c;
  --accent: #ff4100;
  --accent-ink: #0a0a0b;
  --accent-text: #c73200;
  --accent-soft: rgba(255, 65, 0, 0.1);
  --glow: rgba(255, 65, 0, 0.3);
  --dot: 0, 0, 0;
  --dot-hot: 220, 56, 0;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
b, strong { font-weight: 700; color: var(--text); }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background layers ---------- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow-blob {
  position: fixed; z-index: 0; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  left: 0; top: 0; transform: translate(-50%, -50%);
  filter: blur(40px); opacity: 0.8;
  transition: opacity 0.6s;
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(6%, 3%); }
}

/* ---------- Custom cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; }
.cursor {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid var(--line-2);
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s;
  display: grid; place-items: center;
  font: 600 10px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink);
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: var(--accent-soft); border-color: var(--accent); }
.cursor.is-label { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); border-color: var(--accent); }
.cursor.is-down { transform: scale(0.85); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Preloader & transitions ---------- */
.loader {
  position: fixed; inset: 0; z-index: 10000; background: var(--bg);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-io);
}
.loader.done { transform: translateY(-100%); }
.loader__inner { text-align: center; }
.loader__name { font: 400 clamp(48px, 10vw, 120px)/1 var(--f-display); overflow: hidden; }
.loader__name span { display: inline-block; transform: translateY(110%); animation: rise 0.9s var(--ease) forwards; }
.loader__bar { width: 200px; height: 1px; background: var(--line); margin: 28px auto 0; overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--accent); width: 0; animation: load 1.1s var(--ease) 0.2s forwards; }
.loader__count { font: 500 12px var(--f-mono); color: var(--muted); margin-top: 14px; letter-spacing: 0.1em; }
@keyframes load { to { width: 100%; } }
@keyframes rise { to { transform: translateY(0); } }

.wipe {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: var(--bg); display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.wipe::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60vmax circle at 50% 120%, var(--accent-soft), transparent 60%); }
.wipe.show { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease); }
.wipe.instant, .wipe.instant .wipe__inner { transition: none !important; }
.wipe__inner { position: relative; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); }
.wipe.show .wipe__inner { opacity: 1; transform: none; transition-delay: 0.08s; }
.wipe__idx { display: block; font: 500 12px var(--f-mono); letter-spacing: 0.14em; color: var(--accent-text); }
.wipe__label { display: block; margin: 12px 0 20px; font: 400 clamp(40px, 6vw, 76px)/1 var(--f-display); font-style: italic; color: var(--text); letter-spacing: -0.02em; }
.wipe__bar { display: block; width: 140px; height: 1px; margin: 0 auto; background: var(--line); position: relative; overflow: hidden; }
.wipe__bar::after { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); }
.wipe.show .wipe__bar::after { animation: load 0.6s var(--ease) forwards; }
.wipe.instant .wipe__bar::after { animation: none; width: 100%; }

body.leaving .shell { opacity: 0; transform: translateY(-18px); filter: blur(6px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), filter 0.45s; }
body.entering .shell { animation: pageIn 1s var(--ease) both 0.15s; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Layout ---------- */
.shell { position: relative; z-index: 2; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(72px, 12vw, 160px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.nav.hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--text); color: var(--bg);
  font: 400 22px/1 var(--f-display); font-style: italic;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); background: var(--accent); color: var(--accent-ink); }
.brand__text small { display: block; font: 500 11px/1.2 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }

.nav__links {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.nav__links a {
  position: relative; z-index: 1; padding: 8px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.active { color: var(--accent-ink); }
.nav__pill {
  position: absolute; z-index: 0; top: 5px; height: calc(100% - 10px); border-radius: 999px;
  background: var(--accent); transition: left 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.nav__tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface);
  font: 500 12px var(--f-mono); color: var(--muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }
kbd { font: 500 11px var(--f-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.menu-btn { display: none; }

.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--accent); z-index: 101; width: 0; box-shadow: 0 0 12px var(--glow); }

/* Mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: 100px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease-io);
  visibility: hidden;
}
.mmenu.open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mmenu a.mlink {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0;
  font: 400 clamp(38px, 11vw, 64px)/1.05 var(--f-display);
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.5s, transform 0.6s var(--ease), color 0.3s;
}
.mmenu.open a.mlink { opacity: 1; transform: none; }
.mmenu a.mlink small { font: 500 12px var(--f-mono); color: var(--muted); }
.mmenu a.mlink.active { color: var(--accent-text); font-style: italic; }
.mmenu__foot { font: 500 13px var(--f-mono); color: var(--muted); display: grid; gap: 6px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.display {
  font: 400 clamp(54px, 11vw, 168px)/0.9 var(--f-display);
  letter-spacing: -0.035em; margin: 0;
}
.display em, .h2 em, .h3 em { font-style: italic; color: var(--accent-text); }
.h2 { font: 400 clamp(40px, 6.5vw, 92px)/0.98 var(--f-display); letter-spacing: -0.03em; margin: 0; }
.h3 { font: 400 clamp(28px, 3.4vw, 44px)/1.05 var(--f-display); letter-spacing: -0.02em; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; line-height: 1.6; }
.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }

/* Split text */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split em .w { padding-right: 0.14em; margin-right: -0.14em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.split.in .w > span { transform: none; }

/* Reveal */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Page header ---------- */
.phead { padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(40px, 7vw, 90px); }
.phead__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.phead__idx { font: 500 13px var(--f-mono); color: var(--muted); }
.phead__idx b { color: var(--accent-text); }
.phead .lead { margin-top: 28px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  border: 1px solid var(--line-2);
  transition: border-color 0.3s, color 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--text); transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent::before { background: var(--text); }
.btn svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.magnetic { will-change: transform; transition: transform 0.4s var(--ease); }

/* ---------- Cards ---------- */
.card {
  position: relative; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  overflow: hidden; transition: opacity 1s var(--ease), transform 1.1s var(--ease), border-color 0.4s, background 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.card:hover { border-color: var(--line-2); }
.card:hover::after { opacity: 1; }
.tilt:not(.rv), .tilt.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  font: 500 12px var(--f-mono); color: var(--muted); white-space: nowrap;
  background: var(--surface);
}
.chip--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip .pulse { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- HOME ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: 48px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 4vw, 40px); }
.hero__name { font-size: clamp(72px, 17vw, 260px); line-height: 0.82; letter-spacing: -0.05em; }
.hero__name .row2 { display: block; padding-left: clamp(0px, 12vw, 220px); }
.hero__bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 5vw, 56px); }
.rotator { font: 400 clamp(24px, 3vw, 38px)/1.2 var(--f-display); min-height: 1.3em; }
.rotator .caret { display: inline-block; width: 2px; height: 0.9em; background: var(--accent); margin-left: 4px; vertical-align: -0.08em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__summary { color: var(--muted); font-size: 16px; max-width: 54ch; margin: 16px 0 0; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.scroll-hint { display: flex; align-items: center; gap: 12px; font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.scroll-hint i { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

.stats { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: clamp(24px, 3vw, 40px) clamp(12px, 1.6vw, 24px); border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.stat:last-child { border-right: 0; }
.stat__num { font: 400 clamp(40px, 4.4vw, 68px)/1 var(--f-display); letter-spacing: -0.03em; }
.stat__num .s { color: var(--accent-text); }
.stat__label { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.stat::before { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.6s var(--ease); }
.stat:hover::before { width: 100%; }

.marquee { overflow: hidden; border-bottom: 1px solid var(--line); padding: 26px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding-right: 28px; font: 400 clamp(26px, 3.4vw, 46px)/1 var(--f-display); white-space: nowrap; }
.marquee__item:nth-child(even) { font-style: italic; color: var(--muted); }
.marquee__item::after { content: "✦"; font-size: 0.5em; color: var(--accent-text); }
@keyframes marquee { to { transform: translateX(-50%); } }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head .lead { margin: 0; max-width: 44ch; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento .card { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; min-height: 260px; }
.bento .b-exp { grid-column: span 7; grid-row: span 2; }
.bento .b-ven { grid-column: span 5; }
.bento .b-skl { grid-column: span 5; }
.bento .b-edu { grid-column: span 4; }
.bento .b-cer { grid-column: span 4; }
.bento .b-con { grid-column: span 4; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bento .b-con .muted, .bento .b-con .card__k { color: rgba(10, 10, 11, 0.6); }
.bento .b-con .card__arrow { border-color: rgba(10, 10, 11, 0.25); }
.bento .b-con::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.4), transparent 45%); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card__k { font: 500 12px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s, color 0.3s; flex: none;
}
.card__arrow svg { width: 16px; height: 16px; }
.card:hover .card__arrow { transform: rotate(-45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.b-con:hover .card__arrow { background: var(--accent-ink); color: var(--accent); }
.card__body { margin-top: auto; padding-top: 28px; }
.card__title { font: 400 clamp(28px, 2.8vw, 40px)/1.05 var(--f-display); letter-spacing: -0.02em; margin: 0 0 8px; }
.card__title em { font-style: italic; color: var(--accent-text); }
.b-con .card__title em { color: var(--accent-ink); }
.mini-tl { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 0; }
.mini-tl li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mini-tl li span:first-child { font: 500 12px var(--f-mono); color: var(--muted); padding-top: 2px; }
.mini-tl li b { display: block; font-weight: 700; }
.mini-tl li em { font-style: normal; color: var(--muted); }
.big-num { font: 400 clamp(64px, 7vw, 110px)/0.9 var(--f-display); letter-spacing: -0.04em; }

/* Next page */
.next { display: block; border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.next__k { font: 500 12px var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.next__t { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; font: 400 clamp(56px, 12vw, 180px)/0.9 var(--f-display); letter-spacing: -0.04em; transition: color 0.4s; }
.next__t svg { width: clamp(40px, 7vw, 110px); height: auto; flex: none; transition: transform 0.6s var(--ease); }
.next:hover .next__t { color: var(--accent-text); font-style: italic; }
.next:hover .next__t svg { transform: rotate(-45deg); }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 500 12px var(--f-mono); color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer__keys { display: flex; align-items: center; gap: 8px; }

/* ---------- ABOUT ---------- */
.manifesto { font: 400 clamp(30px, 4.6vw, 68px)/1.12 var(--f-display); letter-spacing: -0.02em; margin: 0; }
.manifesto .mw { opacity: 0.14; transition: opacity 0.4s, color 0.4s; }
.manifesto .mw.on { opacity: 1; }
.manifesto .mw.hl.on { color: var(--accent-text); font-style: italic; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar { padding: clamp(24px, 3vw, 40px); min-height: 340px; display: flex; flex-direction: column; }
.pillar__n { font: 400 clamp(64px, 6vw, 96px)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color 0.5s, -webkit-text-stroke-color 0.5s; }
.pillar:hover .pillar__n { color: var(--accent-text); -webkit-text-stroke-color: transparent; }
.pillar h3 { font: 400 32px/1.1 var(--f-display); margin: auto 0 12px; }
.pillar p { color: var(--muted); margin: 0; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
.fact__k { font: 500 12px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.fact__v { font: 400 28px/1.15 var(--f-display); margin-top: 10px; }
.fact__v small { display: block; font: 500 13px var(--f-sans); color: var(--muted); margin-top: 4px; }

/* ---------- EXPERIENCE ---------- */
.gantt { --lbl: 150px; padding: clamp(20px, 2.6vw, 32px); }
.gantt__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.gantt__grid { position: relative; padding-bottom: 22px; }
.gantt__years { display: grid; font: 500 11px var(--f-mono); color: var(--faint); margin-left: var(--lbl); position: relative; height: 20px; }
.gantt__years span { position: absolute; transform: translateX(-50%); }
.gantt__row { display: grid; grid-template-columns: var(--lbl) 1fr; align-items: center; min-height: 46px; border-top: 1px dashed var(--line); }
.gantt__lbl { font-size: 13px; font-weight: 600; padding-right: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt__lbl small { display: block; font: 500 11px var(--f-mono); color: var(--muted); font-weight: 400; }
.gantt__track { position: relative; height: 46px; }
.gantt__bar {
  position: absolute; top: 50%; height: 14px; transform: translateY(-50%) scaleX(0); transform-origin: left;
  border-radius: 999px; background: var(--text); cursor: pointer;
  transition: transform 1.2s var(--ease), height 0.3s var(--ease), box-shadow 0.3s;
}
.gantt.in .gantt__bar { transform: translateY(-50%) scaleX(1); }
.gantt__bar.venture { background: var(--accent); }
.gantt__bar.school { background: transparent; border: 1px solid var(--line-2); background-image: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 7px); }
.gantt__bar.live::after { content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: inherit; box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse2 1.6s infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 9px transparent; } }
.gantt__bar:hover, .gantt__bar.hot { height: 22px; box-shadow: 0 0 24px var(--glow); }
.gantt__now { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--accent); opacity: 0.6; }
.gantt__now.first::before { content: "NOW"; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font: 600 10px var(--f-mono); color: var(--accent-text); letter-spacing: 0.1em; }
.gantt__legend { display: flex; gap: 16px; flex-wrap: wrap; font: 500 12px var(--f-mono); color: var(--muted); }
.gantt__legend i { display: inline-block; width: 18px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: 1px; }
.tip {
  position: fixed; z-index: 500; pointer-events: none; padding: 10px 14px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-size: 13px; line-height: 1.4; max-width: 260px;
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s;
}
.tip.show { opacity: 1; transform: none; }
.tip small { display: block; font: 500 11px var(--f-mono); opacity: 0.65; }

.tabs { display: inline-flex; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); position: relative; flex-wrap: wrap; }
.tab { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.tab.active { color: var(--accent-ink); }
.tab .count { font: 500 11px var(--f-mono); opacity: 0.6; margin-left: 4px; }
.tabs__pill { position: absolute; z-index: 0; border-radius: 999px; background: var(--accent); transition: all 0.5s var(--ease); }

.xp-list { margin-top: 32px; display: grid; gap: 14px; }
.xp { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.4s, max-height 0.6s; }
.xp.hide { display: none; }
.xp__head { width: 100%; text-align: left; display: grid; grid-template-columns: 170px 1fr auto; gap: 24px; align-items: center; padding: clamp(20px, 2.6vw, 32px); }
.xp__date { font: 500 13px var(--f-mono); color: var(--muted); }
.xp__date b { display: block; color: var(--text); font-weight: 500; }
.xp__role { font: 400 clamp(26px, 3vw, 40px)/1.08 var(--f-display); letter-spacing: -0.02em; }
.xp__org { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--muted); }
.xp__org strong { color: var(--text); }
.xp__toggle { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.6s var(--ease), background 0.3s, color 0.3s; }
.xp__toggle svg { width: 18px; height: 18px; }
.xp.open .xp__toggle { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.xp__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.xp.open .xp__body { grid-template-rows: 1fr; }
.xp__inner { overflow: hidden; }
.xp__content { padding: 0 clamp(20px, 2.6vw, 32px) clamp(24px, 3vw, 36px); margin-left: calc(170px + 24px); }
.xp__bul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.xp__bul li { position: relative; padding-left: 28px; color: var(--muted); }
.xp__bul li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 14px; height: 1px; background: var(--accent); }
.projects-k { font: 500 12px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 8px 0 14px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 24px; }
.proj { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.3s, background 0.3s; }
.proj:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--accent-soft); }
.proj small { display: block; font: 500 11px var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.proj span { display: block; font: 400 21px/1.15 var(--f-display); margin-top: 6px; }

/* ---------- SKILLS ---------- */
.skills-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.skill-groups { display: grid; gap: 16px; }
.sgroup { padding: clamp(20px, 2.6vw, 32px); }
.sgroup__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.sgroup__head h3 { font: 400 30px/1 var(--f-display); margin: 0; }
.sgroup__head span { font: 500 12px var(--f-mono); color: var(--muted); }
.skill {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; background: var(--surface);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease), opacity 0.3s;
}
.skill:hover { border-color: var(--line-2); transform: translateY(-2px); }
.skill.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.skill.dim { opacity: 0.35; }
.skill-panel { position: sticky; top: 100px; padding: clamp(24px, 3vw, 36px); min-height: 360px; }
.skill-panel__name { font: 400 clamp(34px, 3.6vw, 52px)/1.02 var(--f-display); letter-spacing: -0.02em; margin: 18px 0 6px; }
.skill-panel__g { font: 500 12px var(--f-mono); color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; }
.skill-panel .ybar i { animation: grow 1.4s var(--ease) 0.2s both; }
@keyframes grow { from { width: 0; } }
.skill-panel ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.skill-panel li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; animation: slideIn 0.5s var(--ease) both; }
.skill-panel li::before { content: "↳"; color: var(--accent-text); font-family: var(--f-mono); }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.skill-search { width: 100%; height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 20px 0 48px; color: var(--text); font: 500 15px var(--f-sans); outline: none; transition: border-color 0.3s; }
.skill-search:focus { border-color: var(--accent); }
.search-wrap { position: relative; max-width: 420px; flex: 1 1 260px; }
.search-wrap svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.lang-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.lang { padding: 28px; display: flex; justify-content: space-between; align-items: center; }
.lang b { font: 400 36px/1 var(--f-display); font-weight: 400; }
.lang__meter { display: flex; gap: 4px; }
.lang__meter i { width: 8px; height: 24px; border-radius: 3px; background: var(--accent); }

/* ---------- EDUCATION ---------- */
.edu { padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.edu__school { font: 400 clamp(40px, 6vw, 88px)/0.95 var(--f-display); letter-spacing: -0.03em; margin: 18px 0 0; }
.edu__deg { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-top: 18px; }
.edu__deg b { color: var(--text); }
.edu__seal {
  width: clamp(120px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center; position: relative;
  font: 400 clamp(40px, 4vw, 56px)/1 var(--f-display); font-style: italic;
}
.edu__seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.edu__seal text { font: 500 8.4px var(--f-mono); letter-spacing: 0.22em; fill: var(--muted); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.edu__years { grid-column: 1 / -1; margin-top: 8px; }
.yearline { display: flex; justify-content: space-between; font: 500 12px var(--f-mono); color: var(--muted); margin-bottom: 12px; }
.yearline span { position: relative; }
.ybar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.ybar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--text), var(--accent)); border-radius: inherit; transition: width 2s var(--ease); }
.edu.in .ybar i { width: 100%; }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.edu-grid .card { padding: 28px; }
.edu-grid .big-num { font-size: clamp(54px, 5vw, 80px); }

/* ---------- CERTIFICATIONS ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.cert { padding: 0; display: flex; flex-direction: column; text-align: left; }
.cert.hide { display: none; }
.cert__visual {
  position: relative; height: 170px; border-bottom: 1px solid var(--line); overflow: hidden;
  background:
    radial-gradient(circle at 20% 120%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, var(--line) 23px 24px);
  display: grid; place-items: center;
}
.cert__paper {
  width: 62%; aspect-ratio: 1.414; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); padding: 12px; display: flex; flex-direction: column; gap: 5px;
  transform: rotate(-4deg) translateY(16px); transition: transform 0.7s var(--ease);
}
.cert:hover .cert__paper { transform: rotate(0) translateY(0) scale(1.06); }
.cert__paper i { display: block; height: 4px; border-radius: 2px; background: var(--line-2); }
.cert__paper i:nth-child(1) { width: 40%; background: var(--accent); height: 6px; }
.cert__paper i:nth-child(2) { width: 80%; margin-top: 6px; }
.cert__paper i:nth-child(3) { width: 65%; }
.cert__paper i:nth-child(4) { width: 30%; margin-top: auto; }
.cert__issuer-mark { position: absolute; top: 14px; left: 16px; font: 500 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cert__status { position: absolute; top: 12px; right: 12px; }
.cert__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.cert__title { font: 400 26px/1.1 var(--f-display); margin: 0 0 6px; letter-spacing: -0.01em; }
.cert__issuer { font-size: 14px; color: var(--muted); }
.cert__foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.4s; }
.modal.open .modal__scrim { opacity: 1; }
.modal__box {
  position: relative; width: min(1240px, 100%); height: min(88vh, 900px); border-radius: 24px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-2); display: flex; flex-direction: column;
  transform: translateY(40px) scale(0.96); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s;
}
.modal.open .modal__box { transform: none; opacity: 1; }
.modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__bar h3 { font: 400 24px/1.1 var(--f-display); margin: 0; }
.modal__bar small { font: 500 12px var(--f-mono); color: var(--muted); }
.modal__frame { flex: 1; background: #525659; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__empty { flex: 1; display: grid; place-items: center; text-align: center; padding: 32px; }
.modal__empty .big-num { color: var(--faint); }

/* ---------- CONTACT ---------- */
.contact-hero { font: 400 clamp(64px, 15vw, 230px)/0.85 var(--f-display); letter-spacing: -0.05em; margin: 0; }
.mail-big {
  display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font: 400 clamp(26px, 4.4vw, 64px)/1.1 var(--f-display); letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line-2); padding-bottom: 10px; margin-top: 40px; word-break: break-all;
  transition: color 0.3s, border-color 0.3s;
}
.mail-big:hover { color: var(--accent-text); border-color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(48px, 7vw, 96px); }
.cbox { padding: 26px; display: flex; flex-direction: column; min-height: 200px; }
.cbox__v { margin-top: auto; font: 400 24px/1.2 var(--f-display); word-break: break-word; }
.cbox__v small { display: block; font: 500 12px var(--f-mono); color: var(--muted); margin-top: 6px; }
.clock { font-variant-numeric: tabular-nums; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent;
  color: var(--text); font: 400 clamp(20px, 2vw, 28px)/1.3 var(--f-display); padding: 28px 0 12px; outline: none; resize: vertical;
  transition: border-color 0.3s;
}
.field textarea { min-height: 120px; }
.field label { position: absolute; left: 0; top: 30px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all 0.3s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 0; font: 500 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Command palette ---------- */
.cmdk { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px; visibility: hidden; }
.cmdk.open { visibility: visible; }
.cmdk__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.cmdk.open .cmdk__scrim { opacity: 1; }
.cmdk__box { position: relative; width: min(600px, 100%); border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); transform: translateY(-16px) scale(0.98); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.3s; }
.cmdk.open .cmdk__box { transform: none; opacity: 1; }
.cmdk__input { width: 100%; height: 60px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: 500 17px var(--f-sans); padding: 0 22px; outline: none; }
.cmdk__list { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.cmdk__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 15px; cursor: pointer; }
.cmdk__item small { font: 500 11px var(--f-mono); color: var(--muted); }
.cmdk__item.sel { background: var(--accent); color: var(--accent-ink); }
.cmdk__item.sel small { color: rgba(10, 10, 11, 0.6); }
.cmdk__group { font: 500 11px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); padding: 10px 14px 6px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 200%); opacity: 0;
  padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; transition: transform 0.5s var(--ease), opacity 0.3s; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }


/* ---------- Certifications v2 ---------- */
.btn--sm { height: 42px; padding: 0 18px; font-size: 13.5px; }
.btn--sm svg { width: 15px; height: 15px; }
.chip--line { border-color: var(--accent); color: var(--accent-text); background: transparent; white-space: normal; max-width: 100%; }
.cert__visual[data-open] { cursor: pointer; }
.cert__summary { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; line-height: 1.55; }
.cert__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.learned { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.learned li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--text); }
.learned li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--accent); }
.cert .learned li { color: var(--muted); font-size: 13.5px; }

.cstats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cstats > div { padding: 26px 20px 26px 0; display: flex; flex-direction: column; gap: 8px; }
.cstats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.cstats .stat__num { color: var(--text); }
.cstats .stat__label { margin: 0; }

.cert-sec { padding-top: clamp(56px, 8vw, 100px); }
.cert-sec.hide, .prog.hide { display: none; }
.cert-sec__head { display: grid; gap: 12px; margin-bottom: 28px; }
.cert-sec__head p { margin: 0; }
.cert-sec .cert-grid { margin-top: 0; }

.prog-list { display: grid; gap: 16px; }
.prog { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; }
.prog > *, .pf-cols > *, .pf-score > *, .skills-layout > *, .about-intro > * { min-width: 0; }
.prog__side { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.cert__visual--tall { height: 280px; }
.prog__side .cert__visual--tall { border-bottom: 1px solid var(--line); }
.prog__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px 24px; }
.prog__meta b { display: block; font: 400 22px/1.2 var(--f-display); margin-top: 6px; }
.prog__main { padding: clamp(24px, 3vw, 40px); }
.prog__title { font: 400 clamp(30px, 3.2vw, 46px)/1.05 var(--f-display); letter-spacing: -0.02em; margin: 16px 0 12px; }
.prog__summary { color: var(--muted); font-size: 16px; max-width: 70ch; margin: 0; }
.courses { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.courses summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 14px; }
.courses summary::-webkit-details-marker { display: none; }
.courses__plus svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.courses[open] .courses__plus svg { transform: rotate(45deg); }
.courses ol, .courses-ol { margin: 0; padding: 0 16px 16px 38px; color: var(--muted); display: grid; gap: 6px; font-size: 14px; }
.courses ol li::marker, .courses-ol li::marker { font-family: var(--f-mono); font-size: 12px; color: var(--accent-text); }
.courses-ol { padding: 0 0 0 22px; margin: 10px 0 20px; }

.modal__body { flex: 1; display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
.modal__frame { min-height: 0; }
.modal__frame.modal__empty { background: transparent; }
.modal__aside { overflow: auto; padding: 24px; border-left: 1px solid var(--line); font-size: 14.5px; }
.modal__aside p { color: var(--muted); margin: 8px 0 22px; }
.modal__aside .learned { margin: 12px 0 22px; }

@media (max-width: 960px) {
  .prog { grid-template-columns: 1fr; }
  .prog__side { border-right: 0; border-bottom: 1px solid var(--line); }
  .cert__visual--tall { height: 220px; }
  .modal__box { height: 92vh; }
  .modal__body { grid-template-columns: 1fr; grid-template-rows: 46% 1fr; }
  .modal__aside { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .cstats { grid-template-columns: repeat(2, 1fr); }
  .cstats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cstats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- About v2: portrait, journey, interests ---------- */
.about-intro { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: 10px; padding-bottom: clamp(40px, 6vw, 80px); }
.about-intro__text .eyebrow { margin-bottom: 24px; }
.about-intro .manifesto { font-size: clamp(26px, 3vw, 44px); line-height: 1.16; }
.portrait { margin: 0; padding: 0; aspect-ratio: 4 / 5; }
.portrait__img { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.portrait__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; filter: grayscale(1) contrast(1.05); transform: scale(1.08); transition: filter 0.9s var(--ease), transform 1.4s var(--ease); }
.portrait:hover .portrait__img img { filter: grayscale(0) contrast(1); transform: scale(1.02); }
.portrait__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 11, 0.85)); pointer-events: none; }
.portrait__cap { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: #fff; font: 500 12px/1.4 var(--f-mono); }
.portrait__cap b { display: block; font: 400 30px/1.05 var(--f-display); color: #fff; margin-bottom: 4px; }
.portrait__cap > span:first-child { color: rgba(255, 255, 255, 0.75); }
.portrait__cap .chip { background: rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.2); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.portrait::before { content: ""; position: absolute; z-index: 3; top: 16px; right: 16px; width: 44px; height: 44px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-radius: 0 10px 0 0; pointer-events: none; transition: width 0.6s var(--ease), height 0.6s var(--ease); }
.portrait:hover::before { width: 72px; height: 72px; }

.journey-sec { --jpad: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.journey__ctrl { max-width: 460px; }
.jprog { width: 140px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.jprog i { display: block; height: 100%; width: 6%; background: var(--accent); transition: width 0.3s; }
.journey { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; padding-bottom: 12px; }
.journey::-webkit-scrollbar { display: none; }
.journey.grabbing { cursor: grabbing; scroll-snap-type: none; }
.journey__track { list-style: none; margin: 0; display: flex; gap: 16px; padding: 0 var(--jpad); position: relative; width: max-content; }
.journey__track::before { content: ""; position: absolute; left: var(--jpad); right: var(--jpad); top: 44px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent) 60%, var(--accent)); opacity: 0.6; }
.jstop { width: clamp(260px, 26vw, 330px); flex: none; scroll-snap-align: start; scroll-margin-left: var(--jpad); position: relative; }
.jstop__when { font: 400 30px/32px var(--f-display); letter-spacing: -0.01em; margin-bottom: 34px; white-space: nowrap; }
.jstop.hot .jstop__when { color: var(--accent-text); font-style: italic; }
.jstop__dot { position: absolute; top: 39px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); transition: background 0.4s, border-color 0.4s; z-index: 1; }
.jstop.seen .jstop__dot { background: var(--text); border-color: var(--text); }
.jstop.hot .jstop__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.jstop__card { padding: 22px; min-height: 230px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.jstop:hover .jstop__card { border-color: var(--accent); transform: translateY(-6px); }
.jstop__card h3 { font: 400 26px/1.08 var(--f-display); margin: 6px 0 0; letter-spacing: -0.01em; }
.jstop__card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }
.jstop__n { position: absolute; top: 22px; right: 22px; font: 500 11px var(--f-mono); color: var(--faint); }

@media (max-width: 960px) {
  .about-intro { grid-template-columns: 1fr; }
  .portrait { max-width: 460px; width: 100%; }
}
@media (max-width: 600px) {
  .jprog { width: 80px; }
}

/* ---------- Portfolio ---------- */
.pf-index { border-top: 1px solid var(--line); }
.pf-row { display: grid; grid-template-columns: 70px 1fr auto 48px; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--line); position: relative; }
.pf-row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.pf-row:hover::before { opacity: 1; }
.pf-row__n { font: 500 13px var(--f-mono); color: var(--muted); }
.pf-row__t { font: 400 clamp(40px, 6.4vw, 96px)/0.95 var(--f-display); letter-spacing: -0.035em; transition: transform 0.6s var(--ease), color 0.3s; }
.pf-row:hover .pf-row__t { transform: translateX(18px); color: var(--accent-text); font-style: italic; }
.pf-row__m { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 500 12px var(--f-mono); color: var(--muted); text-align: right; }
.pf-row:hover .card__arrow { transform: rotate(-45deg); background: var(--text); color: var(--bg); border-color: var(--text); }

.pf-float { position: fixed; left: 0; top: 0; z-index: 400; width: 300px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: 0.85; transition: opacity 0.35s, scale 0.5s var(--ease); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); border: 1px solid var(--line-2); }
.pf-float.show { opacity: 1; scale: 1; }
.pf-float img { width: 100%; height: 100%; object-fit: cover; }
.pf-float__art { width: 100%; height: 100%; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: radial-gradient(circle at 80% 10%, var(--accent), transparent 55%), var(--bg-2); }
.pf-float__art small { font: 500 11px var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pf-float__art b { font: 400 40px/1 var(--f-display); }
.pf-float__art span { font-size: 13px; color: var(--muted); }

.pf-cases { padding-bottom: clamp(40px, 6vw, 80px); }
.pf-case { padding-top: clamp(90px, 13vw, 170px); }
.pf-case__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pf-case__title { font: 400 clamp(56px, 11vw, 160px)/0.9 var(--f-display); letter-spacing: -0.045em; margin: 0; }
.pf-cover { margin-top: clamp(32px, 5vw, 56px); }
.pf-media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.pf-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.pf-media:hover img { transform: scale(1.03); }
.pf-media--cover, .pf-slot--cover, .pf-cover__art { aspect-ratio: 16 / 7; }
.pf-cover__art { border-radius: var(--r); border: 1px solid var(--line); display: grid; place-items: center; background: radial-gradient(circle at 85% 0%, var(--accent-soft), transparent 55%), var(--surface); font: italic 400 clamp(48px, 9vw, 140px)/1 var(--f-display); color: var(--faint); }
.pf-slot { border: 1.5px dashed var(--line-2); border-radius: var(--r); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; color: var(--muted); aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, transparent 0 12px, var(--surface) 12px 24px); transition: border-color 0.3s, color 0.3s; }
.pf-slot:hover { border-color: var(--accent); color: var(--text); }
.pf-slot span { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.pf-slot span svg { width: 18px; height: 18px; }
.pf-slot b { font-size: 14px; }
.pf-slot small { font: 500 11px/1.4 var(--f-mono); max-width: 34ch; }

.pf-meta { display: grid; grid-template-columns: 2fr 1fr 1fr; border-bottom: 1px solid var(--line); margin-top: 28px; }
.pf-meta > div { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 8px; }
.pf-meta > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.pf-meta b { font: 400 22px/1.25 var(--f-display); }
.pf-cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 60px); }
.pf-cols .card__k { margin-bottom: 16px; }
.pf-challenge { font: 400 clamp(22px, 2.2vw, 30px)/1.3 var(--f-display); margin: 0; }
.pf-did { gap: 14px; }
.pf-did li { font-size: 15px; color: var(--muted); }
.pf-results { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf-results > div { padding: 26px 20px 26px 0; display: flex; flex-direction: column; gap: 10px; }
.pf-results > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.pf-results__v { font: 400 clamp(44px, 5vw, 76px)/1 var(--f-display); letter-spacing: -0.03em; color: var(--accent-text); }
.pf-results__l { font-size: 14px; color: var(--muted); }
.pf-block { margin-top: clamp(40px, 5vw, 64px); }
.pf-block > .card__k { display: block; margin-bottom: 16px; }
.pf-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pf-cluster { padding: 20px; }
.pf-cluster__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.pf-cluster__head b { font: 400 22px/1.1 var(--f-display); }
.pf-cluster ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-cluster li { font-size: 14px; color: var(--muted); padding-left: 16px; position: relative; }
.pf-cluster li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 1px; background: var(--accent); }
.pf-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pf-gallery .pf-media { aspect-ratio: 4 / 3; }

@media (max-width: 960px) {
  .pf-projects { grid-template-columns: repeat(2, 1fr); }
  .pf-cols { grid-template-columns: 1fr; }
  .pf-meta { grid-template-columns: 1fr; }
  .pf-meta > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .pf-row { grid-template-columns: 36px 1fr 40px; gap: 12px; }
  .pf-row__m { display: none; }
  .pf-results { grid-template-columns: 1fr; }
  .pf-results > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .pf-projects { grid-template-columns: 1fr; }
  .pf-media--cover, .pf-slot--cover, .pf-cover__art { aspect-ratio: 4 / 3; }
}


/* Project cards + detail modal */
.pproj { padding: 0; display: flex; flex-direction: column; text-align: left; }
.pproj.has { cursor: pointer; }
.pproj__img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 0%, var(--accent-soft), transparent 60%), repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, var(--line) 23px 24px); display: grid; place-items: center; }
.pproj__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pproj.has:hover .pproj__img img { transform: scale(1.06); }
.pproj__img span { font: italic 400 34px/1 var(--f-display); color: var(--faint); }
.pproj__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pproj__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pproj__top small { font: 500 11px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pproj__body b { font: 400 22px/1.15 var(--f-display); }
.pproj__ct { font: 500 11px var(--f-mono); color: var(--muted); margin-top: -2px; }
.pproj__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--f-mono); color: var(--accent-text); }
.pproj__more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.pproj.has:hover .pproj__more svg { transform: translateX(4px); }

.pmodal__box { height: auto; max-height: 92vh; width: min(920px, 100%); }
.pmodal__close { position: absolute; top: 14px; right: 14px; z-index: 3; background: var(--bg-2); }
.pmodal__body { display: grid; grid-template-columns: 1fr; overflow: auto; max-height: 92vh; }
.pmodal__img { margin: 0; position: relative; aspect-ratio: 16 / 8; background: var(--surface); }
.pmodal__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmodal__img figcaption { position: absolute; left: 14px; bottom: 14px; font: 500 11px var(--f-mono); color: #fff; background: rgba(0, 0, 0, 0.5); padding: 4px 10px; border-radius: 999px; }
.pmodal__text { padding: clamp(24px, 3vw, 40px); }
@media (min-width: 821px) { .pmodal__facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .pmodal__pkg dl { grid-template-columns: repeat(3, 1fr); } }
.pmodal__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 40px; }
.pmodal__text h3 { font: 400 clamp(32px, 3.4vw, 48px)/1.02 var(--f-display); letter-spacing: -0.02em; margin: 16px 0 14px; }
.pmodal__desc { color: var(--muted); font-size: 15px; margin: 0; }
.pmodal__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 22px; }
.pmodal__facts > div { background: var(--bg-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pmodal__facts b { font: 400 22px/1.1 var(--f-display); }
.pmodal__scope { margin-top: 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent-soft); }
.pmodal__scope p { margin: 6px 0 0; font-size: 15px; }
.pmodal__scope .learned { margin-top: 12px; }
.pmodal__scope .learned li { font-size: 14.5px; }
@media (max-width: 820px) {
  .pmodal__img { aspect-ratio: 16 / 10; }
  .pmodal__facts, .pmodal__pkg dl { grid-template-columns: 1fr; }
}

.pmodal__body.noimg { grid-template-columns: 1fr; }
.pmodal__pkg { margin-top: 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.pmodal__pkg b { display: block; font: 400 19px/1.25 var(--f-display); margin: 6px 0 12px; }
.pmodal__pkg dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.pmodal__pkg dt { font: 500 10.5px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pmodal__pkg dd { margin: 2px 0 0; font-size: 14px; }
.pf-fig { margin: 0; }
.pf-fig figcaption { font: 500 11px var(--f-mono); color: var(--muted); margin-top: 8px; }

.pf-reels { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pf-reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.pf-reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-reel__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(10, 10, 11, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; display: grid; place-items: center; pointer-events: none; transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s; }
.pf-reel__play svg { width: 26px; height: 26px; margin-left: 3px; }
.pf-reel:hover .pf-reel__play { transform: scale(1.1); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pf-reel.playing .pf-reel__play { opacity: 0; transform: scale(0.8); }
.pf-reel.playing { border-color: var(--accent); }
@media (max-width: 600px) { .pf-reels { grid-template-columns: repeat(2, 1fr); } }

.pf-fig--wide { grid-column: 1 / -1; }
.pf-fig--wide .pf-media { aspect-ratio: auto !important; }
.pf-fig--wide .pf-media img { height: auto; }
.pf-fig--tall .pf-media { aspect-ratio: 3 / 4 !important; }

.pf-platform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-feat { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.pf-feat__n { font: 500 11px var(--f-mono); color: var(--accent-text); }
.pf-feat b { font: 400 24px/1.1 var(--f-display); }
.pf-feat p { margin: 0; color: var(--muted); font-size: 14px; }
.pf-score { padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.pf-score__lead { font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--f-display); margin: 14px 0 0; }
.pf-score__bars { display: grid; gap: 18px; }
.pf-bar__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pf-bar__top b { font: 400 22px/1 var(--f-display); }
.pf-bar__top span { font: 400 30px/1 var(--f-display); color: var(--accent-text); }
.pf-bar__track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pf-bar__track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--text), var(--accent)); border-radius: inherit; transition: width 1.6s var(--ease) 0.2s; }
.pf-score.in .pf-bar__track i { width: var(--w); }
.pf-bar small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .pf-results { grid-template-columns: repeat(2, 1fr); } .pf-results > div:nth-child(odd) { padding-left: 0; border-left: 0; } .pf-results > div:nth-child(n+3) { border-top: 1px solid var(--line); } .pf-platform { grid-template-columns: repeat(2, 1fr); } .pf-score { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pf-platform { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav__links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .bento .b-exp { grid-column: span 12; grid-row: auto; }
  .bento .b-ven, .bento .b-skl { grid-column: span 6; }
  .bento .b-edu, .bento .b-cer, .bento .b-con { grid-column: span 4; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero__bottom { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 260px; }
  .bento .b-ven, .bento .b-skl, .bento .b-edu, .bento .b-cer, .bento .b-con { grid-column: span 12; }
  .skills-layout { grid-template-columns: 1fr; }
  .skill-panel { position: relative; top: 0; min-height: 0; order: -1; }
  .xp__head { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .xp__date { grid-column: 1 / -1; display: flex; gap: 8px; }
  .xp__date b { display: inline; }
  .xp__content { margin-left: 0; }
  .edu { grid-template-columns: 1fr; }
  .edu__seal { order: -1; }
  .edu-grid { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .nav__tools .k-hint { display: none; }
}
@media (max-width: 600px) {
  .prog__meta { padding: 18px; gap: 10px; }
  .prog__meta b { font-size: 18px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0 !important; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .cert-grid, .contact-grid, .lang-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .mini-tl li { grid-template-columns: 1fr; gap: 2px; }
  .hero__name .row2 { padding-left: 0; }
  .gantt { --lbl: 92px !important; }
  .gantt__years span:nth-child(even) { display: none; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv, .split .w > span { opacity: 1; transform: none; }
}
.cert__status, .cert__issuer-mark { z-index: 2; }
.chip--live { border-color: rgba(61, 220, 132, 0.4); color: #3ddc84; background: rgba(61, 220, 132, 0.08); }
:root[data-theme="light"] .chip--live { color: #148a4a; }
