/* ============================================================
   Gabi Levi Law Firm — Shared Site Styles
   Palette extracted from גבי לוי לוגו.png
   Blue #2B8FC9 · Gold #C2A05A · Navy #2E1957 · Orange #D97706
   ============================================================ */

:root {
  --blue:        #2B8FC9;   /* primary — the G in the logo */
  --blue-soft:   #7FB4D4;   /* lighter blue for washes */
  --blue-mist:   #EAF3F9;   /* very light blue background */
  --blue-wash:   #F5FAFD;   /* almost-white blue tint */
  --navy:        #2E1957;   /* deep text color */
  --navy-70:     rgba(46,25,87,1);
  --navy-50:     rgba(46,25,87,0.95);
  --navy-20:     rgba(46,25,87,0.14);
  --navy-08:     rgba(46,25,87,0.08);
  --gold:        #C2A05A;   /* antique gold — the L + scales */
  --gold-soft:   rgba(194,160,90,0.20);
  --gold-line:   rgba(194,160,90,0.40);
  --orange:      #D97706;   /* press badges only */
  --white:       #FFFFFF;
  --pearl:       #FBFDFE;   /* off-white with blue undertone */

  --font-serif:  'Frank Ruhl Libre', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:   'Assistant', system-ui, -apple-system, sans-serif;
  /* Cinzel is Latin-only. Hebrew glyphs fall through to Assistant
     so decorative eyebrows/labels match the sans body in RTL. */
  --font-mono:   'Cinzel', 'Assistant', system-ui, sans-serif;

  --shadow-sm:   0 2px 8px rgba(46,25,87,0.06);
  --shadow-md:   0 12px 32px rgba(46,25,87,0.10);
  --shadow-lg:   0 30px 80px rgba(46,25,87,0.14);

  --radius:      3px;
  --header-h:    88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: #000;
  background: var(--white);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* subtle blue wash across the whole page */
  background-image:
    radial-gradient(ellipse 1400px 800px at 90% -10%, rgba(43,143,201,0.08), transparent 60%),
    radial-gradient(ellipse 1000px 600px at -10% 40%, rgba(43,143,201,0.05), transparent 60%),
    radial-gradient(ellipse 1200px 700px at 100% 100%, rgba(194,160,90,0.05), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: #000;
  line-height: 1.2;
  font-weight: 700;
}

/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute;
  right: 12px;
  top: -100px;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 12px;
}
.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;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.container-wide {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 22px 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255,255,255,0.95);
  border-bottom-color: #000;
  box-shadow: 0 4px 24px rgba(46,25,87,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark img {
  height: 84px;
  width: 84px;
  object-fit: contain;
  transition: height 0.35s ease;
}
.site-header.scrolled .brand-mark img { height: 62px; width: 62px; }
.brand-mark-text {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.35rem;
  color: #000;
  line-height: 1.15;
}
.brand-mark-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-top: 4px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.main-nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  padding: 8px 0;
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 0; left: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.main-nav a.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--navy);
  border: 1.5px solid var(--gold);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
  box-shadow: 0 3px 10px rgba(46,25,87,0.15);
}
.main-nav a.lang-toggle::before {
  content: '🌐';
  font-size: 0.95rem;
  filter: grayscale(0.3);
}
.main-nav a.lang-toggle:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217,119,6,0.35);
}
.main-nav a.lang-toggle::after { display: none; }

.cta-header {
  background: var(--orange);
  color: var(--white);
  padding: 11px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(217,119,6,0.30);
}
.cta-header:hover {
  background: #b8620a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217,119,6,0.45);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--navy-20);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: #000;
  font-size: 1.2rem;
}

/* ============ HERO (page-hero pattern) ============ */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 100px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 80% 30%, rgba(43,143,201,0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 15% 70%, rgba(194,160,90,0.10), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #000;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-hero .lede {
  font-size: 1.15rem;
  color: #000;
  max-width: 720px;
  line-height: 1.85;
}
.gold-divider {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin: 22px 0;
}
.gold-divider.center { margin-left: auto; margin-right: auto; }

/* ============ HOME HERO — 2 layers with portrait ============ */
.hero-home {
  position: relative;
  min-height: 92vh;
  padding: calc(var(--header-h) + 40px) 0 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-home-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 1000px 700px at 75% 30%, rgba(43,143,201,0.20), transparent 65%),
    radial-gradient(ellipse 800px 600px at 20% 80%, rgba(194,160,90,0.13), transparent 60%),
    linear-gradient(180deg, var(--blue-wash) 0%, var(--white) 100%);
}
.hero-home-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1589391886645-d51941baf7fb?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.10;
  mix-blend-mode: multiply;
}
.hero-home .container { position: relative; z-index: 1; }
.hero-home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}
.hero-home-text .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-home-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 18px;
  color: #000;
}
.hero-home-text .subtitle {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 26px;
  font-weight: 500;
}
.hero-home-text .lede {
  font-size: 1.12rem;
  color: #000;
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Portrait frame with gavel-behind blend */
.hero-portrait {
  position: relative;
  padding: 24px;
}
.hero-portrait::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(43,143,201,0.35) 0%, transparent 70%);
  filter: blur(20px);
}
.hero-portrait-inner {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-line);
}
.hero-portrait img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.06) saturate(1.05);
}
.hero-portrait-decor {
  position: absolute;
  top: 12px; right: 12px; bottom: 12px; left: 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transform: translate(-16px, 16px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  gap: 8px;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #a8874a;
  border-color: #a8874a;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(194,160,90,0.35);
}
.btn-secondary {
  background: transparent;
  color: #000;
  border-color: var(--navy-20);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  border-color: #000;
}
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-ghost:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============ SECTION SHARED ============ */
.section {
  padding: 110px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.section-header .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: #000;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.08rem;
  color: #000;
  line-height: 1.85;
  max-width: 640px;
  margin: 0 auto;
}

.section-tinted { background: var(--blue-wash); }
.section-blue {
  background: linear-gradient(180deg, var(--blue-mist), var(--white));
}
.section-navy {
  background: var(--navy);
  color: var(--pearl);
}
.section-navy .section-header h2,
.section-navy h2, .section-navy h3 { color: var(--pearl); }
.section-navy .section-header p,
.section-navy p { color: rgba(255,255,255,0.98); }
.section-navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 15% 20%, rgba(194,160,90,0.16), transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 80%, rgba(43,143,201,0.22), transparent 60%);
  pointer-events: none;
}
.section-navy .container { position: relative; z-index: 1; }

/* ============ PRACTICE CARDS ============ */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.practice-card {
  background: var(--white);
  border: 1px solid var(--navy-08);
  padding: 38px 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s ease;
}
.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}
.practice-card:hover::before { transform: scaleX(1); }
.practice-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 14px;
}
.practice-icon {
  width: 44px; height: 44px;
  color: var(--blue);
  margin-bottom: 18px;
}
.practice-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #000;
  margin-bottom: 12px;
}
.practice-desc {
  font-size: 0.98rem;
  color: #000;
  line-height: 1.75;
  margin-bottom: 18px;
}
.practice-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s, color 0.25s;
}
.practice-link:hover { gap: 12px; color: #b8620a; }

/* ============ PRESS CARDS ============ */
.press-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.press-scroll::-webkit-scrollbar { height: 6px; }
.press-scroll::-webkit-scrollbar-track { background: var(--navy-08); border-radius: 3px; }
.press-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

.press-card {
  flex: 0 0 340px;
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.press-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.press-image {
  height: 200px;
  background:
    linear-gradient(135deg, rgba(46,25,87,0.55), rgba(43,143,201,0.65)),
    var(--blue) center/cover no-repeat;
  position: relative;
}
.press-image.img-1 {
  background:
    linear-gradient(135deg, rgba(46,25,87,0.55), rgba(43,143,201,0.55)),
    url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}
.press-image.img-2 {
  background:
    linear-gradient(135deg, rgba(46,25,87,0.55), rgba(43,143,201,0.55)),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}
.press-image.img-3 {
  background:
    linear-gradient(135deg, rgba(46,25,87,0.55), rgba(43,143,201,0.55)),
    url('https://images.unsplash.com/photo-1585846888147-3fe14c130048?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}
.press-image.img-4 {
  background:
    linear-gradient(135deg, rgba(46,25,87,0.55), rgba(43,143,201,0.55)),
    url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;
}
.press-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius);
  letter-spacing: 0.06em;
}
.press-body { padding: 24px 26px 28px; }
.press-source {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.press-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: #000;
  line-height: 1.45;
  margin-bottom: 10px;
}
.press-date {
  font-size: 1rem;
  color: #000;
  font-weight: 600;
}

/* Standardized caption under article title (date + source line) */
.press-caption {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #000;
  background: linear-gradient(90deg, rgba(194,160,90,0.14), rgba(194,160,90,0.04));
  border-right: 3px solid var(--gold);
  padding: 8px 14px;
  margin-top: 10px;
  margin-bottom: 20px;
  display: inline-block;
  border-radius: 4px;
}
[dir="ltr"] .press-caption { border-right: 0; border-left: 3px solid var(--gold); }
.press-card .press-body > .gold-divider {
  width: 60px;
  margin: 10px 0 4px;
}

/* Editorial article (Ma'ariv scans layout) — wider single-column card */
.press-editorial {
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  max-width: 1080px;
  margin: 0 auto;
}
.press-editorial .press-title {
  font-size: 1.35rem;
  line-height: 1.55;
  max-width: 940px;
}
.press-editorial .gold-divider { margin: 14px 0 6px; width: 72px; }
.press-editorial .press-caption { margin-bottom: 8px; }
.press-scans {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.press-scan-item {
  cursor: zoom-in;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--blue-wash);
  transition: transform 0.3s, box-shadow 0.3s;
  padding: 0;
}
.press-scan-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.press-scan-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.press-scans-hint {
  font-size: 1.05rem;
  color: #000;
  font-weight: 600;
  margin-top: 18px;
  text-align: center;
}

/* ============ Landmark Rulings — wide horizontal grid ============ */
.rulings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.ruling-card {
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 26px 26px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ruling-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ruling-date {
  font-family: var(--font-mono);
  color: #E85D04;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.ruling-title {
  font-family: var(--font-serif);
  color: #000;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.3;
}

/* Press page: heavier weight but keep the site-wide purple for the h1
   (matches artists / other pages), while ruling-card internals stay black. */
.page-hero-press h1 {
  /* color inherits the site navy/purple — no override */
  font-weight: 900;
}
.ruling-card .press-badge {
  color: #000 !important;
  background: #fff8dc;
  border: 2px solid #000;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
}
.ruling-card .ruling-body {
  color: #000;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.75;
}
.ruling-card .ruling-scans-hint {
  color: #000;
  font-weight: 700;
  font-size: 1.05rem;
}
.ruling-body {
  color: #000;
  font-size: 0.98rem;
  line-height: 1.75;
}
@media (max-width: 700px) {
  .rulings-grid { grid-template-columns: 1fr; gap: 20px; }
  .ruling-card { padding: 20px; }
}

/* ============ MOBILE: enlarge Gabi photos + tighten vertical rhythm ============ */
@media (max-width: 768px) {
  /* Compact header so logo + menu-toggle both fit inside 390px viewport,
     and heroes clear the fixed header instead of being covered by it. */
  .site-header { padding: 10px 0 !important; }
  .brand-mark img { height: 50px !important; width: 50px !important; }
  .site-header.scrolled .brand-mark img { height: 42px !important; width: 42px !important; }
  .brand-mark-text { font-size: 0.9rem !important; line-height: 1.15 !important; }
  .brand-mark-text small { font-size: 0.55rem !important; letter-spacing: 0.18em !important; }
  .header-inner { gap: 12px !important; }
  .menu-toggle { position: relative; z-index: 200; flex-shrink: 0; }

  /* Tighten sections so page isn't so long */
  .section { padding: 48px 0 !important; }
  /* Page hero must clear the fixed header (about 72px tall on mobile now) */
  .page-hero { padding: 100px 0 40px !important; }

  /* Force single-column stack on all inline grid layouts */
  section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Gabi photos — show full at natural aspect on mobile, no cropping/stretching */
  .about-preview-cinema-media img,
  .contact-hero-portrait img,
  .hero-portrait-inner img,
  section img[alt*="גבי"],
  section img[alt*="Gabi"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
  }

  /* Ensure Gabi headshot columns on About/Gabi/Contact pages get full width */
  section > .container > div[style*="grid"] > div[style*="position:relative"] {
    max-width: 100%;
  }

  /* Reduce huge headings that eat vertical space */
  h1 { font-size: 2rem !important; line-height: 1.15 !important; }
  h2 { font-size: 1.6rem !important; line-height: 1.2 !important; }

  /* Reduce lede paragraph verticality */
  .lede { font-size: 1.02rem !important; line-height: 1.55 !important; }

  /* Container-wide should still respect edges on mobile */
  .container-wide, .container { padding: 0 20px !important; }

  /* Prevent about-preview-cinema (which is locked-height desktop) from being cramped on mobile */
  .about-preview-cinema {
    height: auto !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "media" "text" !important;
    direction: rtl;
  }
  .about-preview-cinema-media { min-height: 0 !important; height: auto !important; }
  .about-preview-cinema-text { padding: 32px 20px !important; }

  /* Ruling scans — show full page in card on mobile (was: cropped preview needing tap) */
  .ruling-scans { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .ruling-scan-item { aspect-ratio: auto !important; background: #fff !important; }
  .ruling-scan-item img {
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
  }
  .ruling-scans-hint { font-size: 0.95rem !important; text-align: center; }
}
.ruling-mastheads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gold-line);
}
.ruling-mastheads-label {
  font-family: var(--font-mono);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ruling-masthead {
  display: inline-block;
  height: 28px;
  width: auto;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(46,25,87,0.15);
  border: 1px solid var(--gold-line);
}

/* Full ruling article scans */
.ruling-scans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gold-line);
}
.ruling-scan-item {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--gold-line);
  background: var(--pearl);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}
.ruling-scan-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(46,25,87,0.25);
  z-index: 2;
}
.ruling-scan-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.ruling-scans-hint {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: #000;
  font-weight: 500;
  margin-top: 6px;
}

/* ============ Artist tiles with images ============ */
.artist-tile {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.artist-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.artist-tile-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--pearl);
  border-bottom: 2px solid var(--gold);
}
.artist-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.artist-tile:hover .artist-tile-image img { transform: scale(1.06); }
.artist-tile-body { padding: 18px 20px; }

/* Make press cards clickable (TV articles → open promo image) */
.press-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.press-card-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
@media (max-width: 900px) {
  .press-scans { grid-template-columns: repeat(3, 1fr); }
  .press-editorial { padding: 30px 24px; }
  .press-editorial .press-title { font-size: 1.15rem; }
}
@media (max-width: 520px) {
  .press-scans { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* ============ Lightbox — press scans + testimonial letters ============ */
.doc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,15,20,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
  cursor: zoom-out;
}
.doc-lightbox.open { display: flex; }
.doc-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 30px 100px rgba(0,0,0,0.55);
  background: #fff;
}
.doc-lightbox-close {
  position: absolute;
  top: 22px;
  inset-inline-end: 26px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--pearl);
  font-size: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.doc-lightbox-close:hover { background: var(--gold); color: #000; }

/* ============ Google Maps embed ============ */
.section-tight { padding-top: 32px; padding-bottom: 32px; }
@media (max-width: 720px) {
  .section-tight { padding-top: 20px; padding-bottom: 20px; }
}
.map-frame {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--blue-wash);
  margin-top: 0;
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.map-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.map-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.map-actions .btn svg { width: 16px; height: 16px; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: #000;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  text-decoration: none;
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
@media (max-width: 720px) {
  .map-frame iframe { height: 220px; }
}

/* Compact map variant: fits between form and contact details */
.map-frame-compact {
  max-width: 560px;
  margin: 0 auto;
}
.map-frame-compact iframe { height: 200px; }
@media (max-width: 720px) {
  .map-frame-compact iframe { height: 160px; }
}

/* Contact page: 3-column horizontal layout (form | map | office cards) */
.contact-stack {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}
.contact-stack-form { width: 100%; }
.contact-stack-map { text-align: center; }
.contact-stack-map .eyebrow { margin-bottom: 4px; }
.contact-stack-map-caption {
  color: #000;
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.contact-stack-map .map-frame-compact { max-width: 100%; }
.contact-stack-map .map-frame-compact iframe { height: 240px; }
.contact-stack-map .map-actions { margin-top: 12px; }
.contact-stack-map .map-actions .btn,
.contact-stack-map .map-actions .btn-outline {
  font-size: 0.9rem;
  padding: 10px 18px;
}
.contact-stack-offices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (max-width: 1100px) {
  .contact-stack {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-stack-form { max-width: 720px; margin: 0 auto; }
  .contact-stack-map { max-width: 560px; margin: 0 auto; }
  .contact-stack-map .map-frame-compact iframe { height: 200px; }
  .contact-stack-offices { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 720px) {
  .contact-stack-map .map-frame-compact iframe { height: 160px; }
}

/* ============ Thank you page ============ */
.thankyou-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue-mist, #E8F0F7) 0%, var(--white) 100%);
}
.thankyou-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}
.thankyou-check svg { width: 100%; height: 100%; }
.thankyou-card h1 {
  font-family: var(--font-serif);
  color: #000;
  font-size: 2.2rem;
  margin: 8px 0 16px;
}
.thankyou-lede {
  color: #000;
  font-size: 1.1rem;
  line-height: 1.75;
  margin: 24px 0 32px;
}
.thankyou-details {
  background: linear-gradient(135deg, var(--blue-mist), var(--white));
  border-right: 3px solid var(--gold);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 32px 0;
  text-align: right;
}
.thankyou-detail-label {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 700;
}
.thankyou-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}
.thankyou-steps li {
  padding: 8px 52px 8px 0;
  color: #000;
  position: relative;
  line-height: 1.6;
}
.thankyou-steps li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
  position: absolute;
  right: 0;
  top: 8px;
  width: 22px;
  text-align: center;
  line-height: 1.6;
}
[dir="ltr"] .thankyou-steps li { padding: 8px 0 8px 44px; }
[dir="ltr"] .thankyou-steps li::before { right: auto; left: 0; }
.thankyou-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 24px;
}
.thankyou-footnote {
  color: #333;
  font-size: 0.9rem;
  margin-top: 24px;
  font-style: italic;
}
@media (max-width: 720px) {
  .thankyou-card { padding: 40px 24px; }
  .thankyou-card h1 { font-size: 1.7rem; }
  .thankyou-lede { font-size: 1rem; }
  .thankyou-actions .btn, .thankyou-actions .btn-outline { width: 100%; }
}

/* ============ Contact form feedback message ============ */
.form-message {
  min-height: 0;
  padding: 0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s ease;
}
.form-message-success {
  padding: 14px 18px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  font-weight: 600;
}
.form-message-error {
  padding: 14px 18px;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  font-weight: 600;
}
/* Cloudflare Turnstile widget wrapper */
.cf-turnstile {
  display: flex;
  justify-content: flex-start;
  margin: 4px 0;
}

/* ============ "I'm not a robot" widget (Turnstile placeholder) ============ */
.captcha-widget {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 14px 16px;
  margin: 8px 0;
  max-width: 320px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: border-color 0.2s;
}
.captcha-widget:hover { border-color: #a0a0a0; }
.captcha-widget input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border: 2px solid #c1c1c1;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
  margin: 0;
}
.captcha-widget input[type="checkbox"]:hover { border-color: #4a90e2; }
.captcha-widget input[type="checkbox"]:checked {
  background: #4a90e2;
  border-color: #4a90e2;
}
.captcha-widget input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.captcha-widget label {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  flex: 1;
}
.captcha-widget-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  color: #6b6b6b;
  line-height: 1.2;
  flex-shrink: 0;
  border-inline-start: 1px solid #d3d3d3;
  padding-inline-start: 12px;
}
.captcha-widget-brand svg { width: 28px; height: 28px; opacity: 0.85; }
.captcha-widget-brand small { font-size: 0.58rem; color: #909090; }

/* ============ TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--navy-08);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testi-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 20px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold-soft);
  line-height: 1;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testi-text {
  font-size: 1rem;
  color: #000;
  line-height: 1.85;
  margin-bottom: 22px;
}
.testi-name {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #000;
  font-size: 1.05rem;
}
.testi-role {
  font-size: 1rem;
  color: #000;
  font-weight: 500;
  margin-top: 4px;
}
.testi-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-line);
}
.testi-letter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--gold);
  color: #000;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.testi-letter-btn:hover {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.testi-letter-btn svg { width: 15px; height: 15px; }

/* ============ CONTACT / OFFICES ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 56px;
}
.office-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(194,160,90,0.35);
  backdrop-filter: blur(6px);
  padding: 34px;
  border-radius: var(--radius);
  position: relative;
}
.office-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  background: var(--gold);
  color: #000;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(194,160,90,0.28);
}
.office-badge.secondary {
  background: var(--blue);
  color: var(--white);
}
/* Emphasised "mailing address" badge — with envelope icon + accented tail */
.office-badge-mailing {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(217,119,6,0.4);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
}
.office-badge-mailing svg { width: 16px; height: 16px; flex-shrink: 0; }
.office-badge-mailing .badge-sep {
  opacity: 0.55;
  font-weight: 400;
  padding: 0 4px;
}
.office-badge-mailing .badge-emphasis {
  background: rgba(255,255,255,0.22);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.28em;
  font-weight: 800;
}
.office-card h3 {
  font-size: 1.25rem;
  color: var(--pearl);
  margin-bottom: 6px;
}
.office-card .street {
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.office-line {
  display: flex;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.98rem;
  padding: 4px 0;
}
.office-line strong {
  color: var(--gold);
  font-weight: 600;
  min-width: 60px;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 18px;
  max-width: 620px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #000;
}
.form-field input,
.form-field textarea {
  padding: 14px 16px;
  border: 1px solid var(--navy-20);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: #000;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43,143,201,0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 90% 10%, rgba(43,143,201,0.18), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(194,160,90,0.10), transparent 60%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer-brand h4 {
  font-family: var(--font-serif);
  color: var(--pearl);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.footer-brand p {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.85;
}
.footer-col address strong {
  color: var(--gold);
  font-weight: 600;
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.footer-mail-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 4px;
  background: var(--orange);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(217,119,6,0.4);
}
.footer-mail-note::before {
  content: '✉';
  font-size: 0.95rem;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(194,160,90,0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.footer-bottom nav a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-bottom nav a:hover { color: var(--gold); }
.footer-credit {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(194,160,90,0.18);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.06em;
}
.footer-credit a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(194,160,90,0.5);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-credit a:hover {
  color: #E4C989;
  border-bottom-color: #E4C989;
}


/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 500ms; }

/* Ken Burns on portrait */
@keyframes kenburns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.kenburns { animation: kenburns 14s ease-in-out infinite alternate; }

/* Letter-by-letter reveal on H1 */
.reveal-letters {
  display: inline-block;
}
.reveal-letters .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  animation: charIn 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Cursor spotlight (subtle) */
.cursor-spotlight {
  position: relative;
  isolation: isolate;
}
.cursor-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle 500px at var(--mx, 50%) var(--my, 50%), rgba(43,143,201,0.10), transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s;
}

/* Prose (long-form text pages: accessibility, privacy, terms) */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.6rem;
  color: #000;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gold-line);
}
.prose h3 {
  font-size: 1.25rem;
  color: var(--blue);
  margin: 28px 0 12px;
}
.prose p, .prose li {
  font-size: 1.05rem;
  color: #000;
  line-height: 1.9;
  margin-bottom: 14px;
}
.prose ul, .prose ol {
  padding-inline-start: 24px;
  margin-bottom: 20px;
}

/* ============ CTA STRIP ============ */
.cta-strip {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--navy) 0%, #1e3552 100%);
  color: var(--pearl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(43,143,201,0.25), transparent 65%);
}
.cta-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('monogram-particles.png') center/cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.cta-strip .container { position: relative; z-index: 1; }

/* ============ PAGE-HERO IMAGE BACKGROUNDS — cinematic per-page identity ============ */
.page-hero.page-hero-image {
  position: relative;
  overflow: hidden;
  padding: 160px 0 100px;
  min-height: 380px;
  isolation: isolate;
}
.page-hero.page-hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: pageHeroKenBurns 22s ease-in-out infinite alternate;
}
.page-hero.page-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(245,250,253,0.72) 0%, rgba(245,250,253,0.4) 50%, rgba(245,250,253,0.8) 100%);
  pointer-events: none;
}
.page-hero.page-hero-image .container { position: relative; z-index: 2; }
.page-hero.page-hero-image h1,
.page-hero.page-hero-image .lede {
  text-shadow: 0 2px 18px rgba(255,255,255,0.75);
}

/* Per-page image assignments */
.page-hero-about::before    { background-image: url('scales-firm.jpg'); }
.page-hero-practice::before { background-image: url('scales-soft.jpg'); }
.page-hero-testimonials::before { background-image: url('justice-scales.jpg'); }
.page-hero-contact::before  { background-image: url('scales-soft.jpg'); }
.page-hero-press::before    { background-image: url('scales-firm.jpg'); }

/* ============ PAGE-WIDE AMBIENT BACKGROUND (all non-home pages) ============ */
body.page-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.14;
  pointer-events: none;
  animation: pageBgDrift 30s ease-in-out infinite alternate;
  transform-origin: center;
}
body.page-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.75) 100%);
  pointer-events: none;
}
body.page-bg-about::before    { background-image: url('assets/scales-firm.jpg'); }
body.page-bg-practice::before { background-image: url('assets/scales-soft.jpg'); }
body.page-bg-testimonials::before { background-image: url('assets/justice-scales.jpg'); }
body.page-bg-contact::before  { background-image: url('assets/scales-soft.jpg'); }
body.page-bg-press::before    { background-image: url('assets/scales-firm.jpg'); }
body.page-bg-artists::before  { background-image: url('assets/scales-firm.jpg'); }
body.page-bg-gabi::before     { background-image: url('assets/justice-scales.jpg'); opacity: 0.08; }

@keyframes pageBgDrift {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1%, 0.5%); }
}
@media (prefers-reduced-motion: reduce) {
  body.page-bg::before { animation: none; }
}
.page-hero-artists::before  { background-image: url('scales-firm.jpg'); }

/* Artist gallery grid */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.artist-tile {
  padding: 26px 24px;
  background: linear-gradient(135deg, var(--white), var(--blue-wash));
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.artist-tile::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[dir="ltr"] .artist-tile::before { transform-origin: left; }
.artist-tile:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(46,25,87,0.14);
}
.artist-tile:hover::before { transform: scaleX(1); }
.artist-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.artist-tile h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #000;
  font-weight: 700;
  line-height: 1.3;
}
.artist-tile h3 span {
  font-weight: 400;
  color: #000;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .artists-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .artists-grid { grid-template-columns: 1fr; }
}

@keyframes pageHeroKenBurns {
  0%   { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1%, 0.8%); }
}

/* Golden shimmer sweep on page-hero */
.page-hero.page-hero-image .container::before {
  content: '';
  position: absolute;
  top: -40px; bottom: -40px;
  left: -100%; right: -100%;
  z-index: -1;
  background: linear-gradient(100deg,
    transparent 40%,
    rgba(255,230,160,0.16) 50%,
    transparent 60%);
  background-size: 300% 100%;
  animation: pageHeroShimmer 12s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
@keyframes pageHeroShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero.page-hero-image::before,
  .page-hero.page-hero-image .container::before { animation: none !important; }
}

/* ============ TESTIMONIAL CARD — dramatic gold reveal on hover ============ */
.testi-card {
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.4s ease;
}
.testi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(194,160,90,0.14) 0%, transparent 100%);
  transition: height 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}
.testi-card::before {
  transition: font-size 0.5s ease, color 0.5s ease, top 0.4s ease, transform 0.5s ease;
}
.testi-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(46,25,87,0.20), 0 8px 20px rgba(194,160,90,0.15);
  border-color: var(--gold);
}
.testi-card:hover::before {
  font-size: 6.5rem;
  color: var(--gold);
  top: 8px;
  transform: rotate(-4deg);
}
.testi-card:hover::after {
  height: 100%;
}
.testi-card .testi-text {
  transition: color 0.4s ease;
}
.testi-card:hover .testi-text { color: #000; }
.testi-card .testi-name { transition: color 0.4s ease; }
.testi-card:hover .testi-name { color: var(--gold); }

/* ============ JUSTICE BAND — cinematic scales-of-justice signature moment ============ */
.justice-band {
  position: relative;
  min-height: 640px;
  padding: 120px 0;
  color: #000;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #eef4fa 0%, #d5e3f0 100%);
  display: flex;
  align-items: center;
}

/* 1 — the image itself, with slow Ken-Burns motion */
.justice-band-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('justice-scales.jpg') center/cover no-repeat;
  animation: justiceKenBurns 26s ease-in-out infinite alternate;
  transform-origin: 30% 50%;
}
[dir="ltr"] .justice-band-bg {
  transform: scaleX(-1);
  transform-origin: 70% 50%;
  animation: justiceKenBurnsLtr 26s ease-in-out infinite alternate;
}
@keyframes justiceKenBurns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.4%, 1%); }
}
@keyframes justiceKenBurnsLtr {
  0%   { transform: scaleX(-1) scale(1.05) translate(0, 0); }
  100% { transform: scaleX(-1) scale(1.14) translate(1.4%, 1%); }
}

/* 2 — moving golden shimmer sweep that traverses the whole band */
.justice-band-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255,230,160,0.28) 47%,
    rgba(255,245,215,0.18) 50%,
    rgba(255,230,160,0.28) 53%,
    transparent 70%
  );
  background-size: 300% 100%;
  animation: justiceShimmer 9s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes justiceShimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -80% 0; }
}

/* 3 — sparkle particles that twinkle over the image */
.justice-band-sparkles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(circle 2px at 15% 25%, rgba(255,240,180,0.95), transparent 60%),
    radial-gradient(circle 1.5px at 72% 18%, rgba(255,235,175,0.85), transparent 60%),
    radial-gradient(circle 2.4px at 88% 55%, rgba(255,240,180,0.9), transparent 60%),
    radial-gradient(circle 1.6px at 12% 68%, rgba(255,235,175,0.8), transparent 60%),
    radial-gradient(circle 1.4px at 62% 78%, rgba(255,240,180,0.85), transparent 60%),
    radial-gradient(circle 2px at 38% 40%, rgba(255,235,175,0.9), transparent 60%),
    radial-gradient(circle 1.2px at 55% 62%, rgba(255,240,180,0.75), transparent 60%),
    radial-gradient(circle 1.8px at 92% 88%, rgba(255,240,180,0.85), transparent 60%),
    radial-gradient(circle 1.3px at 25% 88%, rgba(255,235,175,0.8), transparent 60%);
  animation: justiceSparkles 3.6s ease-in-out infinite;
}
@keyframes justiceSparkles {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

/* 4 — subtle vertical light beam that pulses through the center */
.justice-band-lightbeam {
  position: absolute;
  top: 0; bottom: 0;
  right: 22%;
  width: 260px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,240,190,0.35), transparent);
  filter: blur(24px);
  animation: justiceBeam 6s ease-in-out infinite;
  mix-blend-mode: screen;
}
[dir="ltr"] .justice-band-lightbeam { right: auto; left: 22%; }
@keyframes justiceBeam {
  0%, 100% { opacity: 0.35; transform: translateY(-5%) scaleY(1); }
  50%      { opacity: 0.9;  transform: translateY(5%) scaleY(1.05); }
}

/* Content — sits opposite the scales (empty side of the image) */
.justice-band .container { position: relative; z-index: 3; }
.justice-band-content {
  width: 52%;
  margin-inline-start: 48%;
  text-align: start;
  padding: 20px 0;
}
.justice-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: #a8874a;
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.6);
}
.justice-verse {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.55;
  color: #000;
  margin-bottom: 20px;
  text-shadow: 0 2px 22px rgba(255,255,255,0.75), 0 0 40px rgba(255,255,255,0.4);
  letter-spacing: 0.005em;
}
.justice-cite {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #000;
  letter-spacing: 0.14em;
  margin-top: 20px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.7);
}
.justice-band .gold-divider {
  background: linear-gradient(to left, transparent, var(--gold), transparent);
  height: 2px;
  box-shadow: 0 0 18px rgba(194,160,90,0.5);
  margin: 24px 0;
}

@media (max-width: 900px) {
  .justice-band { min-height: 560px; padding: 90px 0; }
  .justice-band-content {
    width: 100%;
    margin-inline-start: 0;
    text-align: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(6px);
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(194,160,90,0.35);
  }
  .justice-band .gold-divider {
    margin: 24px auto;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
  }
  .justice-band-lightbeam { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .justice-band-bg,
  .justice-band-shimmer,
  .justice-band-sparkles,
  .justice-band-lightbeam { animation: none !important; }
}

/* ============ CINEMATIC VERSE BAND — biblical passage on golden book ============ */
.verse-band {
  position: relative;
  min-height: 460px;
  padding: 90px 0;
  color: var(--pearl);
  overflow: hidden;
  background: #1A0F35;
  display: flex;
  align-items: center;
}
.verse-band-bg {
  position: absolute;
  inset: 0;
  background: url('book-side.png') center/cover no-repeat;
  opacity: 0.75;
  z-index: 0;
  transition: transform 12s ease-out;
  filter: saturate(1.1);
}
.verse-band:hover .verse-band-bg { transform: scale(1.06); }
.verse-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% 55%, rgba(194,160,90,0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10,21,36,0.72), rgba(10,21,36,0.82));
  z-index: 1;
}
.verse-band .container { position: relative; z-index: 2; text-align: center; }
.verse-band .verse-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 28px;
  text-shadow: 0 2px 14px rgba(0,0,0,0.5);
}
.verse-band .verse {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.55;
  color: var(--gold);
  max-width: 920px;
  margin: 0 auto 20px;
  text-shadow: 0 3px 26px rgba(0,0,0,0.65), 0 0 40px rgba(194,160,90,0.2);
  letter-spacing: 0.01em;
}
.verse-band .verse-cite {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.12em;
  margin-top: 24px;
}
.verse-band .gold-divider.center {
  background: var(--gold);
  margin: 26px auto;
  box-shadow: 0 0 22px rgba(194,160,90,0.5);
}

/* ============ CINEMATIC BRAND BAND — glowing book with quote ============ */
.brand-band {
  position: relative;
  min-height: 520px;
  padding: 100px 0;
  color: var(--pearl);
  overflow: hidden;
  background: #1A0F35;
  display: flex;
  align-items: center;
}
.brand-band-bg {
  position: absolute;
  inset: 0;
  background: url('book-open.png') center/cover no-repeat;
  opacity: 0.85;
  z-index: 0;
  transition: transform 8s ease-out;
}
.brand-band:hover .brand-band-bg { transform: scale(1.05); }
.brand-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 20%, rgba(10,21,36,0.65) 80%),
    linear-gradient(180deg, rgba(10,21,36,0.4), rgba(10,21,36,0.3));
  z-index: 1;
}
.brand-band .container { position: relative; z-index: 2; text-align: center; }
.brand-band .brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 26px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.brand-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--pearl);
  max-width: 820px;
  margin: 0 auto 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.brand-band .brand-cite {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
}
.brand-band .gold-divider.center {
  background: var(--gold);
  margin: 24px auto;
  box-shadow: 0 0 20px rgba(194,160,90,0.5);
}

/* ============ HERO CINEMA — full-bleed video hero ============ */
.hero-cinema {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 120px;
  color: #000;
  isolation: isolate;
  /* Dark navy background so any letterbox around the video reads as
     intentional cinematic framing rather than empty space. */
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, #1a2a48 0%, #0b1324 70%);
}
.hero-cinema-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Show the entire video in its natural 16:9 aspect — no crop. */
  object-fit: contain;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
/* Light wash only where the text lives; leaves most of the video visible */
.hero-cinema-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(270deg, rgba(251,253,254,0.88) 0%, rgba(251,253,254,0.55) 28%, rgba(251,253,254,0.15) 52%, transparent 70%);
}
[dir="ltr"] .hero-cinema-overlay {
  background:
    linear-gradient(90deg, rgba(251,253,254,0.88) 0%, rgba(251,253,254,0.55) 28%, rgba(251,253,254,0.15) 52%, transparent 70%);
}
.hero-cinema .container-wide {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-cinema-content {
  max-width: 640px;
}
.hero-cinema .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: #a8874a;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: 0 1px 12px rgba(255,255,255,0.7);
}
.hero-cinema h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  color: #000;
  text-shadow: 0 2px 18px rgba(255,255,255,0.7), 0 0 40px rgba(255,255,255,0.35);
}
.hero-cinema .gold-divider {
  background: var(--gold);
  box-shadow: 0 0 18px rgba(194,160,90,0.5);
}
.hero-cinema .subtitle {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #000;
  margin-bottom: 26px;
  font-weight: 600;
  text-shadow: 0 1px 14px rgba(255,255,255,0.7);
}
.hero-cinema .lede {
  font-size: 1.12rem;
  color: #000;
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 36px;
  text-shadow: 0 1px 12px rgba(255,255,255,0.75), 0 0 24px rgba(255,255,255,0.4);
}
.hero-cinema .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Orange CTAs (hero-only override) */
.hero-cinema .btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(217,119,6,0.35);
}
.hero-cinema .btn-primary:hover {
  background: #b8620a;
  border-color: #b8620a;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(217,119,6,0.5);
}
.hero-cinema .btn-secondary {
  background: rgba(255,255,255,0.55);
  color: #000;
  border-color: var(--orange);
  backdrop-filter: blur(6px);
}
.hero-cinema .btn-secondary:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ============ WOW EFFECTS on the cinema hero ============ */

/* 1 — Ken-Burns removed: the video is already dynamic (book opens,
   letters scatter, monogram forms) so an extra zoom cropped the
   frame without adding motion the viewer actually needed. */

/* 2 — cinematic vignette that breathes */
.hero-cinema::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 55% 50%, transparent 40%, rgba(0,0,0,0.45) 100%);
  animation: heroVignette 9s ease-in-out infinite;
}
@keyframes heroVignette {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* 3 — sequential fade-up entrance for the content stack */
.hero-cinema-content > *:not(h1):not(.gold-divider) {
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-cinema-content .eyebrow      { animation-delay: 0.15s; }
.hero-cinema-content .subtitle     { animation-delay: 1.55s; }
.hero-cinema-content .lede         { animation-delay: 1.75s; }
.hero-cinema-content .hero-actions { animation-delay: 2.0s; }
@keyframes heroFadeUp {
  0%   { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 4 — gold divider grows from the reading edge */
.hero-cinema .gold-divider {
  transform: scaleX(0);
  opacity: 0;
  transform-origin: right;
  animation: heroDividerGrow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 1.35s forwards;
}
[dir="ltr"] .hero-cinema .gold-divider { transform-origin: left; }
@keyframes heroDividerGrow {
  0%   { transform: scaleX(0); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: scaleX(1); opacity: 1; }
}

/* 5 — orange pulse on the primary CTA, drawing the eye */
.hero-cinema .btn-primary {
  animation: heroCtaPulse 2.6s ease-in-out infinite;
  animation-delay: 2.4s;
}
@keyframes heroCtaPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(217,119,6,0.35); }
  50%      { box-shadow: 0 14px 36px rgba(217,119,6,0.7), 0 0 0 10px rgba(217,119,6,0.08); }
}
.hero-cinema .btn-primary:hover { animation: none; }

/* Sound toggle button */
.hero-sound-toggle {
  position: absolute;
  bottom: 34px;
  left: 40px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(25,15,58,0.75);
  color: var(--gold);
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35);
  transition: background 0.3s, border-color 0.3s, transform 0.3s, color 0.3s;
  animation: sound-pulse 2s ease-in-out infinite;
}
.hero-sound-toggle[data-on="true"] {
  animation: none;
  background: rgba(25,15,58,0.55);
  border-color: var(--gold-line);
  color: var(--pearl);
  box-shadow: none;
  padding: 11px 18px;
  font-size: 0.72rem;
  font-weight: 500;
}
@keyframes sound-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(212, 175, 55, 0.35), 0 0 0 0 rgba(212, 175, 55, 0.6); }
  50% { box-shadow: 0 4px 28px rgba(212, 175, 55, 0.55), 0 0 0 14px rgba(212, 175, 55, 0); }
}
[dir="ltr"] .hero-sound-toggle { left: auto; right: 40px; }
.hero-sound-toggle:hover {
  border-color: var(--gold);
  background: rgba(25,15,58,0.75);
  color: var(--gold);
  transform: translateY(-2px);
}
.hero-sound-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-sound-toggle .icon-on { display: none; }
.hero-sound-toggle .label-on { display: none; }
.hero-sound-toggle[data-on="true"] .icon-muted { display: none; }
.hero-sound-toggle[data-on="true"] .icon-on { display: inline-block; }
.hero-sound-toggle[data-on="true"] .label-off { display: none; }
.hero-sound-toggle[data-on="true"] .label-on { display: inline; }

/* Scroll cue */
.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 1px 8px rgba(255,255,255,0.6);
}
[dir="ltr"] .hero-scroll-cue { right: auto; left: 40px; }
.hero-scroll-line {
  display: inline-block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 1100px) {
  .hero-cinema { min-height: 92vh; padding: calc(var(--header-h) + 32px) 0 100px; }
  .hero-cinema-content { max-width: 100%; }
  .hero-cinema-overlay {
    background:
      linear-gradient(180deg, rgba(25,15,58,0.55) 0%, rgba(25,15,58,0.25) 30%, rgba(25,15,58,0.88) 100%);
  }
  [dir="ltr"] .hero-cinema-overlay {
    background:
      linear-gradient(180deg, rgba(25,15,58,0.55) 0%, rgba(25,15,58,0.25) 30%, rgba(25,15,58,0.88) 100%);
  }
  /* On tablet the overlay flips to a dark wash → invert text for contrast. */
  .hero-cinema .eyebrow  { color: var(--gold); text-shadow: none; }
  .hero-cinema h1        { color: var(--pearl); text-shadow: 0 2px 18px rgba(0,0,0,0.5); }
  .hero-cinema .subtitle { color: var(--pearl); text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
  .hero-cinema .lede     { color: rgba(255,255,255,0.9); text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
  .hero-cinema .btn-secondary { background: rgba(255,255,255,0.12); color: var(--pearl); }
}
@media (max-width: 640px) {
  .hero-cinema { min-height: 88vh; padding: calc(var(--header-h) + 24px) 0 90px; }
  .hero-cinema h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-cinema .lede { font-size: 1rem; }
  /* Mobile portrait viewport is 9:16 — a 16:9 `contain` video would shrink
     to a thin center strip. Fall back to `cover` so the video fills the
     hero. No Ken-Burns zoom this time; cropping stays minimal. */
  .hero-cinema-video { object-fit: cover; }
  .hero-sound-toggle {
    bottom: 20px; left: 20px;
    padding: 9px 14px;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
  }
  [dir="ltr"] .hero-sound-toggle { right: 20px; left: auto; }
  .hero-scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; opacity: 0.4; }
}

/* ============ ABOUT-THE-ATTORNEY preview — locked split, navy left / image right ============ */
.about-preview.about-preview-cinema {
  direction: ltr;
  display: grid;
  grid-template-columns: 38% 62%;
  grid-template-areas: "text media";
  height: 520px;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  position: relative;
}
.about-preview-cinema-media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.about-preview-cinema-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: contrast(1.06) saturate(1.06);
}
.about-preview-cinema-scrim {
  display: none;
}
.about-preview-cinema .container {
  direction: rtl;
  grid-area: text;
  position: relative;
  max-width: none;
  height: 100%;
  padding: 0 max(32px, 4%);
  margin: 0;
  display: flex;
  align-items: center;
}
.about-preview-cinema-text {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  max-width: 100%;
  padding: 0;
  z-index: 3;
}
.about-preview-cinema-text .eyebrow {
  color: var(--gold);
  opacity: 0.95;
}
.about-preview-cinema-text h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  margin: 12px 0 14px;
}
.about-preview-cinema-text .gold-divider {
  margin: 0 0 18px 0;
}
.about-preview-cinema-text .lede {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 360px;
  margin: 0 0 26px 0;
}

/* ============ CONTACT hero portrait ============ */
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.contact-hero-portrait {
  position: relative;
  max-width: 420px;
  justify-self: center;
}
.contact-hero-portrait .hero-portrait-inner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gold-line);
}
.contact-hero-portrait img { width: 100%; height: auto; display: block; }

/* ============ PORTRAIT GALLERY (about page) ============ */
.portrait-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 12px;
}
.portrait-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gold-line);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.portrait-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.portrait-tile img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.portrait-tile:hover img { transform: scale(1.04); }
.portrait-tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  background: linear-gradient(to top, rgba(46,25,87,0.85), transparent);
  color: var(--pearl);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .about-preview.about-preview-cinema {
    display: block;
    height: auto;
  }
  .about-preview-cinema-media {
    width: 100%;
    height: 360px;
  }
  .about-preview-cinema .container {
    display: block;
    height: auto;
    padding: 32px 24px;
  }
  .about-preview-cinema-text {
    max-width: 100%;
    text-align: center;
    padding: 0;
    margin: 0 auto;
  }
  .about-preview-cinema-text .eyebrow { justify-content: center; }
  .about-preview-cinema-text .gold-divider { margin: 0 auto 18px; }
  .about-preview-cinema-text .lede { margin: 0 auto 26px; max-width: 100%; }
  .contact-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-gallery { grid-template-columns: 1fr 1fr; }
  .portrait-tile img { height: 380px; }
}
@media (max-width: 640px) {
  .about-preview-cinema-media { height: 260px; }
  .portrait-gallery { grid-template-columns: 1fr; }
  .portrait-tile img { height: 420px; }
}

/* ============ CREDENTIALS STRIP — dark editorial band under hero ============ */
.credentials-strip {
  background: var(--navy);
  color: var(--pearl);
  padding: 44px 0;
  position: relative;
  overflow: hidden;
}
.credentials-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1000px 260px at 50% -60%, rgba(194,160,90,0.22), transparent 65%),
    radial-gradient(ellipse 700px 180px at 20% 120%, rgba(217,119,6,0.15), transparent 65%);
  pointer-events: none;
}
.credentials-strip .container { position: relative; z-index: 1; }
.credentials-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}
.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  position: relative;
}
.credential:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: -20px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-line), transparent);
}
[dir="ltr"] .credential:not(:last-child)::after { left: auto; right: -20px; }
.credential-num {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.credential-plus { color: var(--orange); font-weight: 500; margin-inline-start: 2px; }
.credential-label {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.82);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .credentials-list { grid-template-columns: 1fr 1fr; gap: 32px; }
  .credential:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .credentials-list { grid-template-columns: 1fr; gap: 24px; }
  .credential::after { display: none !important; }
}

/* ============ PRESS MARQUEE — infinite scrolling media logos ============ */
.press-marquee {
  background: var(--white);
  border-top: 1px solid var(--navy-08);
  border-bottom: 1px solid var(--navy-08);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.press-marquee-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.press-marquee-track {
  display: flex;
  gap: 70px;
  align-items: center;
  animation: pressMarquee 34s linear infinite;
  width: max-content;
}
[dir="ltr"] .press-marquee-track { animation: pressMarqueeLtr 34s linear infinite; }
.press-marquee:hover .press-marquee-track { animation-play-state: paused; }
.press-marquee-item {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.3s;
}
.press-marquee-item:hover { color: #000; }
.press-marquee-sep {
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0.7;
}
@keyframes pressMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes pressMarqueeLtr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.press-marquee::before,
.press-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.press-marquee::before {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}
.press-marquee::after {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}

/* ============ PRACTICE CARD refinement ============ */
.practice-card { position: relative; overflow: hidden; }
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--orange), var(--gold));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[dir="ltr"] .practice-card::before {
  background: linear-gradient(to right, var(--orange), var(--gold));
  transform-origin: left;
}
.practice-card:hover::before { transform: scaleX(1); }

/* ============ PRACTICE CARDS — 3D TILT + GOLD CURSOR GLOW ============ */
/* Replaces the earlier translateY(-8px) hover with a subtle 3D tilt
   that follows the pointer, plus a soft gold spotlight that tracks the mouse. */
.practice-card {
  transform-style: preserve-3d;
  transform: perspective(1200px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg));
  transition: transform 320ms cubic-bezier(0.2, 0.9, 0.3, 1),
              box-shadow 280ms ease,
              border-color 280ms ease;
  will-change: transform;
}
.practice-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle 280px at var(--mx, 50%) var(--my, 50%),
    rgba(194, 160, 90, 0.18),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 0;
}
.practice-card:hover::after { opacity: 1; }
.practice-card > * {
  position: relative;
  z-index: 1;
}
/* override the earlier translateY-based hover so tilt is the primary motion */
.practice-card:hover {
  transform: perspective(1200px)
             rotateX(var(--rx, 0deg))
             rotateY(var(--ry, 0deg));
}

@media (prefers-reduced-motion: reduce) {
  .practice-card {
    transform: none !important;
    transition: box-shadow 260ms, border-color 260ms !important;
  }
  .practice-card:hover {
    transform: translateY(-4px) !important;
  }
  .practice-card::after { display: none; }
}

/* ============ LIVING SCALES — brand mark that gently sways ============ */
/* A cinematic, brand-signature SVG that animates like a slow metronome.
   Placed inside .brand-band to replace the static gold-divider on the home page. */
.living-scales {
  display: block;
  width: clamp(160px, 20vw, 240px);
  height: auto;
  margin: 36px auto 32px;
  aspect-ratio: 1 / 1;
  filter:
    drop-shadow(0 4px 24px rgba(194, 160, 90, 0.55))
    drop-shadow(0 0 40px rgba(194, 160, 90, 0.28));
  position: relative;
  z-index: 2;
}
/* soft golden halo behind the scales — makes them pop off the dark book bg */
.brand-band .living-scales-wrap {
  position: relative;
  z-index: 2;
}
.brand-band .living-scales-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 26vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(194, 160, 90, 0.22) 0%,
    rgba(194, 160, 90, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.living-scales .beam-group {
  transform-origin: 100px 55px;
  animation: living-scales-sway 4.8s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}
@keyframes living-scales-sway {
  0%   { transform: rotate(-3.5deg); }
  100% { transform: rotate(3.5deg); }
}
.living-scales .base,
.living-scales .pole {
  fill: var(--gold);
}
.living-scales .beam {
  fill: var(--gold);
}
.living-scales .hub {
  fill: #8E6D2F;
}
.living-scales .bowl {
  fill: var(--gold);
  stroke: #8E6D2F;
  stroke-width: 0.8;
}
.living-scales .chain {
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}
@media (prefers-reduced-motion: reduce) {
  .living-scales .beam-group {
    animation: none;
    transform: rotate(0);
  }
}

/* ============ FIRM ABOUT — prominent editorial band on home page ============ */
/* Full-width dedicated section right after the hero video. Non-negotiable —
   this is content Gabi specifically requested for the home page. */
.firm-about {
  padding: clamp(90px, 12vh, 130px) 0 clamp(80px, 10vh, 110px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(43,143,201,0.06), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(194,160,90,0.05), transparent 60%),
    var(--white);
  position: relative;
}
.firm-about::before {
  /* subtle top gold hairline to separate from hero */
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(60%, 480px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.firm-about-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.firm-about .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.firm-about h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  color: #000;
  margin: 0 0 8px;
  line-height: 1.15;
  text-wrap: balance;
}
.firm-about-lede {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.8;
  color: #000;
  max-width: 720px;
  margin: 30px auto 0;
}
.firm-about-tags-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 48px 0 20px;
}
.firm-about .practice-tags.center {
  justify-content: center;
  max-width: 780px;
  margin: 0 auto;
}

/* ============ PRACTICE-TAGS — Gabi's 6 practice areas as chip row ============ */
.practice-tags-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 28px 0 14px;
}
.practice-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.practice-tags li {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #000;
  padding: 9px 18px 9px 14px;
  background: var(--white);
  border: 1px solid rgba(194, 160, 90, 0.4);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.practice-tags li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-inline-end: 10px;
  flex-shrink: 0;
}
.practice-tags li:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.practice-tags li:hover::before {
  background: var(--white);
}
/* on dark section-navy backgrounds */
.section-navy .practice-tags li,
.brand-band .practice-tags li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(194, 160, 90, 0.35);
  color: var(--pearl);
}

/* ============ EFFECT 01 — CURSOR SPOTLIGHT ============ */
/* Soft golden radial light that tracks the mouse across a section.
   JS already sets --mx/--my on .cursor-spotlight elements. Add class + this CSS
   activates the visual layer. Safe overlay — pointer-events: none. */
.cursor-spotlight {
  position: relative;
  isolation: isolate;
}
.cursor-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 440px at var(--mx, 50%) var(--my, 50%),
    rgba(194, 160, 90, 0.14),
    rgba(43, 143, 201, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
  z-index: 0;
  mix-blend-mode: multiply;
}
.cursor-spotlight:hover::after { opacity: 1; }
.cursor-spotlight > * { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .cursor-spotlight::after { display: none; }
}

/* ============ EFFECT 02 — SELF-DRAWING GOLD SIGNATURE ============ */
/* A refined variant of .gold-divider that draws itself as an SVG when its
   parent .reveal enters view. Two curved gold lines with a tiny scales-of-justice
   mark at center — the brand signature that appears under key headlines. */
.gold-signature {
  display: block;
  width: 240px;
  max-width: 100%;
  height: 32px;
  margin: 22px 0 26px;
}
.gold-signature.center { margin-left: auto; margin-right: auto; }
.gold-signature .line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.gold-signature .mini-scales {
  fill: var(--gold);
  opacity: 0;
  transform: scale(0.5);
  transform-origin: 140px 14px;
  transition: opacity 480ms ease 900ms, transform 480ms ease 900ms;
}
.reveal.in-view .gold-signature .line,
.in-view .gold-signature .line {
  stroke-dashoffset: 0;
}
.reveal.in-view .gold-signature .mini-scales,
.in-view .gold-signature .mini-scales {
  opacity: 1;
  transform: scale(1);
}
/* on dark bg (like brand-band, section-navy) give it a soft glow */
.section-navy .gold-signature,
.brand-band .gold-signature {
  filter: drop-shadow(0 0 8px rgba(194, 160, 90, 0.35));
}
@media (prefers-reduced-motion: reduce) {
  .gold-signature .line {
    stroke-dashoffset: 0;
    transition: none;
  }
  .gold-signature .mini-scales {
    opacity: 1;
    transform: scale(1);
    transition: none;
  }
}

/* ============ EFFECT 04 — CURTAIN REVEAL (navy panel that slides away) ============ */
/* Wrap a content block with .curtain-block + inner .curtain-panel.
   When container is in view, JS staggers the .shown class on each block. */
.curtain-block {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  min-height: 160px;
  background: rgba(26, 15, 53, 0.82);
  border: 1px solid rgba(194, 160, 90, 0.16);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.4);
}
.curtain-block .curtain-inner {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 720ms ease, transform 720ms ease;
}
.curtain-block.shown .curtain-inner {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 700ms;
}
.curtain-block .curtain-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, #28154F 0%, #3A2670 55%, #28154F 100%);
  transform: translateX(0);
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.2, 1);
  box-shadow:
    inset 0 0 60px rgba(194, 160, 90, 0.08),
    30px 0 40px -10px rgba(46, 25, 87, 0.35);
}
.curtain-block .curtain-panel::before {
  /* gold leading edge — the wipe line */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    #E4C989 15%,
    var(--gold) 50%,
    #E4C989 85%,
    transparent 100%
  );
  box-shadow:
    0 0 20px rgba(228, 201, 137, 0.65),
    0 0 40px rgba(194, 160, 90, 0.4);
}
.curtain-block .curtain-panel::after {
  /* subtle vertical texture — "curtain material" */
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 3px,
    rgba(194, 160, 90, 0.035) 3px 4px
  );
  opacity: 0.6;
}
.curtain-block.shown .curtain-panel {
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .curtain-block .curtain-panel {
    transition: none;
    transform: translateX(-100%);
  }
  .curtain-block .curtain-inner {
    transition: none;
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============ BRAND BAND — editorial quotation marks decoration ============ */
.brand-band .container::before,
.brand-band .container::after {
  content: '\201C';
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(10rem, 18vw, 18rem);
  font-weight: 900;
  color: rgba(194,160,90,0.10);
  line-height: 0.7;
  pointer-events: none;
  z-index: 0;
}
.brand-band .container::before {
  top: -20px;
  right: -20px;
}
.brand-band .container::after {
  content: '\201D';
  bottom: -80px;
  left: -20px;
}
.brand-band .container > * { position: relative; z-index: 1; }

/* ============ PLACEHOLDER-CONTENT BANNER (top of pages with demo content) ============ */
.placeholder-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #b8620a 100%);
  color: #fff;
  padding: 18px 0;
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 3px solid rgba(0,0,0,0.15);
  box-shadow: 0 6px 18px rgba(217,119,6,0.28);
}
.placeholder-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
.placeholder-banner-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: bannerPulse 2.4s ease-in-out infinite;
}
.placeholder-banner-icon svg { width: 24px; height: 24px; color: #fff; }
@keyframes bannerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
.placeholder-banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.5;
}
.placeholder-banner-text strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 800;
}
.placeholder-banner-text span {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
}
@media (max-width: 640px) {
  .placeholder-banner-inner { padding: 0 20px; gap: 14px; }
  .placeholder-banner-icon { width: 38px; height: 38px; }
  .placeholder-banner-text strong { font-size: 0.7rem; letter-spacing: 0.22em; }
  .placeholder-banner-text span { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .placeholder-banner-icon { animation: none; }
}

/* ============ FLOATING ACCESSIBILITY WIDGET ============ */
.a11y-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(43,143,201,0.4), 0 2px 6px rgba(46,25,87,0.15);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  border: 2px solid rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}
[dir="ltr"] .a11y-widget { left: auto; right: 24px; }
.a11y-widget svg { width: 22px; height: 22px; flex-shrink: 0; }
.a11y-widget:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(46,25,87,0.35);
}
.a11y-widget:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.a11y-widget[aria-expanded="true"] {
  background: var(--navy);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .a11y-widget { padding: 10px 12px; }
  .a11y-widget-label { display: none; }
}

/* ============ ACCESSIBILITY MENU PANEL ============ */
.a11y-panel {
  position: fixed;
  bottom: 92px;
  left: 24px;
  z-index: 81;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(46,25,87,0.28), 0 4px 14px rgba(46,25,87,0.16);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom left;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--font-body);
  color: #000;
}
[dir="ltr"] .a11y-panel {
  left: auto;
  right: 24px;
  transform-origin: bottom right;
}
.a11y-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.a11y-panel-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.a11y-panel-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  letter-spacing: 0.02em;
}
.a11y-panel-close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.a11y-panel-close:hover { background: rgba(255,255,255,0.12); }
.a11y-panel-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.a11y-panel-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
}
.a11y-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px 12px;
  background: var(--blue-wash, #f4f8fc);
  border: 1px solid rgba(46,25,87,0.08);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: #000;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  min-height: 78px;
}
.a11y-opt:hover {
  background: #fff;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.a11y-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.a11y-opt[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--gold);
}
.a11y-opt-icon {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-serif);
}
.a11y-opt-label {
  font-size: 0.82rem;
  line-height: 1.25;
}
.a11y-opt-wide { grid-column: span 2; flex-direction: row; gap: 12px; min-height: 52px; padding: 12px 16px; }
.a11y-panel-footer {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(46,25,87,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(46,25,87,0.02);
}
.a11y-reset {
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}
.a11y-reset:hover { background: var(--blue); }
.a11y-reset:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.a11y-statement-link {
  font-size: 0.82rem;
  color: var(--blue);
  text-decoration: underline;
  font-weight: 600;
}
.a11y-statement-link:hover { color: #000; }

@media (max-width: 640px) {
  .a11y-panel {
    bottom: 78px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
  [dir="ltr"] .a11y-panel { left: 12px; right: 12px; }
}

/* ============ ACCESSIBILITY STATE MODIFIERS ============ */
:root { --a11y-font-scale: 1; }
html { font-size: calc(100% * var(--a11y-font-scale)); }

/* High contrast: black background, yellow text, yellow borders */
html.a11y-high-contrast,
html.a11y-high-contrast body {
  background: #000 !important;
  color: #ffed4a !important;
}
html.a11y-high-contrast body *:not(.a11y-widget):not(.a11y-widget *):not(.a11y-panel):not(.a11y-panel *) {
  background-color: transparent !important;
  background-image: none !important;
  color: #ffed4a !important;
  border-color: #ffed4a !important;
  box-shadow: none !important;
}
html.a11y-high-contrast body a:not(.a11y-widget):not(.a11y-panel *),
html.a11y-high-contrast body .btn:not(.a11y-panel *) {
  color: #7ee787 !important;
  text-decoration: underline !important;
}
html.a11y-high-contrast body img:not(.a11y-panel *),
html.a11y-high-contrast body video:not(.a11y-panel *) {
  filter: grayscale(1) contrast(1.15);
}

/* Reverse contrast (invert everything) */
html.a11y-invert body { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body img,
html.a11y-invert body video,
html.a11y-invert body iframe { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert .a11y-widget,
html.a11y-invert .a11y-panel { filter: invert(1) hue-rotate(180deg); }

/* Grayscale */
html.a11y-grayscale body { filter: grayscale(1); }
html.a11y-grayscale .a11y-widget,
html.a11y-grayscale .a11y-panel { filter: none; }

/* Highlight links */
html.a11y-highlight-links a:not(.a11y-widget):not(.a11y-panel a):not(.a11y-statement-link) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  outline: 1px dashed currentColor !important;
  outline-offset: 3px !important;
  background: rgba(212,175,55,0.12) !important;
  padding: 2px 4px !important;
  border-radius: 3px;
}

/* Readable font */
html.a11y-readable-font,
html.a11y-readable-font body,
html.a11y-readable-font body *:not(.a11y-opt-icon):not(.a11y-panel-header h3) {
  font-family: 'Arial', 'Helvetica', 'Segoe UI', sans-serif !important;
  letter-spacing: normal !important;
}

/* Reduced-motion safety for the cinematic hero */
@media (prefers-reduced-motion: reduce) {
  .hero-cinema-content > *,
  .hero-cinema .gold-divider {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-cinema-video,
  .hero-cinema::after,
  .hero-cinema .btn-primary {
    animation: none !important;
  }
}

/* ============ COOKIE NOTICE (Privacy Amendment 13) ============ */
.cookie-notice {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: rgba(46,25,87,0.97);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  border-top: 1px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: cookieSlideUp 0.4s ease-out;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-notice-text {
  flex: 1;
  color: rgba(255,255,255,0.95);
}
.cookie-notice-link {
  color: var(--gold);
  font-weight: 600;
  margin-inline-start: 8px;
  text-decoration: underline;
}
.cookie-notice-link:hover { color: #fff; }
.cookie-notice-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 10px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.cookie-notice-btn:hover {
  background: #d4b96e;
  transform: translateY(-1px);
}
.cookie-notice-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 640px) {
  .cookie-notice {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px;
    gap: 12px;
    font-size: 0.85rem;
  }
  .cookie-notice-btn { align-self: flex-end; }
}

/* ============ HERO IMAGE OVERRIDE — floating book ============ */
.hero-home-bg.hero-book::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('book-open.png') left center / auto 92% no-repeat;
  opacity: 0.42;
  mix-blend-mode: normal;
}
[dir="ltr"] .hero-home-bg.hero-book::after {
  background-position: right center;
}
@media (max-width: 1100px) {
  .hero-home-bg.hero-book::after {
    background-position: center 40%;
    background-size: auto 65%;
    opacity: 0.20;
  }
}

/* ============ SECTION with soft book-side image ============ */
.book-side-bg {
  position: relative;
  overflow: hidden;
}
.book-side-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('book-side.png') center/cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}
.book-side-bg > * { position: relative; z-index: 1; }

/* ============ SECTION with monogram-particles background ============ */
.monogram-bg {
  position: relative;
  overflow: hidden;
}
.monogram-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('monogram-particles.png') center/cover no-repeat;
  opacity: 0.20;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.monogram-bg > * { position: relative; z-index: 1; }

/* Hero override for other pages using book hint */
.page-hero.with-book-hint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('book-open.png') center right / auto 90% no-repeat;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}
[dir="ltr"] .page-hero.with-book-hint::after {
  background-position: center left;
}

.cta-strip h2 {
  color: var(--pearl);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.cta-strip p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-home-grid { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-portrait { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%; right: 0; left: 0;
    background: var(--white);
    padding: 20px 40px 30px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--navy-08);
  }
  .main-nav.open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .main-nav.open a {
    display: block;
    padding: 12px 0;
    width: 100%;
  }
  .cta-header { display: none; }
  .practice-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 24px; }
  .section { padding: 72px 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-home { min-height: auto; padding: calc(var(--header-h) + 32px) 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .kenburns { animation: none; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
