/* =========================================================
   The Apex Journal — front-end styles
   Palette: 60% Ivory · 20% Charcoal · 15% Graphite · 5% Champagne Gold
   ========================================================= */
:root {
  --ivory: #F7F4EE;
  --ivory-2: #EFEBE3;
  --paper: #FFFDF9;
  --charcoal: #121212;
  --charcoal-2: #1C1C1D;
  --graphite: #4A4A4E;
  --graphite-2: #6E6E73;
  --silver: #C9C8C4;
  --silver-2: #E3E0DA;
  --gold: #C6A15B;
  --gold-soft: #D8BC85;
  --gold-deep: #9C7A3C;
  --line: rgba(18, 18, 18, .10);
  --line-light: rgba(255, 255, 255, .14);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 80px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(18,18,18,.04), 0 8px 28px rgba(18,18,18,.06);
  --shadow-lg: 0 18px 50px rgba(18,18,18,.14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); color: var(--charcoal); }
.ico { flex-shrink: 0; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container-wide { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 860px; }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 18px; }
.eyebrow-sm { font-size: 11px; letter-spacing: .16em; margin-bottom: 6px; color: var(--graphite-2); }
.eyebrow-rule::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
.gold { color: var(--gold); font-style: normal; }
.link-gold { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-deep); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: gap .25s var(--ease); }
.link-gold:hover { gap: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 2px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-dark { background: var(--charcoal); color: var(--ivory); }
.btn-dark:hover { background: var(--graphite); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold-deep); }
.btn-outline-gold:hover { background: var(--gold); color: var(--charcoal); }
.btn-outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 16px; font-size: 14px; letter-spacing: .01em; text-transform: none; font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(247, 244, 238, .94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background .35s, border-color .35s, transform .35s var(--ease); }
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: linear-gradient(180deg, rgba(10,10,10,.72), rgba(10,10,10,0)); border-color: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-overlay.is-scrolled { background: rgba(18, 18, 18, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-light); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-slash { width: 2px; height: 50px; background: var(--gold); transform: skewX(-22deg); border-radius: 2px; margin: 0 6px; }
.logo-text { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.05; letter-spacing: .01em; }
.logo-text small { display: block; font-size: 15px; letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); margin: 0 auto; }
.main-nav a { position: relative; font-size: 15px; font-weight: 500; padding: 8px 0; opacity: .86; transition: opacity .2s, color .2s; }
.main-nav a:hover { opacity: 1; }
.main-nav a.active { color: var(--gold-deep); opacity: 1; }
.is-overlay .main-nav a.active { color: var(--gold); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.main-nav + .header-actions { margin-left: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: rgba(127,127,127,.14); }
.header-divider { width: 1px; height: 28px; background: currentColor; opacity: .25; }
.is-overlay .btn-outline-gold { color: #fff; }
.is-overlay .btn-outline-gold:hover { color: var(--charcoal); }
.menu-toggle { display: none; }

/* ---------- Mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--charcoal); color: #fff; overflow-y: auto; animation: fadeIn .3s var(--ease); }
.mobile-menu-inner { min-height: 100%; padding: 88px var(--gutter) 40px; display: flex; flex-direction: column; gap: 32px; }
.mobile-close { position: absolute; top: 16px; right: var(--gutter); }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--serif); font-size: clamp(28px, 7vw, 40px); padding: 10px 0; border-bottom: 1px solid var(--line-light); }
.mobile-menu nav a:hover { color: var(--gold); }
.mobile-search { display: flex; border-bottom: 1px solid rgba(255,255,255,.4); }
.mobile-search input { flex: 1; background: none; border: 0; color: #fff; font-size: 18px; padding: 12px 0; outline: none; }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 210; background: rgba(14,14,14,.97); color: #fff; display: grid; place-items: center; padding: var(--gutter); animation: fadeIn .25s var(--ease); }
.search-close { position: absolute; top: 20px; right: var(--gutter); }
.search-overlay-form { width: min(820px, 100%); }
.search-field { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.35); }
.search-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: #fff; font-family: var(--serif); font-size: clamp(28px, 5vw, 52px); padding: 14px 0; }
.search-field input::placeholder { color: rgba(255,255,255,.3); }
.search-field button { color: var(--gold); padding: 10px; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.search-suggest a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-light); padding: 8px 14px; border-radius: 40px; transition: border-color .2s, color .2s; }
.search-suggest a:hover { border-color: var(--gold); color: var(--gold); }
.search-suggest-dark a { border-color: var(--line); }

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

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(600px, 92vh, 860px); background: var(--charcoal); color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { transform: scale(1.06); transition: transform 8s ease-out; object-position: 70% center; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12,12,12,.94) 0%, rgba(12,12,12,.72) 32%, rgba(12,12,12,.18) 62%, rgba(12,12,12,0) 80%),
  linear-gradient(0deg, rgba(12,12,12,.85) 0%, rgba(12,12,12,0) 30%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: var(--header-h); padding-bottom: 90px; }
.hero-content > * { max-width: 640px; }
.hero-slide .hero-content > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .12s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .22s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .32s; }
.hero-title { font-size: clamp(46px, 6.6vw, 92px); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 26px; }
.hero-title-sm { font-size: clamp(38px, 5vw, 70px); }
.hero-text { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: rgba(255,255,255,.86); max-width: 520px; margin-bottom: 34px; }
.hero-bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 26px; }
.hero-links { display: flex; align-items: center; border-left: 2px solid var(--gold); padding-left: 22px; }
.hero-links a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); padding: 0 22px; border-left: 1px solid rgba(255,255,255,.3); line-height: 1; transition: color .2s; }
.hero-links a:first-child { border-left: 0; padding-left: 0; }
.hero-links a:hover { color: var(--gold); }
.hero-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hero-count { font-size: 14px; letter-spacing: .1em; min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(24px, 3vw, 32px); }
.section:last-of-type { padding-bottom: clamp(56px, 7vw, 96px); }
.section-ivory-2 { background: var(--ivory-2); padding-bottom: clamp(56px, 7vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-title { display: flex; align-items: center; gap: 18px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.section-title .rule { width: 52px; height: 2px; background: var(--gold); flex-shrink: 0; }
.section-desc { color: var(--graphite); max-width: 640px; margin: -18px 0 26px; font-size: 15px; }
.section-head.is-light { color: #fff; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 30px); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Card ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { display: block; aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--charcoal-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.chip { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--gold); color: var(--charcoal); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; line-height: 1; }
.chip-static { position: static; display: inline-block; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.card-title { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.18; margin-bottom: 10px; }
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.card-title a:hover { background-size: 100% 1px; }
.card-excerpt { color: var(--graphite); font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; font-size: 13px; color: var(--graphite-2); }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .sep, .byline-meta .sep { width: 1px; height: 14px; background: currentColor; opacity: .35; }
.card-meta.is-light { color: rgba(255,255,255,.7); margin: 0 0 30px; }

/* ---------- Cinema rows (Netflix-style) ---------- */
.section-row { padding-top: clamp(44px, 5vw, 72px); }
.row-scroller { position: relative; }
.row-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: none; overscroll-behavior-x: contain; }
.row-track::-webkit-scrollbar { display: none; }
.cinema-card { flex: 0 0 clamp(260px, 30%, 420px); scroll-snap-align: start; }
.cinema-card a { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--charcoal-2); color: #fff; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.cinema-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cinema-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cinema-card a:hover img { transform: scale(1.07); }
.cinema-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.35) 50%, rgba(10,10,10,0) 75%); }
.cinema-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; }
.cinema-text .eyebrow { font-size: 11px; color: var(--gold); margin-bottom: 8px; letter-spacing: .16em; }
.cinema-title { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; margin-bottom: 8px; }
.cinema-meta { font-size: 12px; color: rgba(255,255,255,.7); }
.row-btn { position: absolute; top: calc(50% - 12px); z-index: 3; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(18,18,18,.88); color: #fff; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, background .2s; }
.row-btn:hover { background: var(--charcoal); color: var(--gold); }
.row-prev { left: -14px; } .row-next { right: -14px; }
.row-scroller:hover .row-btn:not([disabled]) { opacity: 1; }
.row-btn[disabled] { opacity: 0 !important; pointer-events: none; }
@media (hover: none) { .row-btn { display: none; } }

/* ---------- Feature band ---------- */
.feature-band { background: var(--charcoal); color: #fff; margin-top: clamp(56px, 7vw, 96px); padding: clamp(56px, 7vw, 100px) 0; }
.feature-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature-media:hover img { transform: scale(1.04); }
.feature-text .eyebrow { color: rgba(255,255,255,.75); }
.feature-title { font-size: clamp(32px, 3.6vw, 50px); font-weight: 500; margin-bottom: 18px; }
.feature-title a:hover { color: var(--gold-soft); }
.feature-text > p { color: rgba(255,255,255,.75); font-size: 17px; margin-bottom: 20px; }

/* ---------- Most read ---------- */
.most-read { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.most-read-intro p { color: var(--graphite); margin-top: 14px; max-width: 300px; }
.most-read-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; }
.compact-card { display: grid; grid-template-columns: auto 124px 1fr; gap: 16px; align-items: center; }
.compact-card .rank { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; width: 40px; color: transparent; -webkit-text-stroke: 1px var(--graphite-2); }
.compact-media { display: block; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--charcoal-2); }
.compact-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.compact-card:hover .compact-media img { transform: scale(1.06); }
.compact-title { font-size: 18px; line-height: 1.25; margin-bottom: 6px; }
.compact-title a:hover { color: var(--gold-deep); }
.compact-meta { font-size: 12px; color: var(--graphite-2); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--ivory-2); padding: clamp(64px, 8vw, 120px) 0; margin-top: clamp(56px, 7vw, 96px); text-align: center; }
.manifesto-inner { display: flex; flex-direction: column; align-items: center; max-width: 980px; }
.manifesto .eyebrow { color: var(--graphite); }
.manifesto-quote { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.3; margin-bottom: 28px; }
.manifesto-quote .gold { color: var(--gold-deep); font-style: italic; }

/* ---------- Page hero (category / author) ---------- */
.page-hero { position: relative; min-height: clamp(380px, 52vh, 500px); display: flex; align-items: flex-end; background: var(--charcoal); color: #fff; overflow: hidden; }
.page-hero-media, .page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-media img { opacity: .55; }
.page-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,12,12,.96) 5%, rgba(12,12,12,.45) 60%, rgba(12,12,12,.6) 100%), linear-gradient(90deg, rgba(12,12,12,.7), rgba(12,12,12,0) 70%); }
.page-hero-content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(36px, 5vw, 56px); }
.page-title { font-size: clamp(42px, 6vw, 78px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 14px; }
.page-title-dark { color: var(--charcoal); font-size: clamp(38px, 5vw, 64px); }
.page-intro { max-width: 640px; font-size: 18px; color: rgba(255,255,255,.8); }
.page-count { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 0; }
.page-count-dark { color: var(--graphite-2); margin-top: 18px; }
.author-avatar-lg { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; border: 2px solid var(--gold); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--graphite-2); margin-bottom: 26px; }
.breadcrumbs a:hover { color: var(--gold-deep); }
.breadcrumbs.is-light { color: rgba(255,255,255,.6); }
.breadcrumbs.is-light a:hover { color: var(--gold); }

.cat-tabs { background: var(--ivory); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; }
.cat-tabs-inner { display: flex; gap: 32px; overflow-x: auto; scrollbar-width: none; }
.cat-tabs-inner::-webkit-scrollbar { display: none; }
.cat-tabs a { white-space: nowrap; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); padding: 20px 0 18px; border-bottom: 2px solid transparent; }
.cat-tabs a:hover { color: var(--charcoal); }
.cat-tabs a.active { color: var(--charcoal); border-color: var(--gold); }

.lead-card { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: clamp(24px, 3vw, 40px); }
.lead-media { display: block; min-height: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lead-card:hover .lead-media img { transform: scale(1.04); }
.lead-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 52px); }
.lead-body .chip { align-self: flex-start; margin-bottom: 20px; }
.lead-title { font-size: clamp(28px, 3vw, 42px); font-weight: 500; margin-bottom: 16px; }
.lead-title a:hover { color: var(--gold-deep); }
.lead-excerpt { color: var(--graphite); font-size: 17px; margin-bottom: 24px; }
.lead-body .card-meta { margin-top: 0; }

.empty-state { text-align: center; padding: 60px 0; color: var(--graphite); }
.empty-state h2 { color: var(--charcoal); margin-bottom: 10px; }
.empty-state .search-suggest { justify-content: center; }
.empty-state a { text-decoration: underline; text-decoration-color: var(--gold); }
.empty-state .search-suggest a { text-decoration: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: clamp(40px, 5vw, 64px); }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; transition: border-color .2s, background .2s; }
.pagination a:hover { border-color: var(--charcoal); }
.pagination .pg-current { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.pagination .pg-gap { border: 0; }

/* ---------- Simple hero (pages) ---------- */
.simple-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.simple-hero .eyebrow { color: var(--graphite); }
.search-page-form { display: flex; gap: 10px; margin-top: 24px; }
.search-page-form input { flex: 1; min-width: 0; }

/* ---------- Article ---------- */
.article-header { max-width: 920px; text-align: center; padding-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(28px, 4vw, 44px); }
.article-header .breadcrumbs { justify-content: center; }
.article-header .chip { margin-bottom: 22px; }
.article-title { font-size: clamp(36px, 5.2vw, 68px); font-weight: 500; letter-spacing: -.02em; line-height: 1.06; margin-bottom: 22px; }
.article-dek { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--graphite); max-width: 720px; margin: 0 auto 30px; }
.article-byline { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline-author { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.byline-author img, .byline-author .avatar-fallback { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline-author small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite-2); }
.byline-author strong { font-weight: 600; font-size: 15px; }
.byline-author:hover strong { color: var(--gold-deep); }
.byline-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--graphite-2); }
.byline-meta span { display: inline-flex; align-items: center; gap: 6px; }
.avatar-fallback { display: inline-grid; place-items: center; background: var(--charcoal); color: var(--gold); font-family: var(--serif); font-size: 18px; border-radius: 50%; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; flex-shrink: 0; }
.avatar-xl { width: 96px; height: 96px; font-size: 36px; }

.article-figure { margin: 0 auto; }
.article-image { aspect-ratio: 16 / 8.2; border-radius: var(--radius); overflow: hidden; background: var(--charcoal-2); }
.article-image img { width: 100%; height: 100%; object-fit: cover; }
.article-figure figcaption { font-size: 13px; color: var(--graphite-2); padding-top: 12px; max-width: 720px; margin: 0 auto; text-align: center; }

.article-layout { display: grid; grid-template-columns: 56px minmax(0, 720px) 240px; justify-content: center; gap: clamp(28px, 4vw, 64px); padding-top: clamp(36px, 5vw, 64px); }
.article-rail { position: relative; }
.article-main { min-width: 0; }
.article-aside { position: relative; }

.prose { font-size: 19px; line-height: 1.78; color: #262628; }
.prose > * + * { margin-top: 0; }
.prose p { margin: 0 0 1.45em; }
.prose .lead { font-size: 1.18em; line-height: 1.6; color: var(--charcoal); }
.is-article .prose > p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 4.3em; line-height: .82; padding: .06em .12em 0 0; color: var(--charcoal); font-weight: 600; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; margin: 1.9em 0 .6em; scroll-margin-top: 110px; }
.prose h3 { font-size: clamp(21px, 2vw, 25px); margin: 1.6em 0 .5em; scroll-margin-top: 110px; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s; }
.prose a:hover { color: var(--gold-deep); }
.prose strong { font-weight: 600; color: var(--charcoal); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.45em; }
.prose li { margin-bottom: .5em; padding-left: .3em; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--graphite-2); font-weight: 600; }
.prose blockquote { margin: 2em 0; padding: 4px 0 4px 30px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; font-style: italic; color: var(--charcoal); }
.prose blockquote p:last-child { margin: 0; }
.prose img { border-radius: var(--radius); margin: 2em 0; width: 100%; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--graphite-2); margin-top: 8px; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); margin: 1.5em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.5em 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }

.share { display: flex; align-items: center; gap: 10px; }
.share a, .share button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--graphite); transition: color .2s, border-color .2s, background .2s; }
.share a:hover, .share button:hover { color: var(--charcoal); border-color: var(--charcoal); }
.share button.is-copied { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.share-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite-2); }
.share-vertical { position: sticky; top: calc(var(--header-h) + 32px); flex-direction: column; }
.share-vertical .share-label { writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 6px; }

.toc { font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; padding: 9px 0 9px 14px; border-left: 1px solid var(--line); color: var(--graphite); line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--graphite-2); font-size: 12px; padding-top: 1px; }
.toc a:hover, .toc a.is-active { color: var(--charcoal); border-color: var(--gold); }
.toc-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.toc-sticky .eyebrow { margin-bottom: 14px; }
.toc-inline { display: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 32px; }
.toc-inline summary { cursor: pointer; padding: 14px 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary::after { content: "+"; font-size: 18px; line-height: 1; }
.toc-inline[open] summary::after { content: "–"; }
.toc-inline ol { padding-bottom: 14px; }
.section .toc-inline { display: block; }

.article-end { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 28px 0; margin-top: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-tags { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--graphite-2); }

.author-box { display: flex; gap: 24px; background: var(--ivory-2); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); margin: 40px 0; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-name { font-size: 24px; margin-bottom: 8px; }
.author-box p { color: var(--graphite); font-size: 15px; }

.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.prev-next a { display: block; padding: 22px 0; border-top: 2px solid var(--charcoal); }
.prev-next small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite-2); margin-bottom: 8px; }
.prev-next span { font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.prev-next a:hover span { color: var(--gold-deep); }
.pn-next { text-align: right; }

.related { border-top: 1px solid var(--line); margin-top: clamp(40px, 5vw, 64px); }

.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 150; transition: width .1s linear; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.team-card { background: var(--paper); border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; transition: transform .35s var(--ease); }
.team-card:hover { transform: translateY(-4px); }
.team-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.team-card h3 { font-size: 22px; margin: 18px 0 6px; }
.team-bio { color: var(--graphite); font-size: 14px; margin-top: 8px; }
.team-count { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); margin-top: auto; padding-top: 8px; }

/* ---------- Forms / contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-card { border-top: 1px solid var(--line); padding: 20px 0; }
.contact-card a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; word-break: break-all; }
.contact-card a:hover { color: var(--gold-deep); }
.contact-card p { color: var(--graphite); margin: 0; }
.contact-form-wrap { background: var(--paper); padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form, .form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--graphite); }
input[type=text], input[type=email], input[type=search], input:not([type]), textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--charcoal); background: #fff; border: 1px solid var(--silver-2); border-radius: 2px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(198,161,91,.25); }
textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--graphite-2); margin: 0; }
.form-note a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; border-radius: 2px; margin-bottom: 20px; font-size: 15px; }
.alert p { margin: 0; }
.alert-success { background: #EEF3EA; border-left: 3px solid #5D7A4C; }
.alert-error { background: #F7ECE9; border-left: 3px solid #A34A3A; }

/* ---------- Sitemap ---------- */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px; }
.sitemap-title { font-size: 22px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.sitemap-grid ul { list-style: none; margin: 0; padding: 0; }
.sitemap-grid li a { display: block; padding: 7px 0; color: var(--graphite); font-size: 15px; border-bottom: 1px solid var(--line); }
.sitemap-grid li a:hover { color: var(--charcoal); }

/* ---------- 404 ---------- */
.error-hero { position: relative; min-height: 86vh; display: flex; align-items: center; background: var(--charcoal); color: #fff; overflow: hidden; }
.error-content { position: relative; z-index: 2; padding-top: var(--header-h); }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--silver); padding-top: clamp(56px, 7vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.logo-light { color: #fff; margin-bottom: 22px; }
.footer-brand p { max-width: 360px; font-size: 15px; color: rgba(255,255,255,.62); }
.footer-title { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-title-gap { margin-top: 28px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; font-size: 15px; color: rgba(255,255,255,.65); transition: color .2s; }
.site-footer li a:hover, .footer-email:hover { color: var(--gold); }
.footer-email { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255,255,255,.75); word-break: break-all; }
.footer-line { margin-top: 10px; }
.footer-address { display: flex; gap: 8px; margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.65); }
.footer-address .ico { margin-top: 3px; }
.contact-card .eyebrow { display: flex; margin-bottom: 8px; }
.contact-card address { font-style: normal; color: var(--graphite); line-height: 1.6; margin-bottom: 8px; }
.contact-card .map-link { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; transition: border-color .2s, color .2s; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line-light); font-size: 13px; color: rgba(255,255,255,.45); }
.footer-bottom p { margin: 0; }
.footer-tag { letter-spacing: .18em; text-transform: uppercase; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 180; max-width: 460px; background: var(--charcoal-2); color: rgba(255,255,255,.85); border: 1px solid var(--line-light); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-size: 14px; animation: fadeIn .4s var(--ease); }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .article-layout { grid-template-columns: 56px minmax(0, 720px); }
  .article-aside { display: none; }
  .toc-inline { display: block; }
}
@media (max-width: 1080px) {
  :root { --header-h: 70px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto !important; gap: 10px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .most-read { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .feature-inner, .lead-card, .contact-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-rail { display: none; }
  .most-read-list { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(0deg, rgba(12,12,12,.96) 8%, rgba(12,12,12,.55) 55%, rgba(12,12,12,.35) 100%); }
  .hero-content { justify-content: flex-end; padding-bottom: 110px; }
  .hero-media img { object-position: 65% center; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .logo-text { font-size: 17px; }
  .logo-text small { font-size: 12px; }
  .logo-slash { height: 40px; }
  .header-cta, .header-divider { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero { height: max(620px, 88svh); }
  .hero-links { display: none; }
  .hero-controls { margin: 0 auto 0 0; }
  .hero-bar { padding-bottom: 20px; }
  .cinema-card { flex-basis: 82%; }
  .row-track { gap: 14px; }
  .compact-card { grid-template-columns: auto 96px 1fr; gap: 12px; }
  .compact-card .rank { font-size: 40px; width: 30px; }
  .compact-title { font-size: 16px; }
  .prose { font-size: 17.5px; line-height: 1.72; }
  .article-image { aspect-ratio: 4 / 3; border-radius: 0; }
  .article-figure { padding: 0; }
  .article-byline { flex-direction: column; gap: 12px; }
  .author-box { flex-direction: column; }
  .prev-next { grid-template-columns: 1fr; gap: 0; }
  .pn-next { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-title { font-size: 22px; gap: 12px; }
  .section-title .rule { width: 32px; }
  .section-head .link-gold { font-size: 12px; }
  .search-page-form { flex-direction: column; }
  .cookie-banner { max-width: none; }
}

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

@media print {
  .site-header, .site-footer, .article-rail, .article-aside, .share, .related, .cookie-banner, .read-progress, .prev-next { display: none !important; }
  body { background: #fff; }
}
