/* =========================================================
   TOKENS: light theme (palette and type kept from the approved reference)
   ========================================================= */
:root {
  --bg: #fbfbfd;
  --bg-soft: #f2f4f9;
  --card: #ffffff;
  --ink: #0b0d12;
  --text: #1a1d26;
  --muted: #5d6375;
  --dim: #8a91a5;
  --line: rgba(15, 20, 40, .08);
  --line-2: rgba(15, 20, 40, .14);
  --blue: #2f5bff;
  --blue-soft: #eef2ff;
  --violet: #7b4dff;
  --cyan: #00b8d9;
  --green: #12b76a;

  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .05), 0 2px 8px rgba(16, 24, 64, .04);
  --shadow: 0 1px 2px rgba(16, 24, 64, .04), 0 12px 40px -12px rgba(16, 24, 64, .14);
  --shadow-lg: 0 2px 4px rgba(16, 24, 64, .04), 0 30px 70px -20px rgba(30, 50, 140, .25);

  --f-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1220px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
main { position: relative; z-index: 2; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--f-mono); }
.t-blue { color: var(--blue); }
.t-muted { color: var(--dim); }
.grad {
  background: linear-gradient(100deg, var(--blue) 0%, var(--violet) 45%, var(--cyan) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}
.grad--light { background-image: linear-gradient(100deg, #9fb4ff, #ffffff 45%, #8ae9ff 90%); }
@keyframes shimmer { to { background-position: 100% 0; } }

/* Split-word headings */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }
.grad .w > span { background: inherit; -webkit-background-clip: text; background-clip: text; }

/* =========================================================
   AMBIENT BACKGROUND
   ========================================================= */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.blob--a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #dbe4ff; animation: drift 20s ease-in-out infinite alternate; }
.blob--b { width: 38vw; height: 38vw; right: -10vw; top: 10vh; background: #ece3ff; animation: drift 24s ease-in-out infinite alternate-reverse; }
.blob--c { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: #d9f6fb; animation: drift 28s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(6vw, 5vh) scale(1.12); } }
.ambient__dots {
  position: absolute; inset: 0; opacity: .55;
  background-image: radial-gradient(rgba(15, 20, 40, .14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 25%, transparent 75%);
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan)); }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 90; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor__dot { width: 6px; height: 6px; background: var(--ink); }
  .cursor__ring { width: 34px; height: 34px; border: 1.5px solid rgba(47, 91, 255, .45); transition: width .35s var(--ease), height .35s var(--ease), background .3s, border-color .3s; }
  .cursor.is-hover .cursor__ring { width: 62px; height: 62px; background: rgba(47, 91, 255, .08); border-color: var(--blue); }
}

/* =========================================================
   LOADER
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); transition: opacity .6s var(--ease), visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 18px; width: min(240px, 70vw); }
.loader__logo { width: 130px; height: auto; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.loader__bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--violet)); transition: width .25s var(--ease); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; z-index: 60; top: 14px; left: 50%; translate: -50% 0;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 6px 6px 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: translate .5s var(--ease);
}
.nav.hide { translate: -50% -150%; }
.nav__logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav__mark { width: auto; height: 34px; flex: none; transition: transform .5s var(--spring); }
.nav__logo:hover .nav__mark { transform: scale(1.08); }
.nav__name { font-family: var(--f-display); font-weight: 800; letter-spacing: .01em; color: var(--ink); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:hover { color: var(--ink); background: rgba(15, 20, 40, .05); }
.nav__links a.active { color: var(--blue); background: var(--blue-soft); }
.nav__more, .nav__menu-cta { display: none; }   /* phone/tablet menu only */
.nav__cta { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--ink); color: #fff; white-space: nowrap; }
.nav__cta-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 4px rgba(62, 224, 143, .25); }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(15, 20, 40, .05); position: relative; cursor: pointer; flex: none; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
body.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* =========================================================
   BUTTONS / TAGS / HEADINGS
   ========================================================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 0; cursor: pointer;
  transition: box-shadow .35s, background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 10px 30px -8px rgba(47, 91, 255, .55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover { box-shadow: 0 16px 40px -8px rgba(47, 91, 255, .7), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn--white { background: #fff; color: var(--ink); }
.btn--outline-light { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }

.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); }
.tag--light { background: rgba(255,255,255,.12); color: #c9d4ff; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 0; color: var(--ink); }
/* one-line headings: sized down so the whole sentence fits on one line on laptops and desktops */
.h2--line { font-size: 24px; line-height: 1.15; }
@media (max-width: 380px) { .h2--line { font-size: 22px; } }
/* 600px and up: always one line — the size follows the available width (the sentence is ~22.5em wide) */
@media (min-width: 601px) { .h2--line { white-space: nowrap; font-size: min(42px, calc((100vw - 2 * var(--gutter)) / 23.5)); } }
.section__sub { color: var(--muted); font-size: 16px; max-width: 58ch; margin: 18px 0 0; }
.section__sub b { color: var(--ink); }

/* Pointer spotlight */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 255, .09), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before { opacity: 1; }

.ico { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; }
.ico svg { width: 100%; height: 100%; }

/* =========================================================
   IMAGE FIT: shows the whole image without cropping;
   a blurred copy fills any leftover space so nothing looks empty.
   ========================================================= */
.fit { position: relative; overflow: hidden; background: var(--bg-soft); isolation: isolate; }
.fit__bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(24px) saturate(1.2); opacity: .55; z-index: -1; }
.fit__img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  /* leaves ~200px at the bottom so the logo strip peeks into the first screen */
  position: relative; min-height: calc(100vh - 230px); min-height: calc(100svh - 230px); max-width: var(--max); margin: 0 auto;
  padding: 100px var(--gutter) 24px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.hero__title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 5vw, 72px); line-height: .98; letter-spacing: -.045em; color: var(--ink); }
.hero__line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__line--sm { font-family: var(--f-mono); font-weight: 600; font-size: .3em; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: .4em; }
.split { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); }
body.ready .split { transform: none; }
.hero__line:nth-child(2) .split { transition-delay: .08s; }
.hero__line:nth-child(3) .split { transition-delay: .16s; }
.hero__role { margin: 26px 0 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--text); font-weight: 500; min-height: 1.6em; }
.hero__role-k { color: var(--dim); font-size: .8em; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lede { color: var(--muted); max-width: 52ch; margin: 14px 0 30px; font-size: clamp(15px, 1.3vw, 17px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; gap: 34px; flex-wrap: wrap; }
.hero__facts li { display: grid; }
.hero__facts b { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; color: var(--ink); line-height: 1.1; }
.hero__facts li > span { font-size: 13px; color: var(--muted); }
.hero-in { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
body.ready .hero-in { opacity: 1; transform: none; }
body.ready .hero-in:nth-child(4) { transition-delay: .25s; } body.ready .hero-in:nth-child(5) { transition-delay: .32s; }
body.ready .hero-in:nth-child(6) { transition-delay: .4s; } body.ready .hero-in:nth-child(7) { transition-delay: .48s; }

/* Hero visual: globe behind, character in front */
.hero__visual { position: relative; width: 100%; max-width: min(480px, calc(100vh - 340px)); max-width: min(480px, calc(100svh - 340px)); aspect-ratio: 1 / 1.08; justify-self: center; }
/* the canvas is ~30% larger than the sphere so the arcs and orbit ring are never cut at its edges */
.globe { position: absolute; left: 50%; top: 46%; width: 120%; aspect-ratio: 1; translate: -50% -50%; cursor: grab; touch-action: pan-y; }
.globe.dragging { cursor: grabbing; }
.globe canvas { width: 100%; height: 100%; display: block; }
.hero__glow { position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 91, 255, .16), transparent 65%); filter: blur(10px); }
.persona { position: absolute; inset: 4% 8% 0; pointer-events: none; }
.persona img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; opacity: 0; filter: drop-shadow(0 26px 30px rgba(20, 30, 90, .22)); will-change: transform, opacity; }
.persona img.on { opacity: 1; }
.persona::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(ellipse, rgba(20, 30, 90, .22), transparent 70%); filter: blur(4px); z-index: -1; }
.float-card {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255,255,255,.88);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: bob 6s ease-in-out infinite; pointer-events: none; white-space: nowrap;
}
.float-card > .ico { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
/* colourful gradient icon tiles for the three role cards */
.float-card > .ico--ent, .float-card > .ico--hack, .float-card > .ico--inf { color: #fff; }
.float-card > .ico--ent { background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 8px 18px -8px var(--violet); }
.float-card > .ico--hack { background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 8px 18px -8px var(--cyan); }
.float-card > .ico--inf { background: linear-gradient(135deg, #ff3355, var(--violet)); box-shadow: 0 8px 18px -8px #ff3355; }
.float-card b { display: block; font-size: 14px; color: var(--ink); line-height: 1.2; }
.float-card small { font-size: 11px; color: var(--muted); }
.float-card--a { top: 10%; left: -4%; }
.float-card--b { top: 44%; right: -6%; animation-delay: -2s; }
.float-card--c { bottom: 12%; left: -2%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-12px); } }


/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: 16px 0; background: var(--ink); margin: clamp(64px, 8vw, 96px) 0 0; }
.marquee__track { display: flex; align-items: center; gap: 30px; width: max-content; will-change: transform;
  -webkit-animation: marquee-slide 38s linear infinite; animation: marquee-slide 38s linear infinite; }
.marquee span { font-family: var(--f-display); font-weight: 700; font-size: clamp(17px, 2vw, 26px); white-space: nowrap; color: #fff; }
.marquee i { font-style: normal; color: #8ea6ff; }
/* explicit from/to + translate3d: Safari can skip a "to"-only transform animation */
@-webkit-keyframes marquee-slide { from { -webkit-transform: translate3d(0, 0, 0); } to { -webkit-transform: translate3d(-50%, 0, 0); } }
@keyframes marquee-slide { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* =========================================================
   SECTIONS / CARDS
   ========================================================= */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 8vw, 96px) var(--gutter) 0; }
.section__head { margin-bottom: clamp(24px, 3.6vw, 40px); text-align: center; }
.section__head .section__sub { margin-inline: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* About: open profile layout (picture + text + one slim stats row, no boxes) */
/* text and cartoon sit as one centred pair, so the picture stays right beside the paragraphs */
.about { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 460px); justify-content: center; gap: clamp(24px, 3vw, 40px); align-items: center; }
.about__art { position: relative; width: 100%; max-width: 460px; aspect-ratio: 3 / 4; justify-self: start; order: 2; }
.about__art::before { content: ""; position: absolute; left: 50%; top: 52%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 91, 255, .16), rgba(123, 77, 255, .08) 45%, transparent 70%); }
.about__art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -1%; height: 6%; border-radius: 50%; background: radial-gradient(ellipse, rgba(20, 30, 90, .2), transparent 70%); filter: blur(4px); }
.about__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; z-index: 1; filter: drop-shadow(0 22px 26px rgba(20, 30, 90, .18)); }
.about__text p { margin: 0 0 14px; color: var(--muted); max-width: 60ch; }
.about__text .about__lead { font-weight: 400; font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.65; color: var(--ink); margin-bottom: 16px; }
.about__lead strong { color: var(--blue); font-weight: 600; }
.about__text .about__now { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--muted); max-width: none; }
.about__now b { color: var(--ink); font-weight: 600; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--line); }
.about__stats div { padding: 18px 16px 0 0; display: grid; gap: 4px; align-content: start; }
.about__stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.about__stats b { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.about__stats span { font-size: 13px; color: var(--muted); line-height: 1.4; }

@keyframes sweep { to { transform: rotate(360deg); } }

/* Community: featured YouTube creator card + slim platform rows */
.creator { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; }
.cr-yt {
  position: relative; overflow: hidden; display: grid; align-content: start; justify-items: start;
  grid-template-columns: minmax(0, 1fr) clamp(160px, 15vw, 215px);
  grid-template-areas: "badge art" "num art" "label art" "topics art" "cta art" "handle art";
  padding: clamp(22px, 2.6vw, 32px); padding-bottom: 0;
  background: radial-gradient(120% 90% at 100% 100%, #ffe9ed, transparent 60%), var(--card);
  transition: box-shadow .45s;
}
.cr-yt:hover { box-shadow: var(--shadow-lg); }
.cr-yt__badge { grid-area: badge; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff0f2; color: #d1002a; font-weight: 600; font-size: 14px; }
.cr-yt__badge .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #ff0033; color: #fff; }
.cr-yt__num { grid-area: num; margin-top: 18px; font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 5vw, 64px); line-height: 1; letter-spacing: -.045em; color: var(--ink); }
.cr-yt__label { grid-area: label; margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cr-yt__topics { grid-area: topics; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.cr-yt__topics span { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.cr-yt__cta { grid-area: cta; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cr-yt__cta .btn { min-height: 44px; padding: 0 16px; gap: 8px; font-size: 13.5px; }
.cr-yt__handle { grid-area: handle; margin: 14px 0 clamp(22px, 2.6vw, 32px); font-size: 11.5px; color: var(--dim); }
.cr-yt__art { grid-area: art; align-self: center; justify-self: stretch; position: relative; height: clamp(250px, 24vw, 310px); margin: 0 -8px clamp(22px, 2.6vw, 32px) 0; }
.cr-yt__art::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 230px; height: 230px; translate: -50% 20%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 0, 51, .14), transparent 65%); }
.cr-yt__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .6s var(--ease); }
.cr-yt:hover .cr-yt__art img { transform: translateY(-6px); }

.cr-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.cr-row { --c: var(--blue); display: flex; align-items: center; gap: 16px; padding: 16px 18px; min-width: 0; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.cr-row:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: var(--line-2); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.cr-row__icon { width: 46px; height: 46px; padding: 12px; border-radius: 14px; flex: none; color: #fff; background: var(--c); box-shadow: 0 10px 22px -10px var(--c); }
.cr-row__text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.cr-row__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cr-row__top b { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.cr-row__top b b { font-size: inherit; }
.cr-row__top > span { font-size: 14px; font-weight: 600; color: var(--ink); }
.cr-row small { font-family: var(--f-mono); font-size: 11.5px; color: var(--dim); overflow-wrap: anywhere; }
.cr-row--gh small { color: var(--blue); }
.cr-row__go { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s; }
.cr-row:hover .cr-row__go { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.cr-row--ig { --c: #d62976; }
.cr-row--ig .cr-row__icon { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.cr-row--li { --c: #0a66c2; }
.cr-row--gh { --c: #24292f; }
.cr-short { display: none; }

/* Follow / share line: light strip of clickable brand pills, moving left to right; pauses on hover */
.act-line { position: relative; z-index: 2; overflow: hidden; margin: clamp(40px, 5vw, 64px) 0 0; padding: 14px 0;
  background: rgba(255, 255, 255, .75); border-block: 1px solid var(--line); }
.act-line__track { display: flex; align-items: center; gap: 18px; width: max-content; padding-inline: 9px; will-change: transform; }
.act-line i { font-style: normal; color: var(--dim); font-size: 12px; }
.act { --c: var(--violet); --g: linear-gradient(135deg, var(--blue), var(--violet)); display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px; white-space: nowrap;
  font: 600 14px/1 var(--f-body, inherit); color: var(--ink); background: var(--card); border: 1px solid var(--line-2); cursor: pointer;
  transition: transform .35s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .35s; }
/* each pill wears its platform's own colour (--c for glow, --g for fill); Share keeps the site gradient */
.act--yt { --c: #ff0033; --g: #ff0033; }
.act--ig { --c: #d62976; --g: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.act--li { --c: #0a66c2; --g: #0a66c2; }
.act--gh { --c: #24292f; --g: #24292f; }
.act__ico { width: 32px; height: 32px; padding: 7px; border-radius: 50%; color: #fff; background: var(--g); flex: none; transition: background .3s, color .3s; }
.act:hover, .act:focus-visible { transform: translateY(-3px); background: var(--g); border-color: transparent; color: #fff; box-shadow: 0 12px 26px -12px var(--c); }
.act:hover .act__ico, .act:focus-visible .act__ico { background: rgba(255, 255, 255, .22); }

/* small confirmation message (e.g. "Link copied") */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s, translate .3s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }


.btn--yt { background: #ff0033; color: #fff; box-shadow: 0 10px 28px -8px rgba(255, 0, 51, .55); flex: none; }
.btn--yt:hover { box-shadow: 0 14px 36px -8px rgba(255, 0, 51, .7); }


/* Ventures */
/* Experience: "Now" slim cards + "Earlier" small tiles */
.vt-label { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.vt-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ventures + .vt-label { margin-top: 26px; }
.ventures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.venture { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.venture:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(47, 91, 255, .25); }
.venture__mark { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--blue); background: var(--blue-soft); }
.venture:nth-child(3n+2) .venture__mark { color: var(--violet); background: #f2edff; }
.venture:nth-child(3n) .venture__mark { color: #0090ad; background: #e3f8fc; }
.venture__body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.venture h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.venture__meta { font-size: 13px; color: var(--muted); }
.venture__meta .mono { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.live { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #e8faf0; color: #067647; font-size: 12px; font-weight: 600; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.past-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.past-tile { display: grid; gap: 3px; align-content: start; padding: 14px 16px; min-width: 0; transition: transform .45s var(--ease), box-shadow .45s; }
.past-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.past-tile b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.past-tile span { font-size: 12.5px; color: var(--muted); }
.past-tile i { font-style: normal; font-size: 11px; color: var(--dim); margin-top: 4px; }

/* Expertise: one card, five clean rows — area on the left, skills as plain dotted text on the right */
.skl { padding: 6px clamp(10px, 1.6vw, 18px); }
.skl__row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 12px 32px; align-items: center; padding: 20px 14px; border-radius: 14px; position: relative; transition: background .3s; }
.skl__row + .skl__row::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--line); }
.skl__row:hover { background: rgba(47, 91, 255, .045); }
.skl__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.skl__ico { flex: none; width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 8px 18px -10px var(--violet); transition: transform .45s var(--spring); }
.skl__row:nth-child(2n) .skl__ico { background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 8px 18px -10px var(--cyan); }
.skl__row:hover .skl__ico { transform: rotate(-8deg) scale(1.08); }
.skl__head h3 { margin: 0; font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.skl__head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.skl__list { margin: 0; font-size: 14px; line-height: 1.9; color: var(--ink); }
.skl__list span { white-space: nowrap; }
.skl__list i { font-style: normal; color: var(--blue); opacity: .45; margin: 0 5px; }


/* Research & reach: compact trust banner with two endless logo strips moving in opposite directions */
.section--trust { padding-top: 8px; }
.trust__label { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 clamp(14px, 2vw, 20px); font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.trust__label i { font-style: normal; color: var(--blue); }
.trust__label::before, .trust__label::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.trust__label::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.strips { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.6vw, 28px); }
.strip { min-width: 0; } /* stops the long logo track from stretching the column */
.strip__label { display: flex; align-items: baseline; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.strip__label .mono { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.strip__label b { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--ink); }
/* CVEs: terminal on the left, a big count on the right (stacked on phones, count first) */
.cvewrap { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 24px); align-items: stretch; }
.cvestat { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(22px, 2.8vw, 30px); border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 24px 50px -22px rgba(91, 77, 255, .7); }
.cvestat::after { content: ""; position: absolute; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); pointer-events: none; }
.cvestat__top { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.cvestat__ico { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .16); }
.cvestat__ico svg { width: 25px; height: 25px; }
.cvestat__num { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.cvestat__top small { display: block; margin-top: 5px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
/* disclosure steps, joined by a line */
.cvestat__flow { position: relative; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cvestat__flow::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: rgba(255, 255, 255, .22); }
.cvestat__flow li { position: relative; display: flex; align-items: center; gap: 14px; }
.cvestat__flow i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 6px 16px -6px rgba(20, 20, 80, .5); }
.cvestat__flow li:last-child i { background: #4ade80; color: #0b3d1e; }
.cvestat__flow i svg { width: 17px; height: 17px; }
.cvestat__flow span { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .8); }
.cvestat__flow b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
/* the terminal window, with bright, high-contrast text */
.term { margin: 0; border-radius: 20px; overflow: hidden; background: #0b0d12; border: 1px solid #232838; box-shadow: var(--shadow); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: #171b26; border-bottom: 1px solid #232838; }
.term__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.term__bar i:nth-child(2) { background: #febc2e; }
.term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 13px; color: #c3c9d6; }
.term__body { padding: clamp(20px, 3vw, 30px) clamp(18px, 3.4vw, 34px); font-family: var(--f-mono); font-size: clamp(14px, 1.6vw, 18px); line-height: 2.1; color: #f4f6fb; }
.term__body p { margin: 0; max-width: none; }
.term__body b { font-weight: 600; color: #60a5fa; }
.term__cmd b, .term__done { color: #4ade80 !important; }
.term__cmd { color: #ffffff; }
.term .cve { display: inline-flex; align-items: baseline; gap: 14px; color: #ffffff; font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: color .25s, text-decoration-color .25s; }
.term .cve span { font-size: .8em; font-weight: 500; color: #93b4ff; }
.term .cve:hover, .term .cve:focus-visible { color: #93b4ff; text-decoration-color: #93b4ff; }
.term__done { margin-top: 6px !important; font-weight: 600; }
.term__cursor { display: inline-block; width: .55em; height: 1.1em; margin-left: 8px; vertical-align: -3px; background: #f4f6fb; animation: termBlink 1s steps(1) infinite; }
@keyframes termBlink { 50% { opacity: 0; } }
/* typing: each line appears in turn (main.js sets --d per line and adds .is-on when the window is in view) */
.term.is-typing .term__body p { opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease; transition-delay: var(--d, 0s); }
.term.is-typing.is-on .term__body p { opacity: 1; transform: none; }
/* phones and small tablets: the blue box first, the terminal below it */
@media (max-width: 860px) {
  .cvewrap { grid-template-columns: minmax(0, 1fr); }
  .cvestat { order: -1; }
}
@media (max-width: 600px) {
  .cvestat { border-radius: 16px; padding: 22px; }
  .cvestat__num { font-size: 30px; }
  /* fill the width: the steps become a horizontal tracker (icons on one line, short labels below),
     and "cve.org ↗" is pushed to the right edge of each terminal line */
  .cvestat { gap: 20px; }
  .cvestat__flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .cvestat__flow::before { left: 12.5%; right: 12.5%; top: 17px; bottom: auto; width: auto; height: 2px; }
  .cvestat__flow li { flex-direction: column; gap: 9px; text-align: center; }
  .cvestat__flow i { position: relative; z-index: 1; }
  .cvestat__flow span { font-size: 0; }
  .cvestat__flow b { font-size: 12.5px; line-height: 1.3; }
  .term__line { display: flex; align-items: baseline; gap: 10px; }
  .term .cve { flex: 1; justify-content: space-between; }
  .term { border-radius: 16px; }
  .term__bar { padding: 13px 18px; }
  .term__body { padding: 20px 18px; font-size: 13.5px; line-height: 2; }
  .term .cve { gap: 10px; }
}
/* small phones (under 375px): slightly smaller terminal text so the command stays on one line */
@media (max-width: 374px) {
  .term__body { padding-inline: 16px; font-size: 12.5px; }
  /* YouTube card buttons keep their text on one line */
  .cr-yt__cta .btn { padding: 0 8px; gap: 6px; font-size: 12.5px; }
}
/* Full screen width, centred on the page (--vw = window width without the scrollbar, set in main.js) */
.strip__viewport { overflow: hidden; width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); padding: 8px 0 14px; }
.strip__track { display: flex; gap: 12px; width: max-content; padding-inline: 7px; will-change: transform; }
/* Moving lines are driven by main.js: they glide on their own and can be dragged or flicked.
   pan-y keeps normal vertical page scrolling when a finger starts on them. */
.strip__viewport, .act-line, .slides__row { touch-action: pan-y; cursor: grab; }
.strip__viewport.is-dragging, .act-line.is-dragging, .slides__row.is-dragging { cursor: grabbing; }
.strip__track, .act-line__track, .slides__track { user-select: none; -webkit-user-select: none; }
.strip__track img, .slides__track img { -webkit-user-drag: none; }
.is-dragging .org, .is-dragging .slide, .is-dragging .act { pointer-events: none; }
.org { flex: none; width: 156px; height: 112px; display: grid; grid-template-rows: 1fr auto; gap: 6px; padding: 12px 12px 10px; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; }
.org:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(47, 91, 255, .3); }
.org__logo { display: grid; place-items: center; min-height: 0; }
.org__logo img { max-width: 92%; max-height: 40px; width: auto; height: auto; object-fit: contain; }
.org__logo b { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); text-align: center; }
/* long names wrap (up to 3 lines) instead of being cut with "…" */
.org__name { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; text-wrap: balance; }
.org--inst { width: 144px; }
.org--inst .org__logo img { max-height: 46px; }

/* Credentials */
.certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; perspective: 1000px; }
.cert { position: relative; overflow: hidden; padding: 0; cursor: zoom-in; transform-style: preserve-3d; transition: box-shadow .3s; }
.cert:hover { box-shadow: var(--shadow-lg); }
.cert .fit { aspect-ratio: 1.27; background: #fff; }
.cert:hover .fit__img { transform: scale(1.04); }
.cert__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(47, 91, 255, .1), transparent 50%); opacity: 0; transition: opacity .3s; }
.cert:hover .cert__shine { opacity: 1; }

/* Honours: a justified row; each card grows by its image ratio (--r), so all share one height and show the full image */
.honours { display: flex; flex-wrap: wrap; gap: 8px 16px; } /* the 0-height break line adds the second 8px */
.honours__break { flex-basis: 100%; height: 0; }
@media (min-width: 1081px) { .honours__break { display: none; } }   /* laptops/desktops: all four in one compact row */
.honour { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); overflow: hidden; cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s; }
.honour:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.honour .fit { height: 100%; }
.honour:hover .fit__img { transform: scale(1.04); }

/* Speaking */
/* Guest speaker: one full-width line of photo slides (moved by main.js; hover pauses, drag to browse) */
.slides { display: grid; gap: 14px; width: var(--vw, 100vw); margin-left: calc(50% - var(--vw, 100vw) / 2); }
.slides__row { overflow: hidden; padding: 6px 0 10px; }
.slides__track { display: flex; gap: 14px; width: max-content; padding-inline: 7px; will-change: transform; }
.slide { --h: 210px; flex: none; height: var(--h); width: calc(var(--h) * var(--r, 1.43)); padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); cursor: zoom-in; transition: transform .45s var(--ease), box-shadow .45s; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg-soft); transition: transform .8s var(--ease); }
.slide:hover, .slide:focus-visible { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.slide:hover img { transform: scale(1.05); }

/* Education + beyond */
.records { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.records__col { padding: 22px; }
.records__title { margin: 0 0 8px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--blue); }
.row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span { font-size: 14px; }
.row span b { display: block; color: var(--ink); font-weight: 600; }
.row span small { color: var(--muted); font-size: 13px; }
.row i { font-style: normal; font-family: var(--f-mono); font-size: 12px; color: var(--dim); white-space: nowrap; padding-top: 3px; }
.beyond { position: relative; overflow: hidden; display: flex; flex-direction: column; }
/* Education timeline: grey track, gradient fill that grows on scroll, a dot per degree */
.edu { position: relative; list-style: none; margin: 14px 0 0; padding: 0 0 0 30px; display: grid; gap: 14px; }
.edu::before, .edu__fill { content: ""; position: absolute; left: 7px; top: 10px; bottom: 26px; width: 2px; border-radius: 2px; }
.edu::before { background: var(--line); }
.edu__fill { background: linear-gradient(var(--blue), var(--violet), var(--cyan)); transform-origin: top; z-index: 1; }
.edu__item { position: relative; display: grid; justify-items: start; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.edu__item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: rgba(47, 91, 255, .25); }
.edu__dot { position: absolute; left: -30px; top: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); z-index: 2; }
.edu__item:nth-child(3) .edu__dot { border-color: var(--violet); }
.edu__item:nth-child(4) .edu__dot { border-color: #7b6dff; }
.edu__item:nth-child(5) .edu__dot { border-color: var(--cyan); }
.edu__year { font-size: 11.5px; color: var(--blue); background: var(--blue-soft); padding: 2px 9px; border-radius: 999px; }
.edu__t { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.edu__t .ico { width: 26px; height: 26px; padding: 5px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); }
.edu__i { font-size: 13.5px; color: var(--muted); }
.edu__score { margin-top: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: #067647; background: #e8faf0; }
.edu__item--top { background: linear-gradient(135deg, rgba(47, 91, 255, .06), rgba(123, 77, 255, .06)); border-color: rgba(47, 91, 255, .2); }

/* computers: the full-width timeline runs horizontally, the line filling left to right */
@media (min-width: 901px) {
  .edu { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 34px 0 0; gap: 14px; }
  .edu::before, .edu__fill { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .edu__fill { transform-origin: left; }
  .edu__dot { left: 16px; top: -34px; }
  .edu__item { align-content: start; }
  .edu__item:hover { transform: translateY(-4px); }
}

/* Hobbies: one slim row of gradient icon tiles */
.hobbies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.hobby { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 14px; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s; }
.hobby:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hobby i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-style: normal; flex: none; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 8px 18px -10px var(--violet); }
.hobby:nth-child(2) i { background: linear-gradient(135deg, var(--cyan), var(--blue)); box-shadow: 0 8px 18px -10px var(--cyan); }
.hobby:nth-child(3) i { background: linear-gradient(135deg, var(--violet), #b44dff); }
.hobby i svg { width: 20px; height: 20px; }

/* Contact */
.contact { padding-bottom: clamp(60px, 8vw, 110px); }
.contact__card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 20px;
  border-radius: 28px; padding: clamp(24px, 4vw, 48px); color: #fff;
  background: radial-gradient(ellipse at 90% 10%, rgba(123, 77, 255, .55), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(0, 184, 217, .35), transparent 50%), #0d1330;
  box-shadow: var(--shadow-lg);
}
.contact__title { color: #fff; font-size: clamp(34px, 4.6vw, 60px); }
.contact__text p { color: #b8c2e6; font-size: 16px; margin: 16px 0 0; }
.contact__mail { display: inline-block; margin-top: 18px; font-family: var(--f-mono); font-size: clamp(13px, 1.6vw, 16px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); overflow-wrap: anywhere; }
.contact__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.orbit { position: relative; width: min(280px, 100%); aspect-ratio: 1; justify-self: center; --r: 112px; }
.orbit__core { position: absolute; inset: 25%; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 0 60px rgba(123, 77, 255, .6); animation: breathe 3s ease-in-out infinite; }
/* the whole figure fits inside the circle (head to shoes), sitting slightly above the bottom edge */
.orbit__core img { position: absolute; left: 50%; bottom: 5%; height: 88%; width: auto; max-width: none; translate: -50% 0; filter: drop-shadow(0 6px 10px rgba(10, 10, 40, .35)); }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.22); }
.orbit__ring--1 { inset: 10%; animation: sweep 40s linear infinite; }
.orbit__ring--2 { inset: 22%; border-style: solid; border-color: rgba(255,255,255,.1); }
.orbit__spin { position: absolute; inset: 0; animation: sweep 22s linear infinite; }
.orbit:hover .orbit__spin, .orbit:hover .orbit__item .ico { animation-play-state: paused; }
.orbit__item {
  position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .3s, box-shadow .3s, scale .35s var(--spring);
}
.orbit__item .ico { width: 20px; height: 20px; animation: sweep 22s linear infinite reverse; }
.orbit__item:hover { scale: 1.2; }
.orbit__item--yt:hover { background: #ff0033; box-shadow: 0 0 30px #ff0033; }
.orbit__item--ig:hover { background: #d62976; box-shadow: 0 0 30px #d62976; }
.orbit__item--li:hover { background: #0a66c2; box-shadow: 0 0 30px #0a66c2; }
.orbit__item--gh:hover { background: #24292f; box-shadow: 0 0 30px rgba(255,255,255,.4); }

.footer { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.footer__top { display: grid; grid-template-columns: 1.3fr 1.2fr auto; gap: 32px; align-items: start; padding: 40px 0 32px; border-top: 1px solid var(--line); }
.footer__brand p { margin: 14px 0 10px; color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer__mail { font-family: var(--f-mono); font-size: 13px; color: var(--blue); overflow-wrap: anywhere; }
.footer__mail:hover { text-decoration: underline; }
.footer__links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 28px; justify-content: start; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--muted); transition: color .3s, border-color .3s, transform .35s var(--spring); }
.footer__social a .ico { width: 18px; height: 18px; }
.footer__social a:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.footer__bottom a:hover { color: var(--ink); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 64px 16px; background: rgba(11, 13, 18, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.lb.open { opacity: 1; visibility: visible; }
.lb__img { max-width: min(1100px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 14px; box-shadow: 0 40px 80px rgba(0,0,0,.4); transform: scale(.96); transition: transform .45s var(--ease), opacity .25s; }
.lb.open .lb__img { transform: none; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: background .3s; }
.lb button:hover { background: rgba(255,255,255,.22); }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb__next { right: 14px; top: 50%; translate: 0 -50%; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-family: var(--f-mono); font-size: 12px; color: #c9d1d9; }

/* Reveal (driven by GSAP; CSS fallback state) */
.reveal:not(.in) { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1 !important; transform: none !important; }

/* =========================================================
   LARGE TABLET / SMALL LAPTOP
   ========================================================= */
@media (max-width: 1180px) {
  .float-card--a { left: 0; } .float-card--b { right: 0; } .float-card--c { left: 2%; }
}

/* =========================================================
   TABLET (iPad)
   ========================================================= */
@media (max-width: 1080px) {
  .creator { grid-template-columns: 1fr; }
  .cr-list { grid-template-rows: none; }
  .skl__row { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 10px 22px; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert:last-child { grid-column: span 2; }
  .cert:last-child .fit { aspect-ratio: 16 / 7; }
  /* About stacks on tablets: picture on top, then one centred text column the same width as its stats */
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about__art { max-width: 300px; order: -1; justify-self: center; }
  .about__text { width: 100%; max-width: 640px; justify-self: center; }
  .about__text p { max-width: none; }
}

/* Nav: the full link row needs ~1060px, so narrower screens use the menu button */
@media (max-width: 1200px) {
  .nav__burger { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute; left: auto; right: 0; width: min(360px, 100%); top: calc(100% + 10px); flex-direction: column; gap: 2px; padding: 10px; border-radius: 24px;
    background: rgba(255,255,255,.97); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav__links a { padding: 14px 16px; font-size: 18px; font-weight: 600; color: var(--ink); border-radius: 14px; }
  body.menu-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links { max-height: calc(100vh - 100px); max-height: calc(100svh - 100px); overflow-y: auto; }
  .nav__links .nav__more { display: block; }
  .nav__links .nav__menu-cta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 8px; background: var(--ink); color: #fff; }
  .nav__links .nav__menu-cta:hover { background: var(--ink); color: #fff; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 28px; text-align: center; }
  .hero__visual { order: -1; max-width: 400px; }
  .eyebrow { margin-bottom: 18px; }
  .hero__lede { margin-inline: auto; }
  .hero__actions, .hero__facts { justify-content: center; }

  .ventures { grid-template-columns: 1fr; }
  .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .records { grid-template-columns: 1fr; }
  .contact__card { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-column: 1 / -1; }
  .orbit { width: min(260px, 80%); --r: min(104px, 30vw); }
}

/* =========================================================
   PHONE
   ========================================================= */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .nav { top: 10px; }
  .hero { gap: 24px; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 32px; }
  .hero__facts b { font-size: 20px; }
  .hero__facts li > span { font-size: 11.5px; line-height: 1.35; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-card { padding: 7px 10px 7px 7px; gap: 8px; border-radius: 13px; }
  .float-card > .ico { width: 28px; height: 28px; padding: 6px; }
  .float-card b { font-size: 12px; }
  .float-card small { font-size: 10px; }
  .float-card--a { top: 6%; } .float-card--c { bottom: 16%; }
  /* the soft background colour blobs stay put on phones: same look, less GPU and battery work */
  .blob { animation: none; }
  /* About on phones: no cartoon (the hero already shows one; display:none also skips its download),
     one centred column, the "Currently" line as a soft rounded box, stats centred */
  .about__art { display: none; }
  .about__text { text-align: center; }
  .about__text .about__now { flex-wrap: wrap; justify-content: center; gap: 4px 8px; padding: 10px 16px; border-radius: 16px; font-size: 12.5px; }
  .about__stats div, .about__stats div + div { padding: 18px 6px 0; justify-items: center; }
  .about__stats b { font-size: 28px; }
  .about__stats span { font-size: 12px; }
  /* Community on phones: number + label hug beside a larger cartoon, one row of buttons, platforms as 3 tiles */
  #community .section__sub { font-size: 14px; }
  .creator { gap: 10px; }
  .cr-yt { grid-template-columns: minmax(0, 1fr) 148px; grid-template-areas: "badge badge" "num art" "label art" "topics topics" "cta cta"; padding: 18px; }
  .cr-yt__badge { font-size: 13px; }
  .cr-yt__num { font-size: 46px; margin-top: 0; align-self: end; }
  .cr-yt__label { margin-top: 4px; font-size: 13.5px; line-height: 1.4; align-self: start; }
  .cr-yt__art { height: 176px; margin: 6px -10px 0 0; align-self: center; }
  .cr-yt__art::before { width: 160px; height: 160px; }
  /* topics as an even 2 x 2 grid, so both rows end in line */
  .cr-yt__topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-self: stretch; margin-top: 12px; gap: 6px; }
  .cr-yt__topics span { font-size: 12px; padding: 7px 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cr-yt__cta { width: 100%; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
  .cr-yt__cta .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; white-space: nowrap; }
  .cr-long, .cr-yt__handle { display: none; }
  .cr-short { display: inline; }
  .cr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .cr-row { position: relative; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 16px 6px 14px; }
  .cr-row:hover { transform: translateY(-4px); }
  .cr-row__icon { width: 40px; height: 40px; padding: 10px; border-radius: 12px; }
  .cr-row__text { flex: none; }
  .cr-row__top { flex-direction: column; align-items: center; gap: 4px; }
  .cr-row__top b { font-size: 19px; }
  .cr-row__top > span { font-size: 11.5px; font-weight: 500; color: var(--muted); }
  .cr-row small { display: none; }
  .cr-row__go { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; font-size: 11px; }
  .act-line { padding: 11px 0; }
  .act-line__track { gap: 12px; }
  .act { gap: 8px; padding: 5px 14px 5px 5px; font-size: 13px; }
  .act__ico { width: 28px; height: 28px; padding: 6px; }
  .skl { padding: 4px 8px; }
  .skl__row { grid-template-columns: 1fr; gap: 10px; padding: 16px 8px; }
  .skl__row + .skl__row::before { left: 8px; right: 8px; }
  .skl__ico { width: 38px; height: 38px; padding: 9px; border-radius: 11px; }
  .skl__head h3 { font-size: 16px; }
  .skl__list { font-size: 13.5px; line-height: 1.85; }
  .skl__list i { margin: 0 3px; }
  .trust__label { flex-direction: column; gap: 2px; font-size: 11px; }
  .trust__label::before, .trust__label::after, .trust__label i { display: none; }
  .org { width: 132px; height: 104px; padding: 10px 8px 8px; }
  .org__logo img { max-height: 34px; }
  .org__logo b { font-size: 16px; }
  .org--inst { width: 142px; }
  .org--inst .org__logo img { max-height: 40px; }
  .strip__track { gap: 10px; }
  .certs { grid-template-columns: 1fr; }
  .honours { flex-wrap: wrap; gap: 10px; }
  .honour { order: var(--o); }
  .honour--wide { flex-basis: 100%; }
  .honours__break { display: none; }
  .cert:last-child { grid-column: auto; }

  .cert:last-child .fit { aspect-ratio: 1.27; }
  .slides, .slides__track { gap: 10px; }
  .slide { --h: 140px; border-radius: 13px; }
  /* phones: full names wrap, date on its own line, "Active" becomes a green dot in the corner */
  .venture { position: relative; align-items: flex-start; padding: 12px 14px; gap: 12px; }
  .venture__mark { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }
  .venture h3 { white-space: normal; padding-right: 16px; }
  .venture__sep { display: none; }
  .venture__meta .mono { display: block; margin-top: 2px; }
  .live { position: absolute; top: 14px; right: 14px; padding: 0; font-size: 0; background: none; }
  .live::before { width: 8px; height: 8px; box-shadow: 0 0 0 4px #e8faf0; }
  .past-tile b { font-size: 13.5px; }
  .past-grid { gap: 10px; }
  .past-tile { padding: 12px 14px; }
  .hobbies { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hobby { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; font-size: 12.5px; line-height: 1.3; }
  .edu { padding-left: 26px; gap: 10px; }
  .edu__dot { left: -26px; width: 14px; height: 14px; }
  .edu::before, .edu__fill { left: 6px; }
  .edu__item { padding: 12px 14px; }
  .edu__t { font-size: 16px; }
  .edu__i { font-size: 13px; }
  .row { flex-direction: column; gap: 2px; }
  .contact__links .btn { flex: 1 1 100%; }
  .orbit__item { width: 42px; height: 42px; margin: -21px; }
  .lb { padding: 64px 8px; }
  .lb__prev, .lb__next { top: auto; bottom: 10px; translate: none; }
  .lb__cap { bottom: 24px; }
}

/* Touch screens of any size (phones, iPads): roomier footer links, ~44px tall, for thumbs */
@media (hover: none) {
  .footer__links { row-gap: 0; }
  .footer__links a { padding: 11px 0; }
  .footer__mail { display: inline-block; padding: 10px 0; }
  .footer__bottom a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* Footer on phones: one centred column; links in 3 even columns across the full width (~44px tall each);
   placed after the touch rules above so these win on phones */
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 24px; justify-items: center; text-align: center; }
  .footer__brand { display: grid; justify-items: center; }
  .footer__brand p { margin: 10px auto 2px; }
  .footer__links { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
  .footer__links a { flex: 0 0 33.333%; padding: 11px 4px; }   /* 3 per row; a short last row sits centred */
  .footer__social { grid-column: auto; justify-content: center; }
  .footer__social a { width: 44px; height: 44px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .footer__bottom a { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .split, .hero-in { opacity: 1 !important; transform: none !important; }
  /* still grid instead of moving strips */
  .strip__viewport { width: auto; margin-left: 0; cursor: auto; }
  .strip__track { width: auto; flex-wrap: wrap; justify-content: center; }
  .strip__track [aria-hidden="true"] { display: none; }
}
