/* GAMMA project page: film-strip style (picked 2026-10-21).
   The input of GAMMA is one strip of film (the paper's teaser draws it that way).
   Monochrome page; the only colour outside the results is the amber edge print on black film. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; 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: "Archivo";
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; 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 {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #1C1C1C;
  --graphite: #646464;
  --rule: #E4E4E4;
  --film: #000000;
  --sprocket: #E9E9E9;
  --amber: #F0A82E;
  --amber-deep: #A8650A;
  --wash: #F4F4F4;
  --col: 920px;
  --pad: 24px;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.62; font-stretch: 100%;
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: #FFE2A8; }
sup { font-size: .62em; line-height: 0; vertical-align: .62em; margin-left: 1px; }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 3px; text-decoration: none; }
.skip-link:focus { left: 12px; }
.col { width: min(var(--col), 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .2s;
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.topbar-inner { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-mark { font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: .01em; text-decoration: none; }
.topbar-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.topbar-links a { text-decoration: none; color: var(--graphite); }
.topbar-links a:hover, .topbar-links a[aria-current="true"] { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 44px 0 0; text-align: center; }
.venue { margin: 0 0 6px; font-stretch: 75%; font-weight: 600; font-size: 16px; letter-spacing: .05em; color: var(--graphite); }
.hero h1 { margin: 0; font-weight: inherit; }
.wordmark {
  display: block; font-stretch: 125%; font-weight: 800; line-height: .92;
  font-size: clamp(60px, 16.5vw, 144px); letter-spacing: -.012em;
}
.subtitle { display: block; margin: 18px auto 0; max-width: 780px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.35; font-weight: 450; }
.byline { margin: 26px auto 0; max-width: 900px; }
.authors { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 20px; font-weight: 520; }
.authors a { text-decoration: none; border-bottom: 1px solid #BDBDBD; }
.authors a:hover { border-bottom-color: var(--ink); }
.affiliation { margin: 10px 0 0; font-size: 16px; color: var(--graphite); display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
.affiliation--notes { margin-top: 4px; font-size: 14.5px; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 17px;
  border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper);
  font-weight: 600; font-size: 15.5px; text-decoration: none; color: var(--ink);
  transition: background .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.is-soon { border-style: dashed; border-color: #A9A9A9; color: var(--graphite); cursor: default; }
.btn.is-soon:hover { background: var(--paper); color: var(--graphite); }
.btn small { font-size: 12px; font-weight: 500; font-stretch: 85%; color: #8A8A8A; }

/* film band */
.filmband {
  margin: 40px 0 0; background: var(--film); padding: 34px 0;
  position: relative; overflow: hidden;
}
.filmband::before, .filmband::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='12'%3E%3Crect x='8' y='0' width='14' height='12' rx='2.5' fill='%23E9E9E9'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center;
}
.filmband::before { top: 11px; }
.filmband::after { bottom: 11px; }
.filmband-strip { display: flex; justify-content: center; gap: 26px; }
.frame { --fw: clamp(220px, 28vw, 460px); flex: 0 0 var(--fw); margin: 0; }
.frame-gate { width: var(--fw); aspect-ratio: 460 / 352; overflow: hidden; position: relative; border-radius: 6px; background: #111; }
.frame-gate video { position: absolute; left: 0; top: 50%; width: 200%; max-width: none; transform: translateY(-50%); }
.frame-gate video[data-half="right"] { left: -100%; }
.frame figcaption { margin-top: 9px; text-align: left; font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .06em; color: var(--amber); }
.hero-caption { margin: 18px auto 0; font-size: 15px; color: var(--graphite); text-align: center; }

/* ---------- sections ---------- */
.sec { padding: 76px 0 8px; }
.sec h2 { margin: 0 0 22px; font-stretch: 112%; font-weight: 760; font-size: 34px; line-height: 1.1; letter-spacing: -.005em; }
.sec h3 { margin: 52px 0 12px; font-stretch: 100%; font-weight: 680; font-size: 22px; line-height: 1.25; }
.sec p { margin: 0 0 16px; }
.abstract { font-size: 18px; line-height: 1.66; }
@media (min-width: 721px) {
  .sec p, figcaption.cap { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
}

.figure { margin: 30px 0 34px; }
.figure img { width: 100%; height: auto; }
figcaption.cap { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--graphite); }
figcaption.cap b { color: var(--ink); font-weight: 650; }

/* ---------- clips ---------- */
.clip { text-align: left; margin: 26px 0 40px; }
.clip-head, .clip-foot { display: grid; grid-template-columns: 1fr 1fr; }
.clip-head span, .clip-foot span { font-stretch: 85%; font-weight: 600; font-size: 14px; color: var(--graphite); padding: 0 0 7px 2px; }
.clip-foot span { padding: 7px 0 0 2px; }
.clip-stage { position: relative; cursor: pointer; background: #111; }
.clip-stage video { width: 100%; }
.clip-stage::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--paper); pointer-events: none; }
.clip--grid .clip-stage::before { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - 1px); height: 2px; background: var(--paper); z-index: 1; pointer-events: none; }
.clip-stage .paused-mark { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: none; place-items: center; z-index: 2; }
.clip-stage .paused-mark::before { content: ""; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.clip.is-paused .paused-mark { display: grid; }

/* edge print under each clip: one tick per frame, amber when that frame is on screen */
.clip-time { display: flex; align-items: center; gap: 14px; background: var(--film); height: 28px; padding: 0 12px; }
.ticks { display: flex; gap: 3px; flex: 1 1 auto; min-width: 0; }
.ticks i { flex: 1 1 0; height: 9px; border-radius: 1.5px; background: #3A3A3A; }
.ticks i.is-on { background: var(--amber); }
.clip-state { font-stretch: 75%; font-weight: 600; font-size: 13px; letter-spacing: .05em; color: var(--amber); white-space: nowrap; opacity: 0; transition: opacity .2s; }
.clip.is-held .clip-state { opacity: 1; }
.clip[data-time="held"] .ticks { visibility: hidden; }

/* ---------- lifespan explainer ---------- */
.lifespan { margin: 26px 0 34px; --ls-reg: #1C1C1C; --ls-free: #E08A00; --ls-axis: #BDBDBD; }
.ls-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ls-switch { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.ls-switch button { appearance: none; border: 0; background: var(--paper); color: var(--ink); font: 600 15px/1 var(--sans); padding: 10px 16px; cursor: pointer; }
.ls-switch button + button { border-left: 1.5px solid var(--ink); }
.ls-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ls-legend { display: flex; gap: 18px; font-size: 14px; color: var(--graphite); }
.ls-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ls-legend i { width: 26px; height: 8px; border-radius: 2px; background: var(--ls-reg); }
.ls-legend i.free { background: var(--ls-free); }
.ls-svg { width: 100%; height: auto; }
.ls-note { margin-top: 8px; font-size: 15px; color: var(--graphite); min-height: 1.6em; }

/* ---------- bibtex ---------- */
.bibtex-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.copy { appearance: none; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--paper); font: 600 14px/1 var(--sans); padding: 9px 14px; cursor: pointer; color: var(--ink); }
.copy:hover { background: var(--ink); color: var(--paper); }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--wash); border-radius: 4px; padding: 20px 22px; overflow-x: auto; font: 14px/1.6 var(--mono); }
.sec--last { padding-bottom: 96px; }

/* ---------- small screens ---------- */
@media (max-width: 720px) {
  :root { --pad: 18px; }
  body { font-size: 16.5px; }
  .topbar-links { gap: 16px; font-size: 14px; }
  .topbar-mark { font-size: 17px; }
  .hero { padding-top: 34px; }
  .authors { font-size: 18px; gap: 2px 14px; }
  .affiliation { font-size: 15px; }
  .filmband { margin-top: 36px; padding: 30px 0; }
  .filmband-strip { gap: 16px; }
  .sec { padding-top: 56px; }
  .sec h2 { font-size: 28px; }
  .clip-head span, .clip-foot span { font-size: 13px; }
  .clip-time { gap: 8px; padding: 0 8px; }
  .ticks { gap: 2px; }
}
@media (max-width: 480px) { .topbar-links li:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
