/* ==========================================================================
   Mario Callejas, portfolio
   Palette: morning paper, deep ocean navy, one sunrise coral.
   ========================================================================== */

:root {
  --paper: #F7F3EC;        /* warm off-white, early light */
  --paper-2: #EEE7DB;      /* sand shade for panels */
  --mist: #D8DEDF;         /* hairlines on paper */
  --navy: #0E2A3F;         /* deep ocean: text + dark sections */
  --navy-2: #163A54;       /* raised surface on navy */
  --ink-soft: #3D5366;     /* secondary text on paper (7:1) */
  --coral: #F08A6E;        /* sunrise accent, on navy only */
  --coral-deep: #B0472D;   /* accent when it must sit on paper (5:1) */
  --on-navy: #F7F3EC;
  --on-navy-soft: rgba(247, 243, 236, 0.78);

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius-frame: 6px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration-color: var(--coral-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.proof :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible { outline-color: var(--coral); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--navy); color: var(--on-navy);
  border-radius: 4px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Placeholder marker: easy to spot, easy to search for */
.ph {
  display: inline-block;
  padding: 0 0.35em;
  background: #FFF0B3;
  color: #4A3A00;
  border: 1px dashed #A8871A;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.85em;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--mist); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-variation-settings: "opsz" 24;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav ul { list-style: none; display: flex; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; }
.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.4rem 0;
}
.site-nav a:hover { color: var(--navy); text-decoration: underline; }
.site-nav .nav-cta {
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}
.site-nav .nav-cta:hover { background: var(--navy); color: var(--paper); text-decoration: none; }

.nav-toggle {
  display: none;
  font: inherit; font-size: 0.95rem;
  background: none; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 999px;
  padding: 0.35rem 0.9rem; cursor: pointer;
}

@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul {
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .js .site-nav li { width: 100%; }
  .js .site-nav a { display: block; padding: 0.75rem 0; font-size: 1.05rem; color: var(--navy); }
  .js .site-nav .nav-cta { display: inline-block; margin-top: 0.5rem; padding: 0.5rem 1.1rem; }
  /* no-JS fallback: nav stays visible and wraps */
  .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem; font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--navy); color: var(--paper); border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border: 1px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--paper-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  /* the only "light" effect on the page: a low sunrise glow */
  background:
    radial-gradient(70% 55% at 88% 0%, rgba(240, 138, 110, 0.16), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(22, 58, 84, 0.07), transparent 70%),
    var(--paper);
}

.hero-text { max-width: 58rem; }

.hero-name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 500;
  font-variation-settings: "opsz" 24;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.85rem;
}
.hero-name::before {
  content: ""; width: 2.25rem; height: 2px;
  background: var(--coral);
  flex: none;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin: 0 0 1.5rem;
  max-width: 16ch;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-film { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.hero-film figcaption, .figcap {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- Video frames ---------- */
.frame {
  position: relative;
  background: var(--navy);
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(14, 42, 63, 0.08), 0 24px 60px -30px rgba(14, 42, 63, 0.55);
}
.frame-16x9 { aspect-ratio: 16 / 9; }
@supports not (aspect-ratio: 16 / 9) {
  .frame-16x9 { height: 0; padding-bottom: 56.25%; }
}
.frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}

.yt-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0;
  background: var(--navy);
  cursor: pointer;
}
.yt-play img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: opacity 0.3s ease, transform 0.6s ease;
}
.yt-play:hover img, .yt-play:focus-visible img { opacity: 1; transform: scale(1.02); }
.yt-play:focus-visible { outline: 3px solid var(--coral); outline-offset: -3px; }

.play-icon {
  position: absolute; left: 50%; top: 50%;
  width: 68px; height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(247, 243, 236, 0.94);
  box-shadow: 0 8px 30px rgba(14, 42, 63, 0.35);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.play-icon::after {
  content: "";
  position: absolute; left: 53%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--navy);
}
.yt-play:hover .play-icon, .yt-play:focus-visible .play-icon { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

/* ---------- Proof bar ---------- */
.proof {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.proof-grid {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 3.5rem);
}
.proof-grid li {
  border-top: 1px solid rgba(247, 243, 236, 0.22);
  padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.stat {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.stat-words {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: normal;
  font-variation-settings: "opsz" 96;
}
.stat-arrow { color: var(--coral); font-weight: 300; }
.stat-label { color: var(--on-navy-soft); font-size: 0.98rem; max-width: 26ch; }

.proof-skills {
  list-style: none;
  display: flex; flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.proof-skills li {
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  font-variation-settings: "opsz" 36;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(247, 243, 236, 0.3);
  border-radius: 999px;
}
@media (max-width: 1100px) { .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2, .about h2, .experience h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
  margin-bottom: 1rem;
}
.section-intro { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

/* ---------- Films ---------- */
.group-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  padding-bottom: 0.9rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--mist);
}
.group-title-sep { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.film-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.film-featured .film-title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.film-featured .film-meta .film-views { font-size: clamp(2.5rem, 4.4vw, 3.6rem); }

.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 3.75rem) clamp(1.5rem, 3.5vw, 2.75rem);
}
.film-grid-single { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 1.375rem); }

.film-body { padding-top: 1.1rem; }
.film-title {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 48;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.film-note { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0.9rem; max-width: 42ch; }

.film-meta {
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.5rem;
}
.film-meta > div { display: contents; }
.film-meta dt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  align-self: baseline;
}
.film-meta dd { margin: 0; font-size: 0.95rem; align-self: baseline; }
.film-meta .film-views { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.film-meta div:first-child dt { align-self: end; padding-bottom: 0.35rem; }
.film-views {
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-variant-numeric: lining-nums;
}

@media (max-width: 860px) {
  .film-featured { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .film-grid { grid-template-columns: 1fr; }
  .film-grid-single { max-width: none; }
}

/* ---------- Case studies ---------- */
.work { background: var(--paper-2); }

.case {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(14, 42, 63, 0.14);
}
.case:first-of-type { border-top: 0; padding-top: 0; }

.case-head { max-width: 52rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.case-org {
  font-size: 0.95rem;
  color: var(--coral-deep);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.case-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.case-role { font-size: 0.98rem; margin: 0; }
.case-role > span:first-child { color: var(--ink-soft); margin-right: 0.5rem; }

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.case-story { max-width: 38rem; }
.case-story h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}
.case-story h4:first-child { margin-top: 0; }
.case-story ul { list-style: none; }
.case-story li { position: relative; padding-left: 1.1rem; margin-bottom: 0.5rem; }
.case-story li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 1px; background: var(--navy);
}

.case-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
.result {
  display: flex; flex-direction: column; gap: 0.35rem;
  border-top: 2px solid var(--navy);
  padding-top: 0.9rem;
}
.result-lead, .result-wide { grid-column: 1 / -1; }
.result-num {
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.result-lead .result-num { font-size: clamp(2.8rem, 6vw, 4.6rem); }
.result-num [aria-hidden="true"] { color: var(--coral-deep); }
.result-label { font-size: 0.95rem; color: var(--ink-soft); max-width: 30ch; }

/* JUST: the flagship case gets the chart */
.chart {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  background: var(--paper);
  border-radius: var(--radius-frame);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.chart figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}
.chart-title { font-family: var(--serif); font-size: 1.2rem; font-variation-settings: "opsz" 36; }
.chart-legend { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.key-22 { background: #A9B7C1; margin-left: 0; }
.key-23 { background: var(--navy); margin-left: 0.75rem; }
.chart-svg { width: 100%; max-width: 820px; margin-inline: auto; height: auto; overflow: visible; }
.chart-svg .gridlines line { stroke: var(--mist); stroke-width: 1; }
.chart-svg .axis-labels text { font: 400 12px var(--sans); fill: var(--ink-soft); }
.chart-svg .bar-22 { fill: #A9B7C1; }
.chart-svg .bar-23 { fill: var(--navy); }
.chart-svg .bar-val { font: 400 13px var(--sans); fill: var(--ink-soft); text-anchor: middle; }
.chart-svg .bar-val-strong { font-weight: 600; fill: var(--navy); }
.chart-svg .cat { font: 500 14px var(--sans); fill: var(--navy); text-anchor: middle; }

.case-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(14, 42, 63, 0.14);
}
.case-pair .case-short {
  background: var(--paper);
  border: 0;
  border-radius: var(--radius-frame);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.case-short .case-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.case-short .case-role { margin-bottom: 1rem; }
.case-results-inline { margin-top: 1.5rem; }
.case-results-inline .result-num { font-size: clamp(1.9rem, 3vw, 2.5rem); }

@media (max-width: 900px) {
  .case-body { grid-template-columns: 1fr; }
  .case-pair { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .case-results { grid-template-columns: 1fr; }
  .result-num, .stat { white-space: normal; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.about-photo { position: sticky; top: calc(var(--header-h) + 2rem); }
.about-photo img {
  width: 100%;
  border-radius: var(--radius-frame);
  box-shadow: 0 30px 60px -35px rgba(14, 42, 63, 0.6);
}
.about-text { max-width: 40rem; }
.about-text .lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 72;
  margin-bottom: 1.5rem;
}
.about-text p { line-height: 1.7; }

.skills-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-variation-settings: "opsz" 36;
  margin: 2.75rem 0 1.25rem;
}
.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}
.skills h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.4rem; }
.skills p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 420px; }
}
@media (max-width: 520px) { .skills { grid-template-columns: 1fr; } }

/* ---------- Experience ---------- */
.experience { padding-top: 0; }
.experience h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.timeline { list-style: none; border-top: 1px solid var(--mist); }
.timeline li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--mist);
}
.tl-years { font-size: 0.95rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tl-org {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tl-role { font-size: 1rem; }

@media (max-width: 720px) {
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(5rem, 11vw, 9rem) 0;
  background-image: radial-gradient(60% 70% at 50% 120%, rgba(240, 138, 110, 0.22), transparent 70%);
}
.contact-inner { text-align: center; max-width: 52rem; }
.contact h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.contact p { color: var(--on-navy-soft); font-size: 1.15rem; }
.contact-email {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  color: var(--on-navy);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  word-break: break-word;
}
.contact-email:hover { color: var(--coral); }
.contact-links { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-soft);
  border-top: 1px solid rgba(247, 243, 236, 0.14);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
  padding-block: 1.75rem;
}
.footer-inner p { margin: 0; }
.site-footer a { color: var(--on-navy); text-decoration-color: var(--coral); }

/* ---------- Motion ---------- */
/* One orchestrated hero entrance, plus a quiet fade as sections arrive. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-text > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .js .hero-text > :nth-child(2) { animation-delay: 0.12s; }
  .js .hero-text > :nth-child(3) { animation-delay: 0.28s; }
  .js .hero-text > :nth-child(4) { animation-delay: 0.4s; }
  .js .hero-film { opacity: 0; animation: fade 1.2s ease 0.5s forwards; }

  .js .reveal { opacity: 0; transition: opacity 0.8s ease; }
  .js .reveal.is-visible { opacity: 1; }
}

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

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

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex; align-items: center;
  padding: var(--section) 0;
}
.notfound h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144;
  margin-bottom: 1.25rem;
}
.notfound p { color: var(--ink-soft); font-size: 1.15rem; max-width: 40ch; margin-bottom: 2rem; }
