/* dailidonis.lt, "Ring Line" direction */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass Mono";
  src: url("../fonts/overpass-mono-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F3F4F1;
  --paper-deep: #E7E9E4;
  --card: #FFFFFF;
  --ink: #101318;
  --ink-2: #464D5A;
  --ink-3: #5C6370;
  --rule: #C9CED5;
  --rule-soft: #DDE0E4;
  --cobalt: #1E3FCC;
  --cobalt-deep: #142C95;
  --amber: #F2B000;
  --amber-deep: #8A6400;
  --green: #0F7F53;
  --red: #D7322A;
  --river: #D4E4EE;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --topbar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--paper-deep); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--amber); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-deep); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 3px solid var(--paper-deep); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
}
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 10px; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  height: var(--topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.bullet {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cobalt); color: #fff;
  font-weight: 900; font-size: 18px; line-height: 1; padding-top: 3px;
}
.topnav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-weight: 600; font-size: 15px; white-space: nowrap; }
.topnav a { text-decoration: none; }
.topnav a:hover { text-decoration: underline; }
.topnav__cta {
  border: 2px solid var(--ink); padding: 7px 14px 5px; transition: background .2s, color .2s;
}
.topnav__cta:hover { background: var(--ink); color: var(--paper); text-decoration: none !important; }

/* ---------- Now (first viewport) ---------- */
.now {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: calc(var(--topbar) + clamp(8px, 2vh, 28px)) var(--gutter) 0;
  overflow: hidden;
}
.now__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 40px);
  align-items: center;
  max-width: 1440px; width: 100%; margin: 0 auto;
}
.nameboard { grid-column: 1 / span 7; position: relative; z-index: 2; }
.nameboard__name {
  margin: 0;
  font-weight: 850;
  font-size: clamp(3.2rem, 7.6vw, 6rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.line-reveal { display: block; overflow: hidden; padding-bottom: .06em; }
.line-reveal > span { display: inline-block; }
.nameboard__band {
  display: flex; flex-wrap: wrap; align-items: stretch;
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  font-weight: 700; font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.2;
}
.nameboard__role {
  background: var(--cobalt); color: #fff;
  padding: 11px 18px 9px;
}
.nameboard__place {
  background: var(--card); color: var(--ink);
  padding: 9px 18px 7px;
  border: 2px solid var(--cobalt);
}
.nameboard__now {
  max-width: 34ch;
  margin: clamp(18px, 2.6vh, 26px) 0 0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.45;
  color: var(--ink-2);
}
.nameboard__now strong { color: var(--ink); font-weight: 700; }
.nameboard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(20px, 3.2vh, 34px); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 16px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s var(--ease-out), background .2s, color .2s, box-shadow .2s;
}
.btn--primary {
  background: var(--cobalt); color: #fff;
  padding: 17px 22px 15px;
  box-shadow: 0 10px 24px -14px rgba(20, 44, 149, .7);
}
.btn--primary:hover { background: var(--cobalt-deep); }
.btn--primary:active { transform: translateY(1px) scale(.99); }
.btn--primary svg { transition: transform .3s var(--ease-out); }
.btn--primary:hover svg { transform: translateY(3px); }
.back .btn--primary:hover svg { transform: translateX(3px); }
.btn--quiet { padding: 8px 0 6px; border-bottom: 2px solid var(--ink); }
.btn--quiet:hover { color: var(--cobalt); border-color: var(--cobalt); }

/* Hero line: enters from the right, stops at Now, drops into the cert line */
.hero-line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.hero-line path { fill: none; stroke: var(--cobalt); stroke-width: 16; stroke-linejoin: round; }
.now__grid, .certline { position: relative; z-index: 1; }

/* Poster */
.poster { grid-column: 8 / span 5; position: relative; margin: 0; justify-self: end; width: min(100%, 440px); }
.poster__frame {
  position: relative; z-index: 1;
  background: var(--card);
  padding: 12px;
  border: 2px solid var(--ink);
  box-shadow: 0 30px 60px -36px rgba(16, 19, 24, .55);
}
.poster__frame img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; object-position: 50% 30%; }
.poster__caption {
  position: relative; z-index: 1;
  display: flex; justify-content: flex-end;
  background: var(--card);
  border: 2px solid var(--ink); border-top: 0;
  padding: 9px 14px 7px;
  font-weight: 700; font-size: 14px;
}
.nowpin { position: absolute; z-index: 3; left: -34px; bottom: -34px; width: 68px; height: 68px; }
.nowpin__dot {
  position: absolute; inset: 10px;
  border-radius: 50%; background: var(--card); border: 9px solid var(--ink);
}
.nowpin__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--cobalt);
  animation: pulse 2.4s var(--ease-out) infinite;
}
.nowpin__label {
  position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%);
  background: var(--ink); color: var(--paper);
  font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 8px 4px;
}
@keyframes pulse {
  0% { transform: scale(.7); opacity: .9; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

/* Certification line */
.certline {
  position: relative;
  max-width: 1440px; width: 100%; margin: clamp(18px, 3vh, 36px) auto 0;
  padding: 16px 0 clamp(34px, 4.4vh, 46px);
}
.certline__title {
  margin: 0 0 18px;
  font: 800 clamp(18px, 1.4vw, 21px)/1 var(--font); letter-spacing: -.01em;
  color: var(--ink);
}
.certline__track {
  position: relative;
  display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px);
}
.certgroup { position: relative; display: flex; align-items: center; }
.certgroup::before {
  content: ""; position: absolute; left: -8px; right: -8px; top: 50%;
  height: 10px; transform: translateY(-50%);
  background: var(--amber);
}
.certgroup--past::before {
  height: 0; border-top: 4px dashed #9AA1AC; background: none;
}
.certgroup__label {
  position: absolute; left: 0; top: calc(100% + 10px);
  font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
}
.certgroup__label b { color: var(--ink); }
.certgroup ul { position: relative; display: flex; gap: clamp(4px, .5vw, 8px); margin: 0; padding: 0; list-style: none; }
.cert { position: relative; }
.cert a {
  display: grid; place-items: center;
  width: clamp(44px, 3.7vw, 56px); aspect-ratio: 1;
  background: var(--paper);
  border-radius: 50%;
  transition: transform .25s var(--ease-out);
}
.cert img { width: 100%; height: 100%; object-fit: contain; }
.cert a:hover, .cert a:focus-visible { transform: translateY(-4px) scale(1.08); }
.certgroup--past img { filter: grayscale(1) contrast(.95); opacity: .62; transition: opacity .2s; }
.certgroup--past a:hover img, .certgroup--past a:focus-visible img { opacity: 1; }
.cert__tip {
  position: absolute; left: 50%; bottom: calc(100% + 14px); z-index: 30;
  width: max-content; max-width: 260px;
  transform: translate(-50%, 6px);
  background: var(--ink); color: var(--paper);
  padding: 10px 12px 8px;
  font-size: 14px; line-height: 1.35;
  opacity: 0; pointer-events: none;
  transition: opacity .18s, transform .25s var(--ease-out);
}
.cert__tip b { display: block; font-weight: 700; }
.cert__tip span { display: block; color: #B9C0CB; font-family: var(--mono); font-size: 12px; margin-top: 4px; }
.cert:hover .cert__tip, .cert:focus-within .cert__tip { opacity: 1; transform: translate(-50%, 0); }
.cert:first-child .cert__tip { left: 0; transform: translate(0, 6px); }
.cert:first-child:hover .cert__tip, .cert:first-child:focus-within .cert__tip { transform: translate(0, 0); }
.certgroup--past .cert:last-child .cert__tip { left: auto; right: 0; transform: translate(0, 6px); }
.certgroup--past .cert:last-child:hover .cert__tip, .certgroup--past .cert:last-child:focus-within .cert__tip { transform: translate(0, 0); }

/* Entrance (only when JS marks the page ready) */
.is-ready .line-reveal > span { transform: translateY(105%); }
.is-ready .nameboard__band, .is-ready .nameboard__now, .is-ready .nameboard__actions { opacity: 0; transform: translateY(14px); }
.is-ready .hero-line path { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); }
.is-ready .poster__frame, .is-ready .poster__caption { opacity: 0; transform: translateY(18px); }
.is-ready .nowpin { transform: scale(0); }
.is-ready .cert { opacity: 0; transform: translateY(10px); }
.is-ready .certgroup::before { transform-origin: left; transform: translateY(-50%) scaleX(0); }

.is-in .line-reveal > span { transform: none; transition: transform 1s var(--ease-out); }
.is-in .line-reveal:nth-child(2) > span { transition-delay: .08s; }
.is-in .nameboard__band, .is-in .nameboard__now, .is-in .nameboard__actions { opacity: 1; transform: none; transition: opacity .7s .35s, transform .9s .35s var(--ease-out); }
.is-in .nameboard__now { transition-delay: .45s; }
.is-in .nameboard__actions { transition-delay: .55s; }
.is-in .hero-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s .1s var(--ease-out); }
.is-in .poster__frame, .is-in .poster__caption { opacity: 1; transform: none; transition: opacity .8s .3s, transform 1s .3s var(--ease-out); }
.is-in .nowpin { transform: scale(1); transition: transform .8s 1.1s var(--ease-out); }
.is-in .certgroup::before { transform: translateY(-50%) scaleX(1); transition: transform 1.2s .6s var(--ease-out); }
.is-in .cert { opacity: 1; transform: none; transition: opacity .5s calc(.8s + var(--i) * 45ms), transform .6s calc(.8s + var(--i) * 45ms) var(--ease-out); }

/* ---------- Journey ---------- */
.journey { position: relative; background: var(--paper); }
.stage { position: relative; }
.map, .hud, .intro, .outro { display: none; }

.journey.is-live .stage {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  overflow: hidden;
  border-top: 2px solid var(--ink);
}
.journey.is-live .map {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
}
.journey.is-live .hud, .journey.is-live .intro, .journey.is-live .outro { display: block; }

/* map styles */
.map text { font-family: var(--font); }
.m-river { fill: none; stroke: var(--river); stroke-linecap: round; }
.m-river-label { fill: #7E9CB0; font-style: italic; font-weight: 600; font-size: 34px; letter-spacing: .12em; }
.m-base { fill: none; stroke: var(--rule); stroke-width: 22; stroke-linejoin: round; }
.m-done { fill: none; stroke: var(--cobalt); stroke-width: 22; stroke-linejoin: round; }
.m-station circle { fill: var(--card); stroke: #A9B0BA; stroke-width: 8; transition: stroke .4s, fill .4s; }
.m-station.is-passed circle { stroke: var(--ink); }
.m-station.is-current circle { fill: var(--ink); stroke: var(--ink); }
.m-station--family circle { stroke: var(--red); }
.m-station--family.is-current circle { fill: var(--red); stroke: var(--red); }
.m-label { transition: opacity .4s; }
.m-label .y { font-family: var(--mono); font-size: 24px; font-weight: 600; fill: var(--ink-3); letter-spacing: .02em; }
.m-label .t { font-size: 36px; font-weight: 800; fill: var(--ink); letter-spacing: -.01em; }
.m-label.is-ahead .t { fill: #8B929D; }
.m-label .y .c { font-size: 17px; letter-spacing: .1em; }
.m-label.is-ahead .y { fill: #A0A6AF; }
.m-now .ring { fill: var(--card); stroke: var(--ink); stroke-width: 12; }
.m-now .core { fill: var(--cobalt); }
.m-now text { font-family: var(--mono); font-weight: 700; font-size: 30px; letter-spacing: .1em; fill: var(--ink); }
.m-spur { fill: none; stroke-width: 14; stroke-linecap: butt; }
.m-spur--cert, .m-spur--award { stroke: var(--amber); }
.m-spur--training, .m-spur--hobby, .m-spur--project { stroke: var(--green); }
.m-spur--expire { stroke: #9AA1AC; stroke-dasharray: 18 14; transition: opacity .4s; }
.m-spur--family { stroke: var(--red); }
.m-sub { transition: opacity .45s, transform .6s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.m-sub.is-off { opacity: 0; transform: scale(.4); }
.m-sub .halo { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.m-sub .tick { fill: var(--card); stroke-width: 7; }
.m-sub--training .tick, .m-sub--hobby .tick, .m-sub--project .tick { stroke: var(--green); }
.m-sub--award .tick { stroke: var(--amber-deep); }
.m-sub--hobby .tick, .m-sub--project .tick { fill: var(--green); }
.m-sub text { font-size: 26px; font-weight: 700; fill: var(--ink); }
.m-sub .sub-k { font-family: var(--mono); font-size: 18px; font-weight: 600; fill: var(--ink-3); letter-spacing: .04em; }
.m-sub--expire text { fill: var(--ink-3); }
.badge-color { transition: opacity .7s; }
.m-train .body { fill: var(--ink); }
.m-train .win { fill: #F7F8FA; }
.m-train .lamp { fill: var(--amber); }
.m-ripple { fill: none; stroke: var(--red); stroke-width: 6; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hud::before, .hud::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.hud::before { top: 0; height: clamp(120px, 22vh, 190px); background: linear-gradient(var(--paper) 45%, rgba(243, 244, 241, 0)); }
.hud::after { bottom: 0; height: 90px; background: linear-gradient(rgba(243, 244, 241, 0), var(--paper) 60%); }
.year, .minimap, .legend { z-index: 1; }
.year {
  position: absolute; left: var(--gutter); top: clamp(18px, 4vh, 40px);
  display: flex; align-items: baseline; gap: 14px;
}
.year__num {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(56px, 8vw, 120px); line-height: .9; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.year__month { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.minimap {
  position: absolute; right: var(--gutter); top: clamp(18px, 4vh, 40px);
  width: clamp(96px, 10vw, 150px); height: auto; aspect-ratio: 3700 / 2600;
  overflow: visible;
}
.minimap .mm-base { fill: none; stroke: var(--rule); stroke-width: 90; }
.minimap .mm-done { fill: none; stroke: var(--cobalt); stroke-width: 90; }
.minimap .mm-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 40; }
.legend {
  position: absolute; left: var(--gutter); bottom: clamp(16px, 3vh, 30px);
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  max-width: 56vw;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 22px; height: 6px; }
.sw--cobalt { background: var(--cobalt); }
.sw--amber { background: var(--amber); }
.sw--green { background: var(--green); }
.sw--red { background: var(--red); }
.sw--lapsed { height: 0; border-top: 3px dashed #9AA1AC; }

/* Intro / outro overlays */
.intro, .outro {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter);
  top: 50%; transform: translateY(-50%);
  pointer-events: none;
}
.intro__lead, .outro__lead {
  margin: 0;
  max-width: 15ch;
  font-weight: 850; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  text-wrap: balance;
}
.intro__lead { text-shadow: 0 0 18px var(--paper), 0 0 2px var(--paper); }
.intro__sub { margin: 18px 0 0; font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); font-weight: 600; }
.outro {
  top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%);
  background: var(--card); border: 2px solid var(--ink);
  box-shadow: 0 28px 50px -32px rgba(16, 19, 24, .5);
}
.outro::before { content: ""; display: block; height: 12px; background: var(--cobalt); }
.outro__lead { max-width: none; white-space: nowrap; padding: 16px 24px 14px; font-size: clamp(1.8rem, 3.4vw, 3.2rem); }

/* Stops (platform display) */
.stops { margin: 0; padding: 0; list-style: none; }
.journey.is-live .stops {
  position: absolute; z-index: 5;
  right: var(--gutter); top: 50%; transform: translateY(-46%);
  width: min(440px, 36vw);
}
.stop {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 0 28px 50px -32px rgba(16, 19, 24, .5);
}
.journey.is-live .stop {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(calc(-50% + 18px));
  opacity: 0; visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: opacity .35s, transform .7s var(--ease-out), clip-path .7s var(--ease-out), visibility 0s .7s;
}
.journey.is-live .stop.is-active {
  opacity: 1; visibility: visible;
  transform: translateY(-50%);
  clip-path: inset(0 0 0 0);
  transition: opacity .35s, transform .7s var(--ease-out), clip-path .7s var(--ease-out), visibility 0s;
}
.stop__band {
  display: flex; justify-content: flex-start; align-items: center; gap: 12px;
  padding: 10px 18px 8px;
  background: var(--cobalt); color: #fff;
  font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.stop__tag {
  margin-left: auto; padding: 3px 6px 2px;
  border: 1px solid rgba(255, 255, 255, .55); color: rgba(255, 255, 255, .85);
  font-size: 11px; letter-spacing: .1em;
}
.stop[data-kind="school"] .stop__band, .stop[data-kind="gap"] .stop__band, .stop[data-kind="edu"] .stop__band { background: var(--ink); }
.stop[data-kind="family"] .stop__band { background: var(--red); }
.stop__body { padding: 18px 20px 20px; }
.stop__title { margin: 0; font-size: clamp(26px, 2.3vw, 34px); font-weight: 850; line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }
.stop__role { margin: 8px 0 0; font-weight: 700; font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.stop__role a, .stop__line a { color: var(--cobalt); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.stop__role a:hover, .stop__line a:hover { color: var(--cobalt-deep); }
.stop__line { margin: 12px 0 0; font-size: 17px; line-height: 1.45; }
.stop__points { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.stop__points li { position: relative; padding-left: 20px; margin-top: 6px; }
.stop__points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); }
.stop__branches { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 3px 4px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.2;
}
.chip img { width: 24px; height: 24px; object-fit: contain; }
.chip i { width: 12px; height: 12px; border-radius: 50%; margin: 0 2px 0 6px; border: 3px solid var(--green); background: var(--card); }
.chip--award i { border-color: var(--amber-deep); }
.chip--hobby, .chip--project { background: #E4F1EA; border-color: transparent; }
.chip--hobby i, .chip--project i { background: var(--green); }
.chip__k { font: 700 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.chip--expire { color: var(--ink-3); border-style: dashed; }
.chip--expire i { border-color: #9AA1AC; }
.chip--lapsed img { filter: grayscale(1); opacity: .7; }
.stop__ph {
  display: inline-block; margin: 12px 0 0;
  font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-deep); background: #FFF3CC; padding: 6px 8px 4px;
}

/* Static fallback (reduced motion): a strip map */
.journey:not(.is-live) .stage { padding: clamp(48px, 8vh, 96px) var(--gutter); border-top: 2px solid var(--ink); }
.journey:not(.is-live) .stops { max-width: 760px; margin: 0 auto; position: relative; }
.journey:not(.is-live) .stops::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 10px; background: var(--cobalt); }
.journey:not(.is-live) .stop { position: relative; margin: 0 0 28px 52px; }
.journey:not(.is-live) .stop::before {
  content: ""; position: absolute; left: -48px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 7px solid var(--ink);
}

/* ---------- Back to now ---------- */
.back { background: var(--paper); border-top: 2px solid var(--ink); padding: clamp(56px, 10vh, 120px) var(--gutter) 0; }
.back__grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 40px); row-gap: 40px;
  align-items: center;
}
.back__copy { grid-column: 1 / span 8; }
.back__title { margin: 0; max-width: 14ch; font-weight: 850; letter-spacing: -.035em; line-height: .98; font-size: clamp(2.8rem, 6.4vw, 5.6rem); text-wrap: balance; }
.back__line { max-width: 40ch; margin: 22px 0 30px; font-size: clamp(17px, 1.45vw, 21px); color: var(--ink-2); line-height: 1.45; }
.back__contact { margin: 40px 0 0; display: grid; gap: 14px; }
.back__contact > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--rule); }
.back__contact dt { font: 700 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.back__contact dd { margin: 0; font-weight: 700; font-size: 18px; }
.back__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot {
  max-width: 1440px; margin: clamp(56px, 9vh, 110px) auto 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 18px 0 26px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nameboard { grid-column: 1 / span 7; }
  .poster { grid-column: 8 / span 5; }
  .certline__track { overflow-x: auto; overflow-y: visible; padding: 70px 6px 34px; margin-top: -70px; scrollbar-width: thin; }
}
@media (max-width: 860px) {
  :root { --topbar: 60px; }
  body { font-size: 16px; }
  .topnav a:not(.topnav__cta) { display: none; }
  .now { padding-top: calc(var(--topbar) + 8px); grid-template-rows: auto auto; }
  .now__grid { grid-template-columns: 1fr; row-gap: 26px; align-items: start; }
  .nameboard, .poster { grid-column: 1; }
  .nameboard__name { font-size: clamp(2.9rem, 14vw, 4.4rem); }
  .poster { order: -1; justify-self: start; width: 46%; max-width: 220px; margin: 6px 0 46px 34px; }
  .poster__frame { padding: 7px; }
  .poster__caption { font-size: 12px; padding: 6px 9px 4px; }
  .nowpin { width: 52px; height: 52px; left: -26px; }
  .nowpin__dot { inset: 8px; border-width: 7px; }
  .nowpin__label { font-size: 10px; }
  .certline { margin-top: 18px; padding-bottom: 8px; }
  .certline__track { flex-direction: column; align-items: flex-start; gap: 34px; overflow: visible; padding: 0; margin: 0; }
  .certgroup::before { display: none; }
  .certgroup ul { flex-wrap: wrap; gap: 6px; }
  .cert a { width: 42px; }
  .certgroup__label { top: auto; bottom: calc(100% + 8px); }
  .certline__track { margin-top: 48px; }
  .journey.is-live .stops { left: 12px; right: 12px; width: auto; top: auto; bottom: 12px; transform: none; height: 44%; }
  .journey.is-live .stop { top: auto; bottom: 0; transform: translateY(18px); max-height: 100%; overflow: hidden; }
  .journey.is-live .stop.is-active { transform: none; }
  .stop__body { padding: 14px 16px 16px; }
  .stop__line { font-size: 15.5px; margin-top: 8px; }
  .stop__points { font-size: 14px; margin-top: 8px; }
  .stop__points { display: none; }
  .stop__title { font-size: 25px; }
  .stop__branches { margin-top: 10px; padding-top: 10px; }
  .chip { font-size: 12px; }
  .chip img { width: 20px; height: 20px; }
  .legend { display: none; }
  .year { top: 14px; }
  .year__num { font-size: 52px; }
  .minimap { top: 16px; width: 92px; }
  .intro { top: 26%; }
  .outro { top: auto; left: 12px; right: 12px; bottom: 24px; transform: none; }
  .outro__lead { white-space: normal; }
  .back__copy { grid-column: 1 / -1; }
  .back__contact > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .nameboard__name { font-size: clamp(3rem, 6.4vw, 5.2rem); }
  .poster { width: min(100%, 360px); }
  .stop__points li:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
