/* ==========================================================================
   03-professional-experience.css  |  PAGE STYLES: professional-experience.html
   Only used by professional-experience.html. It loads after 00-global.css.
   The timeline runs down the MIDDLE of the page. Cards alternate left and right and
   slide in from their own side when they scroll into view. On phones the line moves
   to the left edge and every card slides in from the right.
   ========================================================================== */

:root {
  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --page-bg: #101213;
  --surface: #16191c;
  --surface-border: rgba(255,255,255,.08);
  --text: #ffffff;
  --text-soft: #c9ced6;
  --text-muted: #7f8792;
  --accent: #f45a0a;
  --accent-hover: #ff6d22;
  --accent-soft: rgba(244,90,10,.14);
  --on-accent: #ffffff;
  --chip-bg: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.12);
  --radius: 18px;
  --gap: 20px;
  --page-pad: clamp(16px, 2.5vw, 48px);
  --content: 1240px;
}
:root[data-theme="light"] {
  --page-bg: #f4f2ee;
  --surface: #ffffff;
  --surface-border: rgba(0,0,0,.08);
  --text: #161616;
  --text-soft: #4a4f57;
  --text-muted: #6b6b6b;
  --accent: #d94e05;
  --accent-hover: #bf4404;
  --accent-soft: rgba(217,78,5,.10);
  --chip-bg: rgba(0,0,0,.06);
  --line: rgba(0,0,0,.14);
}

* { box-sizing: border-box; }
html, body, .card { transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease; }
html { background: var(--page-bg); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--page-bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }

.page { width: 100%; max-width: calc(var(--content) + var(--page-pad) * 2); margin: 0 auto; padding: 32px var(--page-pad) 24px; }

/* ---------- heading ---------- */
.intro { display: grid; justify-items: center; text-align: center; margin-bottom: 32px; }
.intro h1 { margin: 0; font-size: clamp(40px, 4vw, 64px); line-height: 1.1; letter-spacing: -0.03em; }
.intro p { max-width: 760px; margin: 16px auto 0; font-size: clamp(16px, 1.25vw, 20px); color: var(--text-soft); }
.back-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 24px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--surface-border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color 250ms ease, transform 250ms ease; }
.back-link:hover { border-color: var(--accent); transform: translateX(-3px); }
.back-link svg { width: 18px; height: 18px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 32px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color 250ms ease, transform 250ms ease; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #1b1b1b; }
.resume { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin: 0 0 32px; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 72px; }
.stat { padding: 32px 16px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(28px, 3vw, 42px); line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat .lab { display: block; margin-top: 8px; color: var(--text-muted); font-size: 16px; }

/* ---------- timeline ---------- */
/* cards start 80-120px to the side before they slide in; clip that so it cannot widen the page */
/* the clip box reaches the screen edge (page padding) so the node glow is not cut off */
.timeline-wrap { margin: 0 calc(var(--page-pad) * -1) 56px; padding-inline: var(--page-pad); overflow-x: clip; }
.tl-title { margin: 0 0 40px; text-align: center; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.tl-title::after { content: ""; display: block; width: 56px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: var(--accent); }

.timeline { --progress: 0px; position: relative; list-style: none; margin: 0; padding: 0; }
/* the track (grey) and the progress line (orange) that fills as you scroll */
.timeline::before, .timeline::after { content: ""; position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: var(--progress); background: linear-gradient(to bottom, var(--accent), var(--accent-hover)); box-shadow: 0 0 14px 1px var(--accent-soft); }

.tl-item { position: relative; display: flex; margin: 0 0 56px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-left { justify-content: flex-start; }
.tl-right { justify-content: flex-end; }

/* the round icon sitting on the line */
.tl-node { position: absolute; left: 50%; top: 26px; z-index: 2; width: 48px; height: 48px; margin-left: -24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--page-bg); transition: transform 500ms cubic-bezier(.3,1.6,.5,1), box-shadow 400ms ease; }
.tl-node svg { width: 22px; height: 22px; }
.tl-item.is-active .tl-node { box-shadow: 0 0 0 6px var(--page-bg), 0 0 0 9px var(--accent-soft), 0 0 26px 4px var(--accent-soft); }

/* big year on the empty side */
.tl-year { position: absolute; top: 20px; width: calc(50% - 56px); font-family: var(--font-head); font-weight: 700; font-size: clamp(44px, 5.2vw, 80px); line-height: 1; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1.5px var(--line); background: linear-gradient(to bottom, var(--accent) calc(var(--yfill, 0) * 100% - 4%), color-mix(in srgb, var(--accent) 35%, transparent) calc(var(--yfill, 0) * 100%), transparent calc(var(--yfill, 0) * 100% + 3%)); -webkit-background-clip: text; background-clip: text; user-select: none; transition: -webkit-text-stroke-color 500ms ease, opacity 700ms ease, transform 700ms cubic-bezier(.2,.9,.25,1); }
.tl-left .tl-year { left: calc(50% + 56px); text-align: left; }
.tl-right .tl-year { right: calc(50% + 56px); text-align: right; }
.tl-item.is-active .tl-year, .tl-item.is-lit .tl-year { -webkit-text-stroke-color: var(--accent); }
.tl-item[data-year="Education"] .tl-year { font-size: clamp(26px, 3.2vw, 44px); top: 30px; }

/* the card */
.tl-card { position: relative; width: calc(50% - 56px); padding: 32px; transition: transform 500ms cubic-bezier(.2,.9,.25,1), border-color 400ms ease, box-shadow 400ms ease, opacity 800ms ease, filter 800ms ease, background-color 400ms ease; }
.tl-item.is-active .tl-card { border-color: color-mix(in srgb, var(--accent) 55%, var(--surface-border)); }
/* short line from the card to the icon */
.tl-card::after { content: ""; position: absolute; top: 49px; height: 2px; width: 32px; background: var(--line); transition: background-color 400ms ease; }
.tl-left .tl-card::after { right: -33px; }
.tl-right .tl-card::after { left: -33px; }
.tl-item.is-lit .tl-card::after { background: var(--accent); }
/* an orange edge that draws itself across the top of the card */
.tl-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: left; transition: transform 900ms cubic-bezier(.2,.9,.25,1) 350ms; }

.tl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tl-head h3 { margin: 0; font-size: 18px; line-height: 1.35; }
.org { margin: 8px 0 0; font-size: 17px; color: var(--text-soft); }
.tl-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: none; font-size: 14px; color: var(--text-muted); }
.tl-meta li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tl-meta svg { width: 17px; height: 17px; color: var(--text-muted); flex: none; }

.tl-card h4 { margin: 24px 0 8px; font-family: var(--font-head); font-size: 15px; line-height: 1.3; letter-spacing: .01em; }
.summary { margin: 0; color: var(--text-soft); }
.methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--text-soft); font-size: 15px; line-height: 1.5; }
.methods li { position: relative; padding-left: 24px; }
.methods li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 16px; border-radius: 999px; background: var(--chip-bg); color: var(--text); font-size: 14px; line-height: 1.5; transition: background-color 250ms ease, color 250ms ease, transform 250ms ease; }
.chips li:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* ---------- slide-in animation (only when JavaScript runs) ---------- */
.js .tl-item:not(.in) .tl-card { opacity: 0; filter: blur(8px); transform: translateX(var(--from, 0)) rotate(var(--tilt, 0deg)) scale(.94); }
.js .tl-item:not(.in) .tl-card::before { transform: scaleX(0); }
.js .tl-left { --from: -120px; --tilt: -2.5deg; }
.js .tl-right { --from: 120px; --tilt: 2.5deg; }
.js .tl-item:not(.in) .tl-node { transform: scale(0); }
.js .tl-item:not(.in) .tl-year { opacity: 0; }
.js .tl-item:not(.in).tl-left .tl-year { transform: translateX(60px); }
.js .tl-item:not(.in).tl-right .tl-year { transform: translateX(-60px); }
.js .tl-item:not(.in) .methods li, .js .tl-item:not(.in) .chips li { opacity: 0; transform: translateY(10px); }
.tl-item.in .methods li, .tl-item.in .chips li { transition: opacity 500ms ease calc(450ms + var(--i, 0) * 70ms), transform 500ms ease calc(450ms + var(--i, 0) * 70ms), background-color 250ms ease, color 250ms ease; }
.tl-item.in .tl-node { transition-delay: 120ms; }

/* ---------- closing card ---------- */
.cta { padding: 40px 32px; text-align: center; }
.cta h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.25; }
.cta p { max-width: 640px; margin: 0 auto; color: var(--text-soft); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: 32px; }
.page-footer { padding: 32px 16px 0; color: var(--text-muted); font-size: 14px; text-align: center; }

.reveal { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal-2 { animation-delay: 100ms; }
.reveal-3 { animation-delay: 200ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- breakpoints ---------- */
@media (max-width: 899.98px) {
  /* one column: the line moves to the left edge, cards slide in from the right */
  .timeline::before, .timeline::after { left: 24px; }
  .tl-item, .tl-left, .tl-right { justify-content: flex-start; padding-left: 64px; }
  .tl-node { left: 24px; top: 20px; }
  .tl-card { width: 100%; }
  .tl-left .tl-card::after, .tl-right .tl-card::after { left: -17px; right: auto; width: 16px; top: 43px; }
  .tl-year { display: none; }
  .js .tl-left, .js .tl-right { --from: 80px; --tilt: 1.5deg; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 56px; }
  /* let cards shrink to the column instead of pushing past it */
  .tl-item, .tl-card, .tl-head { min-width: 0; }
  /* keep the line and icons off the screen edge */
  .timeline { margin-left: 10px; }
  .tl-card { max-width: 100%; }
  .tl-head > div, .tl-head h3, .tl-card p { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 575.98px) {
  :root { --gap: 14px; --radius: 15px; --page-pad: 12px; }
  .tl-item, .tl-left, .tl-right { padding-left: 52px; }
  .timeline::before, .timeline::after { left: 18px; }
  .tl-node { left: 18px; width: 40px; height: 40px; margin-left: -20px; top: 18px; box-shadow: 0 0 0 5px var(--page-bg); }
  .tl-left .tl-card::after, .tl-right .tl-card::after { left: -13px; width: 12px; top: 37px; }
  .tl-card { padding: 24px 16px; }
  .tl-head { flex-direction: column; gap: 16px; }
  .tl-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
  .resume .btn, .cta-actions .btn { width: 100%; }
}
@media (min-width: 2560px) {
  :root { --content: 1500px; }
  body { font-size: 18px; }
  .tl-card { padding: 40px; }
}

/* Years: hourglass. Sand runs from the top bulb to the bottom, then it flips and runs again. */
.hourglass .hg { transform-box: view-box; transform-origin: 24px 24px; animation: hg-flip 7s cubic-bezier(.6, 0, .3, 1) infinite; }
.hourglass .sand-top { animation: hg-top 7s linear infinite; }
.hourglass .sand-bot { animation: hg-bot 7s linear infinite; }
.hourglass .stream { animation: hg-stream 7s linear infinite, hg-fall .5s linear infinite; }
.stat.is-counting .hourglass .hg, .stat.is-counting .hourglass .sand-top, .stat.is-counting .hourglass .sand-bot, .stat.is-counting .hourglass .stream { animation-duration: 2.6s; }
.stat.is-counting .hourglass .stream { animation-duration: 2.6s, .3s; }
@keyframes hg-flip { 0%, 84% { transform: rotate(0); } 100% { transform: rotate(180deg); } }
@keyframes hg-top { 0% { transform: translateY(0); } 80%, 100% { transform: translateY(17px); } }
@keyframes hg-bot { 0% { transform: translateY(17px); } 80%, 100% { transform: translateY(1px); } }
@keyframes hg-stream { 0%, 2% { opacity: 0; } 5%, 76% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes hg-fall { to { stroke-dashoffset: -5.5; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .tl-card, .tl-node, .tl-year, .methods li, .chips li, .tl-card::before { transition: none !important; }
  .js .tl-item:not(.in) .tl-card, .js .tl-item:not(.in) .tl-node, .js .tl-item:not(.in) .tl-year, .js .tl-item:not(.in) .methods li, .js .tl-item:not(.in) .chips li { opacity: 1; transform: none; filter: none; }
  .js .tl-item:not(.in) .tl-card::before { transform: none; }
}

/* ==========================================================================
   Round 2: collapsible Key Methods, headline result chip, case study link
   ========================================================================== */
.tl-tools { display: flex; justify-content: center; margin: -14px 0 32px; }
.tl-toggle { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--surface-border); background: var(--surface); color: var(--text-soft); font: 700 14px/1 var(--font-body); cursor: pointer; transition: border-color 250ms ease, color 250ms ease; }
.tl-toggle:hover { border-color: var(--accent); color: var(--text); }

/* one highlighted result per role */
.result { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 5px 16px 5px 8px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.result svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

/* Key Methods opens and closes */
.more { margin-top: 24px; border-top: 1px solid var(--surface-border); }
.more > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 16px 0 2px; cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.3; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover span { color: var(--accent); }
.more > summary em { font-style: normal; font-family: var(--font-body); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--text-soft); }
.more > summary svg { width: 18px; height: 18px; margin-left: auto; color: var(--text-muted); transition: transform 350ms ease, color 250ms ease; }
.more[open] > summary svg { transform: rotate(180deg); color: var(--accent); }
.more-body { padding-top: 16px; }
.more-body h5 { margin: 16px 0 8px; font-size: 14px; color: var(--text-soft); }
.more-body h5:first-child { margin-top: 0; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .more::details-content { block-size: 0; overflow: hidden; transition: block-size 380ms cubic-bezier(.2,.9,.25,1), content-visibility 380ms allow-discrete; }
  .more[open]::details-content { block-size: auto; }
}
.sub h4 span { margin-left: 8px; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--text-muted); }
.sub + .sub h4 { margin-top: 16px; }

/* link to the matching case study */
.case-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none; }
.case-link svg { width: 18px; height: 18px; transition: transform 250ms ease; }
.case-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.case-link:hover svg { transform: translateX(5px); }
@media (prefers-reduced-motion: reduce) { .more::details-content, .more > summary svg, .case-link svg { transition: none !important; } }

/* short factual intro paragraph (also read by search engines and AI answer engines) */
.intro .lede { max-width: 860px; margin-top: 16px; font-size: clamp(15px, 1.1vw, 17px); color: var(--text-muted); }
.tl-meta time { white-space: nowrap; }

/* ==========================================================================
   Round 3: effects
   a) stats icons: coffee mug fills, clock ticks
   b) skill / keyword search that dims the roles that do not match
   c) glowing comet that travels down the timeline, with sparks at each icon
   d) year ticker (odometer) pinned to the corner
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- a) stats ---------- */
.stat-ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 8px; color: var(--accent); }
.stat-ic svg { width: 100%; height: 100%; overflow: visible; }
.stat { --fill: 1; }
.mug .liquid { transform: translateY(calc((1 - var(--fill, 1)) * 24px)); }
.mug .steam { opacity: 0; transform-box: fill-box; animation: steam 2.8s ease-in-out infinite; }
.mug .s2 { animation-delay: .9s; } .mug .s3 { animation-delay: 1.8s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 35% { opacity: .9; } 100% { opacity: 0; transform: translateY(-5px); } }
.clock .hand { transform-box: view-box; transform-origin: 24px 24px; }
.clock .minute { animation: tick 60s linear infinite; }
.clock .hour { animation: tick 720s linear infinite; }
.stat.is-counting .clock .minute { animation: tick 0.9s linear infinite; }
.stat.is-counting .clock .hour { animation: tick 5s linear infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

/* ---------- b) skill search ---------- */
.skill-filter { display: none; max-width: 760px; margin: 0 auto 24px; text-align: center; }
.js .skill-filter { display: block; }
.sf-box { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--surface-border); background: var(--surface); transition: border-color 250ms ease, box-shadow 250ms ease; }
.sf-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sf-box svg { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.sf-box input { flex: 1; min-width: 0; height: 50px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.sf-box input::placeholder { color: var(--text-muted); }
.sf-pills { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sf-pill { min-height: 34px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--surface-border); background: var(--chip-bg); color: var(--text); font: 600 14px/1 var(--font-body); cursor: pointer; transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, transform 250ms ease; }
.sf-pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.sf-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sf-status { min-height: 1.7em; margin: 16px 0 0; color: var(--text-soft); font-size: 14px; }
.sf-link { padding: 0 4px; border: 0; background: none; color: var(--accent); font: 700 14px/1 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sf-link[hidden] { display: none; }
.tl-item { transition: opacity 450ms ease, filter 450ms ease; }
.tl-item.is-dim { opacity: .22; filter: saturate(.2); }
.tl-item.is-match .tl-card { border-color: color-mix(in srgb, var(--accent) 60%, var(--surface-border)); box-shadow: 0 0 0 1px var(--accent-soft), 0 0 30px -10px var(--accent); }
.chips li.hit { background: var(--accent); color: #fff; }

/* ---------- c) comet ---------- */
.tl-comet { --trail: 70px; position: absolute; left: 50%; top: var(--progress, 0px); z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; pointer-events: none; opacity: var(--comet-o, 0); transition: opacity 300ms ease; background: radial-gradient(circle, #fff 0 25%, var(--accent) 60%, transparent 72%); box-shadow: 0 0 16px 5px var(--accent-soft), 0 0 42px 14px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-comet::before { content: ""; position: absolute; left: 50%; bottom: 50%; width: 5px; height: var(--trail); margin-left: -2.5px; border-radius: 5px; background: linear-gradient(to top, var(--accent), transparent); filter: blur(1.2px); transition: height 450ms ease-out; }
@media (max-width: 899.98px) { .tl-comet { left: 24px; } }
@media (max-width: 575.98px) { .tl-comet { left: 18px; } }
.spark { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 4; box-shadow: 0 0 8px 2px var(--accent-soft); }
.ripple { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; z-index: 1; }
.tl-node { overflow: visible; }

/* ---------- d) year ticker ---------- */
.year-ticker { position: fixed; left: clamp(12px, 2vw, 36px); bottom: clamp(16px, 2vw, 40px); z-index: 60; display: grid; gap: 2px; padding: 8px 16px 16px; border-radius: 16px; border: 1px solid var(--surface-border); background: color-mix(in srgb, var(--surface) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 350ms ease, transform 350ms ease; }
.year-ticker.is-on { opacity: 1; transform: none; }
.yt-label { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.yt-digits, .yt-text { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent); }
.yt-text { height: 30px; font-size: 24px; display: flex; align-items: center; }
.yt-digits { display: flex; height: 1em; overflow: hidden; }
.yt-digits[hidden], .yt-text[hidden] { display: none; }
.year-ticker .d { display: block; width: .64em; height: 1em; overflow: hidden; }
.year-ticker .strip { display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1em)); transition: transform 800ms cubic-bezier(.2,.9,.25,1); }
.year-ticker i { display: block; height: 1em; font-style: normal; text-align: center; }
@media (max-width: 899.98px) { .year-ticker { padding: 8px 16px 8px; } .yt-digits { font-size: 22px; } .yt-text { font-size: 18px; height: 22px; } }

@media (prefers-reduced-motion: reduce) {
  .tl-comet, .year-ticker .strip { transition: none; }
  .mug .steam, .clock .hand, .hourglass .hg, .hourglass .sand, .hourglass .stream { animation: none !important; }
  .hourglass .sand-top { transform: translateY(8px); }
  .hourglass .sand-bot { transform: translateY(9px); }
  .hourglass .stream { opacity: 0; }
  .mug .steam { opacity: .6; }
  .tl-item { transition: none; }
}
@media print { .year-ticker, .tl-comet, .skill-filter, .tl-tools { display: none !important; } }

/* timeline icons stay off (hollow, muted) until the comet reaches them, then switch on with the ripple */
.js .tl-node { background: var(--page-bg); color: var(--text-muted, #8a929d); box-shadow: 0 0 0 6px var(--page-bg), inset 0 0 0 2px var(--surface-border, var(--border, rgba(128,128,128,.4))); transition: transform 500ms cubic-bezier(.3,1.6,.5,1), box-shadow 400ms ease, background-color 300ms ease, color 300ms ease; }
.js .tl-item.is-lit .tl-node { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px var(--page-bg), 0 0 18px 2px var(--accent-soft); }
.js .tl-item.is-active .tl-node { box-shadow: 0 0 0 6px var(--page-bg), 0 0 0 9px var(--accent-soft), 0 0 26px 4px var(--accent-soft); }
.js .tl-item:not(.is-lit) .tl-node { box-shadow: 0 0 0 6px var(--page-bg), inset 0 0 0 2px var(--surface-border, var(--border, rgba(128,128,128,.4))); }
