/* Year detector: intentionally independent visual language, scoped to this page. */
.year-lab {
  --yl-acid: #d9fa73;
  --yl-ink: #121b17;
  --yl-cream: #f0f2e5;
  --yl-muted: #b7c5b9;
  background: #0e1713;
  color: #f1f5e8;
  min-height: calc(100svh - 96px);
  padding: 28px 0 50px;
}
.year-lab * { box-sizing: border-box; }
.year-lab [hidden] { display: none !important; }
.year-lab .yl-shell { width: min(calc(100% - 48px), 1180px); margin: 0 auto; }
.year-lab .yl-topline {
  border-top: 1px solid #425447;
  padding-top: 14px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  font: 10px/1.5 'DM Mono', ui-monospace, monospace;
  letter-spacing: .05em;
  color: var(--yl-muted);
}
.year-lab .yl-topline a { color: var(--yl-acid); }
.year-lab .yl-topline a:hover { text-decoration: underline; }
.year-lab .yl-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  padding: clamp(38px, 6vw, 76px) 0 24px;
}
.year-lab .yl-pitch { min-width: 0; }
.year-lab .yl-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font: 10px/1.5 'DM Mono', ui-monospace, monospace;
  letter-spacing: .08em;
  color: var(--yl-acid);
}
.year-lab .yl-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--yl-acid); box-shadow: 0 0 0 5px #d9fa7320; }
.year-lab .yl-title {
  margin: 0;
  font: 800 clamp(50px, 7.5vw, 112px)/1.08 Manrope, Arial, sans-serif;
  letter-spacing: -.055em;
  text-wrap: normal;
}
.year-lab .yl-title span {
  display: block;
  white-space: nowrap;
}
.year-lab .yl-title span:last-child { color: var(--yl-acid); }
.year-lab .yl-subtitle {
  max-width: 430px;
  margin: 32px 0 0;
  color: #c3d3c4;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
}
.year-lab .yl-panel {
  min-width: 0;
  border: 1px solid #f0f2e5;
  border-radius: 18px;
  background: var(--yl-cream);
  color: var(--yl-ink);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 10px 10px 0 #d9fa7328;
}
.year-lab .yl-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #c4c9b9;
  padding-bottom: 15px;
  font: 700 11px/1.5 'DM Mono', ui-monospace, monospace;
  letter-spacing: .04em;
}
.year-lab .yl-panel-top span:last-child { color: #6a8b33; }
.year-lab .yl-panel-caption {
  color: #667264;
  font: 10px/1.5 'DM Mono', ui-monospace, monospace;
  margin: clamp(25px, 3vw, 44px) 0 2px;
}
.year-lab .yl-year {
  display: block;
  color: var(--yl-ink);
  font-size: clamp(65px, 8vw, 116px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin: 0 0 6px;
}
.year-lab .yl-year.is-revealed { animation: yl-pop .35s cubic-bezier(.15,.8,.2,1) both; }
.year-lab .yl-summary { min-height: 3em; margin: 0 0 22px; font-size: 13px; line-height: 1.5; color: #667264; }
.year-lab .yl-run {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 8px;
  background: var(--yl-ink);
  color: var(--yl-acid);
  padding: 15px 19px;
  font: 700 13px/1.35 'DM Mono', ui-monospace, monospace;
  cursor: pointer;
  transition: transform .18s, background .18s;
}
.year-lab .yl-run:hover:not(:disabled) { background: #283e2c; transform: translateY(-2px); }
.year-lab .yl-run:disabled { opacity: .7; cursor: wait; }
.year-lab .yl-run span:last-child { font-size: 22px; }
.year-lab .yl-share {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 11px 15px;
  border: 1px solid #9ea99b;
  border-radius: 8px;
  color: var(--yl-ink);
  background: transparent;
  font: 700 11px/1.4 'DM Mono', ui-monospace, monospace;
  cursor: pointer;
  transition: background .18s;
}
.year-lab .yl-share:hover { background: #dae3d2; }
.year-lab .yl-share-status {
  color: #516d4b;
  font: 11px/1.5 'DM Mono', ui-monospace, monospace;
  margin: 8px 0 0;
}
.year-lab .yl-share-status:empty { display: none; }
.year-lab .yl-source { margin: 18px 0 0; color: #657064; font: 11px/1.5 'DM Mono', ui-monospace, monospace; }
.year-lab .yl-source code { color: #253d2a; font-size: inherit; overflow-wrap: anywhere; }
.year-lab .yl-footnote { margin: 18px 0 0; max-width: 780px; font: 10px/1.7 'DM Mono', ui-monospace, monospace; color: #8fa792; }
@keyframes yl-pop { from { opacity: .2; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 820px) {
  .year-lab .yl-scene { grid-template-columns: 1fr; gap: 34px; }
  .year-lab .yl-title { font-size: clamp(50px, 10.5vw, 84px); }
  .year-lab .yl-panel { max-width: 580px; }
}
@media (max-width: 480px) {
  .year-lab { min-height: calc(100svh - 73px); padding: 18px 0 34px; }
  .year-lab .yl-shell { width: calc(100% - 34px); }
  .year-lab .yl-topline { font-size: 8px; }
  .year-lab .yl-topline span { text-align: right; max-width: 135px; }
  .year-lab .yl-scene { padding-top: 32px; gap: 26px; }
  .year-lab .yl-eyebrow { font-size: 9px; margin-bottom: 15px; }
  .year-lab .yl-title { font-size: clamp(44px, 12vw, 60px); line-height: 1.1; letter-spacing: -.05em; }
  .year-lab .yl-subtitle { margin-top: 18px; font-size: 14px; line-height: 1.5; }
  .year-lab .yl-panel { padding: 21px; border-radius: 12px; box-shadow: 5px 5px 0 #d9fa7328; }
  .year-lab .yl-panel-caption { margin-top: 22px; }
  .year-lab .yl-year { font-size: clamp(65px, 21vw, 96px); }
  .year-lab .yl-run { min-height: 56px; font-size: 12px; }
  .year-lab .yl-source { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .year-lab * { animation: none !important; transition: none !important; }
}


/* A brief cinematic time jump. The existing layout and controls never move. */
.year-lab .yl-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.year-lab .yl-panel > * {
  position: relative;
  z-index: 1;
}
.year-lab .yl-panel::before,
.year-lab .yl-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}
.year-lab .yl-panel::before {
  inset: -35%;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center,
      transparent 0 26px,
      rgba(0, 182, 214, .55) 28px 30px,
      transparent 34px 63px,
      rgba(249, 136, 39, .43) 65px 67px,
      transparent 72px 100px);
  mix-blend-mode: multiply;
}
.year-lab .yl-panel::after {
  inset: -20% -55%;
  background:
    repeating-linear-gradient(96deg,
      transparent 0 21px,
      rgba(2, 169, 215, .5) 22px 24px,
      transparent 25px 56px,
      rgba(255, 132, 53, .55) 58px 60px,
      transparent 62px 96px);
  mix-blend-mode: multiply;
}
.year-lab .yl-panel.is-time-warp::before {
  animation: yl-temporal-tunnel 1.7s cubic-bezier(.3,.1,.3,1) both;
}
.year-lab .yl-panel.is-time-warp::after {
  animation: yl-temporal-streaks 1.7s cubic-bezier(.4,.05,.45,1) both;
}
.year-lab .yl-panel.is-time-warp .yl-year {
  animation: yl-temporal-flicker .14s steps(2,end) infinite;
}
.year-lab .yl-panel.is-time-arrival {
  animation: yl-temporal-flash .75s ease-out both;
}
.year-lab .yl-panel.is-time-arrival .yl-year.is-revealed {
  animation: yl-temporal-reveal .65s cubic-bezier(.13,.85,.24,1) both;
}
@keyframes yl-temporal-tunnel {
  0% { opacity: 0; transform: scale(.3) rotate(-35deg); }
  25% { opacity: .2; }
  65% { opacity: .7; }
  100% { opacity: 0; transform: scale(1.8) rotate(95deg); }
}
@keyframes yl-temporal-streaks {
  0% { opacity: 0; transform: translateX(-45%) skewX(-25deg) scaleX(.4); }
  20% { opacity: .2; }
  70% { opacity: .65; }
  100% { opacity: 0; transform: translateX(55%) skewX(-25deg) scaleX(1.5); }
}
@keyframes yl-temporal-flicker {
  0%, 100% { opacity: .45; text-shadow: -2px 0 #00bcd0, 2px 0 #ff9f40; }
  50% { opacity: .9; text-shadow: 2px 0 #00bcd0, -2px 0 #ff9f40; }
}
@keyframes yl-temporal-flash {
  0% { box-shadow: 0 0 0 2px #00c4dc, 0 0 44px 10px #ff9e5b88; }
  100% { box-shadow: 10px 10px 0 #d9fa7328; }
}
@keyframes yl-temporal-reveal {
  0% { opacity: 0; filter: blur(11px); transform: scale(1.18); color: #ff9f40; }
  50% { opacity: 1; filter: blur(0); color: #008a9b; }
  100% { opacity: 1; transform: scale(1); color: var(--yl-ink); }
}
/* Motion-sensitive visitors get an immediate, still-functional result. */
@media (prefers-reduced-motion: reduce) {
  .year-lab .yl-panel::before,
  .year-lab .yl-panel::after { display: none; }
  .year-lab .yl-panel.is-time-warp,
  .year-lab .yl-panel.is-time-arrival,
  .year-lab .yl-panel.is-time-warp .yl-year,
  .year-lab .yl-panel.is-time-arrival .yl-year { animation: none !important; }
}
