/* =========================================================
   angelmanuelsoto.com — design tokens lifted from duties.xyz
   ========================================================= */

:root {
  /* palette — DARK (default) */
  --bg: #0e0e0d;          /* near-black, warm */
  --bg-deep: #161615;     /* sectioned bg */
  --bg-soft: #1c1c1b;     /* elevated surface (cards, toolbar) */
  --ink: #f1f0ee;         /* the "duties" bone */
  --ink-2: #b8b6b1;
  --ink-3: #807e79;
  --line: rgba(241, 240, 238, 0.14);
  --line-2: rgba(241, 240, 238, 0.07);

  --shadow: 0 1px 0 rgba(0, 0, 0, 0.5);

  --accent-green: #5FE37C;
  --accent-sage: #a7beb1;
  --accent-blue: #09f;
  --accent-orange: #feaf2c;
  --accent-tan: #d8c9b8;

  /* type */
  --font-display: 'Unbounded', 'Geist Mono', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'PP Neue Montreal Mono', monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* layout */
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(56px, 9vw, 140px);
  --radius: 14px;
  --radius-pill: 999px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 360ms;
  --t-slow: 700ms;
}

/* palette — LIGHT (mirrors the dark palette: every black/white-ish
   token flips, accents and everything else stay identical) */
[data-theme="light"] {
  --bg: #f1f0ee;
  --bg-deep: #e9e9ea;
  --bg-soft: #e3e3e4;
  --ink: #0e0e0d;
  --ink-2: #47494e;
  --ink-3: #807e79;
  --line: rgba(14, 14, 13, 0.14);
  --line-2: rgba(14, 14, 13, 0.07);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
/* The Asteria + CIRCA 1985 PNGs are white-on-transparent. In light mode
   white-on-light = invisible, so invert them to render dark instead. */
[data-theme="light"] .powered-by-stack .footer-logo img {
  filter: invert(1);
}

/* =========================================================
   reset + base
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; margin: 0; }
sup { font-size: 0.45em; vertical-align: super; line-height: 0; }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }

::selection { background: var(--ink); color: var(--bg); }

/* =========================================================
   nav
   ========================================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  /* solid theme bg — reads as the top of the page rather than a floating
     strip. No backdrop-filter, no border, no scroll-state shimmer. */
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand-mark {
  width: 8px; height: 8px;
  display: inline-block;
  background: var(--accent-green);
  border-radius: 50%;
  font-size: 0;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-green) 30%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent-green) 30%, transparent); }
  50%      { box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent-green) 12%, transparent); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--ink);
  padding: 8px 14px !important;
  border-radius: var(--radius-pill);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink); color: var(--bg); }

/* theme toggle in nav */
.theme-toggle {
  width: 38px;
  height: 38px;
  margin-left: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-med) var(--ease);
}
.theme-toggle:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: rotate(-12deg);
}
.theme-toggle .t-sun,
.theme-toggle .t-moon {
  position: absolute;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
/* default (dark mode) — show moon, hide sun */
.theme-toggle .t-sun  { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .t-moon { opacity: 1; transform: rotate(0)      scale(1);   }
/* light mode — show sun, hide moon */
[data-theme="light"] .theme-toggle .t-sun  { opacity: 1; transform: rotate(0)     scale(1);   }
[data-theme="light"] .theme-toggle .t-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.menu-btn {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease), top var(--t-med) var(--ease);
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--bg);
  z-index: 40;
  padding: 32px var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mobile-menu[hidden] { display: none; }

/* =========================================================
   hero
   ========================================================= */

.hero {
  padding: clamp(40px, 7vw, 80px) var(--pad-x) 0;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr clamp(220px, 26%, 320px);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(40px, 8vw, 96px);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
  text-transform: uppercase;
  color: var(--ink);
}
.display .line { display: block; }
.display .muted { color: var(--ink-2); }
.display sup {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.18em;
  letter-spacing: 0;
  vertical-align: super;
  margin-left: 0.05em;
  color: var(--ink-2);
}

/* hero logo — replaces the FILMMAKER™ text headline */
.display-logo { padding: 0; line-height: 0; color: var(--ink); }
.display-logo .logo-wrap {
  position: relative;
  display: inline-block;
  max-width: min(92vw, 1100px);
  width: 100%;
}
.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}
.logo-reg {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(0.35em, -0.1em);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 64px);   /* ~10% of the logo height — sized to read with the AMS bars */
  letter-spacing: 0;
  color: var(--ink-2);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 880px) {
  .display-logo .logo-wrap { max-width: 100%; }
  .logo-reg { font-size: clamp(20px, 5vw, 36px); transform: translate(0.2em, 0); }
}

/* hero side panel */
.hero-side { align-self: end; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  color: var(--ink-2);
  text-transform: uppercase;
}
.caption {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0 0 4px;   /* match the eyebrow→caption gap so all three lines stack tightly */
  color: var(--ink);
  text-transform: uppercase;
}
.bullets {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.bullets li { margin-bottom: 4px; }

/* status pill */
.status-pill {
  position: absolute;
  top: 24px;
  right: var(--pad-x);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.status-pill .dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-green) 30%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
.status-pill .status-state { color: var(--ink); font-weight: 500; }
.status-pill .status-time { color: var(--ink); font-variant-numeric: tabular-nums; }
.status-pill .status-loc { color: var(--ink-2); }
.status-pill.compact { position: static; padding: 6px 10px; font-size: 11px; }

/* hero marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  margin-top: auto;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.marquee-track span { display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   sections
   ========================================================= */

.section {
  padding: var(--pad-y) var(--pad-x);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding-bottom: clamp(28px, 5vw, 56px);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-num,
.section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.section-meta { text-align: right; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 56px);
  letter-spacing: -0.02em;
  margin: 0;
  text-transform: uppercase;
}

/* =========================================================
   work / films
   ========================================================= */

.film-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.film {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.film-link {
  display: grid;
  grid-template-columns: clamp(120px, 18%, 220px) 1fr auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px) 0;
  transition: padding-left var(--t-med) var(--ease), background var(--t-med) var(--ease);
}

.film-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-deep);
}
.film-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--t-slow) var(--ease), filter var(--t-med) var(--ease);
  filter: saturate(0.92);
}

.film-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(20px, 4vw, 56px);
  row-gap: 4px;
  align-items: center;
}
.film-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  grid-row: 1 / span 2;
  align-self: center;
}
.film-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
  transition: transform var(--t-med) var(--ease);
}
.film-scope {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.film-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: clamp(0px, 2vw, 16px);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

/* hover state — color washes in via the per-film --accent */
.film:hover { background: var(--accent); }
.film:hover .film-link { padding-left: clamp(8px, 2vw, 24px); }
.film:hover .film-media img { transform: scale(1.06); filter: saturate(1.05); }
.film:hover .film-cta { opacity: 1; transform: translateX(0); }

.explore-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(40px, 6vw, 80px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: gap var(--t-med) var(--ease), color var(--t-fast) var(--ease);
}
.explore-all:hover { gap: 20px; }

/* =========================================================
   about
   ========================================================= */

.about-grid {
  display: grid;
  /* fluid columns: 3 on wide, 2 mid, 1 on phone — no hard breakpoints needed */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 64px);
}
.about-block .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.about-block .lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.about-block .body {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  max-width: 36ch;
}

/* =========================================================
   contact
   ========================================================= */

.contact-card {
  display: grid;
  gap: 24px;
  padding: clamp(32px, 5vw, 80px);
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
}
.contact-lede {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 75%, transparent);
  margin: 0;
}
.contact-mail {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 88px);
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border-bottom: 2px solid color-mix(in oklab, var(--bg) 30%, transparent);
  padding-bottom: 12px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;       /* keep "CONTACT ME ↗" on one line at any width */
  transition: border-color var(--t-med) var(--ease);
}
.contact-mail:hover { border-color: var(--accent-green); }

/* =========================================================
   footer
   ========================================================= */

.footer {
  padding: clamp(40px, 6vw, 80px) var(--pad-x) 32px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  /* auto-fit with min-track 240px: 3 cols on wide, 2 on tablet, 1 on phone — no
     hard breakpoints needed for the column count itself */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(40px, 6vw, 64px);
}
.footer-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.footer-links {
  display: flex; flex-direction: column; gap: 6px;
}

/* Position-only utilities — they shrink the column box to its content and
   anchor it to a side of its grid track, leaving the text inside left-aligned.
   `flush-center` ends up centered on the page because the middle grid cell is
   itself centered on the page. */
.footer-col--flush-center { justify-self: center; }
.footer-col--flush-end    { justify-self: end; }
@media (max-width: 520px) {
  /* on phone the grid is one column — stretch instead of shrinking */
  .footer-col--flush-center,
  .footer-col--flush-end { justify-self: stretch; }
}
.footer-links a, .footer-col a {
  display: inline-block;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.footer-links a::after, .footer-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t-med) var(--ease);
}
.footer-links a:hover::after, .footer-col a:hover::after { transform: scaleX(1); }

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
  width: fit-content;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.footer-logo svg {
  display: block;
  width: 110px;
  height: auto;
  opacity: 0.95;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-logo img {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
  opacity: 0.95;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-logo:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.footer-logo:hover svg,
.footer-logo:hover img { opacity: 1; }

/* Powered-by stack: two logo cards side-by-side, identical box sizes */
.powered-by-stack {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.powered-by-stack .footer-logo {
  width: 140px;
  height: 80px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.powered-by-stack .footer-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
}

.colophon {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  text-align: center;
}

/* =========================================================
   video lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(10, 10, 10, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 280ms var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox-frame {
  width: 100%;
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(12px) scale(0.985);
  transition: transform 360ms var(--ease);
}
.lightbox.is-open .lightbox-frame { transform: none; }

.lightbox-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.04);
}
.lightbox-aspect iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.06);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

body.is-locked { overflow: hidden; }

/* =========================================================
   reveal-on-scroll
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* =========================================================
   responsive
   ========================================================= */

/* =========================================================
   responsive — three breakpoints + fluid units in between
   ========================================================= */

/* tablet / small laptop */
@media (max-width: 1024px) {
  .marquee-track { font-size: clamp(18px, 2.6vw, 28px); }
  .film-link { padding: clamp(16px, 2vw, 24px) 0; }
}

/* tablet portrait / large phone */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-block; }

  .hero { min-height: auto; padding-top: 32px; }
  .hero-grid {
    grid-template-columns: 1fr;       /* stack vertically */
    align-items: start;
    padding-bottom: 56px;
    gap: 28px;
  }
  .hero-side { margin-top: 8px; }
  .status-pill {
    position: static;
    margin: 8px 0 0;
    align-self: start;
  }

  .film-link {
    grid-template-columns: 1fr;       /* image stacks above meta */
    gap: 14px;
    padding: 20px var(--pad-x);
  }
  .film-meta { grid-template-columns: 1fr; }
  .film-year { grid-row: auto; }
  .film:hover .film-link { padding-left: var(--pad-x); }
  .film-cta { opacity: 1; transform: none; }

  /* footer + about now flow via auto-fit; no column-count override needed */
}

/* phone */
@media (max-width: 520px) {
  :root { --pad-x: 18px; }
  .display { font-size: clamp(48px, 16vw, 72px); }
  .marquee-track { font-size: clamp(16px, 5vw, 22px); }

  /* On phone: stack the two powered-by logos vertically, center each card
     horizontally, and equalize the actual letterform height (cap-height).
     Both PNGs are tight-cropped to their content, so a single height value
     puts them at identical visual scale — the standard "in association with"
     treatment. Each card shrinks to its logo's intrinsic width. */
  .powered-by-stack {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .powered-by-stack .footer-logo {
    width: auto;
    max-width: 100%;
    height: auto;
    padding: 8px 14px;
  }
  .powered-by-stack .footer-logo img {
    height: 28px;
    width: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }
  /* Asteria's letterforms are bolder/heavier than CIRCA 1985's, so equal
     pixel-height reads as different visual weight. Scale Asteria down to
     compensate so both feel like the same "size" optically. */
  .powered-by-stack .asteria-logo img { height: 20px; }

  .contact-card { padding: clamp(24px, 6vw, 40px); }
  .contact-mail { font-size: clamp(22px, 7.5vw, 40px); letter-spacing: -0.04em; }
  .section-head {
    grid-template-columns: 1fr;       /* number + title + meta stack */
    gap: 8px;
  }
  .section-meta { text-align: left; }
}
