/* Archiv-Hub — approved design tokens (design/grohe-entwurf) */
:root {
  --bg: #0B0A09;
  --surface: #151311;
  --surface-2: #1F1C19;
  --line: rgba(249, 249, 249, 0.08);
  --line-strong: rgba(249, 249, 249, 0.12);
  --text: #F9F9F9;
  --muted: #A7A7A7;
  --dim: #646464;
  --dark: #333333;
  --accent: #E85002;
  --accent-deep: #C10801;
  --warm: #BDB7B0;
  --sand: #D9C3AB;
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;
  --page-pad: 64px;
  --glass-bg: rgba(21, 19, 17, 0.55);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
a, button, input, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 120px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 16px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* ---------- atmosphere ---------- */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(50px); z-index: 0; }
.glow-a { left: -260px; top: -320px; width: 1100px; height: 900px; background: radial-gradient(closest-side, color-mix(in oklch, var(--accent) 34%, transparent), transparent 70%); }
.glow-b { right: -300px; top: 520px; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(193, 8, 1, 0.18), transparent 70%); filter: blur(60px); }
.glow-c { left: 300px; top: -420px; width: 1200px; height: 900px; background: radial-gradient(closest-side, rgba(232, 80, 2, 0.22), transparent 70%); filter: blur(60px); }

.page { position: relative; overflow: hidden; }
.container { position: relative; z-index: 1; width: min(100% - 2 * var(--page-pad), 1312px); margin: 0 auto; }

/* ---------- glass nav ---------- */
.nav {
  position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 14px 10px 22px; border-radius: 999px;
  background: var(--glass-bg); border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  max-width: calc(100% - 32px);
}
.nav .brand { font-weight: 500; color: var(--text); white-space: nowrap; }
.nav .tabs { display: flex; align-items: center; gap: 4px; }
.nav .tabs a, .nav .tabs button {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted);
  background: transparent; border: 0; cursor: pointer;
}
.nav .tabs a[aria-current="page"] { background: rgba(249, 249, 249, 0.10); color: var(--text); }
.nav .tabs a:hover { color: var(--text); }
.nav .search {
  display: flex; align-items: center; gap: 10px; width: 300px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(11, 10, 9, 0.55); border: 1px solid var(--line); color: var(--dim);
}
.nav .search input { flex: 1; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 14px; outline: none; min-width: 0; }
.nav .search input::placeholder { color: var(--dim); }
.nav .search svg { flex: none; }
.nav .right { display: flex; align-items: center; gap: 12px; }
.nav .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  border: 0; cursor: pointer; transition: background-color 200ms;
}
.nav .avatar:hover { background: var(--accent); color: var(--bg); }
.nav form { margin: 0; }
.nav .logout { color: var(--dim); font-size: 13px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav .logout:hover { color: var(--text); }

/* ---------- client menu (5+ clients) ---------- */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(249, 249, 249, 0.10); font-size: 14px; font-weight: 500; color: var(--text); white-space: nowrap;
}
.menu-btn svg { transition: transform 200ms; }
.menu[open] .menu-btn svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; left: 0; top: calc(100% + 14px); width: 300px; max-height: min(60vh, 520px);
  display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 20px;
  background: rgba(21, 19, 17, 0.85); border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.menu-panel input {
  height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 10, 9, 0.6);
  color: var(--text); font: inherit; font-size: 14px; outline: none;
}
.menu-panel input:focus-visible { border-color: var(--accent); }
.menu-list { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.menu-list a { padding: 9px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.menu-list a:hover, .menu-list a:focus-visible { background: rgba(249, 249, 249, 0.08); color: var(--text); }
.menu-list a[aria-current="page"] { color: var(--text); background: rgba(249, 249, 249, 0.10); }
.menu-list a[hidden] { display: none; }
.grid.clients { margin-top: 32px; }
.recent .grid { margin-top: 32px; }
.recent .results-head { margin-top: 80px; }

/* ---------- hero ---------- */
.hero { padding-top: 168px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero .title { display: flex; flex-direction: column; gap: 18px; }
.display {
  font-size: clamp(52px, 8.3vw, 120px); line-height: 0.92; letter-spacing: -0.045em; font-weight: 600; margin: 0;
  text-wrap: balance;
}
.hero .aside { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; padding-bottom: 10px; color: var(--muted); font-size: 18px; white-space: nowrap; }

/* ---------- reel ---------- */
/* no shared perspective / preserve-3d: Safari mis-stacks nested 3D layers, so each card carries its own perspective() */
.reel { position: relative; height: 500px; margin-top: 16px; user-select: none; touch-action: pan-y; }
.reel-track { position: absolute; inset: 0; }
.reel-card {
  position: absolute; left: 50%; top: 50%; width: 340px; height: 191px; margin: -95px 0 0 -170px;
  border-radius: 18px; overflow: hidden; background: var(--surface);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(249, 249, 249, 0.06);
  will-change: transform, opacity; transition: box-shadow 400ms;
  cursor: grab; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-origin: 50% 50%;
}
.reel-card img { width: 100%; height: 100%; object-fit: cover; }
.reel-card.is-center { box-shadow: 0 50px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(249, 249, 249, 0.12), 0 0 120px color-mix(in oklch, var(--accent) 22%, transparent); }
.reel-card .ph { width: 100%; height: 100%; padding: 20px; display: flex; align-items: flex-end; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; background: var(--surface); }
.reel-caption { position: absolute; left: 50%; top: 380px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.reel-caption .name { font-size: 18px; font-weight: 500; }
.reel-dots { position: absolute; left: 50%; top: 424px; transform: translateX(-50%); display: flex; gap: 6px; }
.reel-axis { position: absolute; left: 50%; top: 424px; transform: translateX(-50%); display: flex; gap: 16px; color: var(--dim); }
.reel-axis .pos { color: var(--muted); }
.reel-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--dark); transition: width 300ms, background-color 300ms; }
.reel-dots i.on { width: 18px; border-radius: 999px; background: var(--accent); }

/* ---------- timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 120px; margin-top: 80px; }
.year {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.year-head { grid-column: span 3; display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 120px; }
.year-num { font-size: clamp(72px, 9.2vw, 132px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 600; margin: 0; will-change: transform; }
.year-cards { grid-column: span 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.year-cards > :nth-child(3n + 2) { margin-top: 56px; }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; gap: 14px; color: var(--text); min-width: 0; }
.card .media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(249, 249, 249, 0.04); transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .media { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(249, 249, 249, 0.10); }
.card:hover .media img { transform: scale(1.04); }
.card .media .chip {
  position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px 8px 8px; border-radius: 999px; background: rgba(21, 19, 17, 0.5); border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(6px); transition: opacity 400ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover .media .chip, .card:focus-within .media .chip { opacity: 1; transform: none; }
.card .media .chip .play { width: 22px; height: 22px; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; }
.card .media .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, 0) 45%, rgba(11, 10, 9, 0.7) 100%); opacity: 0; transition: opacity 400ms; }
.card:hover .media .shade { opacity: 1; }
.card .media .live { position: absolute; right: 14px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(232, 80, 2, 0.8); }
.card .text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card .name { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; text-wrap: pretty; }
.card .meta { overflow-wrap: anywhere; }
.card .meta { color: var(--dim); }
.card .flag { color: var(--accent); }

.card .media.typo, .card .media.ph {
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px; overflow: hidden;
}
.card .media.typo { color: var(--bg); }
.card .media.typo.orange { background: var(--accent); }
.card .media.typo.warm { background: var(--warm); }
.card .media.typo.white { background: var(--text); }
.card .media.typo.dark, .card .media.ph { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.card .media.typo .num { display: flex; align-items: flex-end; gap: 14px; }
.card .media.typo .big { font-size: clamp(64px, 6.7vw, 96px); line-height: 0.85; letter-spacing: -0.05em; font-weight: 600; }
.card .media.typo .num .mono { padding-bottom: 6px; }
.card .media.typo.dark .mono, .card .media.ph .mono { color: var(--dim); }
.card .media.ph .ph-name { font-size: clamp(26px, 2.8vw, 40px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 600; text-wrap: balance; }

/* ---------- grid view ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 80px; align-items: start; }
.grid > :nth-child(3n + 2) { margin-top: 56px; }

/* ---------- hero layout (1-2 projects) ---------- */
.solo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 80px; }
.solo .card { grid-column: span 6; }
.solo.one .card { grid-column: 2 / span 10; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 20px 0 40px; margin-top: 140px; color: var(--dim); }

/* ---------- project page ---------- */
.project { padding-top: 150px; display: flex; flex-direction: column; gap: 40px; }
.project .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.crumbs { display: flex; gap: 12px; color: var(--muted); }
.crumbs .sep { color: var(--dark); }
.crumbs .here { color: var(--text); }
.project .head .title { display: flex; flex-direction: column; gap: 16px; }
.project .actions { display: flex; gap: 10px; padding-bottom: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(249, 249, 249, 0.06); border: 1px solid var(--line-strong); font-size: 14px; color: var(--text); cursor: pointer;
  transition: background 200ms;
}
.pill:hover { background: rgba(249, 249, 249, 0.12); }
.pill.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill.primary:hover { background: #fff; }
.pill.danger:hover { color: var(--accent); }
.media-hero {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface);
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
}
.media-hero img { width: 100%; height: 100%; object-fit: cover; }
a.media-hero { display: block; color: inherit; }
.media-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.media-hero.is-playing { cursor: default; box-shadow: 0 60px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-strong); }
a.media-hero .chip .play { transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1); }
a.media-hero:hover .chip .play { transform: scale(1.12); }
a.media-hero:hover .chip { background: rgba(21, 19, 17, 0.7); }
.media-hero .ph-name { position: absolute; left: 32px; bottom: 32px; font-size: clamp(40px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 600; }
.media-hero .chip, .media-hero .date {
  position: absolute; bottom: 24px; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(21, 19, 17, 0.5); border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); color: var(--text);
}
.media-hero .chip { left: 24px; }
.media-hero .date { right: 24px; padding: 10px 16px; }
.media-hero .chip .play { width: 30px; height: 30px; border-radius: 50%; background: var(--text); display: flex; align-items: center; justify-content: center; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 28px; }
.fact { display: flex; flex-direction: column; gap: 10px; }
.fact .v { font-size: 20px; }
.fact .s { font-size: 14px; color: var(--muted); }
.fact .mono { color: var(--dim); }
.adapt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.adapt .lead { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.adapt .lead .mono { color: var(--dim); }
.adapt .lead p { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 0; text-wrap: pretty; }
.adapt .list { grid-column: span 8; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.adapt .item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-height: 110px; justify-content: space-between; }
.adapt .item .cc { font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.adapt .item .mono { color: var(--dim); }
.adapt .item.total { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.adapt .item.total .mono { color: var(--bg); }
.adapt .item.total .cc { font-size: 56px; }
.videos { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.videos .lead { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.videos .lead .mono { color: var(--dim); }
.videos .lead p { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 0; text-wrap: pretty; }
.video-groups { grid-column: span 8; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.video-group summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.video-group summary::-webkit-details-marker { display: none; }
.video-group summary .cc { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.video-group summary .mono { color: var(--dim); }
.video-group[open] summary .cc { color: var(--accent); }
.video-list { list-style: none; margin: 0; padding: 0 0 8px 0; display: flex; flex-direction: column; }
.film-group summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 0 14px; border-bottom: 1px solid var(--line-strong); }
.film-group summary::-webkit-details-marker { display: none; }
.film-group .film-name { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.film-group summary .mono { color: var(--dim); }
.film-group[open] .film-name { color: var(--text); }
.film-body { padding-left: 0; }
.film-body .video-group summary .cc { font-size: 20px; }
.video-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.video-row.is-active .v-label { color: var(--accent); }
.v-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v-label { font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.v-meta { color: var(--dim); }
.v-actions { display: flex; gap: 8px; flex: none; }
.v-actions { flex-wrap: wrap; justify-content: flex-end; }
.v-actions .pill { padding: 8px 14px; font-size: 13px; }
.v-actions .pill .size { color: var(--dim); margin-left: 2px; }
.v-actions .pill.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.v-actions .pill.ghost:hover { color: var(--text); background: rgba(249, 249, 249, 0.06); }
.v-actions .pill.copied { background: var(--accent); color: var(--bg); border-color: var(--accent); }
@media (max-width: 1100px) { .videos .lead, .video-groups { grid-column: span 12; } }
@media (max-width: 760px) { .video-row { flex-direction: column; align-items: flex-start; } }
.pager { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line-strong); padding-top: 24px; gap: 24px; }
.pager a { display: flex; align-items: center; gap: 16px; font-size: 18px; }
.pager .mono { color: var(--dim); }

.admin { border-top: 1px solid var(--line-strong); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.admin form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.admin input[type="text"], .admin input[type="file"] { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.admin input[type="file"] { padding: 8px 14px; }
.admin label.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
.admin input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.admin .note { color: var(--dim); }

/* ---------- login ---------- */
/* the page wrapper must fill the viewport here, otherwise it shrinks to the form and clips the glow */
.login .page { min-height: 100vh; min-height: 100dvh; width: 100%; display: grid; place-items: center; padding: 24px; }
.login .glow-a { left: 50%; top: 50%; width: 1400px; height: 1100px; transform: translate(-62%, -58%); }
.login .glow-b { right: -30%; top: 45%; }
.login .box { width: min(100%, 420px); display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 1; }
.login h1 { font-size: 64px; letter-spacing: -0.05em; font-weight: 600; line-height: 0.9; margin: 0; }
.login .field { display: flex; flex-direction: column; gap: 8px; }
.login .field .mono { color: var(--dim); }
.login input {
  height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(21, 19, 17, 0.7);
  color: var(--text); font: inherit; font-size: 16px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.login input:focus-visible { border-color: var(--accent); outline: none; }
.login button { height: 52px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font-weight: 600; font-size: 15px; cursor: pointer; }
.login button:hover { background: #fff; }
.login .error { color: var(--accent); font-size: 14px; }
.login form { display: flex; flex-direction: column; gap: 18px; }

/* ---------- misc ---------- */
.empty { padding-top: 200px; display: flex; flex-direction: column; gap: 16px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-top: 80px; border-top: 1px solid var(--line); padding-top: 32px; }
.results-head h2 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -0.04em; font-weight: 600; margin: 0; }
.results-head a { color: var(--muted); }
.all-groups { display: flex; flex-direction: column; gap: 120px; margin-top: 80px; }
.all-groups .group-head { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 32px; margin-bottom: 32px; }
.all-groups .group-head h2 { font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.05em; font-weight: 600; margin: 0; line-height: 0.9; }
.all-groups .grid { margin-top: 0; }

/* ---------- motion ---------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .card .media, .card .media img { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --page-pad: 40px; }
  .year-head { grid-column: span 12; position: static; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .year-cards { grid-column: span 12; }
  .nav .search { width: 220px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adapt .lead, .adapt .list { grid-column: span 12; }
  .adapt .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --page-pad: 20px; }
  .nav { top: max(16px, env(safe-area-inset-top)); left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); transform: none; max-width: none; gap: 8px; padding: 8px 8px 8px 18px; justify-content: space-between; }
  .footer { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
  .nav .tabs { display: none; }
  .nav .menu-btn { padding: 6px 10px; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .menu-panel { position: fixed; left: 16px; right: 16px; top: 76px; width: auto; }
  .nav .search { width: auto; flex: 1; height: 36px; background: transparent; border: 0; padding: 0 6px; }
  .nav .right .grid-link { display: none; }
  .hero { padding-top: 100px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero .aside { align-items: flex-start; font-size: 14px; }
  .display { font-size: 52px; line-height: 0.94; }
  .reel { height: 300px; margin-top: 8px; }
  .reel-card { width: 220px; height: 124px; margin: -62px 0 0 -110px; border-radius: 14px; }
  .reel-caption { top: 232px; flex-direction: column; gap: 4px; }
  .reel-dots, .reel-axis { display: none; }
  .timeline { gap: 56px; margin-top: 40px; }
  .year { padding-top: 20px; gap: 20px; }
  .year-num { font-size: 84px; }
  .year-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .year-cards > :nth-child(3n + 2) { margin-top: 0; }
  .year-cards > :nth-child(4n + 2) { margin-top: 28px; }
  .year-cards > .card.wide { grid-column: span 2; }
  .card .media { aspect-ratio: 4 / 5; }
  .card.wide .media { aspect-ratio: 16 / 9; }
  .card .name { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
  .grid > :nth-child(3n + 2) { margin-top: 0; }
  .solo .card, .solo.one .card { grid-column: span 12; }
  .project { padding-top: 100px; gap: 24px; }
  .project .head { flex-direction: column; align-items: flex-start; }
  .project .actions { padding-bottom: 0; }
  .media-hero { border-radius: 16px; }
  .media-hero .chip .mono { display: none; }
  .media-hero .date { display: none; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .adapt .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { flex-direction: column; align-items: stretch; }
  .footer { flex-direction: column; gap: 8px; margin-top: 80px; }
  .login h1 { font-size: 48px; }
}

/* ---------- admin ---------- */
.nav .admin-link { color: var(--muted); padding: 8px 10px; }
.nav .admin-link[aria-current="page"], .nav .admin-link:hover { color: var(--text); }
.admin-page .head { padding-top: 150px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.admin-page .head .title { display: flex; flex-direction: column; gap: 16px; }
.admin-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 56px; }
.admin-block .lead { grid-column: span 4; display: flex; flex-direction: column; gap: 10px; }
.admin-block .lead .mono { color: var(--dim); }
.admin-block .lead p { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; margin: 0; color: var(--text); text-wrap: pretty; }
.admin-block > :not(.lead) { grid-column: span 8; }
.admin-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.admin-row { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.admin-row:hover .go { color: var(--accent); }
.admin-row .name { font-size: 18px; font-weight: 500; }
.admin-row .mono { color: var(--dim); }
.admin-row .go { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.admin-form { display: flex; flex-direction: column; gap: 22px; }
.admin-form.inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.admin-form .fields { display: flex; flex-direction: column; gap: 18px; }
.admin-form .field { display: flex; flex-direction: column; gap: 8px; }
.admin-form .field .mono, .admin-form label.mono { color: var(--dim); }
.admin-form input[type="text"], .admin-form input[type="password"] {
  height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; width: min(100%, 420px);
}
.admin-form input:focus-visible { border-color: var(--accent); outline: none; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check.big { font-size: 18px; font-weight: 500; }
.check.dim { color: var(--muted); }
.check .mono { color: var(--dim); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 20px; }
.client-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.client-access summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.client-access summary::-webkit-details-marker { display: none; }
.client-access summary .mono { color: var(--dim); }
.client-access.on summary { color: var(--text); }
.client-access:not(.on) summary .check.big { color: var(--muted); }
.exclusions { padding: 14px 0 22px 28px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.exclusions .hint { color: var(--dim); }
.actions-row { display: flex; gap: 10px; margin-top: 8px; position: sticky; bottom: 20px; }
.actions-row .pill { box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.flash { margin-top: 24px; padding: 12px 18px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.flash.ok { border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
.flash.err { color: var(--accent); }
@media (max-width: 1100px) { .admin-block .lead, .admin-block > :not(.lead) { grid-column: span 12; } }
@media (max-width: 760px) { .admin-row { grid-template-columns: 1fr; gap: 6px; } .nav .admin-link { display: none; } .admin-page .head { padding-top: 100px; } }

.excl-item { display: flex; flex-direction: column; gap: 6px; }
.excl-item .films { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-left: 28px; }
.check.small { font-size: 13px; color: var(--muted); }
.check.small input { width: 15px; height: 15px; }
.admin form.films-form { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
.films-form .check-grid { width: 100%; }
.films-form > div:last-child { display: flex; }

.v-actions .on-disk { color: var(--dim); padding: 8px 0; }

.card .media .chip .play.flat, .media-hero .chip .play.flat { background: var(--warm); }

/* ---------- gallery (graphic projects) ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.gallery .lead { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; }
.gallery .lead .mono { color: var(--dim); }
.gallery .lead p { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 0; text-wrap: pretty; }
.gallery-grid { grid-column: span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tile { display: flex; flex-direction: column; gap: 10px; color: var(--text); min-width: 0; }
.tile-media { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tile-media img { width: 100%; height: 100%; object-fit: contain; background: #F9F9F9; }
.tile:hover .tile-media { transform: translateY(-3px); }
.tile-text { display: flex; flex-direction: column; gap: 3px; }
.tile-label { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.tile-text .mono { color: var(--dim); }
@media (max-width: 1100px) { .gallery .lead, .gallery-grid { grid-column: span 12; } }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.tile-media { display: block; }
.tile-actions { display: flex; gap: 6px; }
.tile-actions .pill { padding: 6px 12px; font-size: 12px; }

.older { margin-top: 6px; }
.older summary { list-style: none; cursor: pointer; color: var(--muted); }
.older summary::-webkit-details-marker { display: none; }
.older summary:hover { color: var(--text); }
.older-list { border-top: 0; padding-top: 6px; }
.older-list .video-row { padding: 8px 0; border-bottom: 0; gap: 10px; }
.older-list .v-label { font-size: 14px; }

/* ---------- highlight badge on cards ---------- */
.card { position: relative; }
.card .badge {
  position: absolute; left: -12px; top: -12px; z-index: 2; min-width: 64px; height: 64px; border-radius: 14px; white-space: nowrap;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 8px 9px; gap: 1px;
  color: var(--bg); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
.card .badge.orange { background: var(--accent); }
.card .badge.warm { background: var(--warm); }
.card .badge b { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; line-height: 0.9; }
.card .badge i { font-style: normal; font-size: 9px; letter-spacing: 0.04em; color: var(--bg); opacity: 0.85; }
@media (max-width: 760px) { .card .badge { left: -8px; top: -8px; min-width: 54px; height: 54px; padding: 6px 8px; } .card .badge b { font-size: 22px; } .card .badge i { font-size: 8px; } }

/* ---------- stack marker: several films / variants behind a card ---------- */
.card .media .stack {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px 5px 7px; border-radius: 999px; background: rgba(21, 19, 17, 0.6); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); font-size: 12px; font-weight: 600;
}
.card .media .live + .stack, .card .media .stack { z-index: 1; }
.card:hover .media .stack { opacity: 0; transition: opacity 300ms; }
