/* ==========================================================================
   AliSkool: engineering portfolio and learning platform
   Vanilla CSS. No framework, no build step.

   Contents
     1.  Design tokens
     2.  Reset & base
     3.  Layout primitives
     4.  Backdrop (aurora + blueprint grid)
     5.  Typography
     6.  Buttons & links
     7.  Chips, badges & status
     8.  Glass surfaces
     9.  Site header & navigation
     10. Hero
     11. Feature / value cards
     12. Course cards
     13. Project cards
     14. Learning pathways
     15. CV timeline
     16. Skills
     17. Certifications
     18. Contact
     19. Footer
     20. 404
     21. Motion, responsive & print
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */

:root {
  color-scheme: dark;

  --ink:        #05070f;
  --ink-deep:   #03040a;
  --ink-raise:  #0b1020;

  --surface:    rgba(255, 255, 255, 0.042);
  --surface-hi: rgba(255, 255, 255, 0.070);
  --line:       rgba(255, 255, 255, 0.090);
  --line-hi:    rgba(255, 255, 255, 0.180);

  --text:       #e8ecf8;
  --muted:      #9aa5c0;
  --faint:      #828da6;

  --blue:       #5d93ff;
  --violet:     #a06bff;
  --teal:       #2fdfc4;
  --amber:      #f4b740;
  --rose:       #ff6b81;

  --blue-soft:   rgba(93, 147, 255, 0.14);
  --violet-soft: rgba(160, 107, 255, 0.14);
  --teal-soft:   rgba(47, 223, 196, 0.13);
  --amber-soft:  rgba(244, 183, 64, 0.13);

  --grad:      linear-gradient(100deg, #5d93ff 0%, #a06bff 52%, #2fdfc4 100%);
  --grad-soft: linear-gradient(140deg, rgba(93,147,255,.15), rgba(160,107,255,.09) 48%, rgba(47,223,196,.09));
  --grad-line: linear-gradient(180deg, rgba(93,147,255,.7), rgba(160,107,255,.5) 50%, rgba(47,223,196,.15));

  --shadow-sm: 0 1px 2px rgba(2, 5, 16, .35);
  --shadow-md: 0 14px 34px -14px rgba(2, 5, 16, .70);
  --shadow-lg: 0 40px 80px -32px rgba(2, 5, 16, .90);
  --glow:      0 0 0 1px rgba(93,147,255,.24), 0 22px 56px -24px rgba(93,147,255,.42);

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --gutter:  clamp(1.15rem, 4.2vw, 2.5rem);
  --shell:   76rem;
  --header-h: 4rem;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
          "Fira Code", Menlo, Consolas, "Liberation Mono", monospace;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --blur:     20px;
}

/* 2. Reset & base ---------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }

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

::selection { background: rgba(93,147,255,.32); color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0.6rem;
  transform: translate(-50%, -160%);
  z-index: 200;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  background: var(--ink-raise);
  border: 1px solid var(--line-hi);
  font-weight: 600;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. Layout primitives ----------------------------------------------------- */

.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 84rem; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
/* Page headers lead straight into their content, so they need less air below. */
.section--head { padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.section + .section { padding-top: 0; }

.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head--wide { max-width: 58rem; }
.section__head--center { margin-inline: auto; text-align: center; }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* 4. Backdrop -------------------------------------------------------------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #0c1428 0%, transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.backdrop__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(90% 60% at 50% 8%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 60% at 50% 8%, #000 0%, transparent 78%);
}

.backdrop__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.backdrop__blob--a {
  width: 46rem; height: 34rem;
  top: -14rem; left: -10rem;
  background: radial-gradient(circle at 40% 40%, rgba(93,147,255,.55), transparent 68%);
  animation: drift-a 26s var(--ease) infinite alternate;
}
.backdrop__blob--b {
  width: 40rem; height: 32rem;
  top: -8rem; right: -12rem;
  background: radial-gradient(circle at 60% 40%, rgba(160,107,255,.45), transparent 68%);
  animation: drift-b 32s var(--ease) infinite alternate;
}
.backdrop__blob--c {
  width: 34rem; height: 26rem;
  top: 46%; left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(47,223,196,.20), transparent 70%);
  animation: drift-c 38s var(--ease) infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(5rem, 3rem, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-4rem, 4rem, 0) scale(1.08); } }
@keyframes drift-c { to { transform: translate3d(-6rem, -3rem, 0) scale(1.15); } }

/* 5. Typography ------------------------------------------------------------ */

.display {
  font-size: clamp(2.35rem, 6.4vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0;
}

.h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -.028em;
  font-weight: 700;
}

.h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -.018em;
  font-weight: 650;
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow__index { color: var(--blue); }

.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(47,223,196,.6);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(47,223,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,223,196,0); }
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--muted);
  line-height: 1.68;
  margin-top: 1rem;
  max-width: 44rem;
}
.prose { color: var(--muted); line-height: 1.72; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--text); font-weight: 600; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* 6. Buttons & links ------------------------------------------------------- */

.btn {
  --btn-bg: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--btn-bg);
  color: var(--text);
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), background .2s var(--ease),
              border-color .2s var(--ease), box-shadow .25s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-hi); background: var(--surface-hi); }
.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: transparent;
  background: var(--grad);
  color: #06111f;
  font-weight: 700;
  box-shadow: 0 14px 34px -16px rgba(93,147,255,.85);
}
.btn--primary:hover { box-shadow: 0 20px 46px -18px rgba(93,147,255,.95); }

.btn--ghost { background: rgba(255,255,255,.03); }

.btn--sm { padding: .52rem 1rem; font-size: .85rem; }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}

.btn svg { width: 1em; height: 1em; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap .2s var(--ease), color .2s;
}
.link-arrow:hover { gap: .7rem; color: #8fb4ff; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.9rem;
}

/* 7. Chips, badges & status ------------------------------------------------ */

.chips { display: flex; flex-wrap: wrap; gap: .38rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  font-family: var(--mono);
  font-size: .705rem;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}
.chip--accent { border-color: rgba(93,147,255,.32); background: var(--blue-soft); color: #a9c6ff; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .24rem .66rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--live,
.status--earned     { color: #6fe9d2; border-color: rgba(47,223,196,.34); background: var(--teal-soft); }
.status--progress   { color: #f7c96b; border-color: rgba(244,183,64,.32); background: var(--amber-soft); }
.status--planned    { color: var(--faint); border-color: var(--line); }
.status--planned::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

/* 8. Glass surfaces -------------------------------------------------------- */

.glass {
  position: relative;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022)),
    rgba(9, 13, 26, .55);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.06);
}

/* Pointer-tracked spotlight, set by assets/js/site.js */
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    18rem 18rem at var(--mx, 50%) var(--my, 0%),
    rgba(93,147,255,.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .28s var(--ease);
  pointer-events: none;
}
.spot:hover::before,
.spot:focus-within::before { opacity: 1; }

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    22rem 22rem at var(--mx, 50%) var(--my, 0%),
    rgba(93,147,255,.09), transparent 62%);
  opacity: 0;
  transition: opacity .28s var(--ease);
  pointer-events: none;
}
.spot:hover::after,
.spot:focus-within::after { opacity: 1; }

/* 9. Site header ----------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.header.is-stuck {
  background: rgba(5, 7, 15, .72);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--line);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
  flex: none;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #05070f;
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(93,147,255,.9);
}
.brand__name span { color: var(--muted); font-weight: 500; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .15rem;
}
.nav__link {
  padding: .48rem .78rem;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__link[aria-current="page"] {
  color: var(--text);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px var(--line);
}

.header__cta { margin-left: .6rem; }

.nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--line-hi);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars i {
  display: block;
  width: 15px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

/* 10. Hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem); }

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
}

.hero__lede { max-width: 36rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--faint);
}
.hero__facts b { color: var(--text); font-weight: 600; }

/* Platform panel: the live and planned course estate */
.panel { padding: 1.15rem; }
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 .35rem .9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.panel__list { padding-top: .4rem; }
.panel__row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .58rem .35rem;
  border-radius: var(--r-xs);
  font-family: var(--mono);
  font-size: .805rem;
  transition: background .2s var(--ease);
}
a.panel__row:hover { background: rgba(255,255,255,.05); }
.panel__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  background: rgba(255,255,255,.16);
}
.panel__row--live .panel__dot {
  background: var(--teal);
  box-shadow: 0 0 10px rgba(47,223,196,.8);
}
.panel__host { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.panel__row--live .panel__host { color: var(--text); }
.panel__state {
  margin-left: auto;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}
.panel__row--live .panel__state { color: var(--teal); }
.panel__foot {
  margin-top: .5rem;
  padding: .8rem .35rem 0;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--faint);
}

/* 11. Feature cards -------------------------------------------------------- */

.feature { padding: 1.5rem; height: 100%; }
.feature__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--blue);
}
.feature__icon svg { width: 18px; height: 18px; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .92rem; line-height: 1.65; }

.stat { padding: 1.25rem 1.35rem; }
.stat__value {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat__label {
  margin-top: .3rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 12. Course cards --------------------------------------------------------- */

/* The filter bar hides cards with the `hidden` property. Cards set their own
   `display`, which beats the browser's low-specificity [hidden] { display: none },
   so without this the attribute is set and nothing disappears. */
[hidden] { display: none !important; }

.course {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.course--featured { grid-column: 1 / -1; }

@media (min-width: 60rem) {
  .course--featured { flex-direction: row; }
  .course--featured .course__media { width: 47%; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
  .course--featured .course__media img { aspect-ratio: auto; height: 100%; object-position: left top; }
  .course--featured .course__body { padding: clamp(1.5rem, 3vw, 2.1rem); }
}

.course__media {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #0a1020, #070b16);
  overflow: hidden;
}
.course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 16 / 10;
  transition: transform .6s var(--ease-out), opacity .3s;
  opacity: .92;
}
.course:hover .course__media img { transform: scale(1.035); opacity: 1; }
.course__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5,7,15,.55));
  pointer-events: none;
}

/* Placeholder art for courses without a screenshot */
.course__art {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(93,147,255,.16), transparent 70%),
    linear-gradient(150deg, #0a1020, #060a14);
}
.course__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent 76%);
}
.course__art-glyph {
  position: relative;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  color: transparent;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .82;
}

.course__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  flex: 1;
}
.course__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.course__topic {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.course__title { letter-spacing: -.022em; }
.course__sub { color: var(--muted); font-size: .93rem; line-height: 1.62; }
.course__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-family: var(--mono);
  font-size: .73rem;
  color: var(--faint);
}
.course__facts span { display: inline-flex; align-items: center; gap: .35rem; }
.course__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: .35rem;
}
.course--planned .course__art-glyph { opacity: .4; }
.course--planned { border-style: dashed; }

.note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--faint);
  font-family: var(--mono);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: 1.75rem;
}
.filter {
  padding: .42rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.filter:hover { color: var(--text); background: rgba(255,255,255,.06); }
.filter[aria-pressed="true"] {
  color: #06111f;
  background: var(--grad);
  border-color: transparent;
  font-weight: 650;
}

/* 13. Project cards -------------------------------------------------------- */

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  scroll-margin-top: 7rem;
}
.project__media { border-bottom: 1px solid var(--line); overflow: hidden; }
.project__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  opacity: .9;
  transition: transform .6s var(--ease-out), opacity .3s;
}
.project:hover .project__media img { transform: scale(1.035); opacity: 1; }
.project__body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  flex: 1;
}
.project__focus {
  padding: .7rem .85rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  font-size: .84rem;
  color: var(--muted);
}
.project__focus b {
  display: block;
  font-family: var(--mono);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .3rem;
  font-weight: 600;
}
.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: auto;
  padding-top: .35rem;
}

/* 14. Learning pathways ---------------------------------------------------- */

.pathway { padding: 1.5rem 1.4rem; height: 100%; }
.pathway__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.pathway__icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--blue);
}
.pathway__icon svg { width: 16px; height: 16px; }
.pathway__title { font-weight: 650; letter-spacing: -.018em; font-size: 1.05rem; }
.pathway__note { font-size: .85rem; color: var(--muted); margin-bottom: 1.1rem; }

.rail { position: relative; padding-left: 1.5rem; }
.rail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: .55rem;
  bottom: .55rem;
  width: 1.5px;
  background: var(--grad-line);
  border-radius: 2px;
}
.rail__step {
  position: relative;
  padding: .42rem 0;
  font-size: .9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}
.rail__step::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink-raise);
  border: 1.5px solid var(--line-hi);
}
.rail__step--done { color: var(--text); font-weight: 550; }
.rail__step--done::before {
  background: var(--teal);
  border-color: rgba(47,223,196,.5);
  box-shadow: 0 0 10px rgba(47,223,196,.55);
}
.rail__tag {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .08rem .45rem;
}
.rail__step--done .rail__tag { color: var(--teal); border-color: rgba(47,223,196,.32); }

/* 15. Interactive CV ------------------------------------------------------- */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  gap: .3rem;
  overflow-x: auto;
  padding: .7rem 0;
  background: linear-gradient(180deg, rgba(5,7,15,.94), rgba(5,7,15,.68));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  padding: .38rem .85rem;
  border-radius: 999px;
  font-size: .86rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.subnav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.subnav a.is-active {
  color: var(--text);
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 0 0 1px var(--line);
}
.subnav__spacer { margin-left: auto; }

/* --- At a glance ---------------------------------------------------------- */

.glance {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}
@media (max-width: 62rem) { .glance { grid-template-columns: 1fr; } }

.glance__now {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .42rem .5rem .42rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: .86rem;
  color: var(--muted);
  margin-top: 1.5rem;
}
.glance__now b { color: var(--text); font-weight: 600; }
.glance__now .status { border: 0; background: transparent; padding: 0 .4rem 0 0; }

.snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.snap { padding: 1.15rem 1.2rem; }
.snap__value {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.snap__label {
  margin-top: .45rem;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}
.snap__foot {
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Career band (proportional timeline) ---------------------------------- */

.cband { padding: clamp(1.15rem, 3vw, 1.75rem); }

.cband__row {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .3rem 0;
  border-radius: var(--r-xs);
  transition: background .2s var(--ease);
}
a.cband__row:hover, a.cband__row:focus-visible { background: rgba(255,255,255,.04); }

.cband__row--axis {
  padding-bottom: .6rem;
  margin-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}

.cband__label { min-width: 0; }
.cband__org {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: -.012em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cband__meta {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--faint);
  margin-top: .1rem;
}

.cband__track {
  position: relative;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.cband__row--axis .cband__track {
  height: auto;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.cband__bar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: var(--x);
  width: var(--w);
  min-width: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(93,147,255,.55), rgba(160,107,255,.45));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transform-origin: left center;
  transition: transform .75s var(--ease-out), opacity .5s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
/* Bars draw in when the band scrolls into view. This is a transition rather than
   an animation on purpose: the resting state is the drawn one, so a bar can never
   be left invisible by a draw-in that did not run. */
.js .cband:not(.is-visible) .cband__bar { transform: scaleX(0); opacity: .35; }

.cband__row--current .cband__bar {
  background: var(--grad);
  box-shadow: 0 0 18px -4px rgba(93,147,255,.75), inset 0 0 0 1px rgba(255,255,255,.2);
}
a.cband__row:hover .cband__bar,
a.cband__row:focus-visible .cband__bar { filter: brightness(1.25); }

.cband__ticks { display: block; position: relative; height: 1.2rem; }
.cband__tick {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--faint);
}
.cband__grid {
  position: absolute;
  left: var(--x);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.055);
}
.cband__legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--faint);
}

@media (max-width: 46rem) {
  .cband__row { grid-template-columns: 1fr; gap: .35rem; padding: .5rem 0; }
  .cband__row--axis { display: none; }
}

/* --- Role cards ----------------------------------------------------------- */

.timeline { display: grid; gap: 1.1rem; }

.role { padding: clamp(1.15rem, 2.6vw, 1.6rem); scroll-margin-top: 8rem; }

.role__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .3rem 1rem;
}
.role__node {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  flex: none;
}
.role--current .role__node {
  background: var(--grad);
  color: #06111f;
  border-color: transparent;
  box-shadow: 0 0 22px -6px rgba(93,147,255,.8);
}
.role__title {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  font-weight: 650;
  letter-spacing: -.022em;
  line-height: 1.25;
}
.role__org {
  margin-top: .3rem;
  font-size: .92rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.role__org b { color: var(--text); font-weight: 600; }
.role__sep { color: var(--faint); }
.role__kind {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .1rem .5rem;
}
.role--current .role__kind {
  color: #6fe9d2;
  border-color: rgba(47,223,196,.34);
  background: var(--teal-soft);
}
.role__when { text-align: right; }
.role__dates {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--text);
  white-space: nowrap;
}
.role__dur {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--faint);
  margin-top: .15rem;
}

.role__impact {
  display: grid;
  gap: .7rem;
  margin: 1.25rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.impact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}
.impact__icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  color: var(--blue);
  margin-top: .1rem;
}
.impact__icon svg { width: 15px; height: 15px; }
.impact__label {
  display: block;
  font-weight: 600;
  font-size: .93rem;
  letter-spacing: -.012em;
  margin-bottom: .15rem;
}
.impact__text { display: block; color: var(--muted); font-size: .89rem; line-height: 1.6; }

.role__more { margin-top: 1.2rem; }
.role__more > summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
  transition: color .2s, background .2s, border-color .2s;
}
.role__more > summary::-webkit-details-marker { display: none; }
.role__more > summary:hover { color: var(--text); background: rgba(255,255,255,.06); }
.role__more > summary svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.role__more[open] > summary svg { transform: rotate(180deg); }
.role__more[open] > summary { color: var(--text); }

.role__detail { padding-top: 1.1rem; animation: fade-in .3s var(--ease-out); }
.role__points { display: grid; gap: .6rem; }
.role__points li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.62;
}
.role__points li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .75;
}

@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.role__foot {
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .8rem;
}
.role__related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  font-size: .84rem;
  color: var(--faint);
}
.role__related b {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 600;
}

@media (max-width: 46rem) {
  .role__head { grid-template-columns: auto minmax(0, 1fr); }
  .role__when { grid-column: 1 / -1; text-align: left; margin-top: .6rem; }
  .role__dates, .role__dur { display: inline; }
  .role__dur::before { content: " · "; }
}

/* --- Education rail ------------------------------------------------------- */

.edu { padding: 1.35rem; height: 100%; }
.edu__top { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.edu__icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--blue);
}
.edu__icon svg { width: 16px; height: 16px; }
.edu__degree { font-size: 1.02rem; font-weight: 650; letter-spacing: -.018em; line-height: 1.3; }
.edu__place { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.edu__dates {
  margin-top: .9rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--faint);
}

/* --- Credential strip ----------------------------------------------------- */

.credstrip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.credstrip__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
  font-size: .88rem;
  font-weight: 550;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.credstrip__item:hover { transform: translateY(-2px); border-color: var(--line-hi); background: var(--surface-hi); }
.credstrip__abbr {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  color: #06111f;
  background: var(--grad);
  border-radius: 6px;
  padding: .12rem .4rem;
}
.credstrip__item--progress .credstrip__abbr {
  background: rgba(244,183,64,.9);
}

/* 16. Skills --------------------------------------------------------------- */

.skillset { padding: 1.4rem; height: 100%; }
.skillset__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.skillset__icon {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--blue);
}
.skillset__icon svg { width: 16px; height: 16px; }
.skillset__name { font-weight: 650; letter-spacing: -.015em; font-size: .98rem; }
.skillset__count { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--faint); }

.stack-lead {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.stack-lead__item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(93,147,255,.26);
  background: linear-gradient(140deg, rgba(93,147,255,.14), rgba(160,107,255,.07));
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.stack-lead__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

/* 17. Certifications ------------------------------------------------------- */

.cert { padding: 1.4rem; display: flex; flex-direction: column; gap: .75rem; height: 100%; }
.cert__top { display: flex; align-items: flex-start; gap: .9rem; }
.cert__abbr {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: -.01em;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--text);
}
.cert--progress .cert__abbr { background: linear-gradient(140deg, rgba(244,183,64,.16), rgba(244,183,64,.05)); }
.cert__name { display: block; font-weight: 650; letter-spacing: -.015em; line-height: 1.3; }
.cert__issuer { display: block; color: var(--muted); font-size: .85rem; margin-top: .22rem; }
.cert__foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.award {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 130% at 12% 0%, rgba(160,107,255,.18), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    rgba(9, 13, 26, .55);
}
@media (min-width: 48rem) {
  .award { grid-template-columns: auto minmax(0, 1fr); }
}
.award__badge {
  width: clamp(84px, 16vw, 108px);
  height: clamp(84px, 16vw, 108px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(160,107,255,.35);
  background: radial-gradient(circle at 40% 32%, rgba(160,107,255,.35), rgba(9,13,26,.7) 68%);
  box-shadow: 0 24px 60px -26px rgba(160,107,255,.9), inset 0 1px 0 rgba(255,255,255,.14);
}
.award__badge svg { width: 46%; height: 46%; color: #c9a9ff; }

/* 18. Contact -------------------------------------------------------------- */

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  height: 100%;
  transition: transform .2s var(--ease), border-color .2s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--line-hi); }
.contact-card__icon {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--grad-soft);
  color: var(--blue);
}
.contact-card__icon svg { width: 19px; height: 19px; }
.contact-card__label {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-card__value {
  display: block;
  font-weight: 600;
  letter-spacing: -.015em;
  overflow-wrap: anywhere;
  font-size: .95rem;
}

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 50% 0%, rgba(93,147,255,.20), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    rgba(9, 13, 26, .6);
}
.cta-band .cta-row { justify-content: center; }

/* 19. Footer --------------------------------------------------------------- */

.footer {
  margin-top: clamp(3rem, 8vw, 5.5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(3,4,10,.65));
}
.footer__inner {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
}
.footer__blurb { color: var(--muted); font-size: .9rem; margin-top: .85rem; max-width: 24rem; }
.footer__col-title {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .85rem;
  font-weight: 600;
}
.footer__col li + li { margin-top: .5rem; }
.footer__col a { color: var(--muted); font-size: .89rem; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--faint);
}
.footer__bar .mono { font-size: .78rem; }

/* 20. 404 ------------------------------------------------------------------ */

.notfound {
  min-height: 68svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 6rem);
}
.notfound__code {
  font-family: var(--mono);
  font-size: clamp(4.5rem, 18vw, 9rem);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .9;
}

/* 21. Motion, responsive & print ------------------------------------------- */

/* Reveals are opt-in: without JavaScript the `js` class is never set and every
   .reveal stays fully visible, so the page never depends on script to be readable. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 62rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: 2; }
}

@media (max-width: 54rem) {
  :root { --header-h: 3.6rem; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(5, 7, 15, .96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: .7rem .85rem; border-radius: var(--r-sm); font-size: .98rem; }
  .header__cta { margin: .6rem 0 0; }
  .header__cta .btn { width: 100%; }

  .role__summary { grid-template-columns: auto minmax(0, 1fr); padding: 1.1rem; }
  .role__dates { grid-column: 2; text-align: left; padding-top: .4rem; }
  .role__chev { grid-row: 1; grid-column: 2; align-self: start; }
  .role__detail { padding: 0 1.1rem 1.2rem 1.1rem; }
  .subnav { top: var(--header-h); }
}

@media (max-width: 30rem) {
  .cta-row .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .backdrop__blob { animation: none; }
}

@media print {
  .backdrop, .header, .footer, .subnav, .cta-row, .filters { display: none !important; }
  body { background: #fff; color: #111; }
  .glass { border: 1px solid #ccc; background: #fff; box-shadow: none; backdrop-filter: none; }
  .role__detail { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
