/* ---------- Fonts ----------
   NBC Futura is a proprietary typeface, so the font files are not included.
   If you have a licensed copy, place the files in a /fonts folder and the
   rules below will pick them up. Otherwise the stack falls back to Futura,
   then Jost (loaded in index.html), then system sans serif. */
@font-face {
  font-family: "NBC Futura";
  src: local("NBC Futura"), url("fonts/NBCFutura-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "NBC Futura";
  src: local("NBC Futura Bold"), url("fonts/NBCFutura-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0f1218;
  --surface: #171b24;
  --line: #262c38;
  --text: #eceff4;
  --muted: #98a2b3;
  --accent: #ff8514;
  --tally: #ff4d4d;

  --font: "NBC Futura", "Futura", "Futura PT", "Jost", "Century Gothic", "Trebuchet MS", sans-serif;

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --step-hero: clamp(2.6rem, 1.4rem + 6vw, 6rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 1120px;
  --radius: 6px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-height, 4.1rem) + 1rem);
  overscroll-behavior-y: none;
}
html:not(.js) { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img, iframe { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: inherit; }
a:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; }

/* ---------- Header ---------- */
/* JS measures the fixed banner before main content is parsed; no guessed mobile gap. */
.js body { padding-top: var(--header-height, 4.1rem); }
.js .site-header { position: fixed; inset: 0 0 auto; transform: translateZ(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1rem var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-header ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--text); }

/* ---------- Layout ---------- */
.hero,
.section,
.site-footer {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.section > h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-2);
  margin-bottom: 1.5rem;
}
.title-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-intro {
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ---------- Hero ---------- */
.hero {
  overflow: clip;
  padding-block: clamp(4rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem);
}

.tally {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 133, 20, 0.6);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 133, 20, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 133, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 133, 20, 0); }
}

.hero h1 {
  font-size: var(--step-hero);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 52ch;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #14110a;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.15s, filter 0.2s;
}
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
}
.text-link:hover { color: var(--accent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

.prose { max-width: 62ch; }
.prose p { color: #cfd5df; }

.facts { margin: 0; }
.facts div {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.facts div:first-child { padding-top: 0; }
.facts dt { color: var(--muted); font-size: 0.9rem; }
.facts dd { margin: 0.15rem 0 0; font-size: 1.05rem; }

/* ---------- Video grid ---------- */
.video-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
}

/* One composited figure-eight transform, initialized once in index.html.
   Mouse parallax stays on the child so the two motions never overwrite each other. */
.js .float-el {
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

/* MEDIA PARALLAX: transform is set by the isolated script in index.html. */
.parallax-el { transform: translate3d(0, 0, 0); will-change: transform; backface-visibility: hidden; }

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.video-card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.video-card .float-el { display: block; }
.video-card p { color: var(--muted); margin: 0; max-width: 52ch; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid transparent;
  position: relative;
}
.timeline-wrap {
  position: relative;
  background: linear-gradient(var(--line), var(--line)) left / 2px 100% no-repeat;
}
.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.4rem 0.85rem;
  padding: 0 0 2.5rem 1.75rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { grid-column: 1 / -1; }
.timeline li > div { min-width: 0; }
.company-logo {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  align-self: start;
}
.company-logo--nbc { height: 1.75rem; }

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.15rem - 1px);
  top: 0.1rem;
  width: 2.3rem;
  height: 1.8rem;
  background: #485165;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath fill-rule='evenodd' d='M4 7h15a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V10a3 3 0 0 1 3-3zM7.5 15.5a4 4 0 1 0 8 0a4 4 0 1 0-8 0z'/%3E%3Cpath d='M24 12l9-5v16l-9-5z'/%3E%3Crect x='5' y='1' width='10' height='4.5' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath fill-rule='evenodd' d='M4 7h15a3 3 0 0 1 3 3v11a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3V10a3 3 0 0 1 3-3zM7.5 15.5a4 4 0 1 0 8 0a4 4 0 1 0-8 0z'/%3E%3Cpath d='M24 12l9-5v16l-9-5z'/%3E%3Crect x='5' y='1' width='10' height='4.5' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: background 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.timeline li.reached::before {
  background: var(--accent);
  transform: scale(1.12) rotate(-5deg);
}

.when { color: var(--accent); font-size: 0.95rem; margin: 0; }
.timeline h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.where { color: var(--muted); margin-bottom: 0.5rem; }
/* Role line under each organization */
.role { margin: 0 0 0.15rem; color: var(--text); }
:is(.timeline, .edu) p:not(.when):not(.where):not(.role) { margin: 0; max-width: 60ch; color: #cfd5df; }

/* Education block matches the timeline layout without the rail */
.edu { display: grid; gap: 0.25rem; }
.edu h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }

.resume-link { margin: 3rem 0 0; }

/* ---------- Resume ---------- */
.resume { margin: 0; padding: 0; border: 0; }
.resume-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
}
.resume-head :is(h2, h3) {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-2);
}
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 0;
}
.resume .button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Mini viewer that sits on the page */
.resume-mini {
  position: relative;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.resume-scroll {
  height: clamp(320px, 52vh, 480px);
  overflow-y: auto;
  padding: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #3a4252 transparent;
}
.resume-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.resume-scroll img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 3px;
  cursor: zoom-in;
}
.resume-mini::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: linear-gradient(to top, var(--surface), rgba(23, 27, 36, 0));
  pointer-events: none;
  transition: opacity 0.3s;
}
.resume-mini.at-end::after { opacity: 0; }

/* Popup viewer */
body.modal-open { overflow: hidden; }
.resume-dialog {
  width: min(900px, 94vw);
  height: min(92vh, 1100px);
  max-width: none;
  max-height: none;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.resume-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: dialog-in 0.45s var(--ease-out);
}
.resume-dialog::backdrop {
  background: rgba(6, 8, 12, 0.75);
  backdrop-filter: blur(6px);
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
}
.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.dialog-bar h3 { font-size: var(--step-1); }
.dialog-actions { display: flex; align-items: center; gap: 0.75rem; }
.dialog-actions .button { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.dialog-close {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0 0 0.15rem;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.dialog-close:hover { border-color: var(--accent); color: var(--accent); }
.dialog-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dialog-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  background: var(--bg);
  overscroll-behavior: contain;
}
.dialog-body img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ---------- Articles ---------- */
.article-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.article-embed {
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.article-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.article-card h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.meta { color: var(--muted); font-size: 0.95rem; }

.article-empty {
  margin: 0;
  padding: 2.5rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  grid-column: 1 / -1;
}

/* ---------- Contact ---------- */
.contact .lede { margin-bottom: 2rem; }

.email {
  font-size: clamp(1.5rem, 1rem + 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
}
.email a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.2em;
}
.email a:hover { color: var(--accent); }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- Contact form ---------- */
/* Open and typographic like the rest of the page: hairlines, gold accents, no boxes */
.contact-form {
  display: grid;
  gap: 1.75rem 2rem;
  margin: 0 0 2.5rem;
}

.field { position: relative; }

.field input:not([type="file"]),
.field textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: var(--step-1);
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.6rem 0 0.55rem;
  outline: none;
  transition: border-color 0.3s;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
.field input:not([type="file"]):hover,
.field textarea:hover { border-bottom-color: #3a4252; }
.field input:not([type="file"]):user-invalid,
.field textarea:user-invalid { border-bottom-color: #ff8a80; }

/* Gold line draws across on focus, like the nav underline */
.field:not(.field-file)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
  pointer-events: none;
}
.field:not(.field-file):focus-within::after { transform: scaleX(1); }

/* Labels sit in the field, then float up once it is focused or filled */
.field input + label,
.field textarea + label {
  position: absolute;
  left: 0;
  top: 1.55rem;
  font-size: var(--step-1);
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.45rem) scale(0.7);
}
.field input:focus + label,
.field textarea:focus + label { color: var(--accent); }

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 100px var(--bg) inset;
}

/* Attachment reads like the site's other links */
.dropzone {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--text);
}
.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.dz-icon { display: grid; place-items: center; color: var(--accent); }
.dz-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.9rem; min-width: 0; }
.dz-title {
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.dz-hint { color: var(--muted); font-size: 0.9rem; }
.dropzone:hover .dz-title,
.dropzone.is-drag .dz-title { color: var(--accent); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.contact-form .button.send {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-form .button.send svg { transition: transform 0.35s var(--ease-out); }
.contact-form .button.send:hover svg { transform: translateX(4px); }
.contact-form .button:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #ff8a80; }

/* Fields settle in one after another */
.js .contact-form .field,
.js .contact-form .form-actions {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .contact-form.is-visible .field,
.js .contact-form.is-visible .form-actions {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i, 0) * 70ms + 150ms);
}
.contact-form .field:nth-child(2) { --i: 1; }
.contact-form .field:nth-child(3) { --i: 2; }
.contact-form .field:nth-child(4) { --i: 3; }
.contact-form .field:nth-child(5) { --i: 4; }
.contact-form .form-actions { --i: 5; }

@media (min-width: 720px) {
  .contact-form { grid-template-columns: 1fr 1fr; }
  .field-wide,
  .form-actions { grid-column: 1 / -1; }
}

/* Wide screens: intro on the left, form on the right */
@media (min-width: 900px) {
  .contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(3rem, 7vw, 6rem);
    align-content: start;
  }
  .contact > h2,
  .contact > .lede,
  .contact > .social { grid-column: 1; }
  .contact > .social { grid-row: 3; align-self: start; }
  .contact > .contact-form { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .about-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline li { grid-template-columns: 8rem 2.75rem minmax(0, 1fr); gap: 1.1rem; padding-left: 2.5rem; }
  .timeline .when { grid-column: auto; }
  .edu { grid-template-columns: 9rem 1fr; gap: 2rem; padding-left: 2.5rem; }
  .when { padding-top: 0.2rem; }
}

@media (min-width: 1000px) {
  .video-grid { gap: 3rem 2.5rem; }
}

/* ---------- Fluid motion ---------- */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav shows where you are */
.site-header nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-block: 0.25rem;
}
.nav-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s var(--ease-out);
}
.site-header nav a:hover .nav-icon,
.site-header nav a[aria-current="true"] .nav-icon { opacity: 1; transform: translateY(-1px); }
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.site-header nav a[aria-current="true"] { color: var(--text); }
.site-header nav a[aria-current="true"]::after { transform: scaleX(1); }

/* Content animates in every time it enters view, from whichever side it arrives */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s var(--ease-out) var(--delay, 0ms),
    transform 0.9s var(--ease-out) var(--delay, 0ms);
}
.js .reveal:not(.is-visible) {
  transition-delay: 0ms;
  transition-duration: 0.45s;
}
.js .reveal[data-exit="above"]:not(.is-visible) { transform: translateY(-32px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Cursor opacity is composited by the shared clock in index.html.
   Typing completion only reveals it; the blink never restarts. */
.heading-copy { min-width: 0; }
.typing-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* A baseline-aligned bar avoids underscore glyph-height differences between fonts.
   Hidden text keeps the HTML fallback intact; overflow makes the bottom edge the baseline. */
.typing-cursor {
  display: inline-block;
  width: 0.6em;
  height: 0.065em;
  margin-left: 0.12em;
  overflow: hidden;
  line-height: 0;
  vertical-align: baseline;
  color: transparent;
  background: var(--accent);
  opacity: 1;
}
.js .heading-copy .type-character,
.js .heading-copy .typing-cursor { visibility: hidden; }
.js .typing-active .type-character {
  animation: type-character 1ms step-end var(--type-delay, 0ms) forwards;
}
.js .typing-complete .type-character,
.js .typing-complete .typing-cursor { visibility: visible; }

/* The card still reveals on entry. Keep iframe clipping and scale static so its
   pixels do not get repeatedly re-rasterized during floating motion. */
/* CAMERA UI on video hover (replaces the old amber ring). Lives outside the clipped frame,
   so it frames the video like a viewfinder. Mouse devices only, so taps on phones never leave it stuck. */
.parallax-el { position: relative; }
.cam-ui { display: none; }
#work > h2 { margin-bottom: 2.25rem; }
@media (hover: hover) and (pointer: fine) {
  .cam-ui {
    display: block;
    position: absolute;
    left: 0; top: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-family: var(--font);
    color: #fff;
  }
  .video-card:hover .cam-ui { opacity: 1; }

  /* Four corner brackets sitting just outside the video edge */
  .cam-ui::before {
    content: "";
    position: absolute;
    inset: -0.5rem;
    background:
      linear-gradient(#fff, #fff) left top / 1.3rem 2px no-repeat,
      linear-gradient(#fff, #fff) left top / 2px 1.3rem no-repeat,
      linear-gradient(#fff, #fff) right top / 1.3rem 2px no-repeat,
      linear-gradient(#fff, #fff) right top / 2px 1.3rem no-repeat,
      linear-gradient(#fff, #fff) left bottom / 1.3rem 2px no-repeat,
      linear-gradient(#fff, #fff) left bottom / 2px 1.3rem no-repeat,
      linear-gradient(#fff, #fff) right bottom / 1.3rem 2px no-repeat,
      linear-gradient(#fff, #fff) right bottom / 2px 1.3rem no-repeat;
    transform: scale(1.03);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
  }
  .video-card:hover .cam-ui::before { transform: scale(1); }

  .cam-rec, .cam-meta {
    position: absolute;
    top: -1.45rem;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.68rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  }
  .cam-rec { left: 0; gap: 0.4rem; }
  .cam-rec i {
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: var(--tally);
  }
  .video-card:hover .cam-rec i { animation: cam-blink 1.2s steps(1) infinite; }
  .cam-meta { right: 0; gap: 0.6rem; }
  .cam-batt {
    position: relative;
    width: 1.3rem; height: 0.6rem;
    border: 1.5px solid #fff;
    border-radius: 2px;
    box-sizing: border-box;
  }
  .cam-batt::before {
    content: "";
    position: absolute;
    inset: 1px 30% 1px 1px;
    background: #fff;
  }
  .cam-batt::after {
    content: "";
    position: absolute;
    right: -4px; top: 50%;
    width: 2px; height: 4px;
    margin-top: -2px;
    background: #fff;
  }
}
@keyframes cam-blink { 0% { opacity: 1; } 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) {
  .cam-ui, .cam-ui::before { transition: none; }
  .video-card:hover .cam-rec i { animation: none; }
}
.article-card { transition: border-color 0.4s; }
.article-card:hover { border-color: var(--accent); }

/* Slow ambient drift behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(255, 133, 20, 0.09), transparent 70%),
    radial-gradient(45% 45% at 80% 70%, rgba(90, 130, 255, 0.10), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  to { transform: translate3d(6%, 4%, 0) scale(1.12); }
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 30;
  will-change: transform;
}

/* One orchestrated intro for the hero */
.js .hero-motion > * {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease-out) forwards;
}
.js .hero-motion > :nth-child(1) { animation-delay: 0.1s; }
.js .hero-motion > :nth-child(2) { animation-delay: 0.25s; }
.js .hero-motion > :nth-child(3) { animation-delay: 0.45s; }
.js .hero-motion > :nth-child(4) { animation-delay: 0.6s; }

.js .hero-motion > h1 { opacity: 1; transform: none; animation: none; }
/* Quick name typing without moving the heading or changing its layout.
   The full name stays available to screen readers and without JavaScript. */
.name-text { display: inline-block; }
.js .name-character {
  visibility: hidden;
  animation: type-character 1ms step-end var(--type-delay, 0ms) forwards;
}
@keyframes type-character { from, to { visibility: visible; } }
@keyframes cursor-ready { from, to { visibility: visible; } }
.js .hero-name-cursor {
  visibility: hidden;
  animation: cursor-ready 1ms step-end 1000ms forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* Smooth crossfade between separate pages (for when you add more .html pages).
   Supported in current Chrome, Edge, and Safari; others just navigate normally. */
@view-transition { navigation: auto; }

::view-transition-old(root) {
  animation: 0.35s var(--ease-out) both fade-out;
}
::view-transition-new(root) {
  animation: 0.5s var(--ease-out) both fade-in;
}
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

.site-header { view-transition-name: site-header; }

/* ---------- Broadcast atmosphere ---------- */
/* Quiet, static studio motifs behind the content; never intercept clicks. */
.broadcast-detail {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  color: #b4bbc5;
}
.broadcast-detail svg {
  position: absolute;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}
.broadcast-detail .studio-accent { stroke: var(--accent); }

.studio-film {
  width: 42px;
  height: auto;
  top: 45%;
  left: -18px;
  opacity: 0.12;
}

/* Keep narrow screens spare and the motifs clear of the reading column. */
@media (max-width: 719px) {
  .studio-film { display: none; }
}

/* Halftone dots are drawn on a canvas so they can react to the cursor */
.halftone {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* Keep canvas redraws on their own layer, separate from moving media and text. */
  will-change: transform;
}

/* Film grain and faint scanlines over everything */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.05;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Static texture avoids a stepped full-screen overlay jumping over moving media. */
}

/* Camera viewfinder corners */
.viewfinder {
  position: fixed;
  inset: 8px;
  z-index: 25;
  pointer-events: none;
  --c: rgba(255, 255, 255, 0.3);
  --l: 20px;
  --t: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--t) var(--l) no-repeat;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-motion { transform: none !important; opacity: 1 !important; }
  html:not(.js) { scroll-behavior: auto; }
  .dot, body::before { animation: none; }
  .button { transition: none; }
  .js .reveal,
  .js .hero-motion > *,
  .js .name-character,
  .js .heading-copy .type-character,
  .js .typing-active .type-character,
  .js .heading-copy .typing-cursor,
  .typing-cursor,
  .js .hero-name-cursor {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    animation: none;
  }
  .js .video-frame { clip-path: none; transition: none; }
  .site-header nav a::after { transition: none; }
  .progress { display: none; }
  body::after { animation: none; }
  .resume-dialog[open] { animation: none; }
  .js .contact-form .field,
  .js .contact-form .form-actions { opacity: 1; transform: none; transition: none; }
  .js .float-el { transform: none; will-change: auto; }
  .parallax-el { transform: none !important; will-change: auto; }
  .field input + label,
  .field textarea + label,
  .dz-icon,
  .contact-form .button.send svg { transition: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}


/* ================= Two pages, one URL ================= */
html { --p: 0; overscroll-behavior-x: none; }
.js body, .exp-scroll { touch-action: pan-y pinch-zoom; }
html.exp-open { overflow: hidden; }

/* The experience pane slides over the work page, which recedes a little */
.exp-pane {
  position: fixed; inset: 0; z-index: 5; background: var(--bg);
  transform: translate3d(calc((1 - var(--p)) * 100%), 0, 0);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.exp-pane::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.45); opacity: var(--p); transition: opacity 0.5s ease;
}
html.exp-docked .exp-pane::before { display: none; }
html.pane-live .exp-pane { will-change: transform; }
html:not(.pane-live) .exp-pane { visibility: hidden; }
html.pane-live main, html.pane-live body > .site-footer {
  will-change: transform, opacity;
  transform: translate3d(calc(var(--p) * -26%), 0, 0);
  opacity: calc(1 - var(--p) * 0.55);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.5s ease;
}
html.dragging .exp-pane, html.dragging main, html.dragging body > .site-footer,
html.no-anim .exp-pane, html.no-anim main, html.no-anim body > .site-footer,
html.dragging .exp-pane::before, html.no-anim .exp-pane::before { transition: none; }

.exp-scroll {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  padding-top: var(--header-height, 4.1rem);
  scroll-padding-top: calc(var(--header-height, 4.1rem) + 1rem);
  scrollbar-width: thin; scrollbar-color: #3a4252 transparent;
}

/* New backdrop: teal and violet light, dots in the opposite corners, same drift and cursor parallax */
.exp-bg {
  position: absolute; inset: -3%; pointer-events: none;
  transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -10px), 0);
  transition: transform 0.45s var(--ease-out);
}
.exp-bg::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 40% at 78% 22%, rgba(61, 214, 200, 0.11), transparent 70%),
    radial-gradient(45% 45% at 18% 78%, rgba(150, 110, 255, 0.13), transparent 70%);
  animation: drift 30s ease-in-out infinite alternate-reverse;
}
.exp-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 1.5px, transparent 2.2px) 0 0 / 22px 22px;
  -webkit-mask: radial-gradient(circle at 0 0, #000, transparent 46%), radial-gradient(circle at 100% 100%, #000, transparent 46%);
  mask: radial-gradient(circle at 0 0, #000, transparent 46%), radial-gradient(circle at 100% 100%, #000, transparent 46%);
  animation: expdots 40s linear infinite;
}
@keyframes expdots { to { background-position: 22px 38px; } }

/* Header: one nav group per page, and the switch button */
.site-header nav { margin-left: auto; }
.pane-switch {
  display: inline-flex; align-items: center; gap: 0.55rem; font: inherit; font-size: 0.95rem; font-weight: 700;
  color: var(--text); background: rgba(255, 133, 20, 0.1); border: 1px solid rgba(255, 133, 20, 0.45);
  border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; transition: background 0.3s, border-color 0.3s;
}
.pane-switch:hover { background: rgba(255, 133, 20, 0.2); border-color: var(--accent); }
.pane-switch:focus-visible, .edge-tab:focus-visible, .pager button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ps-arrow { animation: nudge 2.4s var(--ease-out) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.ps-to-work, html.exp-open .ps-to-exp { display: none; }
html.exp-open .ps-to-work { display: inline; }
html.exp-open .pane-switch { flex-direction: row-reverse; }
html.exp-open .ps-arrow { transform: rotate(180deg); animation-name: nudge-back; }
@keyframes nudge-back { 50% { transform: rotate(180deg) translateX(4px); } }
.ps-short { display: none; }
@media (max-width: 719px) {
  .pane-switch { order: 2; padding: 0.4rem 0.85rem; }
  .site-header nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .ps-long { display: none; }
  .ps-short { display: inline; }
}

/* Edge tab: the "swipe this way" cue */
.edge-tab {
  position: fixed; top: 50%; right: 0; z-index: 12; --dir: -1;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.9rem 0.4rem;
  font: inherit; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  background: rgba(23, 27, 36, 0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; cursor: pointer;
  transform: translateY(-50%); animation: peek 1.6s var(--ease-out) 2.2s 3; transition: color 0.3s, border-color 0.3s;
}
.edge-tab:hover { color: var(--text); border-color: var(--accent); }
.edge-tab svg { width: 14px; height: 14px; }
.edge-tab span { writing-mode: vertical-rl; }
.et-work, html.exp-open .et-exp { display: none; }
html.exp-open .et-work { display: inline; }
html.exp-open .edge-tab { right: auto; left: 0; --dir: 1; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; }
html.exp-open .edge-tab svg { transform: rotate(180deg); }
@keyframes peek { 50% { transform: translate(calc(var(--dir) * 7px), -50%); } }
@media (max-width: 719px) { .edge-tab { width: 18px; padding: 0.9rem 0; } .edge-tab span { display: none; } }

/* Pager dots */
.pager {
  position: fixed; left: 50%; bottom: 20px; z-index: 12; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 7px 10px; border-radius: 999px;
  background: rgba(23, 27, 36, 0.7); backdrop-filter: blur(6px); border: 1px solid var(--line);
}
.pager button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #485165; cursor: pointer;
  transition: width 0.5s var(--ease-out), background 0.3s;
}
.pager button[aria-current="true"] { width: 22px; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .exp-pane, .exp-pane::before, html.pane-live main, html.pane-live body > .site-footer, .exp-bg { transition: none; }
  .exp-bg::before, .exp-bg::after, .ps-arrow, .edge-tab { animation: none; }
}


/* ---------- Home backdrop: studio light beams, lens rings and a cursor spotlight ---------- */
.home-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.home-bg > div { position: absolute; inset: -6%; transition: transform 0.7s var(--ease-out); }
.hb-beams { transform: translate3d(calc(var(--hx, 0) * 22px), calc(var(--hy, 0) * 12px), 0); }
.hb-beams::before {
  content: ""; position: absolute; inset: -30%;
  background:
    linear-gradient(112deg, transparent 38%, rgba(255, 133, 20, 0.075) 46%, transparent 54%),
    linear-gradient(112deg, transparent 58%, rgba(120, 150, 255, 0.065) 64%, transparent 70%);
  animation: sway 18s ease-in-out infinite alternate;
}
@keyframes sway { to { transform: translate3d(-6%, 0, 0) rotate(2deg); } }

/* ---------- Header links: one group slides out as the other slides in ---------- */
.site-header nav { display: grid; }
.site-header nav ul { grid-area: 1 / 1; justify-content: flex-start; transition: visibility 0s; }
.site-header nav li { transition: transform 0.6s var(--ease-out) calc(var(--i, 0) * 55ms), opacity 0.4s ease calc(var(--i, 0) * 55ms); }
.site-header nav li:nth-child(2) { --i: 1; }
.site-header nav li:nth-child(3) { --i: 2; }
.site-header nav li:nth-child(4) { --i: 3; }
html:not(.exp-open) ul[data-nav="exp"], html.exp-open ul[data-nav="work"] { visibility: hidden; pointer-events: none; transition-delay: 0.7s; }
html:not(.exp-open) ul[data-nav="exp"] li { opacity: 0; transform: translateX(44px); }
html.exp-open ul[data-nav="work"] li { opacity: 0; transform: translateX(-44px); }
@media (min-width: 720px) { .site-header nav ul { justify-content: flex-end; } }
@media (max-width: 719px) {
  .site-header nav ul { flex-wrap: nowrap; gap: 0 clamp(0.5rem, 3vw, 1.2rem); }
  .site-header nav a { font-size: clamp(0.72rem, 3.4vw, 0.9rem); gap: 0.3rem; white-space: nowrap; }
  .site-header nav .nav-icon { width: 13px; height: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-beams::before { animation: none; }
  .home-bg > div, .site-header nav li { transition: none; }
}


/* Experience content waits for the slide to settle before it animates in */
.js .exp-pane .reveal.is-visible { transition-delay: calc(var(--delay, 0ms) + 350ms); }


/* Main page is hidden once the pane has settled, so nothing can peek out around it */
html.exp-settled main, html.exp-settled body > .site-footer { visibility: hidden; }
/* Keep layout width steady when the page scrollbar is swapped for the pane's own */
html.exp-open body { padding-right: var(--sbw, 0px); }
html.exp-open .site-header { padding-right: calc(var(--gutter) + var(--sbw, 0px)); }
/* Phones: the pane reaches under Safari's bottom bar */
@media (hover: none) and (pointer: coarse) {
  .exp-pane { bottom: -140px; }
  .exp-scroll { padding-bottom: 140px; }
}





/* Corner brackets follow the visible area above Safari's toolbar so they never hide behind it */
.viewfinder { inset: 8px 8px auto; height: var(--l); will-change: transform; }
.viewfinder i {
  position: absolute; left: 0; right: 0; top: 0; height: var(--l); will-change: transform;
  transform: translate3d(0, calc(100vh - 16px - var(--l)), 0); transform: translate3d(0, calc(100svh - 16px - var(--l)), 0);
  background:
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--t) var(--l) no-repeat;
}

/* Newsroom rundown (left) and wire datelines (right), rolling like a teleprompter at two depths */
.hb-wire i {
  position: absolute; top: 0; bottom: 0; width: min(44vw, 380px); overflow: hidden; display: block;
  font: 0.8rem/2.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.14em; white-space: pre;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  transform: translate3d(calc(var(--hx, 0) * var(--dx) * 1px), calc(var(--hy, 0) * var(--dy) * 0.5px), 0);
  transition: transform 0.9s var(--ease-out);
}
.hb-wire i:nth-child(1) { left: 3vw; --dx: -26; --dy: 26; }
.hb-wire i:nth-child(2) { right: 3vw; --dx: -40; --dy: -40; text-align: right; }
.hb-wire b { display: block; font-weight: 400; color: rgba(255, 255, 255, 0.11); animation: wire-roll 1360s linear infinite; }
.hb-wire i:nth-child(2) b { animation-direction: reverse; animation-duration: 1680s; }
.hb-wire span { display: block; }
.hb-wire .a { color: rgba(255, 133, 20, 0.24); }
@keyframes wire-roll { to { transform: translate3d(0, -50%, 0); } }
@media (max-width: 719px) { .hb-wire i { font-size: 0.68rem; } .hb-wire b { color: rgba(255, 255, 255, 0.1); } }
@media (prefers-reduced-motion: reduce) { .hb-wire b { animation: none; } }

/* Phones: once the experience pane settles it joins the page scroll, so Safari's toolbar grows and shrinks normally */
html.exp-docked main, html.exp-docked body > .site-footer { display: none; }
html.exp-open.exp-docked { overflow: visible; }
html.exp-docked .exp-pane { position: relative; inset: auto; z-index: auto; transform: none; will-change: auto; box-shadow: none; background: transparent; visibility: visible; }
html.exp-docked .exp-scroll { position: static; overflow: visible; padding: 0; }
html.exp-docked .exp-bg { position: fixed; z-index: -1; background: var(--bg); }


/* Responsiveness: skip work the user cannot see */
html.exp-settled .hb-beams::before, html.exp-settled .hb-wire b { animation-play-state: paused; }
@media (hover: none) and (pointer: coarse) {
  .edge-tab, .pager { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(23, 27, 36, 0.92); }
}
