/*
Theme Name: Hegazy & Partners
Theme URI: https://hegazylaw.com
Author: Hegazy & Partners
Author URI: https://hegazylaw.com
Description: Cinematic, bilingual (English / Arabic RTL) theme for Hegazy & Partners — a MENA-based international law firm. Includes the Lex Maxima 3D globe, GSAP scroll animations, split-type headline reveals, and a working contact form. Content is baked into the theme; activate and it works.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hegazy-partners
*/

/* Hegazy & Partners — vanilla static styles */
:root {
  --ink: #0B0B0D;
  --ivory: #F4F1EA;
  --crimson: #A6192E;
  --crimson-light: #C7263D;
  --crimson-dark: #7E1322;
  --gold: #C9A65A;
  --muted: rgba(244,241,234,.55);
  --muted-2: rgba(244,241,234,.35);
  --line: rgba(244,241,234,.1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { background: var(--ink); color: var(--ivory); margin: 0; padding: 0; overflow-x: hidden; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; font-weight: 300; line-height: 1.5; }
h1, h2, h3, h4 { font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif; font-weight: 300; margin: 0; letter-spacing: -.01em; color: var(--ivory); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--crimson); color: var(--ivory); }

/* Arabic typography */
html[dir='rtl'] body { font-family: 'IBM Plex Sans Arabic', 'Hanken Grotesk', system-ui, sans-serif; font-weight: 400; }
html[dir='rtl'] h1, html[dir='rtl'] h2, html[dir='rtl'] h3, html[dir='rtl'] h4 { font-family: 'Amiri', 'Fraunces', Georgia, serif; font-weight: 400; letter-spacing: 0; }
html[dir='rtl'] .display, html[dir='rtl'] .big-num { font-family: 'Amiri', 'Fraunces', Georgia, serif; letter-spacing: 0 !important; }
html[dir='rtl'] .eyebrow, html[dir='rtl'] .eyebrow-sm, html[dir='rtl'] .hero-eyebrow span, html[dir='rtl'] .crumb, html[dir='rtl'] .row-go, html[dir='rtl'] .row-num, html[dir='rtl'] .link-arrow, html[dir='rtl'] .btn-ghost, html[dir='rtl'] .pager-prev .eyebrow-sm, html[dir='rtl'] .pager-next .eyebrow-sm { letter-spacing: .12em !important; }

/* Grain overlay */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Container */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .container { padding: 0 3rem; } }

/* Sections */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

/* Grid */
.grid-12 { display: grid; grid-template-columns: repeat(1, 1fr); gap: 3rem; }
@media (min-width: 768px) { .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 3rem; } }
.col-5 { grid-column: span 12; }
.col-7 { grid-column: span 12; }
@media (min-width: 768px) {
  .col-5 { grid-column: span 5; }
  .col-7 { grid-column: span 7; }
}
.sticky { position: sticky; top: 8rem; align-self: start; }

/* Typography */
.eyebrow { display: inline-block; font-size: .65rem; letter-spacing: .32em; text-transform: uppercase; color: var(--crimson-light); }
.eyebrow-sm { display: inline-block; font-size: .65rem; letter-spacing: .32em; text-transform: uppercase; color: var(--crimson-light); }
.display { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: .95; letter-spacing: -.02em; margin-top: 1.5rem; }
.italic { font-style: italic; color: var(--muted); }
.block { display: block; }
.muted { color: var(--muted); }
.muted2 { color: var(--muted); }
.muted-zh { color: rgba(244,241,234,.45); font-size: .85rem; }
.hint { font-size: .75rem; color: var(--muted-2); margin-top: .35rem; }
.hint.accent { color: var(--crimson-light); font-style: italic; }
.big-num { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(5rem, 10vw, 10rem); line-height: .85; letter-spacing: -.03em; margin-top: 1.5rem; }
.big-num small { display: block; font-family: 'Hanken Grotesk', sans-serif; font-size: clamp(.9rem, 2vw, 1.5rem); letter-spacing: .3em; text-transform: uppercase; color: rgba(244,241,234,.5); font-weight: 300; margin-top: 1rem; }

.hairline { height: 1px; background: linear-gradient(to right, transparent, rgba(166, 25, 46, .55), transparent); }

/* Buttons */
.btn-ghost { display: inline-flex; align-items: center; gap: .75rem; padding: .95rem 1.6rem; border: 1px solid rgba(244, 241, 234, .25); color: var(--ivory); font-family: 'Hanken Grotesk', sans-serif; font-size: .72rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; background: transparent; cursor: pointer; transition: border-color .5s ease, background .5s ease; }
.btn-ghost::after { content: ''; width: 18px; height: 1px; background: currentColor; transition: width .4s ease; }
.btn-ghost:hover { border-color: var(--crimson-light); background: rgba(166, 25, 46, .16); }
.btn-ghost:hover::after { width: 36px; }
html[dir='rtl'] .btn-ghost::after { transform: scaleX(-1); }

.link-arrow { display: inline-block; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,241,234,.5); border-bottom: 1px solid rgba(244,241,234,.2); padding-bottom: .25rem; transition: color .3s; }
.link-arrow:hover { color: var(--crimson-light); }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 1.75rem 0; transition: all .5s ease; background: transparent; }
.nav.scrolled, .nav.interior { padding: 1rem 0; background: rgba(11,11,13,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 768px) { .nav-inner { padding: 0 3rem; } }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-1 { font-family: 'Fraunces', serif; font-size: 1.05rem; letter-spacing: .42em; color: var(--ivory); }
.brand-2 { font-size: .6rem; letter-spacing: .5em; color: rgba(244,241,234,.5); margin-top: .25rem; }
.nav-links { display: none; gap: 1.9rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(244,241,234,.7); transition: color .3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--crimson-light); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.lang-btn, .menu-btn { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,241,234,.6); border: 1px solid rgba(244,241,234,.15); padding: .5rem .75rem; background: transparent; cursor: pointer; font-family: 'Hanken Grotesk', sans-serif; transition: color .3s; }
.lang-btn:hover, .menu-btn:hover { color: var(--crimson-light); }
.menu-btn { display: block; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.nav-mobile { display: none; flex-direction: column; gap: 1rem; padding: 0 1.5rem 1.5rem; font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,241,234,.8); }
.nav-mobile.open { display: flex; }
.nav-mobile a:hover { color: var(--crimson-light); }

/* HERO */
.hero { position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s ease; }
.hero-video.ready { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,13,.4), rgba(11,11,13,.6), var(--ink)), linear-gradient(to right, rgba(11,11,13,.7), transparent, rgba(11,11,13,.4)); }
.hero-content { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6rem; }
@media (min-width: 768px) { .hero-content { padding-bottom: 8rem; } }
.hero-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; font-size: .65rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(244,241,234,.6); }
.hero-bar { width: 2rem; height: 1px; background: rgba(199, 38, 61, .8); }
.hero-headline { font-family: 'Fraunces', serif; font-size: clamp(3rem, 8.4vw, 8rem); line-height: .95; letter-spacing: -.02em; color: var(--ivory); max-width: 14ch; font-weight: 300; }
.hero-sub { margin-top: 2.5rem; max-width: 36rem; color: rgba(244,241,234,.7); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; }
.hero .btn-ghost { margin-top: 3rem; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: .75rem; font-size: .6rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(244,241,234,.4); }
.hero-scroll-line { display: block; width: 1px; height: 2.5rem; background: rgba(244,241,234,.3); animation: scrollLine 2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* About / statements */
.about-teaser { padding-top: 8rem; padding-bottom: 8rem; }
.statements { display: flex; flex-direction: column; gap: 6rem; padding-top: 3rem; }
@media (min-width: 768px) { .statements { gap: 8rem; padding-top: 6rem; } }
.statement { max-width: 36rem; }
.statement p { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.1; letter-spacing: -.01em; margin-top: 1.5rem; color: rgba(244,241,234,.95); }

/* Section heads */
.section-head { margin-bottom: 4rem; }
.section-head.between { display: flex; align-items: end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
@media (min-width: 768px) { .section-head { margin-bottom: 5rem; } }

/* Jurisdictions */
.juris-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; max-width: 32rem; margin-top: 3rem; }
.juris-grid.lg { grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 64rem; }
@media (min-width: 768px) { .juris-grid.lg { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .juris-grid.lg { grid-template-columns: repeat(5, 1fr); } }
.juris { font-size: .9rem; color: rgba(244,241,234,.75); border-left: 1px solid rgba(166,25,46,.4); padding-left: .75rem; }
.juris.lg { padding: 1.5rem; border-left: 2px solid var(--crimson); }
.juris-n { display: block; font-size: .6rem; color: rgba(199, 38, 61, .8); margin-bottom: .25rem; }

/* Practice list */
.practice-list { width: 100%; }
.practice-row { border-top: 1px solid var(--line); }
.practice-row:last-child { border-bottom: 1px solid var(--line); }
.practice-row a { display: flex; align-items: baseline; justify-content: space-between; padding: 1.75rem 0; gap: 1.5rem; flex-wrap: wrap; }
.row-num { font-size: .7rem; letter-spacing: .32em; color: rgba(244,241,234,.35); }
.row-name { font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; letter-spacing: -.01em; color: rgba(244,241,234,.85); transition: all .5s ease; }
.practice-row:hover .row-name { color: var(--ivory); font-style: italic; transform: translateX(.5rem); }
.row-go { font-size: .65rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(244,241,234,.3); transition: color .3s; }
.practice-row:hover .row-go { color: var(--crimson-light); }
@media (min-width: 768px) { .practice-row a { padding: 2.25rem 0; gap: 2.5rem; flex-wrap: nowrap; } }

/* Alliance + globe */
.alliance-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .alliance-grid { grid-template-columns: 2fr 1fr; gap: 3rem; } }
.globe-wrap { position: relative; height: 60vh; min-height: 440px; width: 100%; }
.globe-wrap.tall { height: 78vh; }
#globe-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.globe-hint { position: absolute; bottom: 1rem; left: 0; font-size: .6rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(244,241,234,.35); pointer-events: none; }

/* Practices cursor */
.practice-cursor { position: fixed; top: 0; left: 0; width: 320px; height: 420px; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .5s ease, transform .5s ease; display: none; overflow: hidden; }
@media (min-width: 768px) { .practice-cursor { display: block; } }
.practice-cursor.active { opacity: 1; transform: translate3d(0, 0, 0) translate(-50%, -50%) scale(1); }
.practice-cursor img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; filter: grayscale(.7) brightness(.7) contrast(1.05); }
.cursor-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(166,25,46,.12), rgba(11,11,13,.45)); mix-blend-mode: multiply; }

/* Partner mask reveal */
.partner-card .duotone-wrap .mask { position: absolute; inset: 0; background: var(--ink); z-index: 10; pointer-events: none; }

/* China Desk */
.china-desk { position: relative; border-top: 1px solid rgba(244,241,234,.05); overflow: hidden; padding: 8rem 0; }
.china-bg { position: absolute; inset: 0; opacity: .25; background-image: url('https://images.unsplash.com/photo-1547981609-4b6bfe67ca0b?auto=format&fit=crop&w=1024&q=50'); background-size: cover; background-position: center; filter: grayscale(.8) brightness(.4) contrast(1.1); }
.china-desk::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, var(--ink), rgba(11,11,13,.7), var(--ink)); }
.china-desk .container { position: relative; z-index: 1; }

/* Partner grid */
.partner-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 2rem 2rem; }
@media (min-width: 600px) { .partner-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-card { display: block; transition: opacity .3s; }
.partner-card h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); letter-spacing: -.01em; margin-top: 1.5rem; transition: color .3s; }
.partner-card:hover h3 { color: var(--crimson-light); }
.partner-card .role { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(199, 38, 61, .9); margin-top: .5rem; }
.partner-card .bio { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 1rem; max-width: 24rem; }

.duotone-wrap { position: relative; overflow: hidden; background: var(--ink); aspect-ratio: 3/4; }
.duotone-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(166,25,46,.32), rgba(11,11,13,.55)); mix-blend-mode: multiply; transition: opacity .6s; opacity: .9; pointer-events: none; }
.duotone { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.85); transition: filter .7s, transform 1.2s; }
.partner-card:hover .duotone-wrap::after { opacity: .4; }
.partner-card:hover .duotone { filter: grayscale(.2) brightness(.95); transform: scale(1.04); }

/* Team groups */
.team-group { padding: 5rem 0; border-top: 1px solid var(--line); }
.group-head { margin-bottom: 3rem; }

/* Page header (interior pages) */
.page-header { position: relative; min-height: 80vh; min-height: 80svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 10rem 0 5rem; overflow: hidden; }
@media (min-width: 768px) { .page-header { padding: 12rem 0 7rem; } }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.45) contrast(1.05); }
.page-hero-veil { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,11,13,.6), rgba(11,11,13,.4), var(--ink)); }
.page-header .container { position: relative; z-index: 1; }
.page-title { font-family: 'Fraunces', serif; font-size: clamp(2.5rem, 7.5vw, 7rem); line-height: .92; letter-spacing: -.02em; max-width: 16ch; font-weight: 300; }
.page-title .italic { display: block; font-style: italic; color: var(--muted); }
.page-lead { margin-top: 2.5rem; max-width: 42rem; color: rgba(244,241,234,.7); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6; }
.crumb { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; font-size: .65rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(244,241,234,.55); }
.crumb a:hover { color: var(--crimson-light); }
.crumb-sep { display: inline-block; width: 1.5rem; height: 1px; background: rgba(244,241,234,.3); }
.crumb-current { color: var(--crimson-light); }

/* Practice detail */
.prose p { color: rgba(244,241,234,.75); font-size: clamp(1rem, 1.25vw, 1.25rem); line-height: 1.7; font-weight: 300; margin-bottom: 1.5rem; }
.capabilities { border-left: 1px solid rgba(166,25,46,.4); padding-left: 1.5rem; }
.capabilities ul { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.capabilities li { color: rgba(244,241,234,.7); font-size: .95rem; line-height: 1.6; display: flex; gap: .75rem; align-items: flex-start; }
.capabilities li::before { content: ''; flex-shrink: 0; width: .5rem; height: 1px; background: rgba(199, 38, 61, .8); margin-top: .7rem; }
.cta-box { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--line); }
.cta-box p { color: var(--crimson-light); margin-bottom: 1rem; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag { font-size: .75rem; padding: .4rem .8rem; border: 1px solid rgba(166,25,46,.4); color: rgba(244,241,234,.8); }

/* Partner page side */
.partner-side { display: flex; flex-direction: column; gap: 2.5rem; }
.partner-side > div > p { margin-top: .75rem; color: rgba(244,241,234,.7); }
.cred-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; color: rgba(244,241,234,.7); font-size: .9rem; line-height: 1.6; }
.partner-side .block { display: block; color: rgba(244,241,234,.75); font-size: .9rem; margin-top: .35rem; transition: color .3s; }
.partner-side .block:hover { color: var(--crimson-light); }
.partner-hero { gap: 3rem; }
.partner-hero-text { display: flex; flex-direction: column; justify-content: flex-end; }
.partner-hero-text .muted { margin-top: 2rem; }
.initials { display: flex; align-items: center; justify-content: center; min-height: 50vh; }
.initials > div { font-family: 'Fraunces', serif; font-size: clamp(6rem, 10vw, 12rem); color: rgba(166,25,46,.3); line-height: 1; user-select: none; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--line); padding-top: 2.5rem; }
.pager .pager-prev { text-align: left; }
.pager .pager-next { text-align: right; }
.pager .eyebrow-sm { font-size: .6rem; letter-spacing: .4em; color: rgba(244,241,234,.4); }
.pager-name { display: block; font-family: 'Fraunces', serif; font-size: clamp(1.25rem, 2vw, 1.875rem); margin-top: .75rem; transition: color .3s; }
.pager a:hover .pager-name { color: var(--crimson-light); }

/* Contact form */
.contact-info { display: flex; flex-direction: column; gap: 2rem; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.contact-info p { margin-top: .5rem; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.form { display: flex; flex-direction: column; gap: .25rem; }
.field { position: relative; padding: 1.1rem 0 .6rem; border-bottom: 1px solid rgba(244,241,234,.18); transition: border-color .4s ease; }
.field:focus-within { border-color: var(--crimson); }
.field label { position: absolute; top: 1.1rem; left: 0; font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,241,234,.45); transition: all .4s ease; pointer-events: none; transform-origin: left; }
.field.filled label, .field:focus-within label { transform: translateY(-1.05rem) scale(.85); color: var(--crimson); }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ivory); font-family: 'Hanken Grotesk', sans-serif; font-size: 1rem; padding: .6rem 0 0; }
.field textarea { resize: none; min-height: 96px; }
.field select option { background: var(--ink); color: var(--ivory); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }

/* Footer */
.footer { padding: 5rem 0 3rem; border-top: 1px solid rgba(244,241,234,.05); }
.footer-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 768px) { .footer-inner { padding: 0 3rem; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand .footer-mark { font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: .32em; color: var(--ivory); }
.footer-brand .footer-sub { font-size: .7rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(244,241,234,.45); margin-top: .5rem; }
.footer-brand .footer-member { font-size: .65rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(199, 38, 61, .9); margin-top: 1.5rem; }
.footer-h { font-size: .65rem; letter-spacing: .4em; text-transform: uppercase; color: rgba(244,241,234,.4); display: block; margin-bottom: 1rem; }
.footer ul li { margin-bottom: .5rem; }
.footer ul li a { font-size: .9rem; color: rgba(244,241,234,.7); transition: color .3s; }
.footer ul li a:hover { color: var(--ivory); }
.footer-addr { font-size: .9rem; color: rgba(244,241,234,.7); line-height: 1.7; }
.footer-addr a { transition: color .3s; }
.footer-addr a:hover { color: var(--crimson-light); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .65rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,241,234,.35); margin-top: 2rem; }

/* Reveal animations (handled via JS adding .is-visible) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Press: nav dropdown, post cards, single ============ */
.nav-dd { position: relative; display: inline-block; }
.nav-dd-menu { position: absolute; top: 100%; left: 0; min-width: 210px; padding-top: 1rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dd-menu a { background: rgba(11,11,13,.96); backdrop-filter: blur(10px); border: 1px solid var(--line); border-bottom: 0; padding: .95rem 1.2rem; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(244,241,234,.7); white-space: nowrap; transition: color .3s, background .3s; }
.nav-dd-menu a:last-child { border-bottom: 1px solid var(--line); }
.nav-dd-menu a:hover { color: var(--crimson-light); background: rgba(11,11,13,1); }
[dir='rtl'] .nav-dd-menu { left: auto; right: 0; }
.nav-mobile a.sub { padding-left: 1.5rem; font-size: .72rem; opacity: .65; }
[dir='rtl'] .nav-mobile a.sub { padding-left: 0; padding-right: 1.5rem; }

.press-block { border-top: 1px solid var(--line); }
.press-block:first-of-type { border-top: 0; }

.post-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: block; }
.post-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #15151a; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.85); transition: transform 1s ease, filter .6s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); filter: grayscale(0) brightness(1); }
.post-thumb--ph { background: linear-gradient(135deg, rgba(166,25,46,.28), rgba(11,11,13,.6)); }
.post-thumb--ph::after { content: 'H&P'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 2rem; letter-spacing: .2em; color: rgba(244,241,234,.14); }
.post-date { display: block; margin-top: 1.25rem; font-size: .65rem; letter-spacing: .32em; text-transform: uppercase; color: var(--crimson-light); }
.post-title { font-family: 'Fraunces', serif; font-weight: 300; font-size: 1.5rem; line-height: 1.15; margin-top: .75rem; transition: color .3s; }
.post-card:hover .post-title { color: var(--crimson-light); }
.post-excerpt { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: .75rem; }
.post-more { display: inline-block; margin-top: 1rem; font-size: .65rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(244,241,234,.4); }

.pagination { margin-top: 4rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem; border: 1px solid var(--line); color: rgba(244,241,234,.7); font-size: .8rem; transition: border-color .3s, color .3s; }
.pagination .page-numbers.current { border-color: var(--crimson); color: var(--crimson-light); }
.pagination .page-numbers:hover { border-color: var(--crimson-light); color: var(--ivory); }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the_content prose for single posts */
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { font-family: 'Fraunces', serif; font-weight: 300; margin: 2.2rem 0 1rem; line-height: 1.2; }
.post-content h2 { font-size: 1.9rem; }
.post-content h3 { font-size: 1.45rem; }
.post-content p { color: rgba(244,241,234,.78); font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.25rem; }
.post-content a { color: var(--crimson-light); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol { margin: 0 0 1.25rem 1.25rem; color: rgba(244,241,234,.78); line-height: 1.85; }
.post-content li { margin-bottom: .5rem; }
.post-content img { margin: 1.75rem 0; width: 100%; height: auto; }
.post-content blockquote { border-left: 2px solid var(--crimson); padding-left: 1.5rem; margin: 1.75rem 0; font-style: italic; color: var(--ivory); }
.post-content strong { color: var(--ivory); font-weight: 500; }
[dir='rtl'] .post-content blockquote { border-left: 0; border-right: 2px solid var(--crimson); padding-left: 0; padding-right: 1.5rem; }
[dir='rtl'] .post-content ul, [dir='rtl'] .post-content ol { margin-left: 0; margin-right: 1.25rem; }

/* ============ Search ============ */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; color: rgba(244,241,234,.6); border: 1px solid rgba(244,241,234,.15); background: transparent; cursor: pointer; transition: color .3s, border-color .3s; }
.icon-btn:hover { color: var(--crimson-light); border-color: rgba(199,38,61,.5); }

.search-overlay { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; background: rgba(11,11,13,.94); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-close { position: absolute; top: 2rem; right: 2rem; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ivory); font-size: 1rem; cursor: pointer; transition: color .3s, border-color .3s; }
.search-close:hover { color: var(--crimson-light); border-color: rgba(199,38,61,.5); }
[dir='rtl'] .search-close { right: auto; left: 2rem; }
.search-overlay-form { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 2rem; transform: translateY(12px); transition: transform .5s ease; }
.search-overlay.open .search-overlay-form { transform: translateY(0); }
.search-overlay-form input[type=search] { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(244,241,234,.25); outline: 0; color: var(--ivory); font-family: 'Fraunces', serif; font-weight: 300; font-size: clamp(1.75rem, 5vw, 3.25rem); line-height: 1.1; padding: 0 0 1rem; transition: border-color .4s ease; }
.search-overlay-form input[type=search]:focus { border-color: var(--crimson); }
.search-overlay-form input[type=search]::placeholder { color: rgba(244,241,234,.3); }
.search-overlay-form input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-overlay-form .btn-ghost { align-self: flex-start; }
[dir='rtl'] .search-overlay-form .btn-ghost { align-self: flex-end; }

/* Reusable styled search form (search.php / widgets) */
.hp-search-form { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; }
.hp-search-form input[type=search] { flex: 1 1 260px; background: transparent; border: 0; border-bottom: 1px solid rgba(244,241,234,.25); outline: 0; color: var(--ivory); font-family: 'Hanken Grotesk', sans-serif; font-size: 1.05rem; padding: .75rem 0; transition: border-color .4s ease; }
.hp-search-form input[type=search]:focus { border-color: var(--crimson); }
.hp-search-form input[type=search]::placeholder { color: rgba(244,241,234,.35); }
