/*
  JIT 40 - styles
  Look: the burst of the journal cover (dark core, rays, orange to red to amber), bold white
  uppercase title, one pale pill. Source Sans 3 is self-hosted.

  Shape rule: pill (999px) for buttons and the hero pill, 20px for surfaces (cells, form, cards),
  12px for inputs. Nothing else.

  Motion is a demo of what the browser can do, with a fallback for each piece:
  - hero: WebGL shader (CSS burst when WebGL is missing)
  - "The day": horizontal pinned scroll via scroll-driven animations (stacked panels elsewhere)
  - archive dial, countdown, 3D cells, success burst: small JS, no libraries
  The "Calm mode" button in the footer switches all of it off (class "calm" on <html>).
*/

/* Same typeface and weights as the IWI site: Source Sans 3, 300 for display, 400 for text, 600 for labels (SIL OFL, self-hosted). */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url("fonts/source-sans-3-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
}

@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 180deg; }

:root {
  --font: "Source Sans 3", "Gill Sans", "Gill Sans MT", system-ui, "Segoe UI", Arial, sans-serif;

  --bg: #fbfaf9;
  --surface: #f3efed;
  --ink: #211d1f;
  --muted: #5b5256;
  --line: #e4dedc;
  --accent: #8a1f14;           /* text accent on light */
  --orange: #ee6a0c;           /* decorative fills only */
  --focus: #c4160e;
  --error: #b3261e;

  --cream: #fff1e2;            /* the cover pill */
  --maroon: #2a0b09;           /* the core of the burst */
  --maroon-ink: #4a1410;
  --night: #1a0908;            /* dark sections, in light and dark mode */

  --r-pill: 999px;
  --r-surface: 20px;
  --r-input: 12px;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151112;
    --surface: #211b1c;
    --ink: #f3eeec;
    --muted: #b9afb1;
    --line: #372f31;
    --accent: #ff9a4d;
    --focus: #ffb27a;
    --error: #ff9b94;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; color-scheme: light dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
}
::selection { background: var(--maroon); color: #ffe9d9; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* on the bright, moving hero a single colour is not enough: white ring with a dark halo */
.hero :focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--maroon), 0 0 0 6px rgba(42,11,9,.9);
}
.night :focus-visible { outline-color: var(--cream); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: #fff; color: #211d1f; padding: .6rem 1rem; border-radius: var(--r-pill);
}
.skip:focus { top: 1rem; }

/* thin reading progress bar at the very top (scroll-driven, no JS) */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  html:not(.calm) .progress {
    display: block; position: fixed; z-index: 12; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #ffc21a, #ee6a0c, #c4160e);
    transform-origin: left; transform: scaleX(0);
    animation: progress linear both; animation-timeline: scroll(root);
  }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- Buttons ---------- */
.btn {
  --x: 50%; --y: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.9rem;
  border: 1.5px solid var(--btn-line, transparent); border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-ink);
  font: 600 .9375rem/1 var(--font); letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; text-shadow: none; white-space: nowrap; cursor: pointer;
  transition: color .35s var(--ease), transform .2s var(--ease), background-color 0s;
}
/* the iris: a circle of the hover colour that opens from where the pointer entered */
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--btn-iris);
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path .55s var(--ease);
}
@media (hover: hover) {
  /* once the iris has covered the button, the button itself takes the iris colour (instant, so nothing flickers) */
  .btn:hover { color: var(--btn-ink-hover); background-color: var(--btn-iris); transition: color .35s var(--ease), transform .2s var(--ease), background-color 0s .55s; }
  .btn:hover::before { clip-path: circle(150% at var(--x) var(--y)); }
}
.btn:focus-visible { color: var(--btn-ink-hover); background-color: var(--btn-iris); }
.btn:focus-visible::before { clip-path: circle(150% at 50% 50%); }
.btn:active { transform: scale(.98); }

.btn--light { --btn-bg: var(--cream); --btn-ink: var(--maroon-ink); --btn-iris: var(--maroon); --btn-ink-hover: var(--cream); }
.btn--ghost {
  --btn-bg: rgba(42,11,9,.28); --btn-line: var(--cream); --btn-ink: var(--cream);
  --btn-iris: var(--cream); --btn-ink-hover: var(--maroon-ink);
}
.btn--solid { --btn-bg: var(--maroon); --btn-ink: var(--cream); --btn-iris: var(--orange); --btn-ink-hover: var(--maroon); }
@media (prefers-color-scheme: dark) { .btn--solid { --btn-bg: var(--cream); --btn-ink: var(--maroon); } }
.btn--small { min-height: 2.75rem; padding: 0 1.4rem; font-size: .875rem; }
@media (forced-colors: active) { .btn { border: 1.5px solid ButtonText; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100dvh;
  display: grid; grid-template-rows: 1fr auto;
  color: #fff;
  --fx: 68%; --fy: 64%;          /* focal point of the burst (same as in assets/hero.js) */
}
.burst { position: absolute; inset: 0; z-index: -1; }
.burst__base {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(255,194,26,.95), rgba(255,194,26,0) 34%),
    radial-gradient(circle at var(--fx) var(--fy), #2a0b09 0, #4a1516 9vmax, rgba(85,25,26,.55) 22vmax, rgba(85,25,26,0) 40vmax),
    radial-gradient(ellipse 85% 75% at var(--fx) var(--fy), #b8120d 0, #dc1f0d 38%, #ec4f0c 66%, #f27a0b 100%);
}
.burst__rays {
  position: absolute; left: var(--fx); top: var(--fy);
  width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 3deg,
    rgba(255,226,150,0) 0deg, rgba(255,226,150,.17) 1.1deg, rgba(255,226,150,0) 2.6deg,
    rgba(50,6,5,0) 3.8deg, rgba(50,6,5,.17) 5deg, rgba(50,6,5,0) 7deg,
    rgba(255,170,60,0) 8.6deg, rgba(255,170,60,.15) 9.5deg, rgba(255,170,60,0) 11.4deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 7%, #000 16%, #000 36%, transparent 62%);
          mask-image: radial-gradient(closest-side, transparent 7%, #000 16%, #000 36%, transparent 62%);
  filter: blur(2.5px);
  animation: spin 220s linear infinite;
}
.burst__rays--b {
  background: repeating-conic-gradient(from 11deg,
    rgba(255,240,200,0) 0deg, rgba(255,240,200,.13) .5deg, rgba(255,240,200,0) 1.4deg,
    rgba(40,4,4,0) 5.2deg, rgba(40,4,4,.14) 6.2deg, rgba(40,4,4,0) 8deg,
    rgba(255,226,150,0) 11.5deg, rgba(255,226,150,.12) 12.4deg, rgba(255,226,150,0) 14.3deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 8%, #000 18%, #000 32%, transparent 54%);
          mask-image: radial-gradient(closest-side, transparent 8%, #000 18%, #000 32%, transparent 54%);
  filter: blur(1.5px); animation-duration: 340s; animation-direction: reverse;
}
/* WebGL version (assets/hero.js) replaces the CSS gradient and rays when it is available */
.burst__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.burst--gl .burst__base, .burst--gl .burst__rays { display: none; }
.burst__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(64,8,6,.5) 0, rgba(64,8,6,0) 15%),
    linear-gradient(100deg, rgba(64,8,6,.66) 0%, rgba(64,8,6,.36) 46%, rgba(64,8,6,0) 74%);
}
/* film grain: a static tile, no repaint while scrolling */
.burst::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light; opacity: .22;
}

/* No navigation: people scroll. Only the name sits on the hero as plain text. */
.brand {
  position: absolute; z-index: 5; top: clamp(1rem, 3vh, 1.75rem);
  left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  font-weight: 600; font-size: 1.25rem; letter-spacing: .03em; color: #fff; text-decoration: none;
  text-shadow: 0 1px 18px rgba(0,0,0,.4);
}

.hero__body { padding-top: calc(3.5rem + clamp(2rem, 8vh, 4.5rem)); align-self: start; }
.hero h1 {
  max-width: 15em;
  font-size: clamp(2.25rem, 5.4vw, 5rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -.004em;
  text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0,0,0,.35);
}
.hero__lead {
  max-width: 34rem; margin-top: 1.5rem;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.45; font-weight: 400;
  text-shadow: 0 1px 20px rgba(0,0,0,.45);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__foot { padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.hero__pill {
  display: inline-block; max-width: calc(100% - 3rem);
  padding: .65rem 1.5rem; border-radius: var(--r-pill);
  background: var(--cream); color: var(--maroon-ink);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.4;
}

/* Pause / play control (WCAG 2.2.2): quiet, clear on hover and keyboard focus */
.hero__motion {
  position: absolute; z-index: 1;
  right: max(.75rem, calc((100vw - var(--wrap)) / 2 + .75rem)); bottom: .75rem;
  width: 1.75rem; height: 1.75rem; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: var(--r-pill);
  background: rgba(42,11,9,.35); color: #fff; opacity: .6; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  transition: opacity .25s var(--ease), background-color .25s var(--ease);
}
.hero__motion:hover, .hero__motion:focus-visible { opacity: 1; background: rgba(42,11,9,.7); }
.hero__motion::before { content: ""; display: block; }
.hero__motion[data-state="playing"]::before { width: .3rem; height: .5rem; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hero__motion[data-state="paused"]::before { width: 0; height: 0; border-top: .3rem solid transparent; border-bottom: .3rem solid transparent; border-left: .5rem solid currentColor; margin-left: .1rem; }

/* Entrance: the headline comes in word by word (words are wrapped in main.js), then the rest */
.hero h1 .w { display: inline-block; animation: wordIn 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.hero__lead { animation: rise .9s var(--ease) .55s both; }
.hero__cta { animation: rise .9s var(--ease) .7s both; }
.hero__pill { animation: rise .9s var(--ease) .9s both; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.55em); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Scrolling away from the hero: content drifts up and fades; the burst slowly zooms */
@supports (animation-timeline: scroll()) {
  html:not(.calm) .hero__body { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
  html:not(.calm) .burst { animation: burstZoom linear both; animation-timeline: scroll(root); animation-range: 0 110vh; }
  @keyframes heroOut { to { opacity: 0; transform: translateY(-7vh); } }
  @keyframes burstZoom { to { transform: scale(1.14); } }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; line-height: 1.16; letter-spacing: -.01em; text-wrap: balance; }
.section p { color: var(--muted); max-width: 38rem; }
.section h2 + p { margin-top: 1.1rem; }
.night { background: var(--night); color: var(--cream); }
.night p { color: color-mix(in srgb, var(--cream) 78%, transparent); }

/* About: text and a bento of facts */
.about { padding-block: clamp(4rem, 8vw, 6.5rem); }
.bento { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cell--count { grid-column: span 3; grid-row: span 2; }
  .cell--date, .cell--time { grid-column: span 3; }
  .cell--venue { grid-column: span 4; }
  .cell--adm { grid-column: span 2; }
}
.cell {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--surface); border-radius: var(--r-surface);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 9rem;
}
.cell__label { font-size: 1rem; font-weight: 600; color: var(--accent); }
.cell__value { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.35; color: var(--ink); max-width: none; }
.cell__note { font-size: 1rem; max-width: none; }
.cell--count {
  background: radial-gradient(circle at 82% 18%, #2a0b09 0, #4a1516 6%, #b8120d 30%, #dc3a0c 52%, #f27a0b 80%);
  color: #fff; min-height: 18rem;
}
.cell--count .cell__label, .cell--count .cell__note { color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.count { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: clamp(.9rem, 2.2vw, 1.8rem); color: #fff; max-width: none; }
.count__unit { display: grid; gap: .2rem; }
.count b { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.count i { font-style: normal; font-size: .9375rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
/* white on the burst gradient (the general paragraph colour would otherwise turn it grey) */
.cell--count .count, .cell--count .count b, .cell--count .count i { color: #fff; }
.count b.tick { animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(-.35em); } to { opacity: 1; transform: none; } }

/* 3D cells: they lean towards the pointer and a light edge follows it (assets/fx.js sets the variables) */
@media (hover: hover) {
  html:not(.calm) .tilt { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
  html:not(.calm) .tilt.is-over { transition-duration: .12s; }
  html:not(.calm) .tilt::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(18rem circle at var(--mx) var(--my), rgba(238,106,12,.22), transparent 60%);
    opacity: 0; transition: opacity .4s var(--ease);
  }
  html:not(.calm) .cell--count.tilt::before { background: radial-gradient(18rem circle at var(--mx) var(--my), rgba(255,236,200,.3), transparent 60%); }
  html:not(.calm) .tilt.is-over::before { opacity: 1; }
}

/* Marquee: the words of the cover, one slim band, one direction */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(.55rem, 1vw, .8rem); background: var(--bg); }
.marquee__track { display: flex; align-items: center; width: max-content; gap: clamp(1rem, 2vw, 1.75rem); animation: marquee 30s linear infinite; }
.marquee__track span {
  font-size: clamp(1.05rem, 1.9vw, 1.6rem); font-weight: 300; line-height: 1.2; text-transform: uppercase; letter-spacing: .08em;
  color: transparent; -webkit-text-stroke: 1px var(--ink);
}
.marquee__track i { flex: none; width: clamp(.35rem, .6vw, .5rem); aspect-ratio: 1; border-radius: 50%; background: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }

/* The day: three panels. Pinned and scrolling sideways where scroll-driven animations exist, stacked elsewhere. */
.day { position: relative; overflow: clip; }
.day__pin { position: relative; }
.day__glow {
  position: absolute; z-index: 0; width: 80vmin; aspect-ratio: 1; border-radius: 50%;
  right: -20vmin; top: 50%; translate: 0 -50%;
  background: radial-gradient(circle, #5a1a1a 0, #c4160e 20%, #ee5a0c 44%, rgba(242,122,11,0) 68%);
  opacity: .75; pointer-events: none;
}
.day__track { position: relative; z-index: 1; display: grid; }
.panel {
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  min-height: 78vh; padding: 3rem var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));   /* vw, not %: panels sit in a track three times as wide */
}
.panel + .panel { border-top: 1px solid rgba(255,241,226,.14); }
.panel .panel__time { font-size: clamp(4.5rem, min(17vw, 30vh), 15rem); font-weight: 300; line-height: .85; letter-spacing: -.045em; color: var(--orange) !important; max-width: none !important; }
.panel h3 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.16; }
.panel p { max-width: 34rem; font-size: 1.2rem; }
.panel .panel__name { font-size: clamp(3.2rem, 11vw, 9.5rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.panel .panel__role { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 400; color: var(--cream); }
.day__bar { display: none; }

@supports (animation-timeline: view()) {
  html:not(.calm) .day { height: 380vh; view-timeline: --day block; }
  html:not(.calm) .day__pin { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
  html:not(.calm) .day__track { display: flex; width: 300%; height: 100%; animation: dayslide linear both; animation-timeline: --day; animation-range: contain 0% contain 100%; }
  html:not(.calm) .panel { flex: none; width: calc(100% / 3); min-height: 0; border-top: 0; }
  html:not(.calm) .panel + .panel { border-left: 1px solid rgba(255,241,226,.14); }
  html:not(.calm) .day__glow { animation: dayglow linear both; animation-timeline: --day; animation-range: contain 0% contain 100%; right: auto; left: 0; }
  html:not(.calm) .panel .panel__name {
    --sweep: 0deg;
    -webkit-mask-image: conic-gradient(from 180deg at 100% 50%, #000 var(--sweep), transparent var(--sweep));
            mask-image: conic-gradient(from 180deg at 100% 50%, #000 var(--sweep), transparent var(--sweep));
    animation: wipe linear both; animation-timeline: --day; animation-range: contain 66% contain 90%;
  }
  html:not(.calm) .day__bar { display: block; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,241,226,.14); }
  html:not(.calm) .day__bar span { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(0); animation: grow linear both; animation-timeline: --day; animation-range: contain 0% contain 100%; }
  @keyframes dayslide { to { transform: translateX(calc(-100% * 2 / 3)); } }
  @keyframes dayglow { from { translate: -30vmin -50%; } to { translate: calc(100vw - 60vmin) -50%; } }
  @keyframes wipe { to { --sweep: 180deg; } }
  @keyframes grow { to { transform: scaleX(1); } }
}

/* Archive: a slim number line of 41 rays (one per year) and a card for the selected year */
.archive { overflow: clip; }
.archive__head { max-width: 46rem; }

.timeline { position: relative; margin-top: clamp(1.8rem, 3.5vw, 2.6rem); }
.line { position: relative; height: 46px; margin-inline: 12px; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.line::after { content: ""; position: absolute; left: -12px; right: -12px; bottom: -1px; height: 1px; background: rgba(255,241,226,.22); }
.ray {
  position: absolute; bottom: 0; left: calc(100% * var(--x)); width: 4px; margin-left: -2px; height: var(--h);
  background: var(--c); border-radius: 2px 2px 0 0; opacity: .78;
  transform-origin: bottom; transform: scaleY(0);
}
.line.in .ray { transform: scaleY(1); transition: transform .9s var(--ease) calc(var(--i) * 20ms), opacity .2s linear, width .2s linear, margin-left .2s linear, height .2s var(--ease); }
.ray.is-hover { opacity: 1; }
.ray.is-on { background: var(--cream); opacity: 1; width: 6px; margin-left: -3px; height: 100%; }

.timeline__scale { position: relative; height: 2rem; margin-top: .6rem; font-size: .9375rem; font-weight: 600; color: color-mix(in srgb, var(--cream) 78%, transparent); }
.timeline__scale span { position: absolute; top: 0; left: calc(12px + (100% - 24px) * var(--x)); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.timeline__range { display: block; width: 100%; height: 24px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.timeline__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,241,226,.28); }
.timeline__range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,241,226,.28); }
.timeline__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--orange); border: 3px solid var(--cream); }
.timeline__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 3px solid var(--cream); }
.timeline__range:focus-visible { outline: 3px solid var(--cream); outline-offset: 6px; border-radius: 12px; }

.year-card {
  margin-top: 1.5rem; padding: clamp(1.4rem, 3vw, 2.2rem); min-height: 17rem;
  display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; align-items: start;
  border-radius: var(--r-surface); background: rgba(255,241,226,.07); border: 1px solid rgba(255,241,226,.16);
}
@media (min-width: 900px) { .year-card { grid-template-columns: minmax(11rem, .7fr) 3fr; } }
.night .year-card__year { font-size: clamp(3.4rem, 8vw, 5.6rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--orange); font-variant-numeric: tabular-nums; max-width: none; }
.night .year-card__vol { margin-top: .4rem; font-weight: 600; font-size: 1.2rem; color: var(--cream); }
.night .year-card__count { margin-top: .2rem; font-size: 1.05rem; color: var(--cream); }
.year-card__list { margin: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: 1fr; align-content: start; }
@media (min-width: 900px) { .year-card__list { grid-template-columns: repeat(3, 1fr); } }
.year-card__list li { display: grid; gap: .3rem; align-content: start; }
.year-card__list a { color: var(--cream); font-size: 1.1rem; line-height: 1.35; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.year-card__list a:hover { color: var(--orange); }
.year-card__list span { font-size: .9375rem; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.year-card__note { grid-column: 1 / -1; font-size: 1.05rem; }
.year-card__list:empty { display: none; }
.archive__source { margin-top: 1.2rem; font-size: .875rem; max-width: 40rem; }

/* Register */
.register { background: var(--bg); padding-block: clamp(5rem, 10vw, 8.5rem); }
.register__grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .register__grid { grid-template-columns: 5fr 6fr; gap: 5rem; } }
.form, .done { background: var(--surface); border-radius: var(--r-surface); padding: clamp(1.5rem, 3vw, 2.5rem); }
.form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: 1.0625rem; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 3rem; padding: .7rem 1rem;
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid #8b8184; border-radius: var(--r-input);
  transition: border-color .25s var(--ease);
}
@media (prefers-color-scheme: dark) { .field input[type="text"], .field input[type="email"] { border-color: #8f8487; } }
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.field .field__err { color: var(--error); font-size: 1rem; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: .8rem; }
.field--check input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--accent); }
.field--check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.field--check label { font-weight: 400; color: var(--muted); }
.field--check .field__err { grid-column: 2; }
.form .btn { justify-self: start; margin-top: .4rem; }
@media (max-width: 560px) { .form .btn { justify-self: stretch; } }
.done h3 { font-size: 1.75rem; font-weight: 300; }
.done p { margin-top: .6rem; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer__inner { display: grid; gap: 1rem 2rem; align-items: center; }
@media (min-width: 800px) { .footer__inner { grid-template-columns: auto 1fr auto; } }
.footer__brand { font-weight: 600; font-size: 1.375rem; }
.footer__text { color: var(--muted); max-width: 40rem; font-size: 1rem; }
.footer__links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer__links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: 1rem; }
.footer__links a.footer__link { color: var(--accent); font-weight: 600; }
.calm {
  min-height: 2.75rem; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: transparent; color: var(--muted); font: 600 .9375rem/1 var(--font); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.calm:hover, .calm[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* One entrance for content below the hero: it rises a little and appears.
   It uses the separate "translate" property, so 3D tilt (transform) can run on the same element. */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.js .bento .reveal:nth-child(2).in { transition-delay: .08s, .08s, 0s; }
.js .bento .reveal:nth-child(3).in { transition-delay: .16s, .16s, 0s; }
.js .bento .reveal:nth-child(4).in { transition-delay: .24s, .24s, 0s; }
.js .bento .reveal:nth-child(5).in { transition-delay: .32s, .32s, 0s; }

/* Calm mode: everything stops, nothing is hidden */
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (max-width: 760px) {
  .hero { --fx: 62%; --fy: 70%; }
}

/* ---------- Privacy and imprint pages ---------- */
.doc-head {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  --fx: 82%; --fy: 135%;
  padding: calc(3.5rem + clamp(2rem, 6vh, 4rem)) 0 clamp(2.5rem, 6vh, 4rem);
}
.doc-head h1 {
  font-size: clamp(2rem, 4.6vw, 3.75rem); font-weight: 300; line-height: 1.05;
  text-transform: uppercase; text-shadow: 0 2px 28px rgba(0,0,0,.35);
}
.doc { padding-block: clamp(3rem, 7vw, 5rem); }
.doc .wrap { max-width: 46rem; }
.doc h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); margin-top: 2.5rem; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink); max-width: none; margin-top: .8rem; }
.doc ul { padding-left: 1.2rem; margin: 0; }
.doc a { color: var(--accent); }
.doc__note { padding: 1rem 1.25rem; border-radius: var(--r-input); background: var(--surface); margin-bottom: 2rem; }
.tba { padding: .05em .35em; border-radius: 6px; background: color-mix(in srgb, var(--orange) 22%, transparent); }

.doc .small { font-size: .9375rem; color: var(--muted); margin-top: 2rem; }
