/* ============================================================
   FONTS: self-hosted (latin subset), no third-party request.
   ============================================================ */
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display.woff2") format("woff2");
}
@font-face {
  font-family: "DM Serif Display";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/instrument-sans.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}

/* ============================================================
   TOKENS
   --ikb is the pigment (fields, footer, hovers): it never moves.
   --ikb-lift is its readable-as-text version, lifted in dark mode.
   ============================================================ */
:root {
  --ikb: #002fa7;
  --ikb-deep: #001f70;
  --ikb-lift: #002fa7;
  --red: #e4002b;
  --paper: #fbfbf9;
  --ink: #111114;
  --ink-soft: #5a5a63;
  --line: rgba(17, 17, 20, 0.14);
  --line-soft: rgba(17, 17, 20, 0.07);
  --nav-bg: rgba(251, 251, 249, 0.82);
  --scrim: rgba(0, 20, 70, 0.45);
  --card: #ffffff;
  --grain-op: 0.16;
  --grain-blend: overlay;
  --glow: 45%;
  --glow-up: 65%;
  --pin-shadow: rgba(15, 18, 30, 0.28);

  --display: "DM Serif Display", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --shell: 1160px;
  --gut: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ikb-lift: #5b86ff;
    --red: #ff3b5c;
    --paper: #0c0c0f;
    --ink: #f1f1ee;
    --ink-soft: #9494a0;
    --line: rgba(241, 241, 238, 0.16);
    --line-soft: rgba(241, 241, 238, 0.08);
    --nav-bg: rgba(12, 12, 15, 0.8);
    --scrim: rgba(0, 6, 24, 0.66);
    --card: #15151a;
    --grain-op: 0.1;
    --grain-blend: soft-light;
    --glow: 70%;
    --glow-up: 95%;
    --pin-shadow: rgba(0, 0, 0, 0.55);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* English visitors: wait for the translation, with a failsafe. */
html.i18n-pending body {
  opacity: 0;
  animation: failsafe 0s 1.2s forwards;
}
@keyframes failsafe {
  to {
    opacity: 1;
  }
}

a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
img {
  max-width: 100%;
}

::selection {
  background: var(--ikb);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

section[id],
article[id],
footer[id] {
  scroll-margin-top: 76px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html:not(.js) .js-only {
  display: none !important;
}

.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

/* Matte grain: IKB is a powdery pigment, not a flat digital fill */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: var(--grain-op);
  mix-blend-mode: var(--grain-blend);
}

kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  border: 1px solid currentColor;
  border-bottom-width: 2px;
  padding: 0 5px;
  border-radius: 3px;
  opacity: 0.85;
}

/* ============================================================
   NAV: transparent over the pigment field, glass on paper.
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}
.nav.on-hero {
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #fff;
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--nav-h);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-dot {
  color: var(--red);
}
.brand-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  white-space: nowrap;
}
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  opacity: 0.68;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}
.nav:not(.on-hero) .nav-links a:hover,
.nav:not(.on-hero) .nav-links a.active {
  color: var(--ikb-lift);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kbd-btn {
  display: inline-flex;
  gap: 3px;
  background: none;
  border: 1px solid transparent;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s;
}
.kbd-btn:hover {
  opacity: 1;
  border-color: currentColor;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.nav.on-hero .lang-switch button[aria-pressed="true"] {
  background: #fff;
  color: var(--ikb);
}
@media (max-width: 860px) {
  .nav-in {
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 12px;
  }
  .brand-sub {
    display: none;
  }
  .nav-tools {
    margin-left: auto;
  }
  .kbd-btn {
    display: none;
  }
  .nav-links {
    order: 3;
    flex: 1 0 100%;
    margin: 0 calc(var(--gut) * -1);
    padding: 0 var(--gut) 4px;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 11.5px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    white-space: nowrap;
    padding-block: 6px;
  }
  .nav-links a::after {
    bottom: 2px;
  }
}

/* ============================================================
   HERO: full-bleed IKB pigment field (WebGL over a CSS fallback).
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 90px));
  padding-bottom: clamp(26px, 4vh, 44px);
  isolation: isolate;
}
.hero-stage {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, #0a3cc4 0%, var(--ikb) 55%, var(--ikb-deep) 100%);
  will-change: clip-path;
}
.hero-stage .grain {
  --grain-op: 0.18;
  --grain-blend: overlay;
}
#pigment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  touch-action: pan-y;
}
#pigment.ready {
  opacity: 1;
}
.hero-in {
  position: relative;
}
.hero-cmd {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: clamp(10px, 1.6vw, 18px);
}
.hero-cmd b {
  font-weight: 400;
  color: var(--red);
}
.hero-type {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(54px, 13vw, 176px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  white-space: nowrap;
  color: #fff;
}
.hero-type .dot {
  color: var(--red);
}
.caret {
  display: inline-block;
  width: 0.5ch;
  height: 0.72em;
  margin-left: 0.14em;
  transform: translateY(0.06em);
  background: var(--red);
  box-shadow: 0 0 30px color-mix(in srgb, var(--red) 70%, transparent);
}
.hero.done .caret,
html:not(.js) .caret {
  animation: blink 1.8s var(--ease) infinite;
}
.hero-caption {
  margin-top: clamp(18px, 2.6vw, 30px);
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40ch;
}
.hero-name {
  font-weight: 600;
  color: #fff;
}
.hero-tagline {
  margin-top: 8px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.66);
  max-width: 52ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 34px);
}
/* The caption is there from the first paint (it is the page's largest
   text while the name types itself); the rest rises once typing ends. */
.js .hero-cta,
.js .proof {
  opacity: 0;
}
.hero.done .hero-cta {
  animation: rise 0.9s var(--ease) both;
}
.hero.done .proof {
  animation: rise 0.9s 0.12s var(--ease) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--mono);
  font-size: 13.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn .arr {
  color: var(--red);
  transition: transform 0.25s var(--ease);
}
.btn:hover .arr {
  transform: translate(2px, 2px);
}
.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}
.btn-ghost .arr {
  color: #fff;
}
.hero :focus-visible,
footer :focus-visible,
.feature :focus-visible {
  outline-color: #fff;
}

/* Proof strip: the numbers that say "someone" */
.proof {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(30px, 5vh, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.proof-item {
  padding: 16px 14px 0 0;
}
.proof-item + .proof-item {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.proof dt {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof dt small {
  font-family: var(--mono);
  font-size: 0.34em;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 2px;
}
.proof dt small:first-child {
  margin: 0 2px 0 0;
}
.proof dt small.star {
  font-size: 0.55em;
  vertical-align: 0.3em;
  color: #ffd166;
  margin-right: 4px;
}
.proof dd {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}
@media (max-width: 860px) {
  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proof-item,
  .proof-item + .proof-item {
    padding: 14px 12px 12px 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .proof-item:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
  .proof-item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}

.hero-scroll {
  position: absolute;
  right: var(--gut);
  bottom: clamp(26px, 4vh, 44px);
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}
.hero-scroll span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  background: var(--red);
  border-radius: 2px;
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 1100px) {
  .hero-scroll {
    display: none;
  }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.band {
  padding-block: clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.eyebrow .prompt {
  color: var(--ink-soft);
  margin-right: 4px;
}
.band-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -0.015em;
  line-height: 1.04;
}
.band-title .dot,
.rule-title .dot {
  color: var(--red);
}
.band-note {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 17px;
}
.band-head {
  margin-bottom: clamp(30px, 4vw, 48px);
}
.split-line {
  overflow: clip;
  padding-bottom: 0.06em;
}

.rule {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.rule-second {
  margin-top: clamp(48px, 6vw, 80px);
}
.rule-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.rule-note {
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1 1 auto;
  min-width: 0;
}
@media (max-width: 620px) {
  .rule {
    gap: 6px;
    padding-bottom: 14px;
  }
  .rule-note {
    flex-basis: 100%;
  }
}

/* Scroll reveals: only hidden when JS is there to reveal them. */
.js .io {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .io.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   01 · ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
  }
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 58ch;
}
.about-text p:first-child {
  font-size: 19px;
  color: var(--ink);
}
.about-text p strong {
  color: var(--ink);
  font-weight: 600;
}
.about-text p i {
  color: var(--ikb-lift);
}

.idcard {
  position: relative;
  border: 1px solid var(--line);
  padding: 24px 22px 10px;
  margin-top: 6px;
}
.idcard-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.idcard-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.idcard-row:last-child {
  border-bottom: 0;
}
.idcard dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.idcard dd {
  font-size: 15px;
}
.idcard dd small {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Die-cut paper pins: stacked white drop-shadows make the border. */
.pin {
  display: block;
  filter:
    drop-shadow(1.6px 0 0 #fff)
    drop-shadow(-1.6px 0 0 #fff)
    drop-shadow(0 1.6px 0 #fff)
    drop-shadow(0 -1.6px 0 #fff)
    drop-shadow(0 10px 16px var(--pin-shadow));
  user-select: none;
  -webkit-user-drag: none;
}
.pin-wrap {
  transform-origin: 50% 8%;
}
.pin-wrap:hover {
  animation: sway 0.9s var(--ease);
}
@keyframes sway {
  0% {
    rotate: 0deg;
  }
  30% {
    rotate: 2.4deg;
  }
  60% {
    rotate: -1.6deg;
  }
  80% {
    rotate: 0.8deg;
  }
  100% {
    rotate: 0deg;
  }
}
.pin-latios {
  position: absolute;
  top: -52px;
  right: -32px;
  width: clamp(92px, 10vw, 120px);
  z-index: 2;
  touch-action: none;
  cursor: grab;
}
.pin-latios.dragging {
  cursor: grabbing;
  animation: none;
}
.pin-latios .pin {
  width: 100%;
  height: auto;
  rotate: 7deg;
}
@media (max-width: 860px) {
  .pin-latios {
    top: -44px;
    right: -10px;
  }
}
.latios-fly {
  position: fixed;
  z-index: 400;
  width: 140px;
  pointer-events: none;
  left: 0;
  top: 0;
}
.latios-still {
  position: fixed;
  z-index: 400;
  width: 160px;
  pointer-events: none;
  right: 8vw;
  bottom: 16vh;
  rotate: 7deg;
}

/* ============================================================
   02 · FLAGSHIP: full IKB field
   ============================================================ */
.feature {
  position: relative;
  background: var(--ikb);
  background-image: radial-gradient(ellipse 80% 70% at 50% 30%, #0a3cc4 0%, var(--ikb) 55%, var(--ikb-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 130px);
}
.feature > .shell {
  position: relative;
  z-index: 1;
}
.feature .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}
.feature .eyebrow .prompt {
  color: rgba(255, 255, 255, 0.4);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
.feature-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}
.feature-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.feature-title .dot {
  color: var(--red);
}
.feature-sub {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
}
.feature-sub strong,
.feature-note strong {
  color: #fff;
  font-weight: 600;
}
.sec-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.sec-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
}
.sec-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7fffb0;
}
@media (max-width: 560px) {
  .sec-list {
    grid-template-columns: 1fr;
  }
}
.feature-note {
  margin-top: 20px;
  max-width: 58ch;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
}
.feature-note a {
  color: #fff;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 16px 22px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13.5px;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.cta span:last-child {
  color: var(--red);
  transition: transform 0.25s var(--ease);
}
.cta:hover {
  background: var(--ink);
  color: var(--paper);
}
.cta:hover span:last-child {
  transform: translate(2px, -2px);
}

/* The terminal: real, typed into. */
.term {
  --t-orange: #e8912d;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(2, 13, 48, 0.62);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 12.5px;
  box-shadow: 0 30px 80px rgba(0, 8, 40, 0.45);
  position: sticky;
  top: 90px;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.term-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.term-bar span:first-child {
  background: var(--red);
}
.term-bar em {
  margin-left: 6px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
}
.term-body {
  padding: 16px 18px 6px;
  line-height: 1.75;
  height: clamp(240px, 36vh, 330px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
html:not(.js) .term-body {
  height: auto;
}
.t-line {
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-ps {
  color: var(--t-orange);
  margin-right: 8px;
  white-space: nowrap;
}
.t-out {
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 6px;
  white-space: pre-wrap;
  word-break: break-word;
}
.t-out b {
  color: #fff;
  font-weight: 500;
}
.t-out .t-cmd {
  color: var(--t-orange);
}
.t-out .t-err {
  color: #ff8095;
}
.t-out .t-ok {
  color: #7fffb0;
}
.t-out a,
.t-out button.t-link {
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}
.t-out a:hover,
.t-out button.t-link:hover {
  text-decoration-color: var(--red);
}
.t-art {
  color: #9fb6ff;
  line-height: 1.25;
  font-size: 11px;
}
.term-input {
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}
.term-input input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  caret-color: var(--red);
  outline: none;
}
.term:focus-within {
  border-color: rgba(255, 255, 255, 0.5);
}
.term-input[aria-disabled="true"] {
  display: none;
}
.term-hint {
  padding: 10px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
}
.term-hint code {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
}

/* ============================================================
   02b · SELECTION: a pinned horizontal gallery on desktop,
   a plain grid everywhere else (and without JS).
   ============================================================ */
.sel {
  padding-top: clamp(64px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
}
.sel-head .rule {
  margin-bottom: clamp(26px, 3vw, 36px);
}
.sel-progress {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  display: none;
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.sel.is-pinned .sel-pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.sel.is-pinned .sel-progress {
  display: block;
  margin-left: auto;
}
.sel.is-pinned .gallery-track {
  display: flex;
  width: max-content;
  max-width: none;
  margin: 0;
  gap: 24px;
  padding-left: max(var(--gut), calc((100vw - var(--shell)) / 2 + var(--gut)));
  padding-right: max(var(--gut), calc((100vw - var(--shell)) / 2 + var(--gut)));
  will-change: transform;
}
.sel.is-pinned .pcard {
  width: clamp(330px, 29vw, 410px);
  flex: 0 0 auto;
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition:
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.pcard:hover {
  border-color: color-mix(in srgb, var(--ikb-lift) 50%, var(--line));
  box-shadow: 0 24px 60px -24px rgba(0, 30, 110, 0.35);
}
.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.22), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: soft-light;
}
.pcard.tilting::after {
  opacity: 1;
}
.pcard:target {
  border-color: var(--red);
}
.pcard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101014;
  border-bottom: 1px solid var(--line);
}
.pcard-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.8s var(--ease);
}
.pcard:hover .pcard-media img {
  transform: scale(1.04);
}
.pcard-ascii {
  background: #0d1020;
  display: flex;
  align-items: center;
}
.ascii-term {
  font-family: var(--mono);
  font-size: clamp(10px, 0.85vw, 11.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  padding: 18px 20px;
  white-space: pre;
  overflow: hidden;
  width: 100%;
}
.ascii-term .a-ps {
  color: #e8912d;
}
.ascii-term .a-ok {
  color: #7fffb0;
}
.live-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #fff;
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.live-chip[hidden] {
  display: none;
}
.live-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(61, 220, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);
  }
}
.pcard-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  flex: 1;
}
.pcard-path {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ikb-lift);
  letter-spacing: 0.02em;
}
.pcard-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.08;
}
.pcard-pitch {
  font-size: 15px;
  line-height: 1.55;
}
.pcard-why {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.pcard-why b {
  font-weight: 600;
  color: var(--ink);
}
.pcard-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pcard-tags li {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.pcard-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
}
.pcard-links a {
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ikb-lift) 40%, transparent);
  color: var(--ikb-lift);
}
.pcard-links a:hover {
  border-color: var(--red);
}
.pcard-stars {
  margin-left: auto;
  color: var(--ink-soft);
}
.pcard-end {
  overflow: hidden;
  justify-content: flex-end;
  gap: 10px;
  padding: 26px 24px;
  min-height: 280px;
  background: var(--ikb);
  color: #fff;
  text-decoration: none;
  border-color: var(--ikb);
}
.pcard-end .pcard-path {
  color: rgba(255, 255, 255, 0.6);
}
.pcard-end-title {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
}
.pcard-end-cta {
  font-family: var(--mono);
  font-size: 13px;
}
.pcard-end:hover .pcard-end-cta span {
  display: inline-block;
  transform: translate(2px, -2px);
}

.also {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 80px);
}
@media (max-width: 760px) {
  .also {
    grid-template-columns: 1fr;
  }
}
.also-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
}
.also-note {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 48ch;
}
.also-list {
  list-style: none;
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.also-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
}
.also-list b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13.5px;
  min-width: 7.5em;
}
.also-list a {
  text-decoration: none;
  color: var(--ikb-lift);
}
.also-list a:hover b {
  text-decoration: underline;
  text-decoration-color: var(--red);
}
.also-list span {
  color: var(--ink-soft);
}

/* ============================================================
   03 · PATH: the spine draws itself, nodes light as it passes.
   ============================================================ */
.timeline {
  position: relative;
  max-width: 780px;
}
.tl-spine {
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--ikb-lift);
  transform-origin: top;
}
.js .tl-spine {
  transform: scaleY(0);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding: 4px 0 clamp(30px, 4vw, 44px) 46px;
}
.tl-item:last-child {
  padding-bottom: 6px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--red);
  z-index: 1;
  transition:
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.js .tl-item:not(.lit)::before {
  background: var(--paper);
  border-color: var(--line);
}
.tl-item.lit::before {
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--red) var(--glow), transparent);
}
.tl-period {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.tl-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.tl-title small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ikb-lift);
  letter-spacing: 0.04em;
}
.tl-now {
  position: relative;
  z-index: 0;
}
/* Same hand-made marker as the ACDC/YAKA highlights: uneven corners,
   a slight tilt, a stroke that doesn't quite hug the letters. */
.tl-now::before {
  content: "";
  position: absolute;
  inset: 0.18em -0.22em 0.02em -0.18em;
  z-index: -1;
  background: color-mix(in srgb, var(--ikb-lift) 34%, transparent);
  border-radius: 0.2em 0.45em 0.25em 0.5em;
  rotate: -0.8deg;
  transform-origin: left center;
  transition: transform 0.7s var(--ease) 0.35s;
}
@media (prefers-color-scheme: dark) {
  .tl-now::before {
    background: color-mix(in srgb, var(--ikb-lift) 30%, transparent);
  }
}
.js .tl-item:not(.lit) .tl-now::before {
  transform: scaleX(0);
}
.tl-desc {
  margin-top: 8px;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 16px;
}
.tl-desc strong {
  color: var(--ink);
  font-weight: 600;
}

.points {
  list-style: none;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
  max-width: 58ch;
}
.points li {
  border-bottom: 1px solid var(--line-soft);
  padding: 11px 0 11px 18px;
  position: relative;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 1px;
  background: var(--ikb-lift);
}
/* ============================================================
   EN PARALLÈLE · ASSISTANT: two periods side by side, each in its
   theme color (ACDC teal, YAKA in the site blue), split by a
   two-tone line that draws itself on scroll.
   ============================================================ */
:root {
  --acdc: #73b7c4;
  --acdc-ink: #2b7380;
}
@media (prefers-color-scheme: dark) {
  :root {
    --acdc-ink: #8fd3df;
  }
}
.duo {
  --yaka: var(--ikb-lift);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* logo, year, name, full name, intro, stat box, the rest */
  grid-template-rows: repeat(7, auto);
  column-gap: clamp(56px, 8vw, 128px);
  margin-top: clamp(28px, 4vw, 48px);
}
/* Both columns share the parent's rows (subgrid): every row takes the
   height of the taller side, so the stat boxes always start level,
   whatever the text above them. */
.duo-col {
  display: grid;
  grid-row: 1 / span 7;
  grid-template-rows: subgrid;
  align-content: start;
}
.duo-acdc {
  grid-column: 1;
}
.duo-yaka {
  grid-column: 2;
}
.duo-acdc {
  --theme: var(--acdc);
  --theme-ink: var(--acdc-ink);
}
.duo-yaka {
  --theme: var(--yaka);
  --theme-ink: var(--ikb-lift);
}

/* The separator: a sharp two-tone core and a soft glow that spills
   into each column in its own color. */
.duo-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 160px;
  margin-left: -80px;
  pointer-events: none;
  transform-origin: top;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 92%, transparent);
}
.duo-line::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--acdc) 50%, var(--yaka) 50%);
}
.duo-line::after {
  content: "";
  position: absolute;
  inset: 0 26px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--acdc) 55%, transparent) 46%,
    color-mix(in srgb, var(--yaka) 38%, transparent) 54%,
    transparent
  );
  filter: blur(10px);
}
.js .duo-line {
  transform: scaleY(0);
}

.duo-col {
  position: relative;
  isolation: isolate;
  padding-top: clamp(8px, 1.5vw, 16px);
}
/* a faint halo of the theme color behind the logo */
.duo-col::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40px;
  left: 50%;
  width: min(440px, 110%);
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--theme) 20%, transparent), transparent);
  pointer-events: none;
}
.js .duo-acdc.io:not(.in) {
  transform: translateX(-28px);
}
.js .duo-yaka.io:not(.in) {
  transform: translateX(28px);
}

.duo-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
}
.duo-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(112px, 12vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--theme);
  box-shadow:
    0 20px 44px -10px color-mix(in srgb, var(--theme) 70%, transparent),
    0 0 0 7px color-mix(in srgb, var(--theme) 14%, transparent);
}
.duo-disc img {
  width: 86%;
  height: auto;
  display: block;
}
.duo-acdc .duo-disc {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-7px);
  }
}
/* YAKA: the emblem stays sealed. Blur, frosting and a slow sheen; hovering
   only eases the blur a little, never enough to read it. */
.duo-secret {
  overflow: hidden;
  background: var(--ikb);
}
.duo-secret img {
  width: 100%;
  filter: blur(9px) saturate(1.15);
  transform: scale(1.18);
  transition: filter 0.7s var(--ease);
}
.duo-logo:hover .duo-secret img {
  filter: blur(6.5px) saturate(1.15);
}
.duo-secret::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.32) 50%, transparent 65%);
  transform: translateX(-130%);
  animation: sheen 4.2s var(--ease) infinite;
}
@keyframes sheen {
  55%,
  100% {
    transform: translateX(130%);
  }
}
.duo-seal {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ikb-lift);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--yaka) 45%, transparent);
}

.duo-when,
.duo-name,
.duo-full {
  text-align: center;
}
.duo-when {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-ink);
}
.duo-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(42px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 8px;
}
.duo-full {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.duo-intro {
  margin-top: 22px;
  color: var(--ink-soft);
  align-self: start;
}
.duo-intro strong,
.duo-list strong {
  color: var(--ink);
  font-weight: 600;
}
/* "(Responsable)": pure ink, bold, with a soft blurred glow. */
.duo-list .lead-tag {
  font-weight: 700;
  color: #000;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.28);
}
@media (prefers-color-scheme: dark) {
  .duo-list .lead-tag {
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
  }
}
/* Hand-highlighted key words: a static marker stroke in the column's
   color, slightly crooked and uneven like a real highlighter. */
.duo .hl {
  position: relative;
  z-index: 0;
  background: none;
  color: var(--ink);
  white-space: nowrap;
}
.duo .hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.18em -0.22em 0.02em -0.18em;
  background: color-mix(in srgb, var(--theme) 34%, transparent);
  border-radius: 0.2em 0.45em 0.25em 0.5em;
  rotate: -0.8deg;
}
.duo-list li:nth-child(even) .hl::before,
.duo-yaka .duo-intro .hl::before {
  rotate: 0.6deg;
  inset: 0.22em -0.18em 0 -0.24em;
}
@media (prefers-color-scheme: dark) {
  .duo .hl::before {
    background: color-mix(in srgb, var(--theme) 30%, transparent);
  }
}
.duo-sub {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-ink);
}
.duo-rest > .duo-list:first-child {
  margin-top: 22px;
}
.duo-list {
  list-style: none;
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.duo-sub + .duo-list {
  margin-top: 8px;
}
.duo-list + .duo-list {
  margin-top: 18px;
}
.duo-list li {
  position: relative;
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.duo-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme);
  box-shadow: 0 0 10px color-mix(in srgb, var(--theme) 60%, transparent);
}
.duo-list-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}
.duo-stat {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--theme) 35%, var(--line));
  background: color-mix(in srgb, var(--theme) 6%, transparent);
}
.duo-num {
  font-family: var(--display);
  font-size: clamp(46px, 5.4vw, 64px);
  line-height: 1;
  color: var(--theme-ink);
  font-variant-numeric: tabular-nums;
}
.duo-num-label {
  font-size: 15px;
  color: var(--ink);
}
.duo-campus {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

@media (max-width: 860px) {
  .duo,
  .duo-col {
    display: block;
  }
  /* stacked: the line turns horizontal between the two periods */
  .duo-line {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 64px;
    margin: 36px 0 28px;
    transform-origin: left;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  }
  .duo-line::before {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 4px;
    margin: -2px 0 0;
    background: linear-gradient(180deg, var(--acdc) 50%, var(--yaka) 50%);
  }
  .duo-line::after {
    inset: 12px 0;
    background: linear-gradient(
      180deg,
      transparent,
      color-mix(in srgb, var(--acdc) 55%, transparent) 46%,
      color-mix(in srgb, var(--yaka) 38%, transparent) 54%,
      transparent
    );
  }
  .js .duo-line {
    transform: scaleX(0);
  }
}
@media (max-width: 480px) {
  .duo-list-2 {
    grid-template-columns: 1fr;
  }
}
.reduced .duo-line {
  transform: none !important;
}

/* ============================================================
   THE RELAY: a 5-year track; each arc runs from me to the students
   of that role. Arcs draw once on reveal, then a few dashes flow
   along them, from teacher to students, like a baton being passed.
   ============================================================ */
.relay {
  --acdc-c: var(--acdc);
  --yaka-c: var(--ikb-lift);
  margin-top: clamp(48px, 6vw, 72px);
}
.relay-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.relay-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.relay-c-acdc,
.relay-c-yaka {
  font-family: var(--mono);
  font-size: 0.82em;
  font-weight: 500;
}
.relay-c-acdc {
  color: var(--acdc-ink);
}
.relay-c-yaka {
  color: var(--ikb-lift);
}
.relay-stage {
  position: relative;
  max-width: 760px;
  height: 170px;
  margin: 10px auto 0;
}
/* the arcs live in a 100 x 40 box whose bottom edge is the track */
.relay-arcs {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  width: 100%;
  height: 100px;
  overflow: visible;
}
.relay-arc,
.relay-flow {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.arc-acdc {
  stroke: var(--acdc-c);
}
.arc-yaka {
  stroke: var(--yaka-c);
}
.relay-arc {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  opacity: 0.55;
}
.relay-flow {
  stroke-width: 3.5;
  stroke-dasharray: 0.035 0.09;
  opacity: 0;
}
.js .relay:not(.in) .relay-arc {
  stroke-dashoffset: 1;
}
.js .relay .relay-arc {
  transition: stroke-dashoffset 1.4s var(--ease) 0.2s;
}
.js .relay .arc-yaka.relay-arc {
  transition-delay: 0.7s;
}
.js .relay.in .relay-flow {
  opacity: 1;
  transition: opacity 0.6s ease 1.7s;
  animation: relay-flow 2.6s linear infinite;
}
.js .relay.in .arc-yaka.relay-flow {
  animation-duration: 1.6s;
}
@keyframes relay-flow {
  to {
    stroke-dashoffset: -0.125;
  }
}

.relay-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: var(--paper);
  border: 1px solid currentColor;
}
.tag-acdc {
  left: 30%;
  top: 30px;
  color: var(--acdc-ink);
}
.tag-yaka {
  left: 60%;
  top: 56px;
  color: var(--ikb-lift);
}

/* Arrowheads where each arc lands: on my students' year, tilted to
   follow the arc. They appear once the arc has drawn. */
.relay-head {
  position: absolute;
  top: 87px;
  width: 16px;
  height: 14px;
  margin-left: -8px;
  /* a notched "stealth" head: the arc ends in the notch */
  clip-path: polygon(0 0, 50% 22%, 100% 0, 50% 100%);
  transform-origin: 50% 100%;
}
.head-acdc {
  left: 10%;
  background: var(--acdc-c);
  rotate: 15deg;
}
/* lands on the blue half of station 3; the teal arc leaves from the teal half */
.head-yaka {
  left: calc(50% + 6px);
  background: var(--yaka-c);
  rotate: 12deg;
}
.js .relay:not(.in) .relay-head {
  opacity: 0;
}
.js .relay .relay-head {
  transition: opacity 0.4s ease 1.3s;
}
.js .relay .head-yaka {
  transition-delay: 1.8s;
}

/* the track: stations at 10, 30, 50, 70 and 90 % (five equal cells) */
.relay-years {
  position: absolute;
  left: 0;
  right: 0;
  top: 108px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}
.relay-years::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--acdc-c), color-mix(in srgb, var(--acdc-c) 50%, var(--yaka-c)) 50%, var(--yaka-c));
  opacity: 0.35;
}
.relay-years li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.relay-years i {
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--line);
}
.relay-years b {
  margin-top: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-soft);
}
.relay-years span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* students of each role glow in its color; my own years are filled */
.y-taught-acdc i {
  border-color: var(--acdc-c);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--acdc-c) 60%, transparent);
}
.y-me-acdc i {
  border: 0;
  background: linear-gradient(90deg, var(--acdc-c) 50%, var(--yaka-c) 50%);
  box-shadow:
    -4px 0 14px color-mix(in srgb, var(--acdc-c) 55%, transparent),
    4px 0 14px color-mix(in srgb, var(--yaka-c) 45%, transparent);
}
.y-me-yaka i {
  border: 0;
  background: var(--yaka-c);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--yaka-c) 50%, transparent);
}
.y-taught-acdc b,
.y-me-acdc b,
.y-me-yaka b {
  color: var(--ink);
}
.y-taught-acdc span {
  color: var(--acdc-ink);
}
.y-me-acdc span,
.y-me-yaka span {
  color: var(--ikb-lift);
}
@media (max-width: 560px) {
  .relay-stage {
    height: 150px;
  }
  .relay-arcs {
    height: 84px;
  }
  .relay-years {
    top: 92px;
  }
  .tag-acdc {
    top: 26px;
  }
  .tag-yaka {
    top: 48px;
  }
  .relay-head {
    top: 71px;
  }
  .head-yaka {
    left: calc(50% + 2px);
  }
  .relay-years b {
    font-size: 20px;
  }
  .relay-years span {
    font-size: 9.5px;
    letter-spacing: 0.06em;
  }
}

/* ============================================================
   04 · STACK: hovering a skill brings it into focus; the others
   soften and blur slightly, like a camera pulling focus.
   ============================================================ */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) {
  .skills {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .skills {
    grid-template-columns: 1fr;
  }
}
.skill {
  position: relative;
  overflow: hidden;
  text-align: left;
  background: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 20px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 196px;
}
/* Once revealed, hover reacts at once (no reveal delay) and gently. */
.skills .skill.in {
  transition:
    opacity 0.45s var(--ease),
    filter 0.45s var(--ease),
    background-color 0.45s var(--ease);
  transition-delay: 0s;
}
.skill:hover,
.skill:focus-visible {
  background-color: color-mix(in srgb, var(--ink) 3%, transparent);
}
@media (hover: hover) {
  .skills:has(.skill:hover) .skill:not(:hover) {
    opacity: 0.5;
    filter: blur(1.5px);
  }
}
.skills:has(.skill:focus-visible) .skill:not(:focus-visible) {
  opacity: 0.5;
  filter: blur(1.5px);
}
.skill::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--red);
  box-shadow: 0 0 14px 0 color-mix(in srgb, var(--red) var(--glow-up), transparent);
  transition: height 0.4s var(--ease);
}
.skill:hover::after,
.skill:focus-visible::after {
  height: 100%;
}
.skill-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.skill-name {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.skill-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.skill-more {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.skill-more .arrow {
  color: var(--red);
  transition: transform 0.35s var(--ease);
}
.skill:hover .skill-more .arrow,
.skill:focus-visible .skill-more .arrow {
  transform: translateX(3px);
}
html:not(.js) .skill-more {
  display: none;
}

/* LANGUAGES: stamps land on reveal */
.langs-band {
  padding-block: 0 clamp(64px, 9vw, 110px);
}
.langs-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.langs-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
}
.langs-note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.langs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 720px) {
  .langs {
    grid-template-columns: 1fr;
  }
}
.lang {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 150px;
}
.lang-level {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lang-name {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.1;
}
.lang-cert-slot {
  margin-top: auto;
  padding-top: 14px;
}
.lang-cert {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 5px 10px;
  rotate: -2deg;
}
.js .lang:not(.in) .lang-cert {
  opacity: 0;
}
.js .lang.in .lang-cert {
  animation: stamp 0.5s var(--ease) both;
  animation-delay: calc(var(--d, 0s) + 0.45s);
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.6) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.95) rotate(-1deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
footer {
  position: relative;
  overflow: hidden;
  background: var(--ikb);
  color: #fff;
  padding-block: clamp(72px, 10vw, 130px) 28px;
}
.foot {
  position: relative;
  z-index: 1;
}
footer .eyebrow {
  color: rgba(255, 255, 255, 0.66);
}
footer .eyebrow .prompt {
  color: rgba(255, 255, 255, 0.4);
}
.foot-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.foot-sub {
  margin-top: 22px;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.78);
}
.foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  font-family: var(--mono);
  font-size: 13px;
}
.foot-links a,
.foot-links button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.foot-links span:first-child {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 6px;
}
.foot-links em {
  font-style: normal;
  margin-left: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1px 5px;
}
.foot-links a:hover,
.foot-links button:hover {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 4px;
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   SHEET (skills) and PALETTE: native <dialog>.
   ============================================================ */
dialog {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: var(--scrim);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sheet {
  margin: auto;
  width: min(640px, calc(100vw - 32px));
  overflow: visible;
}
.sheet[open] {
  animation: sheet-in 0.36s var(--ease);
}
.sheet.flip[open] {
  animation: none;
}
.sheet[open]::backdrop {
  animation: fade-in 0.3s var(--ease);
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.sheet-card {
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  transform-origin: center;
}
.sheet-head {
  position: relative;
  background: var(--ikb);
  color: #fff;
  padding: 30px;
  overflow: hidden;
}
.sheet-head > *:not(.grain) {
  position: relative;
  z-index: 1;
}
.sheet-head .field {
  width: 64px;
  height: 6px;
  margin-bottom: 18px;
  background: var(--red);
  box-shadow:
    0 6px 28px 0 color-mix(in srgb, var(--red) 90%, transparent),
    0 2px 10px 0 color-mix(in srgb, var(--red) 70%, transparent);
}
.sheet-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}
.sheet-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 40px);
  line-height: 1.05;
}
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.sheet-close:hover {
  background: rgba(255, 255, 255, 0.14);
}
.sheet-close:focus-visible {
  outline-color: #fff;
}
.sheet-body {
  padding: 30px;
}
.sheet-body p {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 14px;
}
.sheet-body p strong {
  color: var(--ink);
  font-weight: 600;
}
.sheet-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 26px 0 12px;
}
.sheet-body .points {
  margin-top: 0;
  max-width: none;
}
.sheet-body a {
  color: var(--ikb-lift);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ikb-lift) 40%, transparent);
}
.sheet-body a:hover {
  border-color: var(--ikb-lift);
}
.sheet-body .points i {
  color: var(--ink);
}
.sheet-body code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--line-soft);
  padding: 2px 6px;
}

.palette {
  margin: 12vh auto auto;
  width: min(620px, calc(100vw - 24px));
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 10, 50, 0.45);
  font-family: var(--mono);
}
.palette[open] {
  animation: pal-in 0.22s var(--ease);
}
@keyframes pal-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}
.pal-in {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.pal-prompt {
  color: var(--red);
}
#pal-input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  caret-color: var(--red);
}
.pal-list {
  list-style: none;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  padding: 6px;
}
.pal-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13.5px;
}
.pal-list li small {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pal-list li[aria-selected="true"] {
  background: var(--ikb);
  color: #fff;
}
.pal-list li[aria-selected="true"] small {
  color: rgba(255, 255, 255, 0.7);
}
.pal-list mark {
  background: none;
  color: var(--red);
}
.pal-list li[aria-selected="true"] mark {
  color: #fff;
  text-decoration: underline;
}
.pal-empty {
  color: var(--ink-soft);
  cursor: default !important;
}
.pal-foot {
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--ink-soft);
}
.pal-foot kbd {
  margin-right: 2px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* The caret cursor: fine pointers only, never replaces the real one. */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 600;
  width: 8px;
  height: 14px;
  margin: -7px 0 0 -4px;
  background: var(--red);
  pointer-events: none;
  opacity: 0;
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    margin 0.3s var(--ease),
    border-radius 0.3s var(--ease),
    background 0.3s var(--ease),
    opacity 0.3s;
}
.cursor.on {
  opacity: 0.9;
}
.cursor.big {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 22%, transparent);
  border: 1px solid var(--red);
}
@media (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ============================================================
   REDUCED MOTION: everything static, nothing missing.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html {
    scroll-behavior: auto;
  }
  .cursor {
    display: none;
  }
}
.reduced .io,
.reduced .hero-cta,
.reduced .proof,
.reduced .lang .lang-cert {
  opacity: 1 !important;
  transform: none !important;
}
.reduced .tl-spine {
  transform: none !important;
}

/* Stack flows straight into the languages, on the same paper. */
.band-open {
  border-bottom: 0;
  padding-bottom: clamp(48px, 6vw, 72px);
}
