/* ─────────────────────────────────────────────────────────
   Variables
───────────────────────────────────────────────────────── */
:root {
  /* NGE palette — white ground, ink black, blood red */
  --bg:       #F5F2ED;
  --bg-1:     #ECEAE4;
  --bg-2:     #FFFFFF;
  --text:     #0A0A08;
  --text-2:   #3A3835;
  --text-3:   #8C8880;
  --gold:     #8C0000;   /* blood red */
  --gold-d:   #5C0000;
  --gold-l:   #B30000;
  --line:     rgba(10,10,8,0.10);
  --line-2:   rgba(10,10,8,0.18);

  --ease:     cubic-bezier(0.23, 1, 0.32, 1);
  --ease-2:   cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1440px;
  --pad: clamp(24px, 5.5vw, 88px);
}

/* ── Dark Mode ─────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:       #080807;
  --bg-1:     #0E0E0C;
  --bg-2:     #141412;
  --text:     #EDE8DF;
  --text-2:   #9A9590;
  --text-3:   #504C48;
  --gold:     #E50914;   /* Vivid cinematic red for contrast */
  --gold-d:   #8C0000;
  --gold-l:   #FF4D4D;
  --line:     rgba(237,232,223,0.08);
  --line-2:   rgba(237,232,223,0.14);
}

/* ─────────────────────────────────────────────────────────
   Reset & Base
───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  transition: background 0.35s var(--ease);
}

body {
  font-family: 'Syne', system-ui, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: color 0.35s var(--ease);
}

/* ── Film grain CSS overlay ─────────────────────────── */
@keyframes grainAnim {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -5%); }
  20% { transform: translate(-6%, 2%); }
  30% { transform: translate(3%, -8%); }
  40% { transform: translate(-2%, 8%); }
  50% { transform: translate(-6%, 3%); }
  60% { transform: translate(6%, 0%); }
  70% { transform: translate(0%, 5%); }
  80% { transform: translate(1%, 10%); }
  90% { transform: translate(-4%, 3%); }
}

#filmGrain {
  position: fixed;
  top: -150%;
  left: -150%;
  right: -150%;
  bottom: -150%;
  width: 400%;
  height: 400%;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4.0' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.7'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
  animation: grainAnim 0.8s steps(1) infinite;
  will-change: transform;
  contain: strict;
}

/* ── Scroll-driven background canvas ────────────────── */
#scrollBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
  filter: brightness(0.65) saturate(0.4);
}


/* ── Vinheta estilo 35mm ───────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    transparent 55%,
    rgba(0, 0, 0, 0.18) 80%,
    rgba(0, 0, 0, 0.38) 100%
  );
}
[data-theme="dark"] body::after {
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    transparent 50%,
    rgba(0, 0, 0, 0.28) 80%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }

/* ─────────────────────────────────────────────────────────
   Header
───────────────────────────────────────────────────────── */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10001;
  transition: background 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(245,242,237,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
[data-theme="dark"] #header.scrolled {
  background: rgba(8,8,7,0.92);
}
/* Disable backdrop-filter when mobile menu is open — 
   backdrop-filter creates a containing block that traps 
   position:fixed children inside the header */
body.nav-open #header.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg);
}

.hdr {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hdr-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  gap: 1px;
}

.hdr-brand strong {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hdr-brand em {
  font-style: normal;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hdr-nav {
  display: flex;
  gap: 2.8rem;
  align-items: center;
}

.hdr-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.25s;
  position: relative;
}

.hdr-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

.hdr-nav a:hover,
.hdr-nav a.active-link { color: var(--text); }
.hdr-nav a:hover::after,
.hdr-nav a.active-link::after { width: 100%; }

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Hamburger ─────────────────────────────────────────── */
.hdr-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px;
  transition: opacity 0.25s;
  position: relative;
  z-index: 10002;
}

.hdr-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.hdr-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.hdr-toggle.open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile overlay nav */
.hdr-nav.is-open {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background-color: #080807;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding-top: 68px;
}
[data-theme="dark"] .hdr-nav.is-open {
  background-color: #080807;
}

.hdr-nav.is-open a {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--text-2);
}

/* ─────────────────────────────────────────────────────────
   Scroll Reveal
───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in         { opacity: 1; transform: none; }
.reveal-d1.in      { transition-delay: 0.12s; }
.reveal-d2.in      { transition-delay: 0.24s; }
.reveal-d3.in      { transition-delay: 0.38s; }

/* ─────────────────────────────────────────────────────────
   Hero
───────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--pad) 80px;
  position: relative;
  overflow: hidden;
}

/* NGE: thin red vertical rule, left side */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: calc(var(--pad) * 0.5 - 1px);
  width: 2px;
  background: var(--gold);
  pointer-events: none;
}

/* NGE: remove dark decorative line (covered by ::before red rule) */
.hero::after { display: none; }

.hero-body {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.2s forwards;
}

/* Hero fullscreen video */
.hero--video {
  justify-content: space-between;
  padding-top: 110px;
  padding-bottom: 80px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: heroFadeIn 1.2s var(--ease) 0.1s forwards;
}
.hero--video::before { display: none; }
.hero--video .hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 0;
}
.hero--video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.15) 30%,
      rgba(0,0,0,0.15) 60%,
      rgba(0,0,0,0.75) 100%);
  display: block !important;
}
.hero--video .hero-eyebrow,
.hero--video .hero-sub {
  text-shadow: 0 2px 20px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.5);
}
.hero--video .hero-sub {
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 0.5rem;
}
.hero--video .hero-scroll { z-index: 2; }

@keyframes heroFadeIn {
  to { opacity: 1; }
}

@keyframes reelIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.05em;
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.98s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  animation: riseIn 1s var(--ease) 1.3s forwards;
  transition: color 0.25s;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-scroll svg {
  opacity: 0.4;
  animation: scrollBob 2.5s ease-in-out 2s infinite;
}
.hero-scroll:hover       { color: var(--gold); }
.hero-scroll:hover svg   { opacity: 0.8; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─────────────────────────────────────────────────────────
   Achievements Bar
───────────────────────────────────────────────────────── */
.ach-bar {
  border-top:    2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 3rem var(--pad);
  background: var(--bg-2);
}
[data-theme="dark"] .ach-bar { background: var(--bg-1); }

.ach-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.ach-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ach-num {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.05em;
}

.ach-prize {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.3;
}

.ach-film {
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.03em;
}
.ach-film em {
  font-style: italic;
  color: var(--text-2);
}

.ach-rule {
  width: 1px;
  height: 64px;
  background: var(--line-2);
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   Section Base
───────────────────────────────────────────────────────── */
.section {
  padding: clamp(64px, 10vw, 128px) var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
}

.section-hdr {
  display: flex;
  align-items: baseline;
  gap: 1.8rem;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--text);
}
[data-theme="dark"] .section-hdr {
  border-bottom: 1px solid var(--line-2);
}

.section-n {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  min-width: 2ch;
}

.section-title {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.9;
}

/* ─────────────────────────────────────────────────────────
   Filters
───────────────────────────────────────────────────────── */
.filters {
  display: flex;
  gap: 0;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--line-2);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  padding: 0.8rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter:hover  { color: var(--text-2); }
.filter.active { color: var(--text); border-bottom-color: var(--gold); }

/* ─────────────────────────────────────────────────────────
   Portfolio Grid
───────────────────────────────────────────────────────── */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* Base card */
.pcard {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
  outline: none;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s var(--ease);
  transform-origin: center;
}

.pcard:hover {
  transform: scale(1.05); /* Enlarge out */
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

/* Image layer */
.pcard-fig {
  position: absolute;
  inset: 0;
  margin: 0;
}

.pcard-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s var(--ease),
    filter 0.55s var(--ease);
  filter: brightness(0.7) saturate(0.75);
  will-change: transform, filter;
}

/* Info overlay — always visible, fades deeper on hover */
.pcard-body {
  position: absolute;
  inset: 0;
  padding: 1.8rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(4,4,3,0.97) 0%,
    rgba(4,4,3,0.62) 35%,
    rgba(4,4,3,0.12) 65%,
    transparent      100%
  );
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  opacity: 0;
  transform: translateY(6px);
}

.pcard:hover .pcard-body {
  opacity: 1;
  transform: translateY(0);
}

.pcard:hover .pcard-fig img {
  transform: scale(1.045);
  filter: brightness(0.5) saturate(0.65);
}

/* Always show info on touch devices */
@media (hover: none) {
  .pcard-body { opacity: 1; transform: translateY(0); }
}

/* Tag */
.pcard-tag {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-l);
  border: 1px solid var(--gold-d);
  padding: 4px 10px;
  backdrop-filter: blur(6px);
}

/* Text */
.pcard-title {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.0;
  margin-bottom: 0.4rem;
}

.pcard-info {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.pcard-award {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.82rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold);
  margin-top: 0.5rem;
}

/* Play button on cards with video */
.pcard-play {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(237,232,223,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text);
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.pcard-play svg {
  width: 16px;
  height: 16px;
  margin-left: 2px; /* optical centering for play icon */
}
.pcard:hover .pcard-play {
  background: var(--gold);
  border-color: var(--gold);
}

/* Hidden during filter */
.pcard.is-hidden {
  display: none;
}

/* ─────────────────────────────────────────────────────────
   Video Modal
───────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245,242,237,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}
[data-theme="dark"] .modal-backdrop {
  background: rgba(8,8,7,0.96);
}


.modal-box.modal-box--expanded {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1024px;
  max-height: 85vh; /* Keep within viewport */
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: none;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s var(--ease-2);
}
.modal.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-content-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.modal-content-scroll::-webkit-scrollbar {
  display: none;
}



.modal-hdr {
  padding: 2.2rem 3rem 1.8rem;
  border-bottom: 1px solid var(--line);
}

.modal-title {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--text);
}

.modal-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 0.6rem;
}

.modal-award {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 0.8rem;
  min-height: 1em;
}

.modal-hero {
  position: relative;
  width: 100%;
  background: #000;
}

.modal-frame {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.modal-frame iframe,
.modal-frame img.modal-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  padding: 3rem;
  background: var(--bg-1);
}

.modal-left-col {
  display: flex;
  flex-direction: column;
}

.modal-synopsis p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 1rem;
}

.section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.frames-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.frames-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-credits {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cred-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cred-item strong {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.cred-item span {
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────
   About
───────────────────────────────────────────────────────── */
.about {
  background: transparent;
  border-top:    2px solid var(--text);
  border-bottom: 2px solid var(--text);
}
[data-theme="dark"] .about {
  border-top-width:    1px;
  border-bottom-width: 1px;
  border-color: var(--line-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.5rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.about-photo-container {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  position: relative;
  margin-top: 1rem;
}

.about-photo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  margin: 10px;
  opacity: 0.3;
  pointer-events: none;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-photo-container:hover .about-photo {
  transform: scale(1.05);
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo-container {
    max-width: 280px;
    margin: 0 auto;
  }
}

.about-bio {
  max-width: 700px;
}

.about-lead {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  color: var(--text);
}

.about-bio p {
  font-size: 0.93rem;
  line-height: 1.78;
  color: var(--text-2);
  margin-bottom: 1.2rem;
}
.about-bio p strong { color: var(--text); font-weight: 700; }
.about-bio p em     { font-style: italic; }

/* ─────────────────────────────────────────────────────────
   Footer
───────────────────────────────────────────────────────── */
footer {
  padding: clamp(64px, 10vw, 120px) var(--pad);
  border-top: 2px solid var(--text);
}
[data-theme="dark"] footer {
  border-top: 1px solid var(--line-2);
}

.ftr {
  max-width: var(--max);
  margin: 0 auto;
}

.ftr-top {
  margin-bottom: 3.5rem;
}

.ftr-title {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.92;
  margin-bottom: 1.4rem;
}
.ftr-title em {
  font-style: normal;
  color: var(--gold);
}

.ftr-email {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-style: normal;
  font-size: clamp(1.1rem, 2.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  transition: color 0.25s;
  position: relative;
}
.ftr-email::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.ftr-email:hover       { color: var(--gold-l); }
.ftr-email:hover::after { width: 100%; }

.ftr-links {
  display: flex;
  gap: 3rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ftr-links a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.25s;
  position: relative;
}
.ftr-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.ftr-links a:hover         { color: var(--text); }
.ftr-links a:hover::after  { width: 100%; }

.ftr-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ─────────────────────────────────────────────────────────
   Responsive
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pcard--lg {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2.5rem;
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .ach-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .ach-rule {
    width: 40px;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .pgrid {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .pcard--lg {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }
  .pcard { aspect-ratio: 16 / 9; }
  /* Always show card info on mobile */
  .pcard-body {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .hdr-nav  { display: none; }
  .hdr-toggle { display: flex; }

  .about-aside {
    grid-template-columns: 1fr;
  }

  .ftr-links {
    gap: 2rem;
  }
  .ftr-bottom {
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
  }
  .ach-bar {
    padding: 2.5rem var(--pad);
  }

  /* Modal Mobile adjustments */
  .modal { padding: 1rem; }
  .modal-hdr { padding: 1.8rem 1.4rem; }
  .modal-body-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.8rem 1.4rem;
  }
}

/* ── Ultrawide Support ───────────────────────────────── */
@media (min-width: 1600px) {
  :root {
    --max: 1800px;
  }
  .pgrid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 2200px) {
  :root {
    --max: 2201px;
  }
  .pgrid {
    grid-template-columns: repeat(5, 1fr);
  }
  .hero-body {
    max-width: 2000px; /* Keep center hero a bit more focused */
  }
}

@media (max-width: 480px) {
  .ftr-title {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }
}

/* ─────────────────────────────────────────────────────────
   NGE typography polish
───────────────────────────────────────────────────────── */
.section-n { letter-spacing: 0.08em; font-weight: 700; color: var(--gold); }
.pcard-info { letter-spacing: 0.12em; font-size: 0.62rem; color: rgba(237,232,223,0.7); }
.pcard-award { color: var(--gold-l); }

/* NGE: red accent on modal title */
.modal-title {
  font-family: 'Bebas Neue', 'Fraunces', Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────────────────────────
   Reduced Motion — Accessibility
───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #filmGrain { animation: none; }
  .reveal { transition: none; }
  .hero-eyebrow, .hero-reel, .hero-sub, .hero-scroll { animation: none; opacity: 1; transform: none; }
  .pcard-fig img { transition: none; }
  .pcard { transition: none; }
}
