/* Self-hosted fonts (latin + latin-ext for č ć đ š ž). Generated from Google Fonts; files under /assets/fonts/. */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-400-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-400-latin.woff2') format('woff2');
  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: 'Albert Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-500-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-500-latin.woff2') format('woff2');
  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: 'Albert Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-600-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-600-latin.woff2') format('woff2');
  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: 'Albert Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-700-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/albert-sans-700-latin.woff2') format('woff2');
  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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-700-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-700-latin.woff2') format('woff2');
  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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-800-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/bricolage-grotesque-800-latin.woff2') format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  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;
}

:root, body.theme-dark {
  --ink: #2e2522;
  --ink-deep: #20191698;
  --paper: #f4ede2;
  --paper-dim: #d6cebe;
  --muted: #8a7e72;
  --rule: #4a3b35;
  --panel: #382b27;
  --nebula-a: #5a3a32;
  --nebula-b: #3a2a25;
  --edge: #3c2f2a;
  --edge-on: #6b554d;
  --lineage-edge: #ffd18f;
  --still-bg: #2e2522;
  --red: #c14843;
  --red-deep: #962f2b;
}
body.theme-light {
  --ink: #f4ede2;
  --ink-deep: #e8dfd1;
  --paper: #2a201d;
  --paper-dim: #5a4a42;
  --muted: #8a7e72;
  --rule: #d6cebe;
  --panel: #efe5d4;
  --nebula-a: #e8c9a8;
  --nebula-b: #d8b893;
  --edge: #c8bea8;
  --edge-on: #8a7a64;
  --lineage-edge: #a8671d;
  --still-bg: #efe5d4;
  --red: #c14843;
  --red-deep: #962f2b;
}
@media (prefers-color-scheme: light) {
  body.theme-auto {
    --ink: #f4ede2; --ink-deep: #e8dfd1; --paper: #2a201d; --paper-dim: #5a4a42;
    --muted: #8a7e72; --rule: #d6cebe; --panel: #efe5d4;
    --nebula-a: #e8c9a8; --nebula-b: #d8b893;
    --edge: #c8bea8; --edge-on: #8a7a64; --lineage-edge: #a8671d; --still-bg: #efe5d4;
    --red: #c14843; --red-deep: #962f2b;
  }
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; background: var(--ink); color: var(--paper);
  font-family: 'Albert Sans', system-ui, sans-serif; }
body { font-size: 14px; }
button { font-family: inherit; }
input { font-family: inherit; outline: none; }
::selection { background: var(--red); color: var(--paper); }

/* Keyboard focus — the one red, sharp corners. Text inputs signal focus with
   their red underline instead (form.js), so they opt out of the outline. */
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: none; }

/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Scrollbar — dark, narrow, brand-tinted */
* { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--rule); border-radius: 6px; border: 2px solid var(--ink); }
*::-webkit-scrollbar-thumb:hover { background: var(--red); }

h1, h2, h3, h4 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.025em; margin: 0; }

/* Desktop layout — fixed full-bleed cosmos */
body.mode-desktop, body.mode-desktop html { height: 100%; overflow: hidden; }
body.mode-desktop #app { height: 100vh; width: 100vw; position: relative; overflow: hidden; }
body.mode-desktop #app::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.35) 100%);
  z-index: 50;
}

/* Mobile layout — body scrolls */
html, body { max-width: 100%; }
body.mode-mobile { overflow-x: hidden; }
body.mode-mobile #app { min-height: 100vh; width: 100%; position: relative; }

/* ── Mobile responsive overrides ───────────────────────── */
body.mode-mobile .view-scroll {
  position: static !important;
  inset: auto !important;
  padding-top: 80px !important;
  padding-bottom: 120px !important;
  overflow: visible !important;
  min-height: 100vh;
}
body.mode-mobile .view-scroll * {
  max-width: 100%;
  min-width: 0;
}
body.mode-mobile .view-scroll .view-inner {
  padding-left: 18px !important;
  padding-right: 18px !important;
  max-width: 100% !important;
}
body.mode-mobile .view-scroll h1 {
  font-size: 32px !important;
  line-height: 1.0 !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body.mode-mobile .view-scroll h1 br,
body.mode-mobile .view-scroll .display-xl br { display: inline !important; }
body.mode-mobile .view-scroll h1 br::before,
body.mode-mobile .view-scroll .display-xl br::before { content: " "; }

body.mode-mobile .view-scroll [style*="grid-template-columns"],
body.mode-mobile .view-scroll [style*="gridTemplateColumns"] {
  grid-template-columns: 1fr !important;
  gap: 18px !important;
}
body.mode-mobile .view-scroll .stay-flex {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
body.mode-mobile .view-scroll .display-xl {
  font-size: 40px !important;
  line-height: 0.95 !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
body.mode-mobile .view-scroll .display-lg {
  font-size: 26px !important;
  line-height: 1.05 !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}
body.mode-mobile .view-scroll .form-row {
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
}
body.mode-mobile .view-scroll .form-row input,
body.mode-mobile .view-scroll .form-row button { width: 100% !important; min-width: 0 !important; }

body.mode-mobile .timeline-rail { display: block !important; }
body.mode-mobile .timeline-rail > div { margin-bottom: 14px; text-align: left !important; }
body.mode-mobile .timeline-rail .timeline-axis { display: none !important; }
body.mode-mobile .timeline-rail .timeline-dot {
  margin: 0 8px 0 0 !important; display: inline-block !important; vertical-align: middle;
}

body.mode-mobile .contact-overlay { padding: 0 !important; align-items: stretch !important; }
body.mode-mobile .contact-overlay .contact-card {
  max-width: 100% !important; width: 100% !important;
  min-height: 100vh; padding: 80px 22px 32px !important;
  border: none !important;
}

/* Markdown bodies inside dossier note cards. Keep typography quiet — these
   sit inside an already-styled card so block-level elements should feel like
   continuations of body text, not headings of their own. */
.note-body h1, .note-body h2, .note-body h3, .note-body h4 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 14px 0 6px;
  line-height: 1.15;
}
.note-body h1 { font-size: 18px; }
.note-body h2 { font-size: 16px; }
.note-body h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--paper-dim); font-family: 'JetBrains Mono', monospace; }
.note-body h4 { font-size: 13px; color: var(--paper-dim); }
.note-body p { margin: 0 0 10px; }
.note-body ul, .note-body ol { margin: 0 0 10px; padding-left: 22px; }
.note-body li { margin-bottom: 4px; }
.note-body code { font-family: 'JetBrains Mono', monospace; font-size: 0.85em; background: color-mix(in oklab, var(--panel) 70%, black 30%); padding: 1px 5px; border-radius: 2px; }
.note-body pre { background: color-mix(in oklab, var(--panel) 70%, black 30%); padding: 10px 12px; overflow-x: auto; border-left: 2px solid var(--rule); margin: 0 0 10px; }
.note-body pre code { background: transparent; padding: 0; font-size: 12px; line-height: 1.4; }
.note-body blockquote { margin: 0 0 10px; padding-left: 12px; border-left: 2px solid var(--rule); color: var(--paper-dim); font-style: italic; }
.note-body a { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rule); }
.note-body a:hover { text-decoration-color: var(--red); }
.note-body hr { border: none; border-top: 1px dashed var(--rule); margin: 14px 0; }
.note-body strong { color: var(--paper); }
.note-body em { color: var(--paper-dim); }

/* Subtle hover lift for clickable media cards in the project panel. */
button:hover > div > img,
button:hover > img { filter: brightness(1.08); }

/* ─── Featured-video cinematic curtain ───────────────────────────────────
   The cinematic for projects with a featured video uses a single
   continuous right-to-left "curtain" gesture:

     ENTRY  — .cin-curtain clip-path inset(0 0 0 100%) → inset(0 0 0 0)
              (~1100ms), then .cin-strip translates out to the right
              (~460ms), then .cin-controls fades in (~200ms).
     EXIT   — reverse: controls fade out, strip slides back in, curtain
              retracts back to inset(0 0 0 100%).

   The constellation never moves; the curtain just covers / uncovers it.
   z-index: curtain 75, controls 76 (above curtain, below side panel 80). */

.cin-root {
  position: fixed; inset: 0; z-index: 75;
  pointer-events: none;
}

.cin-curtain {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.cin-root.is-expanded .cin-curtain {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

.cin-video {
  position: absolute; inset: 0;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 200ms ease;
}
.cin-video.cin-fading { opacity: 0; }

.cin-iframe-mount {
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  /* Block all pointer events so YouTube never sees a hover and therefore
     never reveals its title / share / watermark chrome. Our own controls
     (right-edge strip + side-panel mini player) are siblings, not
     children, so they remain interactive. */
  pointer-events: none;
  position: relative;
  /* Clip the oversized .cin-iframe-crop so YT's intrinsic top/bottom
     chrome (title bar, watermark, progress, share buttons) renders
     outside the visible area. */
  overflow: hidden;
}
.cin-iframe-crop {
  position: absolute;
  top: -60px; bottom: -60px;
  left: 0; right: 0;
  pointer-events: none;
}
.cin-iframe-crop > .cin-player,
.cin-iframe-crop > iframe {
  width: 100%; height: 100%; display: block; border: 0;
  pointer-events: none;
}

/* Panel-shape zone inside the curtain. As the curtain reveals from the
   right, this is what the user sees first — it looks like the normal side
   panel sliding in. After the curtain is fully expanded, the strip slides
   off to the right, leaving the video underneath fully exposed. */
.cin-strip {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 92vw);
  background: var(--panel);
  border-left: 1px solid var(--rule);
  transform: translateX(0);
  transition: transform 460ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
  z-index: 1;
}
.cin-root.is-retracted .cin-strip { transform: translateX(100%); }

.cin-strip-inner {
  padding: 42px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.cin-strip-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.cin-strip-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper-dim);
}
.cin-strip-logline {
  font-family: 'Albert Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--paper-dim);
  margin-top: 8px;
}

/* Right-edge controls strip — narrow vertical column that fades in after
   the panel zone has retracted. Independent of .cin-curtain so its fade
   can run while the curtain has already settled. */
.cin-controls {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  z-index: 76;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.cin-root.is-controls-visible .cin-controls {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}
/* Side panel re-opened over the cinematic — hide the controls strip so
   the panel's own controls take over without overlapping. */
body[data-panel-open="1"] .cin-controls {
  opacity: 0 !important;
  pointer-events: none !important;
}

.cin-ctrl {
  background: color-mix(in oklab, var(--panel) 70%, black 30%);
  color: var(--paper);
  border: 1px solid var(--rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  line-height: 1;
  width: 38px; height: 38px;
  padding: 0;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.cin-ctrl:hover {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
/* The mute toggle is a labeled word ("muted"/"sound"), not a glyph — wider
   than the square icon buttons. */
.afhr-cinematic-mute-toggle {
  width: auto; min-width: 38px; padding: 0 10px;
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
}

/* "About" pill — starts expanded (icon + label), auto-collapses to
   icon-only after a few seconds, re-expands on hover. The button stays
   the same height as other .cin-ctrl buttons; only its width and the
   label's opacity animate. */
.cin-ctrl-about {
  width: 38px;
  padding: 0 8px;
  overflow: hidden;
  gap: 8px;
  justify-content: center;
  transition: width 240ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 140ms ease,
              border-color 140ms ease,
              color 140ms ease,
              padding 240ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.cin-ctrl-about.is-expanded,
.cin-ctrl-about:hover {
  width: max-content;
  padding: 0 12px;
  justify-content: flex-start;
}
.cin-ctrl-about .cin-ctrl-icon {
  font-size: 16px; line-height: 1; flex-shrink: 0;
}
.cin-ctrl-about .cin-ctrl-label {
    opacity: 0;
    transition: opacity 200ms ease;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: none;
}
.cin-ctrl-about.is-expanded .cin-ctrl-label,
.cin-ctrl-about:hover .cin-ctrl-label { opacity: 1; }
.cin-ctrl-about:hover > span.cin-ctrl-label {
    display: flex;
}
/* Compact seek bar nested between the icon buttons. ~70px wide horizontal
   bar with a fill and a knob; click to seek. */
.cin-seek {
  position: relative;
  width: 70px;
  height: 4px;
  background: color-mix(in oklab, var(--paper-dim) 28%, transparent);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 140ms ease;
}
.cin-seek:hover {
  background: color-mix(in oklab, var(--paper-dim) 45%, transparent);
}
.cin-seek-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--red);
  border-radius: 2px;
  transition: width 220ms linear;
}
.cin-seek-knob {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 8px; height: 8px;
  margin-left: -4px;
  transform: translateY(-50%);
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  transition: left 220ms linear, opacity 140ms ease;
  pointer-events: none;
}

body.theme-dark .afhr-project-panel-body img {
    background-color: var(--paper-dim);
}

@media (max-width: 820px) {
  /* Mobile cinematic intentionally disabled in app.js (onPick on the
     mobile map doesn't gate on featured_video). These rules only matter
     if the overlay somehow becomes visible. */
  .cin-strip { width: 100vw; }
  .cin-controls { right: 12px; gap: 8px; }
  .cin-ctrl { width: 34px; height: 34px; font-size: 14px; }
  .cin-seek { width: 56px; }
}

/* Side-panel playlist rows — track-style list with hover background and
   active-row accent. Inline styles already handle the per-row colour /
   border, this layer only adds the hover state CSS can't express inline. */
.fv-pl-row { border-bottom: 1px solid color-mix(in oklab, var(--rule) 60%, transparent); }
.fv-pl-row:last-child { border-bottom: none; }
.fv-pl-row:hover:not(.is-active) {
  background: color-mix(in oklab, var(--panel) 78%, black 22%) !important;
  color: var(--paper) !important;
}
.fv-pl-row.is-active { cursor: default; }

/* Custom cinematic seek bar — track hover slightly brightens, knob grows. */
.fv-seek { transition: background-color 140ms ease; }
.fv-seek:hover {
  background: color-mix(in oklab, var(--paper-dim) 45%, transparent) !important;
}

@media (prefers-reduced-motion: reduce) {
  .cin-curtain,
  .cin-strip,
  .cin-controls,
  .cin-video,
  .fv-pl-row { transition-duration: 80ms !important; }
}


/* ── Hover states (the design system prescribes these; inline styles set the
   base, so hovers land here — !important wins over the inline declarations) ── */
.afhr-bottom-develop:hover, .afhr-mobile-bottom-develop:hover,
.afhr-contact-submit:hover, .afhr-newsletter-submit:hover,
.afhr-cta-develop:hover {
  background: var(--red-deep) !important;
  border-color: var(--red-deep) !important;
  transition: background 80ms ease, border-color 80ms ease;
}
.afhr-bottom-service:hover, .afhr-mobile-bottom-service:hover,
.afhr-cta-service:hover {
  background: var(--paper) !important;
  color: var(--ink) !important;
  transition: background 80ms ease, color 80ms ease;
}
.afhr-top-nav-item:hover, .afhr-mobile-menu-item:hover { color: var(--paper) !important; }
.afhr-project-panel-load-more:hover, .afhr-mobile-project-load-more:hover,
.afhr-service-proof-project:hover, .afhr-project-connection:hover {
  border-color: var(--red) !important;
  transition: border-color 80ms ease;
}
.afhr-service-enquire:hover {
  background: var(--red) !important;
  color: #f4ede2 !important;
  transition: background 80ms ease, color 80ms ease;
}
.afhr-thread-chip[data-state="inactive"]:hover { filter: brightness(1.18); }
.afhr-cta-email:hover, .afhr-studio-email:hover { border-bottom-color: var(--red) !important; }

/* ── View entrance — a quiet 180ms settle for the content views (the map has
   its own choreography and is excluded) ── */
.afhr-view-services .view-inner, .afhr-view-studio .view-inner,
.afhr-view-platform .view-inner, .afhr-view-journal .view-inner,
.afhr-view-list .view-inner {
  animation: afhr-view-in 180ms ease;
}
@keyframes afhr-view-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ergonomics — the lightbox/PDF overlay stacks its sidebar under
   the stage on phones instead of squeezing it to 40vw ── */
@media (max-width: 820px) {
  .afhr-overlay-inner { flex-direction: column !important; }
  .afhr-overlay-sidebar {
    width: 100% !important; max-width: 100% !important;
    border-left: none !important; border-top: 1px solid #4a3b35 !important;
    padding: 16px 18px !important; max-height: 42vh;
  }
}

/* ── Reduced motion — beyond the cinematic block above ── */
@media (prefers-reduced-motion: reduce) {
  .afhr-view-services .view-inner, .afhr-view-studio .view-inner,
  .afhr-view-platform .view-inner, .afhr-view-journal .view-inner,
  .afhr-view-list .view-inner { animation: none; }
  .afhr-project-panel, .afhr-mobile-project-panel,
  .afhr-constellation-masthead { transition-duration: 80ms !important; }
  .afhr-boot img { animation: none; }
}
