/* ==========================================================================
   FRANCIS PWAVWE — Futuristic Portfolio
   Design system + components. Dark, neon, glass, motion-first.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #05060c;
  --bg-2: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-str: rgba(255, 255, 255, 0.16);

  --text: #e8ecf5;
  --text-dim: #97a1b8;
  --text-mute: #7a8598;

  --cyan: #5eead4;
  --cyan-2: #22d3ee;
  --violet: #0f766e;
  --violet-2: #0f766e;
  --gold: #d4af37;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-2) 45%, var(--violet) 100%);
  --grad-text: linear-gradient(120deg, #0a2a6a, #1d5ed8 55%, #0f766e);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.35);
  --glow-violet: 0 0 40px rgba(15, 118, 110, 0.24);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: rgba(94, 234, 212, 0.25);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}

/* ---------- Background layers ---------- */
.bg-canvas,
.bg-grid,
.bg-vignette,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.bg-canvas {
  z-index: -3;
  width: 100vw;
  height: 100vh;
}
.bg-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(120, 190, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 190, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 74%);
  animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
  to { background-position: 58px 58px; }
}
.bg-vignette {
  z-index: -1;
  background: radial-gradient(120% 90% at 50% 42%, transparent 52%, rgba(2, 3, 8, 0.62) 100%);
}
/* Fine cinematic scanlines drawn above content but click-through. */
.scanlines {
  z-index: 120;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.024) 0,
    rgba(255, 255, 255, 0.024) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

/* ---------- Heads-up display frame ---------- */
.hud {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.hud__corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(94, 234, 212, 0.5);
  filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.35));
}
.hud__corner--tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hud__corner--tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.hud__corner--bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.hud__corner--br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.hud__readout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(151, 161, 184, 0.7);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.hud__readout--tl { top: 24px; left: 56px; }
.hud__readout--bl { bottom: 25px; left: 56px; }
.hud__readout--br { bottom: 25px; right: 56px; color: var(--cyan); }
.hud__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}
@media (max-width: 760px) {
  .hud__readout--tl,
  .hud__readout--bl { left: 46px; }
  .hud__readout { font-size: 0.55rem; letter-spacing: 0.16em; }
  .hud__corner { width: 18px; height: 18px; }
}

/* ---------- Scroll progress rail ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(94, 234, 212, 0.6);
  transition: width 0.1s linear;
}

/* ---------- Cinematic preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.6rem;
  background: radial-gradient(circle at 50% 45%, #0a0e1a 0%, #04050b 70%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease), opacity 0.5s ease 0.5s;
}
.preloader.is-done {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  pointer-events: none;
}
.preloader__ring {
  position: relative;
  width: clamp(120px, 30vw, 160px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.preloader__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.preloader__track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
}
.preloader__arc {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, 0.7));
  transition: stroke-dashoffset 0.2s linear;
}
.preloader__count {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}
.preloader__count i {
  color: var(--cyan);
  font-style: normal;
  font-size: 0.9rem;
}
.preloader__brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.42em;
  font-size: clamp(0.9rem, 3vw, 1.5rem);
  padding-left: 0.42em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}
.preloader__brand span {
  display: inline-block;
}
.preloader__status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  min-height: 1em;
}

/* ---------- Custom cursor ---------- */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button {
  cursor: none;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  translate: -50% -50%;
  border-radius: 50%;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(94, 234, 212, 0.6);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}
.cursor-hover .cursor-ring {
  width: 58px;
  height: 58px;
  background: rgba(94, 234, 212, 0.08);
  border-color: var(--violet-2);
}
.cursor-down .cursor-ring {
  width: 26px;
  height: 26px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 0.85rem 1.6rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--pad);
  border: 1px solid var(--border-str);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--text);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.25s, color 0.25s;
  will-change: transform;
}
.btn > span {
  position: relative;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn--primary {
  border-color: transparent;
  color: #04121a;
}
.btn--primary::before {
  opacity: 1;
}
.btn--primary:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: rgba(5, 6, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  display: flex;
  gap: 0.4em;
}
.nav-brand span {
  color: var(--cyan);
}
.nav-menu {
  display: flex;
  gap: 0.35rem;
  list-style: none;
}
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s var(--ease);
}
.nav-link:hover {
  color: var(--text);
}
.nav-link.is-active {
  color: var(--text);
  background: var(--surface-2);
}
.nav-link.is-active::after {
  width: 60%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-socials {
  display: flex;
  gap: 0.4rem;
}
.social-link {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.social-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
}
.section__head {
  margin-bottom: 3rem;
  max-width: 720px;
}
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-block;
  margin-bottom: 0.8rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}
.section__subtitle {
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 1.02rem;
}
.scramble-glyph {
  color: var(--violet-2);
  opacity: 0.8;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.hero__credential {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
.hero__title {
  margin: 1.4rem 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
}
.hero__name {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: 0;
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}
.hero__role-wrap {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  color: var(--text);
  min-height: 1.4em;
  margin-top: 0.4rem;
}
.hero__role {
  font-weight: 500;
}
.caret {
  color: var(--cyan);
  animation: blink 1s steps(2) infinite;
  font-weight: 300;
}
@keyframes blink {
  50% { opacity: 0; }
}
.hero__tagline {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text);
  line-height: 1;
}
.stat__value span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 0.76rem;
  color: var(--text-mute);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
}

/* Hero visual — orbiting rings */
.hero__visual {
  display: grid;
  place-items: center;
}
.orbit {
  position: relative;
  width: min(400px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.orbit__core {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(94, 234, 212, 0.4);
  box-shadow: var(--glow-cyan), inset 0 0 40px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.orbit__core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}
.orbit__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.orbit__ring--1 {
  inset: 8%;
  border-color: rgba(94, 234, 212, 0.25);
  animation: spin 16s linear infinite;
  border-style: dashed;
}
.orbit__ring--2 {
  inset: -6%;
  border-color: rgba(15, 118, 110, 0.22);
  animation: spin 26s linear infinite reverse;
}
.orbit__ring--3 {
  inset: -18%;
  border-color: rgba(212, 175, 55, 0.16);
  animation: spin 40s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.orbit__chip {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid var(--border-str);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  transform: rotate(var(--a)) translateX(min(200px, 40vw)) rotate(calc(-1 * var(--a)));
  backdrop-filter: blur(6px);
  animation: orbitChip 18s linear infinite;
}
@keyframes orbitChip {
  to {
    transform: rotate(calc(var(--a) + 360deg)) translateX(min(200px, 40vw))
      rotate(calc(-1 * (var(--a) + 360deg)));
  }
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1px solid var(--border-str);
  border-radius: 100px;
  display: grid;
  justify-items: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--cyan);
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Glass card base ---------- */
.tilt,
.project,
.skill,
.timeline__card,
.cert,
.blog-card,
.contact__item,
.contact__form,
.highlight,
.support__item,
.about__frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--spot-x, 50%) var(--spot-y, 0%),
    rgba(94, 234, 212, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.tilt:hover {
  border-color: var(--border-str);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
.tilt:hover::after {
  opacity: 1;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about__frame {
  padding: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about__frame img {
  border-radius: calc(var(--radius-lg) - 8px);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.about__text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.about__text strong {
  color: var(--text);
  font-weight: 600;
}
.about__highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.highlight {
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: 0.25rem;
}
.highlight__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}
.highlight__value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
}

/* ---------- Chips (filters) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.chip:hover {
  color: var(--text);
  border-color: var(--border-str);
}
.chip.is-active {
  color: #04121a;
  background: var(--grad);
  border-color: transparent;
  font-weight: 600;
}

/* ---------- Work / projects ---------- */
.work__grid,
.skills__grid,
.cert__grid {
  display: grid;
  gap: 1.4rem;
}
.work__grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.project {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}
.project.is-hidden {
  display: none;
}
.project.is-featured {
  border-color: rgba(94, 234, 212, 0.25);
}
.project__glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.2), transparent 70%);
  filter: blur(30px);
  opacity: 0.6;
  pointer-events: none;
}
.project__icon {
  font-size: 2rem;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.project__icon-img {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  border-radius: 8px;
}
.project__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.project__category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.project__desc {
  color: var(--text-dim);
  font-size: 0.94rem;
}
.project__meta {
  font-size: 0.8rem;
  color: var(--text-mute);
}
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.6rem;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.project__link {
  margin-top: 0.6rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.3rem;
  transition: gap 0.25s;
}
.project__link:hover {
  gap: 0.6rem;
}

/* ---------- Skills ---------- */
.skills__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.skill {
  display: flex;
  min-height: 430px;
  padding: 1.9rem;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}
.skill::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #1d5ed8, #0f766e);
}
.skill__glow {
  position: absolute;
  inset: auto auto -30% -20%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 70%);
  filter: blur(26px);
  opacity: 0.5;
}
.skill__icon {
  display: grid;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border: 1px solid rgba(29, 94, 216, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(29, 94, 216, 0.1), rgba(15, 118, 110, 0.1));
  font-size: 1.65rem;
}
.skill__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.45rem;
}
.skill__index {
  color: #8a97ad;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.skill__eyebrow {
  margin-bottom: 0.45rem;
  color: #1d5ed8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.skill__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 650;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.skill__desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}
.skill__list {
  display: grid;
  gap: 0.65rem;
  margin: 1.35rem 0 1.5rem;
  padding: 1.15rem 0 0;
  border-top: 1px solid rgba(14, 37, 77, 0.1);
  list-style: none;
}
.skill__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #33415a;
  font-size: 0.82rem;
  line-height: 1.45;
}
.skill__list li span {
  color: #0f766e;
  font-weight: 800;
}
.skill__link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: #1646a3;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
}
.skill__link span {
  transition: transform 0.2s var(--ease);
}
.skill__link:hover span,
.skill__link:focus-visible span {
  transform: translate(3px, -3px);
}
.skill__link:focus-visible {
  border-radius: 4px;
  outline: 2px solid #1d5ed8;
  outline-offset: 4px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  translate: -50% 0;
  background: var(--border);
}
.timeline__progress {
  width: 100%;
  height: 0;
  background: var(--grad);
  box-shadow: var(--glow-cyan);
}
.timeline__item {
  position: relative;
  width: 50%;
  padding: 1rem 2.5rem;
}
.timeline__item:nth-child(even) {
  margin-left: 50%;
  text-align: left;
}
.timeline__item:nth-child(odd) {
  text-align: right;
}
.timeline__marker {
  position: absolute;
  top: 1.8rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: var(--glow-cyan);
  z-index: 2;
}
.timeline__item:nth-child(odd) .timeline__marker {
  right: -8px;
}
.timeline__item:nth-child(even) .timeline__marker {
  left: -8px;
}
.timeline__marker[data-kind='leadership'] {
  border-color: var(--violet-2);
}
.timeline__marker[data-kind='education'] {
  border-color: var(--gold);
}
.timeline__card {
  padding: 1.4rem 1.6rem;
  display: inline-block;
  text-align: left;
}
.timeline__badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
}
.timeline__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.6rem 0 0.2rem;
}
.timeline__company {
  color: var(--text);
  font-size: 0.9rem;
}
.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-mute);
  margin-bottom: 0.5rem;
}
.timeline__desc {
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Certificates ---------- */
.cert__grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cert {
  overflow: hidden;
  cursor: pointer;
}
.cert__preview {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cert__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.cert--portrait .cert__preview {
  aspect-ratio: 4 / 5;
}
.cert--portrait .cert__img {
  object-fit: contain;
  padding: 0.65rem;
  background: #f8fafc;
}
.cert:hover .cert__img {
  transform: scale(1.06);
}
.cert__pdf {
  font-family: var(--font-mono);
  color: var(--cyan);
  border: 1px dashed var(--border-str);
  padding: 0.6rem 1rem;
  border-radius: 10px;
}
.cert__info {
  padding: 1.1rem 1.2rem;
}
.cert__title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
}
.cert__issuer {
  color: var(--cyan);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.cert__date {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* ---------- Insights / blogs ---------- */
.insights__rail {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
}
.blogs-container {
  display: flex;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.6rem 0 1.6rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.blogs-container::-webkit-scrollbar {
  display: none;
}
.blog-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  overflow: hidden;
  cursor: pointer;
}
.blog-card__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  font-size: 2rem;
  overflow: hidden;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__body {
  padding: 1.3rem;
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.blog-card__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-mute);
  margin: 0.3rem 0 0.6rem;
}
.blog-card__preview {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.blog-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.blog-act {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-act:hover,
.blog-act.is-active {
  color: var(--cyan);
  border-color: var(--cyan);
}
.blog-empty {
  color: var(--text-mute);
  padding: 2rem;
  text-align: center;
  width: 100%;
  font-size: 0.92rem;
}
.rail-btn {
  position: absolute;
  top: 40%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-str);
  background: rgba(10, 14, 26, 0.8);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s;
}
.rail-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}
.rail-btn--left {
  left: -8px;
}
.rail-btn--right {
  right: -8px;
}

/* ---------- Blog modal ---------- */
.blog-modal,
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(3, 5, 10, 0.8);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.blog-modal.is-open,
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.blog-modal__inner {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border-str);
  border-radius: var(--radius-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease);
}
.blog-modal.is-open .blog-modal__inner {
  transform: none;
}
.blog-modal__close {
  position: sticky;
  top: 1rem;
  left: calc(100% - 3.5rem);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-str);
  background: rgba(5, 6, 12, 0.8);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 3;
}
.blog-modal__hero {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  margin-top: -3rem;
}
.blog-modal__body {
  padding: 1.6rem 2rem 2.4rem;
}
.blog-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
}
.blog-modal__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mute);
  margin: 0.4rem 0 1.4rem;
}
.blog-modal__content {
  color: var(--text-dim);
  line-height: 1.8;
}
.blog-modal__content a {
  color: #1d5ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.blog-modal__content img {
  border-radius: 12px;
  margin: 1rem 0;
}
.blog-modal__actions {
  display: flex;
  gap: 0.6rem;
  margin: 1.6rem 0;
}
.blog-comments {
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}
.blog-comments h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}
.blog-comments__form textarea {
  width: 100%;
  min-height: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  resize: vertical;
  margin-bottom: 0.8rem;
}
.blog-comment {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-top: 0.8rem;
}
.blog-comment__head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-bottom: 0.35rem;
}

/* ---------- Newsletter ---------- */
.newsletter__inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  margin: 0.6rem 0 1.1rem;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.newsletter__desc {
  font-size: clamp(1rem, 1.9vw, 1.15rem);
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}
.newsletter__form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.newsletter__form input {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 420px;
  padding: 0.95rem 1.15rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.newsletter__form input::placeholder {
  color: var(--text-mute);
}
.newsletter__form input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.newsletter__form .btn {
  flex: 0 0 auto;
}
.newsletter__note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--text-mute);
}
.newsletter__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}
.newsletter__note a:hover {
  color: var(--cyan);
}
@media (max-width: 560px) {
  .newsletter__form input,
  .newsletter__form .btn {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}
.contact__info {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}
.contact__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 1.1rem;
}
.contact__item span strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
}
.contact__item span {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.contact__form {
  padding: 1.8rem;
  display: grid;
  gap: 1.3rem;
}
.field {
  position: relative;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1rem 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s;
}
.field textarea {
  min-height: 110px;
  padding-top: 1.4rem;
}
.field label {
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  color: var(--text-mute);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.field input:focus + label,
.field textarea:focus + label,
.field.is-focused label,
.field.is-filled label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.3rem;
  font-size: 0.7rem;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* ---------- Support ---------- */
.support__card {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--border-str);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(29, 94, 216, 0.06), rgba(15, 118, 110, 0.03));
  position: relative;
  overflow: hidden;
}
.support__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}
.support__intro {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.support__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.support__item {
  padding: 1.4rem;
}
.support__item span {
  font-size: 1.6rem;
}
.support__item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.6rem 0 0.4rem;
  color: var(--text);
}
.support__item p {
  color: var(--text-dim);
  font-size: 0.86rem;
}
.support__note {
  color: var(--text-mute);
  font-size: 0.8rem;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.footer__inner p {
  color: var(--text-mute);
  font-size: 0.88rem;
}
.footer__links {
  margin-top: 0.6rem;
}
.footer__links a {
  color: var(--text-dim);
  transition: color 0.25s;
}
.footer__links a:hover {
  color: var(--cyan);
}

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 220;
  display: grid;
  gap: 0.6rem;
}
.toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 260px;
  max-width: 360px;
  padding: 0.9rem 1.2rem;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border-str);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.toast.is-visible {
  transform: none;
  opacity: 1;
}
.toast__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
}
.toast--success .toast__icon {
  background: rgba(94, 234, 212, 0.15);
  color: var(--cyan);
}
.toast--error .toast__icon {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
.toast--info .toast__icon {
  background: rgba(15, 118, 110, 0.12);
  color: var(--violet-2);
}

/* ---------- Lightbox ---------- */
.lightbox__inner {
  position: relative;
  max-width: min(1000px, 92vw);
  max-height: 90vh;
}
.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid var(--border-str);
}
.lightbox__caption {
  text-align: center;
  color: var(--text-dim);
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-str);
  background: var(--bg-2);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Reveal base state ---------- */
[data-reveal] {
  will-change: transform, opacity;
}

/* ---------- Hero name: digital glitch ---------- */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
}
.glitch::before {
  text-shadow: 2px 0 rgba(34, 211, 238, 0.8);
  animation: glitchA 6.5s infinite;
}
.glitch::after {
  text-shadow: -2px 0 rgba(15, 118, 110, 0.75);
  animation: glitchB 6.5s infinite;
}
@keyframes glitchA {
  0%, 92%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  93% { opacity: 0.85; transform: translate(-3px, -1px); clip-path: inset(0 0 64% 0); }
  95% { opacity: 0.85; transform: translate(3px, 1px); clip-path: inset(42% 0 22% 0); }
  97% { opacity: 0; }
}
@keyframes glitchB {
  0%, 90%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  91% { opacity: 0.8; transform: translate(3px, 1px); clip-path: inset(58% 0 0 0); }
  94% { opacity: 0.8; transform: translate(-3px, 0); clip-path: inset(22% 0 56% 0); }
  96% { opacity: 0; }
}

/* ---------- Orbit halo ---------- */
.orbit__halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  z-index: 0;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(94, 234, 212, 0.28) 12%,
    transparent 34%,
    rgba(15, 118, 110, 0.24) 55%,
    transparent 80%
  );
  filter: blur(16px);
  animation: spin 12s linear infinite;
}

/* ---------- Data ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(29, 94, 216, 0.05), rgba(15, 118, 110, 0.04));
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 2.4rem;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 34s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.85;
}
.ticker__track i {
  color: var(--cyan);
  font-style: normal;
  font-size: 0.7rem;
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.7);
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

/* ---------- Cursor reticle upgrade ---------- */
.cursor-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed rgba(15, 118, 110, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  animation: spin 4s linear infinite;
}
.cursor-hover .cursor-ring::after {
  opacity: 1;
}
.cursor-dot {
  transition: transform 0.12s ease-out;
}

/* ---------- Pointer parallax + split text ---------- */
[data-parallax-layer] {
  will-change: transform;
}
.split-char,
.split-word {
  display: inline-block;
}
.split-word {
  white-space: pre;
}
/* Screen-reader-only text (restores split-text sentences to assistive tech). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Accessibility polish ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Reduced motion: silence the new cinematic layers ---------- */
@media (prefers-reduced-motion: reduce) {
  .glitch::before,
  .glitch::after {
    display: none;
  }
  .ticker__track,
  .orbit__halo,
  .bg-grid,
  .cursor-ring::after {
    animation: none !important;
  }
  .split-char,
  .split-word {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-parallax-layer] {
    will-change: auto;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    order: -1;
  }
  .orbit {
    width: min(320px, 70vw);
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .support__grid {
    grid-template-columns: 1fr;
  }
  .timeline__line {
    left: 8px;
  }
  .timeline__item {
    width: 100%;
    padding-left: 2.4rem;
    padding-right: 0;
    text-align: left !important;
    margin-left: 0 !important;
  }
  .timeline__item .timeline__marker {
    left: 0 !important;
    right: auto !important;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    background: rgba(5, 6, 12, 0.97);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
  }
  .nav-menu.is-open {
    transform: none;
  }
  .nav-link {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-socials {
    display: none;
  }
  .about__highlights {
    grid-template-columns: 1fr;
  }
  .blog-card {
    flex-basis: 82vw;
  }
  .rail-btn {
    display: none;
  }
  .hero__cta {
    width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal],
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   Professional portfolio refresh
   Calmer executive blue system layered over the earlier cinematic build.
   ========================================================================== */
:root {
  --bg: #f7faff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef5ff;
  --border: rgba(14, 37, 77, 0.12);
  --border-str: rgba(22, 70, 163, 0.22);
  --text: #10213f;
  --text-dim: #526079;
  --text-mute: #7a869a;
  --cyan: #1d5ed8;
  --cyan-2: #2f80ed;
  --violet: #0f766e;
  --violet-2: #0f766e;
  --gold: #b88a1d;
  --grad: linear-gradient(135deg, #0a2a6a 0%, #1d5ed8 58%, #0f766e 100%);
  --grad-text: linear-gradient(135deg, #08245b 0%, #1d5ed8 72%, #0f766e 100%);
  --glow-cyan: 0 18px 48px rgba(22, 70, 163, 0.16);
  --glow-violet: 0 18px 48px rgba(15, 118, 110, 0.14);
  --radius: 8px;
  --radius-lg: 8px;
}

*,
*::before,
*::after {
  letter-spacing: 0 !important;
}

body {
  background:
    linear-gradient(180deg, #f7faff 0%, #ffffff 42%, #f2f7ff 100%);
  color: var(--text);
}

.bg-canvas,
.bg-grid,
.bg-vignette,
.scanlines,
.hud,
.preloader,
.cursor-dot,
.cursor-ring {
  display: none !important;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section__head {
  max-width: 820px;
  margin-bottom: 2.4rem;
}

.section__eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section__title {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.section__subtitle {
  color: var(--text-dim);
  max-width: 680px;
}

.navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(14, 37, 77, 0.1);
  backdrop-filter: blur(18px);
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 50px rgba(16, 33, 63, 0.08);
}

.nav-brand {
  color: #0a2a6a;
}

.nav-brand span {
  color: #1d5ed8;
}

.nav-link {
  color: #526079;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0a2a6a;
  background: #eef5ff;
}

.nav-link::after {
  background: #1d5ed8;
}

.social-link {
  color: #526079;
  background: #ffffff;
  border-color: rgba(14, 37, 77, 0.12);
}

.social-link:hover {
  color: #1d5ed8;
  border-color: rgba(29, 94, 216, 0.3);
}

.nav-toggle {
  background: #ffffff;
  border-color: rgba(14, 37, 77, 0.14);
}

.nav-toggle span {
  background: #10213f;
}

.scroll-progress {
  height: 2px;
}

.scroll-progress-bar {
  background: linear-gradient(90deg, #0a2a6a, #2f80ed, #0f766e);
  box-shadow: none;
}

.btn {
  min-height: 48px;
  border-radius: 8px;
  border-color: rgba(22, 70, 163, 0.22);
  color: #0a2a6a;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 33, 63, 0.08);
}

.btn::before {
  background: linear-gradient(135deg, #0a2a6a, #1d5ed8);
}

.btn--primary {
  color: #ffffff;
}

.btn--primary:hover {
  box-shadow: 0 18px 38px rgba(29, 94, 216, 0.25);
}

.btn--ghost:hover {
  color: #1d5ed8;
  border-color: rgba(29, 94, 216, 0.4);
}

.hero {
  min-height: 80svh;
  align-items: flex-start;
  padding: clamp(5.8rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.92) 48%, rgba(230, 241, 255, 0.8) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 70, 163, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 70, 163, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.5;
  pointer-events: none;
}

.hero__grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(2rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
  margin-top: clamp(1rem, 5vh, 3.5rem);
}

.hero__credential {
  color: #0a2a6a;
  background: #ffffff;
  border-color: rgba(22, 70, 163, 0.16);
  box-shadow: 0 12px 32px rgba(16, 33, 63, 0.08);
}

.pulse-dot {
  background: #0f766e;
  box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.28);
}

.hero__title {
  margin: 1.2rem 0 1rem;
}

.hero__name {
  color: #08245b;
  background: none;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 0.98;
  animation: none;
}

.hero__role-wrap {
  color: #1d5ed8;
  min-height: 1.35em;
}

.caret {
  color: #0f766e;
}

.hero__tagline {
  max-width: 630px;
  color: #526079;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
}

.hero__stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(14, 37, 77, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 48px rgba(16, 33, 63, 0.08);
  padding: 0;
  overflow: hidden;
}

.hero__stats .stat {
  opacity: 1 !important;
  transform: none !important;
}

.stat {
  padding: 1.2rem 1rem;
  border-right: 1px solid rgba(14, 37, 77, 0.09);
}

.stat:last-child {
  border-right: 0;
}

.stat__value {
  color: #08245b;
}

.stat__value span {
  background: none;
  color: #1d5ed8;
}

.stat__label {
  color: #66738a;
}

.hero__visual {
  align-content: center;
  gap: 1rem;
}

.hero-photo {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(14, 37, 77, 0.1);
  background: #dbeafe;
  box-shadow: 0 28px 70px rgba(10, 42, 106, 0.18);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.hero-photo figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: min(360px, calc(100% - 2rem));
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #10213f;
  box-shadow: 0 16px 36px rgba(16, 33, 63, 0.14);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.hero-photo figcaption span {
  display: block;
  color: #1d5ed8;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.hero-proof span {
  min-height: 46px;
  display: grid;
  place-items: center;
  padding: 0.7rem;
  border: 1px solid rgba(14, 37, 77, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #0a2a6a;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.hero__scroll {
  display: none;
}

.orbit,
.orbit__core,
.orbit__ring,
.orbit__chip,
.orbit__halo,
.glitch::before,
.glitch::after {
  display: none !important;
}

.image-flow {
  padding: clamp(2rem, 5vw, 3.25rem) 0;
  background: #ffffff;
  border-top: 1px solid rgba(14, 37, 77, 0.08);
  border-bottom: 1px solid rgba(14, 37, 77, 0.08);
}

.image-flow__intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1rem;
}

.image-flow__intro p {
  max-width: 660px;
  color: #526079;
  margin: 0;
}

.image-flow__mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.image-flow__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  will-change: transform;
  animation: imageFlow 46s linear infinite;
}

.image-flow:hover .image-flow__track {
  animation-play-state: paused;
}

.image-flow__item {
  flex: 0 0 clamp(240px, 26vw, 360px);
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(14, 37, 77, 0.1);
  background: #eef5ff;
  box-shadow: 0 18px 42px rgba(16, 33, 63, 0.1);
}

.image-flow__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.image-flow__item figcaption {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #0a2a6a;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 24px rgba(16, 33, 63, 0.12);
}

@keyframes imageFlow {
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.ticker {
  display: none;
}

.tilt,
.project,
.skill,
.timeline__card,
.cert,
.blog-card,
.contact__item,
.contact__form,
.highlight,
.support__item,
.about__frame {
  background: #ffffff;
  border-color: rgba(14, 37, 77, 0.1);
  border-radius: 8px;
  backdrop-filter: none;
  box-shadow: 0 18px 42px rgba(16, 33, 63, 0.08);
}

.tilt::after,
.project__glow,
.skill__glow {
  display: none;
}

.tilt:hover {
  border-color: rgba(29, 94, 216, 0.26);
  box-shadow: 0 24px 56px rgba(16, 33, 63, 0.12);
}

.about {
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.about__frame img {
  object-position: center top;
}

.about__text p,
.skill__desc,
.timeline__desc,
.cert__date,
.blog-card__preview,
.newsletter__desc,
.support__intro,
.support__item p,
.contact__item span {
  color: #526079;
}

.highlight__label,
.project__category,
.timeline__badge,
.cert__issuer,
.contact__icon {
  color: #1d5ed8;
}

.highlight__value,
.skill__name,
.timeline__title,
.cert__title,
.blog-card__title,
.contact__item span strong,
.support__item h4 {
  color: #10213f;
}

.chips {
  margin-bottom: 1.4rem;
}

.chip {
  color: #526079;
  background: #ffffff;
  border-color: rgba(14, 37, 77, 0.12);
  border-radius: 8px;
}

.chip:hover {
  color: #0a2a6a;
  border-color: rgba(29, 94, 216, 0.28);
}

.chip.is-active {
  color: #ffffff;
  background: #1646a3;
  border-color: #1646a3;
}

.work {
  background: #f2f7ff;
}

.work__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.2rem;
}

.project {
  min-height: 100%;
  padding: 1.4rem;
  gap: 0.75rem;
}

.project.is-featured {
  border-color: rgba(184, 138, 29, 0.34);
  box-shadow: 0 24px 58px rgba(10, 42, 106, 0.12);
}

.project__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.6rem;
}

.project__icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 8px;
  background: #eef5ff;
  border-color: rgba(29, 94, 216, 0.15);
  color: #1d5ed8;
}

.project__labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.project__status,
.project__year {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
}

.project__status {
  color: #0a2a6a;
  background: #e6f0ff;
}

.project__year {
  color: #7a5200;
  background: #fff4d8;
}

.project__title {
  color: #10213f;
  font-size: 1.28rem;
  line-height: 1.15;
}

.project__category {
  color: #1d5ed8;
  font-weight: 800;
}

.project__desc {
  color: #526079;
}

.project__impact {
  margin-top: 0.3rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(14, 37, 77, 0.1);
}

.project__impact span {
  display: block;
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project__impact p {
  margin: 0.2rem 0 0;
  color: #334155;
  font-size: 0.9rem;
}

.project__tags {
  gap: 0.45rem;
}

.pill {
  color: #526079;
  background: #f7faff;
  border-color: rgba(14, 37, 77, 0.1);
  border-radius: 8px;
}

.project__link {
  color: #1646a3;
}

.work {
  overflow: hidden;
}

.work .section__head {
  max-width: 760px;
}

.work__grid {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(1.1rem, 2vw, 1.8rem);
}

.project {
  min-height: 100%;
  padding: 0;
  gap: 0;
  border: 0;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 33, 63, 0.12);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 86px rgba(16, 33, 63, 0.16);
}

.project.is-featured {
  border: 0;
  box-shadow: 0 28px 76px rgba(16, 33, 63, 0.14);
}

.project__cover {
  position: relative;
  padding: clamp(0.9rem, 1.8vw, 1.2rem);
  background: #edf4ff;
}

.project__cover-art {
  position: relative;
  min-height: clamp(230px, 28vw, 330px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.18)),
    linear-gradient(135deg, var(--project-a), var(--project-b));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.project__cover-art::before,
.project__cover-art::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.project__cover-art::before {
  inset: 13% 9% auto auto;
  width: 46%;
  height: 58%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  transform: rotate(5deg);
  box-shadow: 0 18px 50px rgba(10, 42, 106, 0.13);
}

.project__cover-art::after {
  inset: auto auto 8% 7%;
  width: 54%;
  height: 18%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
  transform: rotate(-4deg);
}

.project__shape,
.project__mini,
.project__brand {
  position: absolute;
  z-index: 1;
}

.project__shape {
  display: block;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 18px 38px rgba(16, 33, 63, 0.13);
}

.project__shape--one {
  width: 42%;
  height: 18%;
  top: 13%;
  left: 10%;
  transform: rotate(-6deg);
}

.project__shape--two {
  width: 28%;
  height: 42%;
  right: 10%;
  bottom: 13%;
  transform: rotate(7deg);
}

.project__shape--three {
  width: 32%;
  height: 14%;
  left: 28%;
  bottom: 18%;
  transform: rotate(3deg);
}

.project__mini {
  max-width: min(42%, 170px);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #10213f;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 14px 34px rgba(16, 33, 63, 0.12);
  backdrop-filter: blur(10px);
}

.project__mini--one {
  top: 14%;
  right: 12%;
  transform: rotate(4deg);
}

.project__mini--two {
  left: 10%;
  bottom: 22%;
  transform: rotate(-3deg);
}

.project__mini--three {
  right: 12%;
  bottom: 12%;
  transform: rotate(3deg);
}

.project__brand {
  left: 50%;
  top: 50%;
  width: min(84%, 360px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 12px 32px rgba(8, 26, 58, 0.32);
  transform: translate(-50%, -50%);
}

.project__brand .project__icon {
  flex: 0 0 auto;
  width: clamp(3.1rem, 5vw, 4.2rem);
  height: clamp(3.1rem, 5vw, 4.2rem);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  backdrop-filter: blur(10px);
}

.project__brand .project__icon-img {
  width: 72%;
  height: 72%;
  border-radius: 8px;
  object-fit: contain;
}

.project__labels {
  position: absolute;
  top: clamp(1.5rem, 2.4vw, 1.9rem);
  right: clamp(1.5rem, 2.4vw, 1.9rem);
  z-index: 3;
  max-width: calc(100% - 3rem);
}

.project__status,
.project__year {
  min-height: 2rem;
  padding: 0.38rem 0.7rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(16, 33, 63, 0.12);
  backdrop-filter: blur(10px);
}

.project__status {
  color: #08245b;
}

.project__year {
  color: #6b4a00;
}

.project__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  padding: clamp(1.35rem, 2vw, 1.8rem);
}

.project__title {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.04;
}

.project__category {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #526079;
  font-weight: 700;
}

.project__desc {
  color: #526079;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.project__impact {
  display: none;
}

.project__impact span {
  color: #0f766e;
  font-size: 0.72rem;
}

.project__impact p {
  color: #526079;
}

.project__tags {
  display: none;
}

.project__link {
  width: fit-content;
  margin-top: auto;
  color: #10213f;
  font-size: 1rem;
}

.project__link span {
  transition: transform 0.25s var(--ease);
}

.project__link:hover {
  gap: 0.45rem;
  color: #1646a3;
}

.project__link:hover span {
  transform: translateX(4px);
}

.project[data-visual='ucc-src-app'] {
  --project-a: #4f8cff;
  --project-b: #083d77;
}

.project[data-visual='az-learner'] {
  --project-a: #2f80ed;
  --project-b: #0f766e;
}

.project[data-visual='personal-swot-analysis-quiz'] {
  --project-a: #ffe37a;
  --project-b: #f97316;
}

.project[data-visual='indigen-world'] {
  --project-a: #2dd4bf;
  --project-b: #134e4a;
}

.project[data-visual='advanced-tourism-concepts-ebook'] {
  --project-a: #93c5fd;
  --project-b: #4338ca;
}

.project[data-visual='francis-pwavwe-productions'] {
  --project-a: #fb7185;
  --project-b: #7c2d12;
}

.project[data-visual='campus-sustainability-operations'] {
  --project-a: #86efac;
  --project-b: #0f766e;
}

.project[data-visual='luban-workshop-restaurant'] {
  --project-a: #facc15;
  --project-b: #b91c1c;
}

.project[data-visual='vitaforge-ai'] {
  --project-a: #41d6c3;
  --project-b: #0f1830;
}

.project[data-visual='department-election-portal'] {
  --project-a: #60a5fa;
  --project-b: #14532d;
}

.project[data-visual='torchlight-tours-social-strategy'] {
  --project-a: #38bdf8;
  --project-b: #14532d;
}

.project[data-visual='journey-to-the-east'] {
  --project-a: #a78bfa;
  --project-b: #1e3a8a;
}

.project[data-visual='tourism-research-and-analysis'] {
  --project-a: #67e8f9;
  --project-b: #155e75;
}

.portfolio-switcher {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto clamp(1.4rem, 3vw, 2rem);
  padding: 0.38rem;
  border: 1px solid rgba(16, 33, 63, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 18px 42px rgba(16, 33, 63, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.portfolio-switcher__button {
  min-width: clamp(8rem, 18vw, 12rem);
  padding: 0.85rem clamp(1rem, 3vw, 1.55rem);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f6876;
  font: 800 clamp(0.95rem, 1.8vw, 1.1rem) / 1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.portfolio-switcher__button:hover {
  color: #10213f;
}

.portfolio-switcher__button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1646a3, #0f766e);
  box-shadow: 0 14px 28px rgba(22, 70, 163, 0.22);
}

.portfolio-switcher__button:focus-visible,
.work__control:focus-visible,
.cert:focus-visible {
  outline: 3px solid rgba(29, 94, 216, 0.3);
  outline-offset: 3px;
}

.work__panel[hidden] {
  display: none;
}

.work__panel {
  position: relative;
}

.work__anchor {
  position: absolute;
  top: -7rem;
}

.work__tools {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.work__tools .chips {
  flex: 1;
  margin-bottom: 0;
}

.work__tools--certificates {
  align-items: center;
}

.work__helper {
  flex: 1;
  max-width: 720px;
  margin: 0;
  color: #526079;
  font-size: 0.98rem;
  line-height: 1.6;
}

.work__controls {
  display: flex;
  gap: 0.55rem;
}

.work__control {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(16, 33, 63, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #10213f;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 14px 30px rgba(16, 33, 63, 0.08);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.work__control:hover {
  color: #1646a3;
  border-color: rgba(22, 70, 163, 0.32);
  transform: translateY(-2px);
}

.work__grid,
.cert__grid--flow {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-inline: calc(clamp(1.2rem, 4vw, 2.5rem) * -1);
  padding: 0 clamp(1.2rem, 4vw, 2.5rem) 1.2rem;
  overflow-x: auto;
  overflow-y: visible;
  scroll-padding-inline: clamp(1.2rem, 4vw, 2.5rem);
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(16, 33, 63, 0.28) transparent;
  scrollbar-width: thin;
}

.work__grid::-webkit-scrollbar,
.cert__grid--flow::-webkit-scrollbar {
  height: 10px;
}

.work__grid::-webkit-scrollbar-track,
.cert__grid--flow::-webkit-scrollbar-track {
  background: transparent;
}

.work__grid::-webkit-scrollbar-thumb,
.cert__grid--flow::-webkit-scrollbar-thumb {
  border: 3px solid #f2f7ff;
  border-radius: 999px;
  background: rgba(16, 33, 63, 0.28);
}

.project {
  flex: 0 0 clamp(340px, 36vw, 500px);
  scroll-snap-align: start;
}

.cert__grid--flow .cert {
  flex: 0 0 clamp(320px, 32vw, 460px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(16, 33, 63, 0.12);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.cert__grid--flow .cert:hover,
.cert__grid--flow .cert:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 34px 86px rgba(16, 33, 63, 0.16);
}

.cert__grid--flow .cert__preview {
  min-height: clamp(210px, 24vw, 300px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(239, 246, 255, 0.72)),
    #dbeafe;
}

.cert__grid--flow .cert__info {
  flex: 1;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cert__grid--flow .cert__title {
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.18;
}

.cert__grid--flow .cert__issuer {
  font-weight: 800;
}

.cert__grid--flow .cert__date {
  margin-top: auto;
  padding-top: 0.7rem;
}

.project__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #dbeafe;
}

.project__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.project[data-visual='department-election-portal'] .project__cover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 237, 0.72)),
    linear-gradient(135deg, var(--project-a), var(--project-b));
}

.project[data-visual='department-election-portal'] .project__cover-img {
  object-fit: contain;
  padding: clamp(2rem, 5vw, 4rem);
}

.project:hover .project__cover-img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.03);
}

.project__cover-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 26, 58, 0.12), rgba(8, 26, 58, 0) 45%),
    linear-gradient(0deg, rgba(8, 26, 58, 0.24), rgba(8, 26, 58, 0) 42%);
}

.project__cover-mark {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(8, 26, 58, 0.18);
  backdrop-filter: blur(12px);
}

.project__cover-mark .project__icon {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.7rem;
}

.project__cover-mark .project__icon-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.project__labels {
  top: 1rem;
  right: 1rem;
}

.project__status,
.project__year {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.76);
}

.project__body {
  min-height: 250px;
}

.project__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.1rem 0 0.35rem;
}

.project__badges img {
  display: block;
  max-width: 100%;
  height: 22px;
  border-radius: 4px;
}

@media (max-width: 760px) {
  .portfolio-switcher {
    width: 100%;
    justify-content: center;
  }

  .portfolio-switcher__button {
    min-width: 0;
    flex: 1;
  }

  .work__tools {
    align-items: stretch;
    flex-direction: column;
  }

  .work__controls {
    justify-content: flex-end;
  }

  .work__grid,
  .cert__grid--flow {
    margin-inline: calc(clamp(1.2rem, 4vw, 2.5rem) * -1);
    padding-bottom: 1rem;
  }

  .project {
    flex-basis: min(84vw, 360px);
  }

  .cert__grid--flow .cert {
    flex-basis: min(84vw, 360px);
  }

  .project__body {
    min-height: 230px;
  }

  .cert__grid--flow .cert__info {
    min-height: 140px;
  }
}

.skills,
.credentials,
.contact {
  background: #ffffff;
}

.skills__grid,
.cert__grid {
  gap: 1.1rem;
}

.skill,
.timeline__card,
.cert__info,
.blog-card__body,
.contact__form {
  color: #10213f;
}

.journey,
.insights,
.support {
  background: #f7faff;
}

.timeline__line {
  background: rgba(14, 37, 77, 0.12);
}

.timeline__progress {
  background: linear-gradient(180deg, #1d5ed8, #0f766e);
  box-shadow: none;
}

.timeline__marker {
  background: #ffffff;
  border-color: #1d5ed8;
  box-shadow: 0 0 0 4px rgba(29, 94, 216, 0.12);
}

.blog-act,
.rail-btn,
.contact__icon {
  background: #eef5ff;
  border-color: rgba(14, 37, 77, 0.1);
}

.rail-btn {
  color: #0a2a6a;
}

.newsletter {
  background: linear-gradient(135deg, #08245b 0%, #1646a3 100%);
  color: #ffffff;
}

.newsletter .section__eyebrow {
  color: #9ec7ff;
}

.newsletter__title {
  background: none;
  color: #ffffff;
}

.newsletter__desc,
.newsletter__note {
  color: rgba(255, 255, 255, 0.82);
}

.newsletter__note a:hover {
  color: #ffffff;
}

.newsletter__form input {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  min-height: 48px;
  color: #ffffff;
}

.newsletter .btn--primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #08245b;
  box-shadow: 0 12px 30px rgba(4, 18, 45, 0.28);
}

.newsletter .btn--primary::before {
  opacity: 0;
}

.newsletter .btn--primary:hover {
  box-shadow: 0 18px 38px rgba(4, 18, 45, 0.34);
}

.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter__form input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.support__card {
  background: #ffffff;
  border-color: rgba(14, 37, 77, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 62px rgba(16, 33, 63, 0.1);
}

.support__title {
  color: #10213f;
}

.footer {
  background: #081a3a;
  border-top: 0;
}

.footer__links a:hover {
  color: #8fc2ff;
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 0;
  }

  .hero-photo {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    background: rgba(255, 255, 255, 0.98);
  }

  .hero {
    padding-top: 6.5rem;
  }

  .hero__name {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero__role-wrap {
    font-size: clamp(1.2rem, 7vw, 1.65rem);
  }

  .hero__stats,
  .hero-proof,
  .image-flow__intro {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    display: grid;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 37, 77, 0.09);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .hero-photo figcaption {
    position: static;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
  }

  .image-flow__intro {
    display: grid;
    align-items: start;
  }

  .image-flow__item {
    flex-basis: min(78vw, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-flow__track {
    animation: none !important;
  }
}

/* ---------- Work wheel flow ---------- */
.work {
  position: relative;
  overflow: hidden;
  background: #f3efe9;
}

.work .container {
  max-width: none;
  padding-inline: 0;
}

.work .section__head {
  width: min(var(--container), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.work__panel {
  --wheel-accent: #5b95ff;
  --wheel-card-size: clamp(17rem, 27vw, 22.5rem);
  isolation: isolate;
  padding-top: 0.4rem;
}

.work__panel[data-work-panel='certificates'] {
  --wheel-accent: #43e987;
  --wheel-card-size: clamp(16.5rem, 26vw, 21.5rem);
}

.work__panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: clamp(1.1rem, 4vw, 2.8rem);
  left: max(-18rem, -18vw);
  width: clamp(25rem, 46vw, 42rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wheel-accent);
  opacity: 0.98;
  pointer-events: none;
}

.work__panel[data-work-panel='certificates']::before {
  top: max(-11rem, -14vw);
  left: auto;
  right: max(-14rem, -8vw);
  width: clamp(24rem, 52vw, 45rem);
}

.work__grid,
.cert__grid--flow {
  --rail-pad: max(1.2rem, calc((100vw - var(--wheel-card-size)) / 2));
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: clamp(1.1rem, 2.7vw, 2rem);
  min-height: clamp(30rem, 47vw, 38rem);
  margin-inline: 0;
  padding: clamp(0.7rem, 1.8vw, 1.5rem) var(--rail-pad) clamp(2rem, 4vw, 3rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: var(--rail-pad);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  perspective: 1200px;
}

.cert__grid--flow {
  min-height: clamp(26rem, 42vw, 33rem);
}

.work__grid::-webkit-scrollbar,
.cert__grid--flow::-webkit-scrollbar {
  display: none;
}

.work__below {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.4rem);
  width: min(var(--container), 100%);
  margin: clamp(-1.7rem, -2vw, -0.9rem) auto 0;
  padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}

.work__below .chips {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 1.6vw, 1rem);
  margin: 0;
}

.work__below .chip {
  min-width: clamp(6.4rem, 11vw, 10rem);
  border: 0;
  border-radius: 999px;
  background: #dfd5c7;
  color: #333333;
  padding: 0.76rem clamp(1rem, 2.2vw, 1.7rem);
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 1.5vw, 1.12rem);
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.work__below .chip:hover,
.work__below .chip.is-active {
  background: #cfc2b1;
  color: #10213f;
  transform: translateY(-1px);
}

.work__controls {
  justify-content: center;
  gap: 0.85rem;
}

.work__control {
  width: clamp(2.9rem, 5vw, 3.45rem);
  height: clamp(2.9rem, 5vw, 3.45rem);
  border: 2px solid #e3d9cb;
  border-radius: 50%;
  background: rgba(247, 244, 239, 0.72);
  color: #2c2c2c;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  box-shadow: none;
}

.work__control:hover {
  color: #10213f;
  border-color: #d0c3b4;
  background: #ffffff;
}

.project,
.cert__grid--flow .cert {
  flex: 0 0 var(--wheel-card-size);
  scroll-snap-align: center;
  transform-origin: center bottom;
  will-change: transform, opacity;
  transition:
    transform 0.45s var(--ease),
    opacity 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.project[data-flow-position='center'],
.cert__grid--flow .cert[data-flow-position='center'] {
  z-index: 4;
  opacity: 1;
  transform: translateY(0) rotate(0deg) scale(1);
}

.project[data-flow-position='left'],
.cert__grid--flow .cert[data-flow-position='left'] {
  z-index: 3;
  opacity: 0.96;
  transform: translateY(clamp(1rem, 2.5vw, 1.6rem)) rotate(-7deg) scale(0.94);
}

.project[data-flow-position='right'],
.cert__grid--flow .cert[data-flow-position='right'] {
  z-index: 3;
  opacity: 0.96;
  transform: translateY(clamp(1rem, 2.5vw, 1.6rem)) rotate(7deg) scale(0.94);
}

.project[data-flow-position='far'],
.cert__grid--flow .cert[data-flow-position='far'] {
  z-index: 1;
  opacity: 0.48;
  transform: translateY(clamp(1.8rem, 4vw, 3rem)) scale(0.87);
}

.project.is-hidden,
.cert__grid--flow .cert.is-hidden {
  display: none;
}

.work .project {
  min-height: 0;
  padding: clamp(0.85rem, 1.5vw, 1rem);
  gap: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(30, 35, 45, 0.12);
}

.work .project:hover,
.cert__grid--flow .cert:hover,
.cert__grid--flow .cert:focus-visible {
  box-shadow: 0 30px 76px rgba(30, 35, 45, 0.16);
}

.work .project__cover {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
}

.work .project__cover-mark {
  left: 0.8rem;
  bottom: 0.8rem;
  width: 2.65rem;
  height: 2.65rem;
}

.work .project__labels,
.work .project__category,
.work .project__badges,
.work .project__impact,
.work .project__tags,
.work .project__meta {
  display: none;
}

.work .project__body {
  min-height: clamp(12.4rem, 20vw, 15.3rem);
  display: flex;
  flex-direction: column;
  padding: clamp(0.95rem, 1.8vw, 1.25rem) 0.25rem 0.2rem;
}

.work .project__title,
.cert__grid--flow .cert__title {
  color: #252525;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
}

.work .project__desc {
  display: -webkit-box;
  margin-top: 0.65rem;
  color: #444444;
  font-size: clamp(0.93rem, 1.35vw, 1.04rem);
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.work .project__link {
  margin-top: auto;
  color: #424242;
  font-size: 0.95rem;
  font-weight: 600;
}

.cert__grid--flow .cert {
  min-height: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(30, 35, 45, 0.12);
}

.cert__grid--flow .cert__preview {
  aspect-ratio: 16 / 10;
  min-height: 0;
  margin: clamp(0.85rem, 1.5vw, 1rem);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(243, 239, 233, 0.72)),
    #f0efe8;
}

.cert__grid--flow .cert--portrait .cert__preview {
  aspect-ratio: 16 / 10;
}

.cert__grid--flow .cert--portrait .cert__img {
  object-fit: contain;
  padding: 0.35rem;
}

.cert__grid--flow .cert__info {
  min-height: clamp(8.8rem, 14vw, 11rem);
  padding: 0 1.1rem 1.1rem;
}

.cert__grid--flow .cert__issuer {
  color: #505050;
  font-size: clamp(0.86rem, 1.2vw, 0.96rem);
  font-weight: 600;
  line-height: 1.35;
}

.cert__grid--flow .cert__date {
  color: #666666;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.cert__grid--flow .cert__pdf {
  border-radius: 999px;
  background: #fff7dc;
  color: #2c2c2c;
  font-family: var(--font-body);
  font-weight: 800;
}

@media (max-width: 760px) {
  .work .section__head {
    margin-bottom: 1.25rem;
  }

  .work__panel {
    --wheel-card-size: min(78vw, 19rem);
  }

  .work__panel::before {
    top: 4.4rem;
    left: -15rem;
    width: 26rem;
  }

  .work__panel[data-work-panel='certificates']::before {
    top: -6rem;
    right: -13rem;
    width: 25rem;
  }

  .work__grid,
  .cert__grid--flow {
    gap: 1rem;
    min-height: 27rem;
    padding-bottom: 2.1rem;
  }

  .cert__grid--flow {
    min-height: 24rem;
  }

  .work__below {
    margin-top: -1rem;
  }

  .work__below .chips {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .work__below .chips::-webkit-scrollbar {
    display: none;
  }

  .work__below .chip {
    flex: 0 0 auto;
    min-width: 6.2rem;
  }

  .work .project__body {
    min-height: 12.6rem;
  }

  .work .project__title,
  .cert__grid--flow .cert__title {
    font-size: clamp(1.25rem, 7vw, 1.55rem);
  }

  .project[data-flow-position='left'],
  .cert__grid--flow .cert[data-flow-position='left'] {
    transform: translateY(0.85rem) rotate(-4.5deg) scale(0.96);
  }

  .project[data-flow-position='right'],
  .cert__grid--flow .cert[data-flow-position='right'] {
    transform: translateY(0.85rem) rotate(4.5deg) scale(0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project[data-flow-position],
  .cert__grid--flow .cert[data-flow-position] {
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Continuous portfolio wheel ---------- */
.work__panel {
  --flow-step: clamp(18rem, 30vw, 28rem);
  --flow-far-step: clamp(32rem, 55vw, 51rem);
}

.work__grid,
.cert__grid--flow {
  position: relative;
  display: block;
  min-height: clamp(31rem, 44vw, 35rem);
  padding: 0;
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.cert__grid--flow {
  min-height: clamp(27rem, 39vw, 31rem);
}

.work__grid:active,
.cert__grid--flow:active {
  cursor: grabbing;
}

.work__grid:focus-visible,
.cert__grid--flow:focus-visible {
  outline: 2px solid var(--wheel-accent);
  outline-offset: -6px;
}

.work .project,
.cert__grid--flow .cert {
  position: absolute;
  top: clamp(0.7rem, 1.8vw, 1.5rem);
  left: 50%;
  width: var(--wheel-card-size);
  max-width: none;
  margin: 0;
  transform-origin: center bottom;
  transition:
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    box-shadow 0.35s ease;
}

.work .project {
  height: clamp(28rem, 40vw, 31rem);
}

.cert__grid--flow .cert {
  height: clamp(24rem, 35vw, 27.5rem);
}

.project[data-flow-position='center'],
.cert__grid--flow .cert[data-flow-position='center'] {
  z-index: 6;
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(0deg) scale(1);
}

.project[data-flow-position='left'],
.cert__grid--flow .cert[data-flow-position='left'] {
  z-index: 5;
  opacity: 0.96;
  transform: translateX(calc(-50% - var(--flow-step))) translateY(2rem) rotate(-7deg)
    scale(0.94);
}

.project[data-flow-position='right'],
.cert__grid--flow .cert[data-flow-position='right'] {
  z-index: 5;
  opacity: 0.96;
  transform: translateX(calc(-50% + var(--flow-step))) translateY(2rem) rotate(7deg)
    scale(0.94);
}

.project[data-flow-position='far-left'],
.cert__grid--flow .cert[data-flow-position='far-left'] {
  z-index: 3;
  opacity: 0.5;
  transform: translateX(calc(-50% - var(--flow-far-step))) translateY(5rem) rotate(-12deg)
    scale(0.84);
}

.project[data-flow-position='far-right'],
.cert__grid--flow .cert[data-flow-position='far-right'] {
  z-index: 3;
  opacity: 0.5;
  transform: translateX(calc(-50% + var(--flow-far-step))) translateY(5rem) rotate(12deg)
    scale(0.84);
}

.project[data-flow-position='hidden'],
.cert__grid--flow .cert[data-flow-position='hidden'] {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8rem) scale(0.68);
}

.work .project__body {
  min-height: 0;
  flex: 1;
}

.cert__grid--flow .cert__info {
  min-height: 0;
}

/* ---------- Compact journey chapter viewer ---------- */
.journey {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(63, 126, 247, 0.06), transparent 42%),
    var(--bg);
}

.journey .section__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.4rem);
}

.journey .timeline {
  width: min(70rem, 100%);
  margin-inline: auto;
  padding: 0;
}

.journey__filters {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.journey__filters::-webkit-scrollbar,
.journey__index::-webkit-scrollbar {
  display: none;
}

.journey__filter {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.62rem 1rem;
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
}

.journey__filter:hover,
.journey__filter.is-active {
  border-color: var(--cyan);
  background: rgba(64, 146, 255, 0.1);
  color: var(--text);
}

.journey__viewer {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.45fr);
  grid-template-rows: minmax(22rem, auto) auto;
  gap: 1rem clamp(1rem, 3vw, 2.2rem);
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 24px 70px rgba(21, 43, 78, 0.08);
}

.journey__index {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  min-height: 0;
  max-height: 22rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.journey__chapter {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  padding: 0.62rem 0.75rem;
  background: transparent;
  color: var(--text-dim);
  text-align: left;
}

.journey__chapter span {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.journey__chapter strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey__chapter:hover,
.journey__chapter.is-active {
  border-left-color: var(--cyan);
  background: rgba(64, 146, 255, 0.08);
  color: var(--text);
}

.journey__card {
  position: relative;
  min-height: 22rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.journey__card::after {
  content: '';
  position: absolute;
  right: -4.5rem;
  bottom: -6rem;
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.09;
  pointer-events: none;
}

.journey__card[data-kind='leadership']::after {
  background: var(--violet-2);
}

.journey__card[data-kind='education']::after {
  background: var(--gold);
}

.journey__card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.journey__number {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.journey__card .timeline__date {
  margin: clamp(2rem, 5vw, 3.2rem) 0 0.45rem;
}

.journey__card .timeline__title {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.journey__card .timeline__company {
  margin-top: 0.55rem;
  color: var(--cyan);
  font-weight: 700;
}

.journey__card .timeline__desc {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: clamp(0.92rem, 1.3vw, 1.02rem);
  line-height: 1.65;
}

.journey__controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.journey__control {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.7rem;
}

.journey__control:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.journey__count {
  min-width: 3.2rem;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 760px) {
  .work__panel {
    --flow-step: 69vw;
    --flow-far-step: 128vw;
  }

  .work__grid,
  .cert__grid--flow {
    min-height: 29rem;
  }

  .cert__grid--flow {
    min-height: 25rem;
  }

  .work .project {
    height: 27rem;
  }

  .cert__grid--flow .cert {
    height: 23rem;
  }

  .project[data-flow-position='left'],
  .cert__grid--flow .cert[data-flow-position='left'] {
    transform: translateX(calc(-50% - var(--flow-step))) translateY(1.4rem) rotate(-5deg)
      scale(0.94);
  }

  .project[data-flow-position='right'],
  .cert__grid--flow .cert[data-flow-position='right'] {
    transform: translateX(calc(-50% + var(--flow-step))) translateY(1.4rem) rotate(5deg)
      scale(0.94);
  }

  .journey__viewer {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(20rem, auto) auto;
    padding: 0.8rem;
  }

  .journey__index {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .journey__chapter {
    flex: 0 0 10rem;
    border-left: 0;
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
  }

  .journey__chapter:hover,
  .journey__chapter.is-active {
    border-bottom-color: var(--cyan);
  }

  .journey__card {
    min-height: 20rem;
    padding: 1.35rem;
  }

  .journey__card .timeline__date {
    margin-top: 1.8rem;
  }

  .journey__controls {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project[data-flow-position],
  .cert__grid--flow .cert[data-flow-position] {
    transition: opacity 0.01ms linear;
  }
}

/* ==========================================================================
   Blogs — "See all" rail card + standalone /blogs archive page
   Uses the final (light "executive blue") design tokens defined above.
   ========================================================================== */

/* ----- Landing rail: the CTA card that caps the insights rail ----- */
.blog-card--all {
  flex: 0 0 300px;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--border-str);
}
.blog-card--all__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 2.2rem 1.6rem;
}
.blog-card--all__glyph {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.blog-card--all:hover .blog-card--all__glyph {
  transform: translateX(5px);
  box-shadow: var(--glow-cyan);
}
.blog-card--all__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.blog-card--all__text {
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 24ch;
}
.blog-card--all__cta {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ----- /blogs page shell ----- */
.blogpage__main {
  padding-top: 68px; /* clear the fixed navbar */
}
.blogpage__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.blogpage__back:hover {
  color: var(--cyan);
  border-color: var(--border-str);
  transform: translateX(-2px);
}

/* Header */
.blogpage__hero {
  padding: clamp(2.6rem, 7vw, 4.6rem) 0 1.4rem;
}
.blogpage__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.02;
  margin: 0.5rem 0 0;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blogpage__lead {
  max-width: 640px;
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}
.blogpage__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.blogpage__count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-mute);
}
.blogpage__search {
  position: relative;
  display: flex;
  align-items: center;
}
.blogpage__search-icon {
  position: absolute;
  left: 0.95rem;
  color: var(--text-mute);
  font-size: 1.05rem;
  pointer-events: none;
}
.blogpage__search-input {
  width: min(340px, 80vw);
  padding: 0.62rem 1rem 0.62rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  box-shadow: 0 12px 30px rgba(16, 33, 63, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.blogpage__search-input::placeholder {
  color: var(--text-mute);
}
.blogpage__search-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(29, 94, 216, 0.14);
}

/* Feed */
.blogpage__feed {
  padding: 1.2rem 0 clamp(4rem, 8vw, 6rem);
}
.blogpage__featured:empty {
  display: none;
}
.blogpage__featured {
  margin-bottom: 1.6rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
  align-items: start;
}
.blog-grid .blog-empty {
  grid-column: 1 / -1;
}
.blogpage__noresults {
  text-align: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 3rem 0;
}

/* Card polish on the page (grid + featured) */
.blogpage .blog-card__media span {
  color: var(--text-mute);
}
.blogpage .blog-card__preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-grid .blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-grid .blog-card .blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-grid .blog-card .blog-card__actions {
  margin-top: auto;
}
.blog-grid .blog-card:hover {
  transform: translateY(-4px);
}
.blog-card__dot {
  margin: 0 0.5rem;
  color: var(--text-mute);
}

/* Featured (newest) post */
.blog-card--featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.blog-card--featured .blog-card__media {
  aspect-ratio: auto;
  min-height: 280px;
  height: 100%;
}
.blog-card--featured .blog-card__body {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  align-self: center;
}
.blog-card--featured .blog-card__body::before {
  content: 'Latest';
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.9rem;
}
.blog-card--featured .blog-card__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
}
.blog-card--featured .blog-card__preview {
  -webkit-line-clamp: 4;
}

/* Entrance animation — fail-safe. Elements are only hidden *while* the fade-up
   plays (body.is-revealing, added by JS). With animation-fill-mode: both the
   final frame is fully visible, and if the script never runs the elements keep
   their natural opacity — content is never gated behind the effect. */
.blogpage.is-revealing [data-reveal] {
  animation: blogReveal 0.7s var(--ease) both;
}
@keyframes blogReveal {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .blog-card--featured {
    grid-template-columns: 1fr;
  }
  .blog-card--featured .blog-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .blogpage__toolbar {
    justify-content: flex-start;
  }
  .blogpage__search-input {
    width: min(340px, 92vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blogpage.is-revealing [data-reveal] {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   REPOSITION LAYER (2026 rework) — proof bar, case-study cards, real hero
   portrait and a minimal footer. Appended last so it wins the light-theme
   cascade above.
   ========================================================================== */

/* --- Proof bar directly under the hero --- */
.proof-bar {
  background: #0a2a6a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(14, 37, 77, 0.1);
}

.proof-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.6rem;
  padding: 0.95rem 1.5rem;
}

.proof-bar__item {
  position: relative;
  color: #dbe6ff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding-left: 1.6rem;
}

.proof-bar__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #5eead4;
}

.proof-bar__item strong {
  color: #ffffff;
  font-weight: 800;
}

@media (max-width: 640px) {
  .proof-bar__inner {
    justify-content: flex-start;
    gap: 0.55rem 1rem;
  }
  .proof-bar__item {
    font-size: 0.82rem;
  }
}

/* --- Case-study card additions: role + tech stack --- */
.project__role {
  margin: 0.15rem 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.4;
}

.project__role span {
  display: block;
  color: #1d5ed8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.project__stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0 0;
  padding: 0;
}

.project__stack li {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid rgba(29, 94, 216, 0.18);
  color: #0a2a6a;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

/* --- Real hero portrait (replaces the AI-looking composite) --- */
.hero-photo--portrait {
  max-width: 460px;
  margin-inline: auto;
}

.hero-photo--portrait img {
  aspect-ratio: 4 / 5;
  object-position: center 18%;
}

@media (max-width: 900px) {
  .hero-photo--portrait {
    max-width: 380px;
  }
}

/* --- Minimal footer secondary line --- */
.footer__links--muted {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  opacity: 0.72;
}

/* --- "Build With Me" CTA nav item (hands visitors to Pwavwe Studio) --- */
.nav-link--cta {
  color: #ffffff !important;
  background: #0a2a6a;
  border-radius: 999px;
  padding: 0.4rem 0.95rem !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 42, 106, 0.22);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-link--cta:hover {
  color: #ffffff !important;
  background: #1d5ed8;
  transform: translateY(-1px);
}

.nav-link--cta::after { display: none; } /* no underline sweep on the pill */

/* --- Handshake band: pwavwe.com -> build.pwavwe.com --- */
.handshake {
  background:
    radial-gradient(1200px 300px at 12% 0%, rgba(94, 234, 212, 0.14), transparent 60%),
    linear-gradient(120deg, #0a2a6a 0%, #0f3a86 60%, #0f766e 140%);
  color: #eaf1ff;
}

.handshake__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
  padding: clamp(2.2rem, 5vw, 3.2rem) 1.5rem;
}

.handshake__text { max-width: 640px; }

.handshake__eyebrow {
  display: inline-block;
  color: #5eead4;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.handshake__title {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.6rem;
}

.handshake__desc {
  color: #c7d6f5;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  line-height: 1.55;
  margin: 0;
}

.handshake__desc strong { color: #ffffff; }

.handshake__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

/* White button so the primary CTA reads on the dark band */
.handshake .btn--primary {
  background: #ffffff;
  color: #0a2a6a;
  border: 0;
}

.handshake .btn--primary span { color: #0a2a6a; }

.handshake .btn--primary:hover { background: #eaf1ff; }

.handshake__link {
  color: #bfe9df;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(191, 233, 223, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.handshake__link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

@media (max-width: 760px) {
  .handshake__actions { align-items: stretch; width: 100%; }
  .handshake__actions .btn { justify-content: center; }
}

/* --- No-JS fallback (only rendered when JavaScript is disabled) --- */
.noscript-fallback {
  padding: 2rem 1.5rem;
  color: #10213f;
}
.noscript-fallback h2 {
  color: #0a2a6a;
  margin: 1.2rem 0 0.4rem;
}
.noscript-fallback a { color: #1d5ed8; }
.noscript-fallback ul { padding-left: 1.1rem; line-height: 1.6; }

/* --- Contact audience split: build -> studio, hiring -> form --- */
.contact__routes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  max-width: 760px;
  margin: 0 auto clamp(1.4rem, 3vw, 2rem);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(14, 37, 77, 0.1);
  border-radius: 14px;
  background: #f2f7ff;
}

.contact__routes .btn { flex: 0 0 auto; }

.contact__routes-note {
  margin: 0;
  color: #526079;
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact__routes-note strong { color: #10213f; }

@media (max-width: 600px) {
  .contact__routes { flex-direction: column; align-items: stretch; text-align: left; }
  .contact__routes .btn { justify-content: center; }
}
