/* =============================================================
   PÁPAY ÜGYVÉDI IRODA — v5 "Cinematic Boutique"
   Sötét, filmszerű, prémium boutique law firm dizájn.
   ============================================================= */

/* ============= TOKENS ============= */
:root {
  /* Színek — navy (mély tengerészkék) sötét alap */
  --navy-950: #0a1428;     /* legmélyebb — háttérre */
  --navy-900: #0d1a32;
  --navy-850: #11203c;
  --navy-800: #142647;
  --navy-750: #182d52;
  --navy-700: #1d3461;
  --navy-600: #1e3a8a;     /* signature midnight blue */
  --navy-500: #2b4a9e;
  --navy-400: #3d5fb8;

  /* Bézs / paper */
  --paper: #f5ecd7;        /* világos téma alap — meleg bézs */
  --paper-soft: #ebdfc4;
  --bone: #e8dcb8;         /* sötét témán szöveg — krém bézs */
  --bone-soft: #d4c69c;
  --bone-mute: #a89c78;
  --sage: #6f766e;

  /* Arany akcent (visszafogottabb) */
  --brass: #c9a55f;
  --brass-bright: #dcb976;
  --brass-soft: #8a6f38;
  --brass-line: rgba(201, 165, 95, 0.34);

  /* Aktív téma változók — sötét navy */
  --bg: var(--navy-950);
  --bg-2: var(--navy-900);
  --bg-3: var(--navy-850);
  --bg-card: var(--navy-800);
  --fg: var(--bone);
  --fg-strong: var(--paper);
  --fg-mute: var(--bone-mute);
  --line: rgba(232, 220, 184, 0.10);
  --line-strong: rgba(232, 220, 184, 0.22);
  --accent: var(--brass);
  --accent-hover: var(--brass-bright);

  /* Tipográfia */
  --font-display: 'Cormorant Garamond', 'EB Garamond', Garamond, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Menlo', 'SF Mono', monospace;

  /* Skála — fluid */
  --fs-eyebrow: 0.72rem;
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.07rem);
  --fs-lead:  clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  --fs-h3:    clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  --fs-h2:    clamp(2.4rem, 1.6rem + 3.2vw, 4.8rem);
  --fs-hero:  clamp(3rem, 2rem + 5.5vw, 8.4rem);
  --fs-mega:  clamp(5rem, 3rem + 9vw, 14rem);

  /* Térközök */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.75rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;
  --gap-2xl: 8rem;

  --container: 1280px;
  --container-wide: 1480px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* Animáció */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Világos téma — bézs alap, navy accent */
[data-theme="light"] {
  --bg: var(--paper);
  --bg-2: var(--paper-soft);
  --bg-3: #e2d3ad;
  --bg-card: #fbf3df;
  --fg: #11203c;
  --fg-strong: var(--navy-700);
  --fg-mute: #4a5a78;
  --line: rgba(17, 32, 60, 0.14);
  --line-strong: rgba(17, 32, 60, 0.26);
  --accent: var(--navy-600);
  --accent-hover: var(--navy-500);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: 0.005em;
  transition: background 600ms var(--ease-out), color 600ms var(--ease-out);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

/* Reduced motion — minden mozgás minimalizálva */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============= LAYOUT PRIMITIVES ============= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: clamp(5rem, 8vw, 9rem);
  position: relative;
}

.section + .section { border-top: 1px solid var(--line); }

.section-bg-2 { background: var(--bg-2); }
.section-bg-3 { background: var(--bg-3); }

/* ============= TYPOGRAPHY ============= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid var(--brass-line);
  border-left: 2px solid var(--brass);
  background: linear-gradient(90deg, rgba(201,165,95,0.06), transparent);
  position: relative;
}
.section-label::after {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px rgba(201,165,95,0.18);
  animation: section-label-pulse 2.4s ease-in-out infinite;
}
@keyframes section-label-pulse {
  0%, 100% { opacity: 0.4; box-shadow: 0 0 0 3px rgba(201,165,95,0.10); }
  50%      { opacity: 1;   box-shadow: 0 0 0 5px rgba(201,165,95,0.22); }
}
@media (prefers-reduced-motion: reduce) {
  .section-label::after { animation: none; }
}

.display,
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0 0 1rem;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--fg-strong);
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--fg);
  font-weight: 300;
}

/* ============= HEADER ============= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 350ms var(--ease-out), border-color 350ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--line);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(245, 236, 215, 0.92);
  border-bottom-color: rgba(17, 32, 60, 0.14);
}

.site-header.is-hidden { transform: translateY(-100%); }

.header-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  width: 0;
  transition: width 50ms linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 26px;
  height: 44px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transition: transform var(--transition-interactive), filter var(--transition-interactive);
}
.brand:hover .brand-mark {
  transform: scale(1.05);
}

/* Világos témán a fekete logo jól látszik; sötét témán is, mert a kapszula alja sötét. */
[data-theme="light"] .brand-mark { filter: none; }

.brand-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--fg-strong);
  font-style: italic;
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--fg-mute);
  font-weight: 400;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transition: right 350ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--fg-strong);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--fg);
  transition: var(--transition-interactive);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="dark"]  .theme-toggle .sun  { display: block; }
[data-theme="dark"]  .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun  { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--fg);
  transform: translate(-50%, -50%);
  transition: transform 300ms var(--ease-out), opacity 200ms;
}
.menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.menu-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem var(--container-pad) 2.5rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-strong);
  letter-spacing: 0;
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--fg);
  background: transparent;
  transition: var(--transition-interactive);
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transition: transform 400ms var(--ease-out);
}

.btn-link:hover::after { transform: scaleX(0.4); }

.btn-link span { transition: transform var(--transition-interactive); }
.btn-link:hover span { transform: translateX(4px); }

/* ============= HERO (cinematic letterbox v7) ============= */
/*
  Architecture:
   1. .hero — full-bleed dark stage, vertical stack
   2. .hero-tape — top filmstrip with running metadata + sprocket-hole edge
   3. .hero-stage-frame — letterboxed photo (aspect-ratio bound, image safe zone)
   4. .hero-panel — text container BELOW the photo. Text NEVER overlaps faces.
   5. .hero-progress — animated brass rail with traveling dot
*/
.hero {
  position: relative;
  background: var(--navy-950);
  padding-top: 76px;
  isolation: isolate;
  overflow: hidden;
}
[data-theme="light"] .hero { background: var(--paper); }

/* === Top tape strip === */
.hero-tape {
  position: relative;
  background: linear-gradient(180deg, rgba(10,20,40,0.95), rgba(10,20,40,0.55));
  border-bottom: 1px solid var(--brass-line);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone-mute);
  z-index: 4;
}
[data-theme="light"] .hero-tape {
  background: linear-gradient(180deg, rgba(245,236,215,0.96), rgba(245,236,215,0.6));
  color: var(--navy-500);
}
.hero-tape-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding-block: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
}
.tape-cell { display: inline-flex; align-items: center; gap: 0.55rem; }
.tape-spacer { flex: 1; opacity: 0.65; }
.tape-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #c43a3a;
  box-shadow: 0 0 0 2px rgba(196,58,58,0.18);
  animation: rec-blink 1.6s ease-in-out infinite;
}
@keyframes rec-blink {
  0%, 60% { opacity: 1; box-shadow: 0 0 0 2px rgba(196,58,58,0.18); }
  61%, 100% { opacity: 0.25; box-shadow: 0 0 0 2px rgba(196,58,58,0.0); }
}
/* Sprocket-hole edge below tape */
.tape-perf {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 14px,
      rgba(201,165,95,0.18) 14px 16px,
      transparent 16px 30px);
  border-bottom: 1px solid var(--brass-line);
  opacity: 0.6;
}

/* === Cinematic letterboxed image stage === */
.hero-stage-frame {
  position: relative;
  width: 100%;
  /* Cinemascope aspect ratio so faces always fit inside */
  aspect-ratio: 21 / 9;
  max-height: 70vh;
  min-height: 380px;
  overflow: hidden;
  background: var(--navy-950);
}
[data-theme="light"] .hero-stage-frame { background: var(--paper); }

.hero-letterbox {
  position: absolute;
  left: 0; right: 0;
  height: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
  z-index: 3;
  pointer-events: none;
}
.hero-letterbox.top { top: 0; }
.hero-letterbox.bot { bottom: 0; }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Centered to keep all 3 visible faces in safe zone */
  object-position: 50% 35%;
  filter: grayscale(0.42) contrast(1.10) brightness(0.88) saturate(0.85);
  transform: scale(1.06);
  animation: hero-zoom 24s var(--ease-out) forwards;
}
[data-theme="light"] .hero-media img {
  filter: grayscale(0.20) contrast(1.02) brightness(1.0) saturate(0.95);
}
@keyframes hero-zoom {
  to { transform: scale(1.0); }
}

/* Subtle vignette WITHIN the frame, doesn't darken faces */
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 95% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 22%, transparent 78%, rgba(0,0,0,0.32) 100%);
}
[data-theme="light"] .hero-vignette {
  background:
    radial-gradient(ellipse 95% 80% at 50% 50%, transparent 60%, rgba(58,50,30,0.16) 100%);
}

/* Film grain overlay */
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
  animation: grainShift 6s steps(8) infinite;
}
[data-theme="light"] .hero-grain { opacity: 0.08; mix-blend-mode: multiply; }
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-8%, 4%); }
  50% { transform: translate(6%, -8%); }
  75% { transform: translate(-4%, -2%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-grain { animation: none; }
  .hero-media img { animation: none; transform: scale(1.0); }
}

/* Frame brackets at corners of the photo */
.hero-frame-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid rgba(201,165,95,0.65);
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease-out) 700ms forwards;
}
.hero-frame-corner.tl { top: 32px; left: 24px; border-right: 0; border-bottom: 0; }
.hero-frame-corner.tr { top: 32px; right: 24px; border-left: 0; border-bottom: 0; }
.hero-frame-corner.bl { bottom: 32px; left: 24px; border-right: 0; border-top: 0; }
.hero-frame-corner.br { bottom: 32px; right: 24px; border-left: 0; border-top: 0; }

/* Lens-flare highlight (top-right corner) */
.hero-flare {
  position: absolute;
  top: -10%; right: -8%;
  width: 60%; height: 90%;
  background: radial-gradient(ellipse 50% 50% at 30% 40%,
    rgba(255, 235, 195, 0.22) 0%,
    rgba(201, 165, 95, 0.10) 30%,
    transparent 60%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  animation: fadeIn 2s var(--ease-out) 600ms forwards;
}
[data-theme="light"] .hero-flare { mix-blend-mode: multiply; opacity: 0; animation: fadeIn 2s var(--ease-out) 600ms forwards; }

/* Floating SLATE plate top-right (visible metadata, doesn't cover faces) */
.hero-slate {
  position: absolute;
  top: 56px; right: 56px;
  z-index: 4;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.7rem 0.9rem 0.5rem;
  min-width: 110px;
  background: rgba(10, 20, 40, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201,165,95,0.40);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0;
  transform: translateY(-6px);
  animation: slateIn 900ms var(--ease-out) 1200ms forwards;
}
[data-theme="light"] .hero-slate { background: rgba(245,236,215,0.85); color: var(--navy-700); border-color: rgba(30,58,138,0.35); }
.slate-row { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; }
.slate-row span { opacity: 0.7; }
.slate-row b {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--brass);
}
.slate-bars {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 2px; margin-top: 6px;
}
.slate-bars i {
  display: block; height: 6px;
  background: var(--bone-mute);
}
.slate-bars i:nth-child(odd) { background: var(--brass); }
[data-theme="light"] .slate-bars i { background: var(--navy-700); }
[data-theme="light"] .slate-bars i:nth-child(odd) { background: var(--brass); }
@keyframes slateIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Timecode bottom-left of frame */
.hero-timecode {
  position: absolute;
  bottom: 38px; left: 56px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1400ms forwards;
}
[data-theme="light"] .hero-timecode { text-shadow: none; }

/* === Bottom panel: text in dedicated zone === */
.hero-panel {
  position: relative;
  padding-top: clamp(2.4rem, 5vh, 4.5rem);
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}
.hero-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero-panel-left { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-panel-right { display: flex; flex-direction: column; gap: 1.6rem; padding-bottom: 0.4rem; }

.eyebrow-pin {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding-left: 0;
}
.eyebrow-pin .pin-bar {
  display: inline-block; width: 28px; height: 1px;
  background: var(--brass);
}
.eyebrow-pin::before { display: none; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.018em;
  color: var(--paper);
  margin: 0;
  max-width: 14ch;
}
[data-theme="light"] .hero-title { color: var(--navy-700); }

.hero-title em {
  font-style: italic;
  color: var(--brass);
  font-weight: 400;
}
.hero-title .reveal-line { display: block; overflow: hidden; }
.hero-title .reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: lineUp 1100ms var(--ease-out) forwards;
}
.hero-title .reveal-line:nth-child(1) > span { animation-delay: 100ms; }
.hero-title .reveal-line:nth-child(2) > span { animation-delay: 250ms; }
.hero-title .reveal-line:nth-child(3) > span { animation-delay: 400ms; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-lede {
  font-family: var(--font-body);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.65;
  color: var(--bone);
  max-width: 44ch;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 700ms forwards;
}
[data-theme="light"] .hero-lede { color: var(--navy-700); }

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1000ms forwards;
}
.hero-cta-divider {
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--brass-line);
}
.btn-link-mute { color: var(--bone-mute); }
.btn-link-mute::after { background: var(--brass-line); }
[data-theme="light"] .btn-link-mute { color: var(--navy-500); }

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

/* Animated brass progress rail with traveling dot */
.hero-progress {
  position: relative;
  margin-top: clamp(2rem, 4vh, 3.2rem);
  padding-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--line);
}
.hero-progress .progress-track {
  position: relative;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brass-line) 0%, transparent 100%);
}
.hero-progress .progress-dot {
  position: absolute;
  top: -3px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(201,165,95,0.18);
  animation: progress-travel 7s var(--ease-in-out) infinite;
}
@keyframes progress-travel {
  0%   { left: 0%; }
  50%  { left: calc(100% - 7px); }
  100% { left: 0%; }
}
.progress-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
@media (prefers-reduced-motion: reduce) {
  .hero-progress .progress-dot { animation: none; }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 4;
}
.hero-scroll-line {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(180deg, transparent, var(--brass) 80%);
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bone-mute);
  opacity: 0.75;
}
[data-theme="light"] .hero-scroll-text { color: var(--navy-500); }
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.45; }
  50% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
}

/* ============= FIRMS BAR ============= */
.firms-bar {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block: 2rem;
}

.firms-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.firm {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.firm-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fg-strong);
  letter-spacing: 0;
}

.firm-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.firm + .firm {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

/* ============= IRODÁNK ============= */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.col-left { position: relative; }

@media (min-width: 1000px) {
  .col-left.is-sticky {
    position: sticky;
    top: 110px;
  }
}

.col-left .section-title {
  margin-top: 1rem;
}

/* IRODA stats */
.iroda-stats {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 1.75rem 0;
  border-right: 1px solid var(--line);
  text-align: left;
  padding-left: 1.5rem;
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.cooperation {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--accent);
  font-style: italic;
  color: var(--fg-mute);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.55;
}

/* ============= SZAKTERÜLETEK ============= */
.section-dark {
  background: var(--bg-2);
}

.section-header {
  max-width: 60ch;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-intro {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--fg);
  font-weight: 300;
  margin-top: 1.5rem;
}

/* Practice list — galéria-stílus, hover-bontás */
.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.practice {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 80px minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: start;
  transition: padding 500ms var(--ease-out);
  cursor: default;
}

.practice::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 700ms var(--ease-out);
}

.practice:hover::before,
.practice:focus-within::before { width: 100%; }

.practice-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.6rem;
}

.practice-body { display: contents; }

.practice h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--fg-strong);
  margin: 0;
  transition: color var(--transition-interactive), transform 700ms var(--ease-out);
}

.practice:hover h3 {
  color: var(--accent);
}

.practice-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.practice-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--fg);
  margin: 0;
  font-weight: 400;
}

.practice-long {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--fg-mute);
  margin: 0;
}

/* ============= PULL QUOTE ============= */
.pullquote-section {
  padding-block: clamp(5rem, 9vw, 9rem);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.pullquote-section::before,
.pullquote-section::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 30px;
  background: var(--brass-line);
}
.pullquote-section::before { top: 0; }
.pullquote-section::after { bottom: 0; }

.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--fg-strong);
  text-align: center;
  margin: 0 auto;
  max-width: 30ch;
  padding: 0;
  position: relative;
}

.pullquote em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.pullquote::before {
  content: "“";
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.4;
}

/* ============= MUNKATÁRSAK ============= */
.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.person {
  display: grid;
  grid-template-columns: 200px minmax(0, 3fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  padding: clamp(2.5rem, 4vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.person-portrait {
  position: relative;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  background: var(--bg-3);
  border-radius: 2px;
}

.person-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.7) contrast(1.05) brightness(0.92);
  transition: filter 700ms var(--ease-out), transform 1200ms var(--ease-out);
}

.person:hover .person-portrait img {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.04);
}

.person-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.person-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.person-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--fg-strong);
  margin: 0;
}

.person-mail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding-bottom: 0.2rem;
  word-break: break-all;
  align-self: start;
}

.person-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line-strong);
  transition: background var(--transition-interactive);
}

.person-mail:hover { color: var(--accent); }
.person-mail:hover::after { background: var(--accent); }

.person-bio {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--fg-mute);
  margin: 0;
}

/* ============= ÉRTÉKEINK ============= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.value:last-child { border-right: 0; }

.value-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0;
}

.value p {
  font-size: 0.96rem;
  color: var(--fg-mute);
  line-height: 1.65;
  margin: 0;
}

/* ============= KAPCSOLAT ============= */
.section-contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.contact-title {
  font-size: clamp(2.4rem, 1.8rem + 3vw, 5rem);
  line-height: 1;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 3fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  position: relative;
  transition: padding var(--transition-interactive), color var(--transition-interactive);
}

.contact-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width 600ms var(--ease-out);
}

.contact-card:hover { color: var(--fg-strong); padding-inline: 0.75rem; }
.contact-card:hover::before { width: 100%; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.6rem);
  font-weight: 400;
  color: var(--fg-strong);
  line-height: 1.25;
}

.contact-arrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  transition: transform var(--transition-interactive);
}

.contact-card:hover .contact-arrow { transform: translateX(6px); }

/* Map — fekete-fehér, prémium framed */
.contact-map {
  position: relative;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1) contrast(1.15) brightness(0.92);
}

[data-theme="light"] .contact-map iframe {
  filter: grayscale(1) contrast(1.0) brightness(1.0);
}

.contact-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,20,40,0.06), transparent 15%, transparent 85%, rgba(10,20,40,0.18));
  mix-blend-mode: multiply;
}

[data-theme="light"] .contact-map::after { display: none; }

/* ============= FOOTER ============= */
.site-footer {
  background: var(--navy-950);
  color: var(--bone);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
}
[data-theme="light"] .site-footer {
  background: var(--navy-700);
  color: var(--paper);
}
[data-theme="light"] .site-footer .footer-title,
[data-theme="light"] .site-footer .footer-name { color: var(--paper); }
[data-theme="light"] .site-footer a { color: var(--bone); }
[data-theme="light"] .site-footer a:hover { color: var(--brass); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 56px;
}

.footer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 0.25rem;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-mute);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.85rem;
}

.footer-col a {
  color: var(--bone);
  font-size: 0.92rem;
  font-weight: 300;
  transition: color var(--transition-interactive);
}
.footer-col a:hover { color: var(--brass); }

.footer-col .muted {
  color: var(--bone-mute);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.5;
}

.footer-legal {
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--bone-mute);
}

.footer-legal a {
  color: var(--bone-soft);
  border-bottom: 1px solid var(--line-strong);
}
.footer-legal a:hover { color: var(--brass); border-bottom-color: var(--brass); }

.footer-legal .copy {
  margin: 0;
  white-space: nowrap;
  align-self: flex-end;
}

/* ============= SCROLL REVEAL — opacity + clip-path (CLS-mentes) ============= */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 60%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-clip {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .reveal-clip {
    clip-path: inset(20% 0 20% 0);
    opacity: 0.3;
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 5% entry 80%;
  }
}

@keyframes reveal-clip {
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* JS-trigger fallback (régi böngészők) */
.js-reveal {
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.js-reveal.is-in { opacity: 1; }

/* ============= RESPONSIVE ============= */
@media (max-width: 1100px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .hero-side { justify-content: flex-start; }

  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .person { grid-template-columns: 160px minmax(0, 1.2fr) minmax(0, 2fr); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  /* Hero — collapse 2-col stage to single column on mobile */
  .hero-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-rail { display: none; }
  .hero-text { padding-left: 0; }
  .hero-frame-corner.bl,
  .hero-frame-corner.br { display: none; }
  .hero-frame-corner { width: 14px; height: 14px; }
  .hero-strip { font-size: 0.55rem; letter-spacing: 0.28em; gap: 0.6rem; }
  .hero-strip-line { display: none; }
  .hero-media img { object-position: 30% 32%; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(10,20,40,0.35) 0%, rgba(10,20,40,0.55) 55%, rgba(10,20,40,0.85) 100%);
  }

  .firms-bar-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .firm + .firm { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }

  .practice {
    grid-template-columns: 60px 1fr;
    gap: 1.25rem;
  }
  .practice .practice-text {
    grid-column: 2 / 3;
    margin-top: 1rem;
  }

  .person {
    grid-template-columns: 130px 1fr;
    gap: 1.5rem;
  }
  .person .person-bio {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
  }

  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .value:last-child { border-bottom: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-coords { text-align: left; }

  .contact-card { grid-template-columns: 1fr auto; }
  .contact-card .contact-label { grid-column: 1 / -1; margin-bottom: -0.5rem; }

  .iroda-stats { grid-template-columns: 1fr; gap: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
  .stat:last-child { border-bottom: 0; }

  .person { grid-template-columns: 1fr; }
  .person-portrait { aspect-ratio: 5 / 8; max-width: 220px; }

  .footer-grid { grid-template-columns: 1fr; }
}

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

.divider {
  height: 1px;
  background: var(--line);
  margin: clamp(3rem, 5vw, 5rem) 0;
}

/* ============= CINEMATIC SITE-WIDE EXTRAS ============= */

/* Subtle horizontal scanline overlay across entire site (very low opacity) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.02) 0px,
    rgba(255,255,255,0.02) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.55;
}
[data-theme="light"] body::before {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.025) 0px,
    rgba(0,0,0,0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* Section-dark gets vignette + grain bg accent */
.section-dark {
  position: relative;
  isolation: isolate;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(201,165,95,0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(201,165,95,0.05), transparent 60%);
}
.section-dark > .container { position: relative; z-index: 1; }

/* Cinematic edge tags running on left side of dark sections — vertical type */
.section-dark .container { position: relative; }
.section-dark .container::before {
  content: "REEL · A";
  position: absolute;
  left: -2.2rem; top: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.55;
}
@media (max-width: 1100px) {
  .section-dark .container::before { display: none; }
}

/* Pullquote-section gets a kinetic brass dot */
.pullquote-section { position: relative; isolation: isolate; }
.pullquote-section::after {
  width: auto !important;
}

/* Firms-bar: add filmstrip perforation top */
.firms-bar {
  position: relative;
}
.firms-bar::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 8px;
  background:
    repeating-linear-gradient(90deg,
      transparent 0 14px,
      rgba(201,165,95,0.20) 14px 16px,
      transparent 16px 30px);
  opacity: 0.55;
  pointer-events: none;
}

/* Person card portrait: add a subtle film-frame border on hover */
.person-portrait {
  position: relative;
}
.person-portrait::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201,165,95,0);
  pointer-events: none;
  transition: border-color 360ms var(--ease-out);
}
.person:hover .person-portrait::after { border-color: rgba(201,165,95,0.4); }

/* Animated ruler line above section titles */
.section-header { position: relative; }
.section-header > .section-title::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brass), transparent);
  margin-bottom: 1.4rem;
  animation: rule-draw 1200ms var(--ease-out) forwards;
}
@keyframes rule-draw {
  to { width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .section-header > .section-title::before { width: 240px; animation: none; }
}

/* ============= HERO MOBILE OVERRIDES (v7 letterbox) ============= */
@media (max-width: 1100px) {
  .hero-stage-frame { aspect-ratio: 16 / 9; max-height: 60vh; }
  .hero-slate { top: 36px; right: 24px; padding: 0.55rem 0.75rem 0.45rem; min-width: 92px; }
  .hero-timecode { bottom: 30px; left: 36px; }
  .hero-frame-corner.tl,
  .hero-frame-corner.tr { top: 22px; }
  .hero-frame-corner.tl,
  .hero-frame-corner.bl { left: 16px; }
  .hero-frame-corner.tr,
  .hero-frame-corner.br { right: 16px; }
  .hero-frame-corner.bl,
  .hero-frame-corner.br { bottom: 22px; }
}
@media (max-width: 820px) {
  .hero-tape-inner { font-size: 0.56rem; gap: 1rem; }
  .hero-tape-inner .tape-cell:nth-child(3) { display: none; }
  .hero-stage-frame { aspect-ratio: 4 / 5; max-height: 78vh; min-height: 460px; }
  .hero-media img { object-position: 50% 30%; }
  .hero-slate { top: 24px; right: 16px; padding: 0.5rem 0.65rem 0.4rem; min-width: 84px; font-size: 0.55rem; }
  .hero-slate .slate-row b { font-size: 0.85rem; }
  .hero-timecode { bottom: 22px; left: 16px; font-size: 0.58rem; letter-spacing: 0.22em; }
  .hero-flare { opacity: 0; animation: fadeIn 2s var(--ease-out) 600ms forwards; }
  .hero-frame-corner { width: 16px; height: 16px; }
  .hero-letterbox { height: 14px; }
  .hero-panel-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-panel-right { padding-bottom: 0; }
  .hero-progress { gap: 0.8rem; }
  .progress-label { font-size: 0.55rem; letter-spacing: 0.24em; }
}
@media (max-width: 560px) {
  .hero-tape-inner .tape-cell:nth-child(2) { display: none; }
  .hero-slate { display: none; }
  .hero-timecode { font-size: 0.55rem; }
}
