/* =====================================================================
   Anshu Goel — portfolio stylesheet
   One file, one design system.
   1. Tokens (light + dark)   2. Base   3. Layout   4. Components
   5. Header & navigation     6. Footer 7. Page sections 8. Motion & print
   Theme: <html data-theme="light|dark"> (set by the inline head script,
   falls back to the system preference). All colours come from tokens, so
   every component is automatically correct in both modes.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: light-dark(#f6f8fc, #0e1117);
  --surface: light-dark(#ffffff, #161b24);
  --surface-2: light-dark(#eef2f9, #1d2330);
  --ink: light-dark(#171c26, #e8ebf2);
  --muted: light-dark(#556070, #a0a9b8);
  --line: light-dark(#dfe4ec, #2a3140);

  /* Brand colours: fill value + text-safe value */
  --blue: light-dark(#1a73e8, #8ab4f8);
  --red: light-dark(#d93025, #f28b82);
  --yellow: light-dark(#f2a900, #fdd663);
  --green: light-dark(#1e8e3e, #81c995);
  --blue-ink: light-dark(#1459c7, #8ab4f8);
  --red-ink: light-dark(#c5221f, #f28b82);
  --yellow-ink: light-dark(#8a5700, #fdd663);
  --green-ink: light-dark(#137333, #81c995);
  --purple: light-dark(#8e44ec, #c58af9);

  --on-accent: light-dark(#ffffff, #0b1220);
  --focus: light-dark(#1a73e8, #8ab4f8);
  --shadow: light-dark(
    0 1px 2px rgb(16 24 40 / 0.06),
    0 1px 2px rgb(0 0 0 / 0.4)
  );
  --shadow-lg: light-dark(
    0 18px 40px -16px rgb(16 24 40 / 0.22),
    0 18px 40px -16px rgb(0 0 0 / 0.6)
  );

  --font-body:
    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display:
    "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:
    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
  --radius: 20px;
  --radius-sm: 12px;
  --gap: clamp(14px, 2vw, 22px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

/* Accent scopes: any element with data-accent gets --accent / --accent-ink */
[data-accent="blue"] {
  --accent: var(--blue);
  --accent-ink: var(--blue-ink);
}
[data-accent="red"] {
  --accent: var(--red);
  --accent-ink: var(--red-ink);
}
[data-accent="yellow"] {
  --accent: var(--yellow);
  --accent-ink: var(--yellow-ink);
}
[data-accent="green"] {
  --accent: var(--green);
  --accent-ink: var(--green-ink);
}
[data-accent="purple"] {
  --accent: var(--purple);
  --accent-ink: var(--purple);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(15px, 0.35vw + 14px, 17px) / 1.65 var(--font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
}
main {
  flex: 1 0 auto;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
em {
  font-style: normal;
  color: var(--accent-ink, var(--blue-ink));
}
::selection {
  background: color-mix(in srgb, var(--blue) 35%, transparent);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--on-accent);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  padding-block: clamp(36px, 5.5vw, 72px);
}
.section--tight {
  padding-block: clamp(24px, 3.5vw, 44px);
}
.section + .section {
  padding-top: 0;
}

/* Two-column split: sticky intro on the left, content on the right */
.split {
  display: grid;
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .split--even {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.split__aside > * + * {
  margin-top: 16px;
}

/* Responsive card grid; --min sets the smallest card width */
.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--min, 260px)), 1fr)
  );
}
/* Explicit column counts (predictable on every device) */
.cards--stack {
  grid-template-columns: 1fr;
}
.cards--2 {
  grid-template-columns: minmax(0, 1fr);
}
.cards--3 {
  grid-template-columns: minmax(0, 1fr);
}
.cards--4 {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 600px) {
  .cards--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 720px) {
  .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .cards--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
/* inside a split's narrow column, 2-up needs a wider breakpoint */
.split__main .cards--2 {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1100px) {
  .split__main .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 640px) and (max-width: 959px) {
  .split__main .cards--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Section heading */
.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 30px);
}
.section-head--row {
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
  }
}
.section-head h2,
.split__aside h2,
.band h2 {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 2.7rem);
}
.lead {
  font-size: clamp(1.02rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- 4. Components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font: 500 0.72rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--blue-ink));
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--plain::before {
  display: none;
}
.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent);
  animation: pulse 2s infinite;
  flex: none;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 0.92rem/1 var(--font-display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--blue);
  color: var(--on-accent);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  box-shadow: 0 10px 24px -10px var(--blue);
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue-ink);
}
.btn--light {
  background: #fff;
  color: #12306e;
}
.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.85rem;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 0.92rem var(--font-display);
  color: var(--blue-ink);
}
.link-arrow span {
  transition: transform 0.2s var(--ease);
}
.link-arrow:hover span {
  transform: translate(3px, -3px);
}

/* Card: shared surface, hover lift and pointer spotlight */
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}
.card::before {
  /* accent bar */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1;
  background: var(--accent, var(--blue));
  opacity: 0.85;
}
.card::after {
  /* pointer spotlight */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent),
    transparent 70%
  );
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: color-mix(
      in srgb,
      var(--accent, var(--blue)) 55%,
      var(--line)
    );
    box-shadow: var(--shadow-lg);
  }
  .card:hover::after {
    opacity: 1;
  }
}
.card--flat {
  box-shadow: none;
}
.card--flat:hover {
  transform: none;
  box-shadow: none;
}
.card h3 {
  font-size: 1.12rem;
}
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}
.card > * + * {
  margin-top: 10px;
}

.num {
  font: 500 0.74rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--accent-ink, var(--muted));
  text-transform: uppercase;
}
.icon-box {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
  color: var(--accent-ink, var(--blue-ink));
  font: 700 1rem var(--font-display);
}
.icon-box svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Tags / chips */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font: 500 0.78rem/1.3 var(--font-body);
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.tags span.is-featured {
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent, var(--blue)) 40%, transparent);
  color: var(--accent-ink, var(--blue-ink));
  font-weight: 600;
}
@media (hover: hover) {
  .tags span:hover {
    border-color: var(--accent, var(--blue));
    color: var(--accent-ink, var(--blue-ink));
    transform: translateY(-1px);
  }
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 0.7rem/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--muted));
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status--live::before {
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 currentColor;
}

/* CTA band + note band */
.band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(
    125deg,
    light-dark(#15338a, #12214f),
    light-dark(#1a73e8, #1b4fb0) 55%,
    light-dark(#7b3fe4, #5a2fb5)
  );
}
.band::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -80px;
  top: -80px;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.22), transparent 70%);
}
.band .eyebrow {
  color: rgb(255 255 255 / 0.85);
}
.band h2 {
  color: #fff;
  margin-top: 10px;
}
.band p:not(.eyebrow) {
  color: rgb(255 255 255 / 0.85);
  max-width: 56ch;
  margin-top: 12px;
}
.band .accent {
  color: #fbd45a;
}
@media (min-width: 800px) {
  .band {
    grid-template-columns: 1fr auto;
  }
}

.note {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: var(--radius);
  border: 1px solid
    color-mix(in srgb, var(--accent, var(--blue)) 30%, var(--line));
  background: color-mix(in srgb, var(--accent, var(--blue)) 8%, var(--surface));
}
.note h2 {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
}
.note p:not(.eyebrow) {
  color: var(--muted);
  max-width: 70ch;
}
@media (min-width: 900px) {
  .note--row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 10px 48px;
    align-items: center;
  }
  .note--row .eyebrow,
  .note--row h2 {
    grid-column: 1;
  }
  .note--row p:not(.eyebrow),
  .note--row .link-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .note--row .link-arrow {
    grid-row: 3;
    justify-self: start;
  }
}

/* Scroll reveal: only hidden once JS has confirmed it will reveal them */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
}
/* blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile drawer inside the header's box */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  margin-right: auto;
  font: 800 0.8rem/1.15 var(--font-display);
  letter-spacing: 0.12em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--blue);
  flex: none;
}
.brand small {
  display: block;
  margin-top: 2px;
  font: 500 0.6rem var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}
.brand span {
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
  flex: none;
}
.icon-btn:hover {
  border-color: var(--blue);
  background: var(--surface-2);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .i-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .i-moon {
  display: none;
}

.menu-btn .bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
.menu-btn .bars {
  display: grid;
  gap: 5px;
}
.menu-btn[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgb(8 12 20 / 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}
.nav-open .nav-scrim {
  opacity: 1;
  visibility: visible;
}

/* Phones & tablets: slide-in drawer */
.nav {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 8px) 20px
    max(24px, env(safe-area-inset-bottom)) 20px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  visibility: hidden;
  transition:
    transform 0.35s var(--ease),
    visibility 0s 0.35s;
}
.nav.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.35s var(--ease);
}
.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 14px;
  font: 700 1.05rem var(--font-display);
  color: var(--ink);
}
.nav__link:hover {
  background: var(--surface-2);
}
.nav__link[aria-current="page"] {
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  color: var(--blue-ink);
}
.nav .btn {
  margin-top: 14px;
}
.header-cta {
  display: none;
}
/* theme + menu buttons stay above the open drawer */
.theme-toggle,
.menu-btn {
  position: relative;
  z-index: 80;
}

/* Desktop: inline navigation */
@media (min-width: 1200px) {
  .menu-btn,
  .nav-scrim,
  .nav .btn {
    display: none;
  }
  .nav {
    position: static;
    z-index: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav__link {
    min-height: 40px;
    padding: 0 13px;
    border-radius: 999px;
    font: 600 0.88rem var(--font-body);
    color: var(--muted);
  }
  .nav__link:hover {
    color: var(--ink);
  }
  .nav__link[aria-current="page"] {
    color: var(--blue-ink);
  }
  .header-cta {
    display: inline-flex;
  }
  .brand {
    margin-right: 0;
  }
  .header-row {
    gap: 10px;
  }
  .header-row .nav {
    margin-inline: auto;
  }
}
@media (max-width: 380px) {
  .brand small {
    display: none;
  }
  .brand span {
    font-size: 0.72rem;
  }
}

/* ---------- 6. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--surface);
  border-top: 1px solid var(--line);
  content-visibility: auto; /* skip rendering until near the viewport */
  contain-intrinsic-size: auto 760px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--blue) 0 25%,
    var(--red) 0 50%,
    var(--yellow) 0 75%,
    var(--green) 0
  );
}
.footer-top {
  display: grid;
  gap: 28px;
  padding-block: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 36px);
}
@media (min-width: 900px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
  }
}
.footer-brand > * + * {
  margin-top: 14px;
}
.footer-tag {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.footer-avail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}
.footer-brand .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-contact {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .footer-contact {
    grid-template-columns: 1fr 1fr;
  }
  .footer-contact li:first-child,
  .footer-contact li:last-child {
    grid-column: 1 / -1;
  }
}
.contact-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px;
  height: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
a.contact-chip:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
a.contact-chip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.contact-chip i {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--blue) 13%, transparent);
  color: var(--blue-ink);
}
.footer-contact li:nth-child(2) i {
  background: color-mix(in srgb, var(--red) 13%, transparent);
  color: var(--red-ink);
}
.footer-contact li:nth-child(3) i {
  background: color-mix(in srgb, var(--green) 14%, transparent);
  color: var(--green-ink);
}
.footer-contact li:nth-child(4) i {
  background: color-mix(in srgb, var(--yellow) 22%, transparent);
  color: var(--yellow-ink);
}
.contact-chip svg,
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-chip span {
  min-width: 0;
}
.contact-chip small {
  display: block;
  font: 500 0.66rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-chip b {
  display: block;
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  padding-block: clamp(24px, 4vw, 36px);
  border-top: 1px dashed var(--line);
}
@media (min-width: 760px) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 759px) {
  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}
.footer-col h3 {
  margin-bottom: 10px;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition:
    color 0.2s,
    transform 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--blue-ink);
  transform: translateX(3px);
}
.footer-col a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.footer-social {
  padding: clamp(18px, 3vw, 26px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.footer-social__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.footer-social__head h3 {
  font: 800 1.15rem var(--font-display);
}
.footer-social__head p {
  color: var(--muted);
  font-size: 0.88rem;
}
.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.social-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
a.social-btn:hover {
  background: var(--brand, var(--blue));
  border-color: var(--brand, var(--blue));
  color: #fff;
  transform: translateY(-3px);
}
a.social-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
a.social-btn:active {
  transform: scale(0.94);
}
.social-more {
  margin-top: 14px;
}
.social-more summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
}
.social-more summary::-webkit-details-marker {
  display: none;
}
.social-more summary span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 500 0.72rem var(--font-mono);
}
.social-more summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s var(--ease);
}
.social-more[open] summary::after {
  transform: rotate(225deg);
}
.social-more summary:hover {
  border-color: var(--blue);
}
.social-more summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.social-more[open] > .social-group:first-of-type {
  margin-top: 18px;
}
.social-group + .social-group {
  margin-top: 16px;
}
.social-group__label {
  display: block;
  margin-bottom: 8px;
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ==========================================
   LABELLED SOCIAL LINKS - CONTACT PAGE
   Flexible badges with wrapping app names
========================================== */

.social-list--labeled {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* Badge */
.social-list--labeled .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  flex: 0 1 auto;
  width: fit-content;
  min-width: 125px;
  max-width: 100%;
  min-height: 46px;
  height: auto;

  padding: 11px 16px;
  box-sizing: border-box;

  border: 1px solid var(--social-color, #64748b);
  border-radius: 12px;
  background: color-mix(in srgb, var(--social-color, #64748b) 10%, transparent);
  color: var(--social-color, #64748b);
  text-decoration: none;

  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.01em;

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Icon alignment */
.social-list--labeled .social-btn svg,
.social-list--labeled .social-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  font-size: 19px;
}

/* Keep long labels inside the badge */
.social-list--labeled .social-btn span {
  min-width: 0;
  flex: 0 1 auto;
  overflow-wrap: anywhere;
}

/* Hover effect */
.social-list--labeled .social-btn:hover {
  background: var(--social-color, #64748b);
  color: #fff;
  border-color: var(--social-color, #64748b);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px
    color-mix(in srgb, var(--social-color, #64748b) 30%, transparent);
}

/* Click effect */
.social-list--labeled .social-btn:active {
  transform: translateY(-1px) scale(0.97);
}

/* Keyboard accessibility */
.social-list--labeled .social-btn:focus-visible {
  outline: 3px solid var(--social-color, #64748b);
  outline-offset: 4px;
}

/* Individual app colours */
.social-list--labeled .social-btn:nth-child(7n + 1) {
  --social-color: #1877f2;
}

.social-list--labeled .social-btn:nth-child(7n + 2) {
  --social-color: #e4405f;
}

.social-list--labeled .social-btn:nth-child(7n + 3) {
  --social-color: #0a66c2;
}

.social-list--labeled .social-btn:nth-child(7n + 4) {
  --social-color: #25d366;
}

.social-list--labeled .social-btn:nth-child(7n + 5) {
  --social-color: #000000;
}

.social-list--labeled .social-btn:nth-child(7n + 6) {
  --social-color: #ff0000;
}

.social-list--labeled .social-btn:nth-child(7n + 7) {
  --social-color: #9146ff;
}

/* Tablet responsiveness */
@media (max-width: 900px) {
  .social-list--labeled {
    gap: 10px;
  }

  .social-list--labeled .social-btn {
    min-width: 115px;
    padding: 10px 13px;
  }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .social-list--labeled {
    gap: 9px;
    align-items: stretch;
  }

  .social-list--labeled .social-btn {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    gap: 8px;
    font-size: 0.82rem;
    line-height: 1.35;
    border-radius: 10px;
  }

  .social-list--labeled .social-btn svg,
  .social-list--labeled .social-btn i {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
    font-size: 17px;
  }
}

/* Extra small screens */
@media (max-width: 360px) {
  .social-list--labeled {
    gap: 7px;
  }

  .social-list--labeled .social-btn {
    padding: 8px 10px;
    font-size: 0.78rem;
    gap: 7px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .social-list--labeled .social-btn {
    transition: none;
  }

  .social-list--labeled .social-btn:hover {
    transform: none;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: clamp(24px, 4vw, 36px);
  padding-block: 18px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-made {
  flex: 1 1 auto;
  text-align: center;
}
@media (max-width: 639px) {
  .footer-bottom {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
  .footer-made {
    flex: none;
  }
  .to-top {
    justify-content: center;
  }
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--blue-ink);
  font-weight: 500;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.to-top i {
  display: grid;
}
.to-top svg {
  width: 16px;
  height: 16px;
}
.to-top:hover {
  border-color: var(--blue);
  background: color-mix(in srgb, var(--blue) 8%, transparent);
}
.to-top:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .contact-chip,
  .social-btn,
  .footer-col a {
    transition: none;
  }
  a.contact-chip:hover,
  a.social-btn:hover,
  .footer-col a:hover {
    transform: none;
  }
}

/* ---------- 7. Page sections ---------- */

/* Shared page hero (inner pages) */
.page-hero {
  padding-block: clamp(28px, 5vw, 60px) clamp(20px, 3vw, 36px);
  display: grid;
  gap: 22px 48px;
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 4.2vw, 4rem);
  margin-top: 14px;
}
.page-hero .lead {
  margin-top: 16px;
}
.page-hero .actions {
  margin-top: 22px;
}
@media (min-width: 980px) {
  .page-hero--split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

/* Home hero */
.hero {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(26px, 5vw, 64px) clamp(22px, 4vw, 44px);
}
@media (min-width: 940px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}
.hero__pretitle {
  margin-top: 18px;
  font: 600 clamp(1.1rem, 0.8rem + 1.2vw, 1.6rem) var(--font-display);
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(2.8rem, 1rem + 7.5vw, 6.2rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero h1 .accent {
  color: var(--red);
}
.typed {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4em;
  margin-top: 14px;
  font: 700 clamp(1.3rem, 0.9rem + 1.6vw, 2rem) var(--font-display);
}
.typed span {
  color: var(--muted);
  font-weight: 600;
}
.typed strong {
  color: var(--blue-ink);
  min-width: 1ch;
}
.typed i {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: var(--blue);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.hero__intro {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
}
.hero .actions {
  margin-top: 26px;
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--blue) 40%, transparent);
  animation: spin 40s linear infinite;
}
.orbit--a {
  inset: 4%;
}
.orbit--b {
  inset: 17%;
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
  animation-direction: reverse;
  animation-duration: 55s;
}
.orbit--a::after,
.orbit--b::after {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}
.orbit--b::after {
  background: var(--yellow);
  top: auto;
  bottom: 6%;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.avatar {
  position: relative;
  z-index: 1;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--surface);
  box-shadow:
    0 0 0 3px var(--blue),
    var(--shadow-lg);
  background: var(--surface-2);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font: 800 0.78rem/1.2 var(--font-display);
  letter-spacing: 0.06em;
  animation: bob 6s ease-in-out infinite;
}
.float b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent-ink);
  font: 500 0.72rem var(--font-mono);
}
.float small {
  display: block;
  font: 500 0.68rem var(--font-body);
  letter-spacing: 0;
  color: var(--muted);
}
.float--1 {
  top: 6%;
  left: -2%;
}
.float--2 {
  top: 38%;
  right: -4%;
  animation-delay: -2s;
}
.float--3 {
  bottom: 5%;
  left: 6%;
  animation-delay: -4s;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@media (max-width: 520px) {
  .float small {
    display: none;
  }
  .float {
    padding: 7px 11px 7px 8px;
    font-size: 0.7rem;
  }
  .float--1 {
    left: 0;
  }
  .float--2 {
    right: 0;
  }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding-block: 14px;
  margin-block: 8px clamp(10px, 2vw, 24px);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font: 500 0.8rem var(--font-mono);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.ticker__group b {
  color: var(--accent, var(--blue));
  font-weight: 400;
}
.ticker__group b:nth-of-type(4n + 1) {
  color: var(--blue);
}
.ticker__group b:nth-of-type(4n + 2) {
  color: var(--red);
}
.ticker__group b:nth-of-type(4n + 3) {
  color: var(--yellow);
}
.ticker__group b:nth-of-type(4n) {
  color: var(--green);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Pillars */
.pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.pillar > * + * {
  margin-top: 12px;
}
.pillar__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pillar h3 {
  font-size: clamp(1.3rem, 1rem + 0.9vw, 1.65rem);
}
.pillar h3 span {
  color: var(--accent-ink);
}
.pillar .link-arrow {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent-ink);
}
.pillar__kicker {
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Timeline (home journey + reusable) */
.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 34px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    var(--blue),
    var(--red),
    var(--yellow),
    var(--green)
  );
  opacity: 0.5;
}
.timeline__item {
  position: relative;
}
.timeline__item::before {
  content: attr(data-n);
  position: absolute;
  left: -34px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent-ink);
  font: 500 0.66rem var(--font-mono);
  z-index: 2;
}
.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
}
.timeline__item.is-current {
  --accent: var(--green);
}
.timeline__item.is-current::before {
  background: var(--accent);
  color: var(--on-accent);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font: 500 0.78rem var(--font-mono);
  color: var(--muted);
}
.legend span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Quote */
.quote {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 56px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.quote::before {
  content: "“";
  position: absolute;
  top: -0.2em;
  left: 3%;
  z-index: -1;
  font: 800 clamp(8rem, 20vw, 16rem)/1 var(--font-display);
  color: color-mix(in srgb, var(--blue) 12%, transparent);
}
.quote blockquote {
  margin: 14px auto 0;
  max-width: 24ch;
  font: 800 clamp(1.7rem, 0.8rem + 3.6vw, 3.4rem)/1.12 var(--font-display);
  letter-spacing: -0.03em;
}
.quote blockquote .muted {
  color: var(--muted);
}
.quote blockquote em {
  color: var(--blue-ink);
}
.quote__foot {
  margin-top: 22px;
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* Skill categories (home) */
.skillcat__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.skillcat__head h3 {
  font-size: 1.05rem;
}
.skillcat__head p {
  font-size: 0.86rem;
  margin-top: 2px;
}
.skillcat .tags {
  margin-top: 14px;
}

/* Stats */
.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stats--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats--3 .stat {
  padding: 14px 12px;
}
@media (min-width: 640px) {
  .stats--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.stat strong {
  display: block;
  font: 800 clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem)/1 var(--font-display);
  color: var(--accent-ink);
  letter-spacing: -0.03em;
}
.stat span {
  display: block;
  margin-top: 6px;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* About: story points, focus cards, career, EduSphere spotlight, values, education */
.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}
.point h3 {
  font-size: 1.1rem;
}
.point p {
  margin-top: 6px;
}
.signature {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.focus__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.focus h3 {
  font-size: 1.3rem;
}
.focus__cat {
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.focus .tags {
  margin-top: 14px;
}

.career {
  display: grid;
  gap: 12px;
}
.career__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
}
.career time {
  font: 500 0.74rem var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.career__body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}
.career h3 {
  font-size: 1.12rem;
}
.career__org {
  font-weight: 600;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
  margin-top: 2px;
}
.career .tags {
  margin-top: 12px;
}

.spot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
}
@media (min-width: 900px) {
  .spot {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
.spot__intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 4vw, 48px);
  color: #fff;
  background: linear-gradient(
    150deg,
    light-dark(#15338a, #12214f),
    light-dark(#1a73e8, #1b4fb0)
  );
}
.spot__intro::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.22), transparent 70%);
}
.spot__intro .eyebrow {
  color: rgb(255 255 255 / 0.85);
}
.spot__intro h2 {
  font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.8rem);
  color: #fff;
}
.spot__intro h2 span {
  color: #fbd45a;
}
.spot__intro p {
  color: rgb(255 255 255 / 0.85);
}
.spot__year {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}
.spot__year strong {
  font: 800 clamp(2.4rem, 1.5rem + 3vw, 3.6rem)/1 var(--font-display);
}
.spot__year span {
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.spot__body {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3.5vw, 40px);
  align-content: center;
}
.spot__body .lead {
  font-size: 1.02rem;
  color: var(--ink);
}
.spot__body blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
  font: 600 0.98rem/1.5 var(--font-display);
}
.mini-points {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}
.mini-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
}
.mini-points .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.8rem;
}
.mini-points strong {
  display: block;
  font: 700 0.9rem var(--font-display);
}
.mini-points small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.value h3 {
  font-size: 1.12rem;
}
.value__cat {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.value__tag {
  display: inline-block;
  margin-top: 4px;
  font: 700 0.84rem var(--font-display);
  color: var(--accent-ink);
}
.value__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.edu h3 {
  font-size: 1.12rem;
}
.edu__inst {
  font-weight: 600;
  color: var(--ink) !important;
  font-size: 0.88rem !important;
}
.edu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font: 500 0.66rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Teaching */
.principles {
  display: grid;
  gap: 10px;
}
.principles li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.principles strong {
  display: block;
  font: 700 0.95rem var(--font-display);
}
.principles small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.step h3 {
  font-size: 1.4rem;
}
.step__kicker {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.step ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.step li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--ink);
}
.step li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  border: 2px solid var(--accent);
}
.step__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.progress {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 4px;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--red),
    var(--yellow),
    var(--green)
  );
  transition: width 1.4s var(--ease);
}
.progress.is-in span {
  width: 100%;
}
.subject {
  display: flex;
  flex-direction: column;
}
.subject__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.subject .tags {
  margin-top: auto;
  padding-top: 12px;
}
.subject h3 {
  font-size: 1.05rem;
}

/* Skills page */
.skill-group {
  display: flex;
  flex-direction: column;
}
.skill-group h2 {
  font-size: 1.5rem;
}
.skill-group .tags {
  margin-top: 16px;
}
@media (min-width: 720px) {
  .cards--span-last > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Projects */
.project {
  display: grid;
  padding: 0;
}
.project__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 22%, var(--surface-2)),
    var(--surface-2)
  );
  border-bottom: 1px solid var(--line);
}
.project__body {
  padding: clamp(18px, 2.2vw, 26px);
}
.project__body > * + * {
  margin-top: 10px;
}
.project h2,
.project h3 {
  font-size: 1.3rem;
}
.project .tags {
  margin-top: 14px;
}
.project--feature .project__art {
  min-height: 230px;
}
@media (min-width: 640px) {
  .project--feature {
    grid-column: 1 / -1;
  }
}
@media (min-width: 900px) {
  .project--feature {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .project--feature .project__art {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .project--feature .project__body {
    align-self: center;
    padding: clamp(24px, 3vw, 40px);
  }
}
.art-mono {
  font: 800 clamp(3rem, 2rem + 4vw, 5rem) var(--font-display);
  letter-spacing: -0.05em;
  color: var(--accent-ink);
}
.art-mono small {
  display: block;
  margin-top: 6px;
  text-align: center;
  font: 500 0.64rem var(--font-mono);
  letter-spacing: 0.18em;
  color: var(--muted);
}
.mini-sheet {
  width: min(100%, 220px);
  display: grid;
  gap: 9px;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mini-sheet b {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}
.mini-sheet i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}
.mini-sheet i:nth-of-type(2) {
  width: 82%;
}
.mini-sheet i:nth-of-type(3) {
  width: 64%;
}
.mini-sheet i:nth-of-type(4) {
  width: 48%;
}
.mini-sheet small {
  font: 500 0.6rem var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.flow span {
  padding: 9px 13px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.08em;
}
.flow em {
  color: var(--accent-ink);
  font: 700 1.1rem var(--font-display);
}
.code-art {
  width: min(100%, 280px);
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: light-dark(#14192a, #0a0d14);
  color: #d7def0;
  font: 500 0.82rem/1.7 var(--font-mono);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.code-art .ln {
  color: #5d6a8a;
  margin-right: 12px;
}
.code-art .kw {
  color: #f28b82;
}
.code-art .fn {
  color: #8ab4f8;
}

/* Services */
.service {
  display: flex;
  flex-direction: column;
}
.service h2 {
  font-size: 1.3rem;
}
.service ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.service li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
}
.service li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-ink);
  font-weight: 800;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 960px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.contact-copy > * + * {
  margin-top: 18px;
}
.contact-copy h2 {
  font-size: clamp(1.8rem, 1.1rem + 2.4vw, 2.8rem);
}
.avail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--green) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
}
.avail b {
  display: block;
  font: 700 0.95rem var(--font-display);
}
.avail small {
  color: var(--muted);
}
.methods {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.method {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s;
  min-width: 0;
}
.method:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}
.method span {
  display: block;
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.method b {
  display: block;
  margin-top: 6px;
  font: 700 0.98rem var(--font-display);
  overflow-wrap: anywhere;
  color: var(--blue-ink);
}
.method small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.meta-row .label {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.form h3 {
  font-size: 1.5rem;
  margin-top: 8px;
}
.form__row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}
.form label {
  display: grid;
  gap: 7px;
  font: 700 0.86rem var(--font-display);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font: 400 1rem var(--font-body);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form textarea {
  resize: vertical;
  min-height: 140px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent);
}
.form ::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
.form .count {
  justify-self: end;
  font: 500 0.72rem var(--font-mono);
  color: var(--muted);
}
.form .count.is-warn {
  color: var(--red-ink);
}
.form-note,
.copy-status {
  font-size: 0.84rem;
  color: var(--muted);
}
.copy-status:empty {
  display: none;
}

/* Payment */
.pay-layout {
  display: grid;
  gap: var(--gap);
  align-items: start;
}
@media (min-width: 900px) {
  .pay-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }
  .qr-panel {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.pay-stack {
  display: grid;
  gap: var(--gap);
}
.upi-big {
  font: 800 clamp(1.5rem, 1rem + 2.4vw, 2.4rem) var(--font-display);
  letter-spacing: -0.02em;
  color: var(--accent-ink);
  overflow-wrap: anywhere;
}
.pay-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.pay-row:last-child {
  border-bottom: 0;
}
.pay-row span {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pay-row b {
  font-weight: 700;
  text-align: right;
}
.qr-panel {
  text-align: center;
}
.qr-panel img {
  width: min(100%, 260px);
  height: auto;
  margin: 16px auto;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

/* ---------- 8. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .ticker__group[aria-hidden] {
    display: none;
  }
}
@media print {
  .site-header,
  .nav-scrim,
  .ticker,
  .footer-social,
  .band,
  .hero__visual,
  .theme-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .card,
  .note {
    box-shadow: none;
    break-inside: avoid;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 9. Small helpers (kept at the end on purpose) ---------- */
.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 {
  margin-top: 12px;
}
.eyebrow--muted {
  color: var(--muted);
}
.label-block {
  display: flex;
  margin-bottom: 10px;
}
.h2-sm {
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.4rem);
}
.process-head {
  margin-bottom: 18px;
}
.process-head > * + * {
  margin-top: 10px;
}
.process-head .progress {
  margin-top: 16px;
}
.note--after {
  margin-top: var(--gap);
}
.principles--spaced {
  margin-top: 14px;
}
.icon-box--sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.8rem;
}
.head-side {
  display: grid;
  gap: 16px;
}
.form-sub {
  margin-top: 6px;
  color: var(--muted);
}
.small {
  font-size: 0.8rem;
  margin-top: 6px;
}
.edu__mark {
  color: var(--accent-ink);
}
.career__desc {
  margin-top: 8px;
}
.stat strong b {
  font-weight: inherit;
}
.qr-panel .eyebrow {
  justify-content: center;
}
.section-head .lead + .link-arrow,
.split__aside .lead + .link-arrow {
  margin-top: 14px;
}
.split__aside > p + p {
  margin-top: 12px;
}
.split__aside .signature {
  margin-top: 4px;
}
.split__aside .principles {
  margin-top: 16px;
}
.split__main > .timeline,
.split__main > .cards {
  margin-top: 0;
}
.focus__cat,
.edu .status {
  display: block;
}

/* =====================================================================
   10. Courses, tuition, travel & blog
   Components for courses.html, course-detail.html, tuition.html,
   travel.html and blog.html. Everything uses the tokens from section 1,
   so light and dark themes work with no extra rules.
   ===================================================================== */
[hidden] {
  display: none !important;
}

/* 11 nav links: a touch tighter on desktop */
@media (min-width: 1200px) {
  .nav__link {
    padding: 0 10px;
    font-size: 0.86rem;
  }
}
@media (min-width: 1360px) {
  .nav__link {
    padding: 0 13px;
    font-size: 0.88rem;
  }
}
@media (min-width: 1200px) and (max-width: 1359px) {
  .header-cta {
    display: none;
  }
}

/* Badges, WhatsApp button, button variants */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font: 500 0.68rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--blue-ink));
  background: color-mix(in srgb, var(--accent, var(--blue)) 13%, transparent);
  border: 1px solid
    color-mix(in srgb, var(--accent, var(--blue)) 32%, transparent);
}
.badge--status {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}
.btn--wa {
  background: light-dark(#16803c, #3fb868);
  color: light-dark(#fff, #07130b);
  box-shadow: var(--shadow);
}
.btn--wa:hover {
  box-shadow: 0 10px 24px -10px light-dark(#16803c, #3fb868);
}
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}
.btn--outline-light:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: #fff;
}
.btn--block {
  display: flex;
  width: 100%;
}
.price-actions .btn,
.cta-panel .btn,
.course__foot .btn {
  white-space: normal;
  text-align: center;
}

/* Filter chips, counts, empty state */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font: 600 0.9rem var(--font-body);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.filter small {
  font: 500 0.7rem var(--font-mono);
  color: var(--muted);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-2);
}
.filter:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}
.filter[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-accent);
}
.filter[aria-pressed="true"] small {
  background: rgb(255 255 255 / 0.22);
  color: inherit;
}
.result-count {
  margin-bottom: 18px;
  font: 500 0.74rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Course catalog cards ---------- */
.course {
  display: flex;
  flex-direction: column;
}
.course__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.issuer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.issuer b {
  display: block;
  font: 700 0.95rem/1.25 var(--font-display);
}
.issuer small {
  display: block;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.issuer__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 15%, transparent);
  color: var(--accent-ink, var(--blue-ink));
  font: 700 0.72rem var(--font-mono);
  letter-spacing: 0.04em;
}
.course h3 {
  font-size: 1.18rem;
}
.course__foot {
  margin-top: auto;
  padding-top: 12px;
}
.course__foot .btn {
  width: 100%;
}
.course__foot .link-arrow {
  padding-top: 4px;
}

/* ---------- Course detail ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 18px;
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a {
  color: var(--blue-ink);
}
.crumbs a:hover {
  text-decoration: underline;
}
.detail-hero {
  padding-block: clamp(24px, 4vw, 48px) clamp(8px, 2vw, 20px);
}
.detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-hero h1 {
  margin-top: 14px;
  font-size: clamp(2rem, 1.1rem + 3.6vw, 3.4rem);
  max-width: 22ch;
}
.detail-hero .lead {
  margin-top: 14px;
}
.detail-hero .actions {
  margin-top: 22px;
}
.detail {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
@media (min-width: 980px) {
  .detail {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .detail__aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}
.detail__main {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
  min-width: 0;
}
.detail__main > section > h2 {
  font-size: clamp(1.4rem, 1.05rem + 1.1vw, 1.9rem);
  margin-bottom: 16px;
}
.detail__main > section > h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 3px;
  background: var(--accent, var(--blue));
  vertical-align: 0.08em;
}
.outcome-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.cta-panel {
  display: grid;
  gap: 12px;
}
.cta-panel > * + * {
  margin-top: 0;
}
.cta-panel h2 {
  font-size: 1.35rem;
}
.cta-panel .pay-row b {
  font-size: 0.92rem;
}
.cta-panel .form-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.modules {
  counter-reset: m;
  display: grid;
  gap: 10px;
}
.modules li {
  counter-increment: m;
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 16px 14px 62px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.modules li::before {
  content: counter(m, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, var(--blue)) 14%, transparent);
  color: var(--accent-ink, var(--blue-ink));
  font: 500 0.74rem var(--font-mono);
}
.modules b {
  font: 700 1rem var(--font-display);
}
.modules span {
  color: var(--muted);
  font-size: 0.93rem;
}

.checklist {
  display: grid;
  gap: 9px;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.95rem;
}
.card .checklist li {
  color: var(--muted);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--accent, var(--blue));
  border-bottom: 2.5px solid var(--accent, var(--blue));
  transform: rotate(-45deg) scale(0.9);
}
.card .checklist {
  margin-top: 12px;
}

/* Long-form text (course descriptions, blog articles) */
.prose {
  max-width: 70ch;
}
.prose > * + * {
  margin-top: 1.05em;
}
.prose p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}
.prose h3 {
  margin-top: 1.7em;
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  display: grid;
  gap: 0.5em;
  color: var(--muted);
  line-height: 1.7;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li::marker {
  color: var(--accent, var(--blue));
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}
.prose a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.prose a:hover {
  text-decoration-thickness: 2.5px;
}
.prose code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font: 500 0.88em var(--font-mono);
  color: var(--ink);
}
.prose blockquote {
  margin-left: 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--accent, var(--blue));
  color: var(--ink);
  font: 600 1.1rem/1.6 var(--font-display);
}

/* ---------- Tuition ---------- */
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-points span {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 600 0.8rem var(--font-body);
  color: var(--ink);
}
.hero-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green-ink);
  font-weight: 800;
}
.tuition-service {
  display: flex;
  flex-direction: column;
}
.tuition-service ul {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.tuition-service li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.tuition-service li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--blue));
}
.tuition-service .link-arrow {
  margin-top: auto;
  padding-top: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.price-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.price-table thead th {
  padding: 14px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-table td,
.price-table tbody th {
  padding: 22px 20px;
  vertical-align: top;
  text-align: left;
}
.price-table tbody tr + tr > * {
  border-top: 1px solid var(--line);
}
.price-table tbody tr {
  position: relative;
}
.price-table tbody tr > th:first-child {
  box-shadow: inset 4px 0 0 var(--accent, var(--blue));
  min-width: 220px;
}
.tier-name {
  display: block;
  font: 800 1.05rem/1.25 var(--font-display);
}
.tier-note {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}
.price-table td {
  color: var(--muted);
  font-size: 0.92rem;
}
.price-table .fee {
  white-space: nowrap;
}
.price-table .fee strong {
  display: block;
  font: 800 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1.1 var(--font-display);
  color: var(--accent-ink, var(--blue-ink));
  letter-spacing: -0.02em;
}
.price-table .fee small {
  display: block;
  margin-top: 6px;
  white-space: normal;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-actions {
  display: grid;
  gap: 8px;
  min-width: 210px;
}
.price-actions .btn {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.85rem;
  line-height: 1.25;
}
@media (max-width: 899px) {
  .table-wrap {
    border: 0;
    background: none;
    box-shadow: none;
    overflow: visible;
  }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
  }
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .price-table tbody {
    display: grid;
    gap: var(--gap);
  }
  .price-table tbody tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent, var(--blue));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px 0 10px;
  }
  .price-table tbody tr + tr > * {
    border-top: 0;
  }
  .price-table tbody tr > th:first-child {
    box-shadow: none;
    min-width: 0;
    padding: 14px 18px 6px;
  }
  .price-table td {
    padding: 8px 18px;
  }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font: 500 0.66rem var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0.85;
  }
  .price-table .fee small {
    display: inline;
    margin-left: 8px;
  }
  .price-actions {
    min-width: 0;
  }
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.faq details + details {
  margin-top: 10px;
}
.faq details[open] {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--line));
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  font: 700 1rem/1.35 var(--font-display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--blue-ink);
  font: 500 1.2rem/1 var(--font-mono);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}
.faq details p {
  padding: 0 18px 18px;
  color: var(--muted);
  max-width: 66ch;
}

/* ---------- Travel ---------- */
.trip {
  padding: 0;
  display: flex;
  flex-direction: column;
}
.trip > * + * {
  margin-top: 0;
}
.trip__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.trip__art img,
.trip__art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
@media (hover: hover) {
  .trip:hover .trip__art img,
  .trip:hover .trip__art svg {
    transform: scale(1.05);
  }
}
.trip__where {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(10 14 22 / 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.06em;
}
.trip__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
}
.trip__body > * + * {
  margin-top: 0;
}
.trip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.trip__meta time {
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lesson {
  margin-top: auto !important;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent, var(--blue));
  background: color-mix(in srgb, var(--accent, var(--blue)) 9%, var(--surface));
}
.lesson b {
  font: 500 0.66rem var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink, var(--blue-ink));
}
.lesson span {
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.55;
}
/* generated artwork (trips without a photo): themed by the card's accent */
.scene .sky {
  fill: color-mix(in srgb, var(--accent, var(--blue)) 20%, var(--surface));
}
.scene .sun {
  fill: light-dark(#fdd663, #f2c94c);
  opacity: 0.95;
}
.scene .far {
  fill: color-mix(in srgb, var(--accent, var(--blue)) 30%, var(--surface-2));
}
.scene .mid {
  fill: color-mix(in srgb, var(--accent, var(--blue)) 52%, var(--surface-2));
}
.scene .near {
  fill: color-mix(
    in srgb,
    var(--accent, var(--blue)) 78%,
    light-dark(#10151f, #05070b)
  );
}
.scene .water {
  fill: color-mix(in srgb, var(--blue) 70%, var(--surface));
}
.scene .line {
  fill: none;
  stroke: color-mix(in srgb, var(--accent, var(--blue)) 30%, #fff);
  stroke-width: 1.5;
}

/* ---------- Blog cards ---------- */
.post {
  display: flex;
  flex-direction: column;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.post h3 {
  font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  line-height: 1.22;
}
.post__open {
  color: var(--ink);
}
.post__open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
} /* whole card is clickable */
.post__open:hover,
.post:hover .post__open {
  color: var(--accent-ink, var(--blue-ink));
}
.post__open:focus-visible {
  outline: none;
}
.post:has(.post__open:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.post .link-arrow {
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent-ink, var(--blue-ink));
}
.post:hover .link-arrow span {
  transform: translateX(4px);
}
.post {
  cursor: pointer;
}

/* ---------- Blog modal ---------- */
html.modal-open {
  overflow: hidden;
  padding-right: var(--sbw, 0px);
}
html.modal-open body {
  overflow: hidden;
}
.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgb(8 12 20 / 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.blog-modal.is-open {
  opacity: 1;
}
.blog-modal__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(820px, 100%);
  max-height: min(92vh, 960px);
  max-height: min(92dvh, 960px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.55);
  overflow: hidden;
  outline: none;
  transform: translateY(26px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.35s var(--ease),
    opacity 0.3s var(--ease);
}
.blog-modal__box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 3;
  background: var(--accent, var(--blue));
}
.blog-modal.is-open .blog-modal__box {
  transform: none;
  opacity: 1;
}
.blog-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.blog-modal__close:hover {
  border-color: var(--red);
  color: var(--red-ink);
  transform: rotate(90deg);
}
.blog-modal__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(24px, 4.5vw, 48px);
  padding-top: clamp(30px, 5vw, 52px);
}
.blog-modal__head {
  display: grid;
  gap: 14px;
  padding-right: 48px;
  margin-bottom: clamp(18px, 3vw, 28px);
}
.blog-modal__head h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.6rem);
  line-height: 1.1;
}
.blog-modal__head .lead {
  font-size: 1.05rem;
}
.blog-modal .prose {
  max-width: none;
}
.blog-modal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.blog-modal__foot .form-note {
  color: var(--green-ink);
  font-size: 0.85rem;
}
.post-nav {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}
.post-nav button {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.post-nav button:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.post-nav small {
  font: 500 0.68rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-nav b {
  font: 700 0.95rem/1.3 var(--font-display);
}
.post-nav [data-next] {
  text-align: right;
}
@media (max-width: 639px) {
  .blog-modal {
    padding: 0;
    place-items: end center;
  }
  .blog-modal__box {
    width: 100%;
    max-height: 94vh;
    max-height: 94dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
}

/* code blocks (blog) — always dark so syntax reads the same in both themes */
.code-block {
  margin-block: 1.4em;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f1420;
  border: 1px solid #263044;
}
.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  background: #161d2c;
  border-bottom: 1px solid #263044;
  font: 500 0.7rem var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa7bd;
}
.code-block__copy {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #33405a;
  background: transparent;
  color: #dbe3f2;
  font: 600 0.74rem var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  transition: background 0.2s;
}
.code-block__copy:hover {
  background: #222c42;
}
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  tab-size: 4;
}
.code-block code {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: #e6ecf7;
  font: 400 0.86rem/1.7 var(--font-mono);
  white-space: pre;
}
.code-block pre:focus-visible {
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-modal,
  .blog-modal__box {
    transition-duration: 0.001ms !important;
    transform: none !important;
  }
}
@media print {
  .blog-modal {
    display: none !important;
  }
}

/* Long split-hero headlines (courses, tuition, travel, about) */
.page-hero--split h1 {
  font-size: clamp(2rem, 1rem + 3.3vw, 3.4rem);
}
.page-hero--split {
  align-items: center;
}

/* ---------- 10. Speed polish ---------- */
/* Smooth cross-page transitions (Chrome / Edge / Safari 18+); the header stays put */
@view-transition {
  navigation: auto;
}
.site-header {
  view-transition-name: site-header;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
/* Don't spend time laying out sections the visitor hasn't scrolled near yet */
main > .section {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}
html,
body {
  overflow-x: clip;
} /* decorative rings may extend past the screen, never cause side-scroll */
