/* =====================================================================
   Discover Brief — "Obsidian & Gold" theme
   Bold dark premium design system.
   Near-black charcoal UI, huge headlines, warm gold accent with glow,
   sleek dark cards. Space Grotesk display + Inter body + JetBrains Mono.
   Fully responsive (single source of truth — no legacy overrides).
   Nav breakpoint is 650/651px to match the header JS.
   ===================================================================== */

:root {
  /* Backgrounds / surfaces */
  --bg:          #0a0b0d;
  --bg-2:        #0e1014;
  --surface:     #14161b;
  --surface-2:   #1a1d24;
  --surface-3:   #22262f;

  /* Lines */
  --line:        rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --ink:         #f5f6f8;   /* near white */
  --ink-soft:    #c9cdd6;
  --muted:       #8b909c;
  --faint:       #626875;

  /* Gold accent */
  --gold:        #f7c948;
  --gold-bright: #ffd873;
  --gold-deep:   #f0a020;
  --gold-ink:    #f8d571;
  --gold-soft:   rgba(247, 201, 72, 0.12);
  --gold-line:   rgba(247, 201, 72, 0.35);
  --gold-glow:   rgba(247, 201, 72, 0.28);

  /* Type */
  --display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --body:    'Inter', 'Segoe UI', Arial, sans-serif;
  --mono:    'JetBrains Mono', 'IBM Plex Mono', Consolas, monospace;

  /* Elevation */
  --radius:    16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow:    0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --ring:      0 0 0 4px rgba(247, 201, 72, 0.25);

  --gradient-gold: linear-gradient(135deg, #ffd873 0%, #f0a020 100%);
}

/* ---------- Reset / base ---------- */
html, body { max-width: 100vw; overflow-x: hidden; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  font-family: var(--body);
  color: var(--ink-soft);
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(247, 201, 72, 0.12), transparent 58%),
    radial-gradient(900px 520px at -6% 2%, rgba(240, 160, 32, 0.08), transparent 55%),
    radial-gradient(760px 560px at 50% 112%, rgba(247, 201, 72, 0.06), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4,
.brand-name, .footer-brand-name { font-family: var(--display); color: var(--ink); letter-spacing: -0.02em; }

a { color: var(--gold); text-decoration: none; text-underline-offset: 0.18em; transition: color 0.18s; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible { outline: 3px solid var(--gold) !important; outline-offset: 3px; border-radius: 4px; }

.container { width: min(92%, 1200px); margin: 0 auto; }

/* ---------- Ads (kept functional, hidden until filled) ---------- */
.ad-placement { display: none; margin: 1rem auto; text-align: center; }
.ad-placement.is-filled { display: block; }
.ad-placement.hidden { display: none; }
.ad-label {
  display: block; margin-bottom: 0.35rem; color: var(--muted);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.ad-container { display: flex; justify-content: center; align-items: center; min-height: 250px; }
.article-inline-ad { clear: both; margin: 2rem 0; }
.related-sidebar-ad { padding: 1rem 0.85rem; border-bottom: 1px solid var(--line); text-align: center; }

/* =====================================================================
   HEADER / NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }

.logo-group { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 2.7rem; height: 2.7rem; flex: 0 0 auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px var(--gold-glow);
}
.brand-name { display: grid; line-height: 0.92; }
.brand-name strong { color: var(--ink); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.03em; }
.brand-name span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.logo { font-size: 1.6rem; color: var(--ink); font-weight: 700; }

/* Desktop nav */
.main-nav > ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; background: transparent; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a,
.nav-dropdown-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: none; border-radius: 999px;
  background: none; color: var(--ink-soft);
  font-family: var(--body); font-size: 0.96rem; font-weight: 600;
  cursor: pointer; text-align: left; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.main-nav > ul > li > a:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle { background: var(--gold-soft); color: var(--gold-bright); }
.nav-icon {
  display: block; width: 1.1rem; height: 1.1rem; flex: 0 0 auto;
  fill: none; stroke: var(--muted); stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.2s, transform 0.2s;
}
.main-nav > ul > li > a:hover .nav-icon,
.nav-dropdown-toggle:hover .nav-icon,
.nav-dropdown.open .nav-dropdown-toggle .nav-icon { stroke: var(--gold); transform: translateY(-1px); }

.nav-caret {
  display: inline-block; width: 0.46rem; height: 0.46rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg); transition: transform 0.2s;
}
.nav-dropdown.open .nav-caret,
.mobile-submenu-toggle[aria-expanded="true"] .nav-caret { transform: translateY(2px) rotate(225deg); }

/* Desktop dropdown */
.nav-submenu {
  position: absolute; top: calc(100% + 0.6rem); left: 0; z-index: 1200;
  min-width: 240px; padding: 0.5rem; list-style: none;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-dropdown-legal .nav-submenu { right: 0; left: auto; }
.nav-submenu::before { content: ""; position: absolute; right: 0; bottom: 100%; left: 0; height: 0.65rem; }
.nav-dropdown.open .nav-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.nav-submenu li a {
  display: block; padding: 0.62rem 0.8rem;
  border-radius: 10px; color: var(--ink-soft);
  font-size: 0.94rem; font-weight: 600; line-height: 1.35; text-decoration: none; white-space: nowrap;
}
.nav-submenu li a:hover,
.nav-submenu li a:focus-visible { background: var(--gold-soft); color: var(--gold-bright); outline: none; }

/* CTA (optional) */
.cta-li { display: none; }
.cta-btn {
  margin-left: 0.8rem; padding: 0.55em 1.4em;
  border: none; border-radius: 999px;
  background: var(--gradient-gold); color: var(--bg) !important;
  font-weight: 700; font-size: 0.95rem; cursor: pointer;
  box-shadow: 0 8px 22px var(--gold-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--gold-glow); }
.desktop-cta { display: inline-block; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer; z-index: 2001;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hamburger:hover { border-color: var(--gold); box-shadow: var(--ring); }
.hamburger span { display: block; width: 20px; height: 2.5px; margin: 0 auto; border-radius: 2px; background: var(--ink); transition: all 0.25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--gold); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--gold); }

/* Mobile drawer */
@media (max-width: 650px) {
  .site-header { padding: 0.6rem 0 0; }
  .nav-container { padding-bottom: 0.6rem; }
  .brand-name strong { font-size: 1.12rem; }
  .brand-name span { font-size: 0.62rem; letter-spacing: 0.2em; }
  .brand-mark { width: 2.35rem; height: 2.35rem; }
  .main-nav { display: none; }
  .desktop-cta { display: none; }
  .cta-li { display: block; }
  .hamburger { display: flex; }
  #mobileDrawerNav {
    display: block; width: 100%;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
  }
  #mobileDrawerNav[hidden] { display: none; }
  #mobileDrawerNav > ul {
    display: block; width: 92%; max-width: 1200px; margin: 0 auto;
    padding: 0.4rem 0 0.7rem; list-style: none;
  }
  #mobileDrawerNav > ul > li { width: 100%; }
  #mobileDrawerNav > ul > li > a,
  .mobile-submenu-toggle {
    display: flex; align-items: center; gap: 0.7rem; width: 100%;
    padding: 0.8rem 0.35rem;
    border: none; border-bottom: 1px solid var(--line);
    background: transparent; color: var(--ink);
    font-family: var(--body); font-size: 1rem; font-weight: 600;
    line-height: 1.35; text-align: left; text-decoration: none;
    transition: color 0.18s, padding-left 0.18s;
  }
  .mobile-submenu-toggle { justify-content: space-between; cursor: pointer; }
  .mobile-nav-label { display: flex; align-items: center; gap: 0.7rem; }
  #mobileDrawerNav .nav-icon { width: 1.2rem; height: 1.2rem; }
  #mobileDrawerNav > ul > li:last-child > a,
  #mobileDrawerNav > ul > li:last-child > .mobile-submenu-toggle { border-bottom: 0; }
  #mobileDrawerNav > ul > li > a:hover,
  #mobileDrawerNav > ul > li > a:focus-visible,
  .mobile-submenu-toggle:hover,
  .mobile-submenu-toggle:focus-visible { color: var(--gold); padding-left: 0.7rem; outline: none; }
  #mobileDrawerNav > ul > li > a:hover .nav-icon,
  .mobile-submenu-toggle:hover .nav-icon { stroke: var(--gold); }
  .mobile-submenu {
    margin: 0.2rem 0 0.5rem 0.5rem; padding: 0.2rem 0 0.2rem 0.85rem;
    border-left: 3px solid var(--gold-line); list-style: none;
  }
  .mobile-submenu[hidden] { display: none; }
  .mobile-submenu li a {
    display: block; padding: 0.55rem 0.6rem;
    color: var(--muted); font-size: 0.94rem; font-weight: 600; line-height: 1.35; text-decoration: none;
  }
  .mobile-submenu li a:hover,
  .mobile-submenu li a:focus-visible { color: var(--gold); outline: none; }
}
@media (min-width: 651px) {
  #mobileDrawerNav { display: none !important; }
  .main-nav { display: block; }
  .desktop-cta { display: inline-block; }
  .hamburger { display: none !important; }
}

/* =====================================================================
   HOME — featured hero
   ===================================================================== */
main { display: block; }

.featured {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
  margin: 2.4rem auto 0; min-height: 460px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.featured-content {
  order: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(2rem, 4vw, 3.6rem);
  background:
    radial-gradient(560px 320px at 0% 0%, rgba(247, 201, 72, 0.12), transparent 60%),
    var(--surface);
  text-align: left;
}
.featured > img {
  order: 2; display: block; width: 100%; height: 100%;
  min-height: 460px; object-fit: cover; filter: saturate(1.02) contrast(1.03);
}
.featured::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px;
  background: var(--gradient-gold); box-shadow: 0 0 24px var(--gold-glow);
}
.featured-kicker,
.section-kicker,
.archive-kicker,
.related-kicker,
.article-author-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.9rem; padding: 0.34rem 0.7rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.featured-content h1 {
  max-width: 15ch; margin: 0 0 1rem; color: var(--ink);
  font-size: clamp(2.3rem, 3.8vw, 3.6rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -0.03em; text-wrap: balance;
}
.featured-content > p:not(.featured-kicker) {
  max-width: 46ch; margin: 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65;
}

/* Shared button */
.read-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 46px; margin-top: 1.6rem; padding: 0.72rem 1.5rem;
  border: none; border-radius: 999px;
  background: var(--gradient-gold); color: var(--bg);
  font-family: var(--body); font-size: 0.98rem; font-weight: 700; line-height: 1; text-decoration: none;
  box-shadow: 0 12px 28px var(--gold-glow);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.read-more::after { content: "\2192"; font-size: 1.1rem; transition: transform 0.2s; }
.read-more:hover { color: var(--bg); transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 36px var(--gold-glow); }
.read-more:hover::after { transform: translateX(4px); }

/* =====================================================================
   HOME — recent posts grid
   ===================================================================== */
.recent-posts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem; margin: 0 auto 2rem; padding-top: 3.4rem; align-items: stretch;
}
.section-heading { grid-column: 1 / -1; margin-bottom: 0.4rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.1; }
.section-heading > p { margin: 0.4rem 0 0; color: var(--muted); font-size: 1.02rem; }

.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-width: 0; height: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--gold-line);
}
.post-image-link { display: block; line-height: 0; overflow: hidden; background: var(--surface-2); }
.post-card img { display: block; width: 100%; height: 210px; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover img { transform: scale(1.05); }
.tag,
.tag.web, .tag.responsive, .tag.writing {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 0.34em 0.85em; border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(10, 11, 13, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--gold-ink); font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.tag:hover { background: var(--gradient-gold); color: var(--bg); }
.post-content { display: flex; flex-direction: column; flex-grow: 1; padding: 1.25rem 1.35rem 1.5rem; }
.post-card-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  min-width: 0; margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.post-meta, .post-byline { min-width: 0; margin: 0; color: var(--muted); font-size: 0.82rem; }
.post-date {
  display: inline-flex; align-items: center; gap: 0.4rem; flex: 0 0 auto;
  color: var(--muted); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; white-space: nowrap;
}
.post-date::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold-glow); flex: 0 0 auto; }
.post-content h3 { margin: 0; font-size: 1.2rem; line-height: 1.34; text-wrap: balance; }
.post-content h3 a {
  display: -webkit-box; overflow: hidden; color: var(--ink); text-decoration: none;
  -webkit-box-orient: vertical; -webkit-line-clamp: 4; transition: color 0.18s;
}
.post-content h3 a:hover { color: var(--gold); }
.post-author-link, .blog-author-link, .related-meta a { color: inherit; font-weight: 600; text-decoration: none; }
.post-author-link:hover, .related-meta a:hover { color: var(--gold); }

/* =====================================================================
   Pagination
   ===================================================================== */
.home-pagination { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 1.5rem auto 4rem; }
.pagination-pages { display: flex; align-items: center; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.pagination-control, .pagination-page {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft);
  font-family: var(--body); font-weight: 700; line-height: 1; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}
.pagination-control { gap: 0.45rem; padding: 0.7rem 1rem; }
.pagination-page { width: 44px; height: 44px; }
.pagination-control:not(.is-disabled):hover,
.pagination-page:not(.is-current):hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
.pagination-page.is-current { border-color: transparent; background: var(--gradient-gold); color: var(--bg); box-shadow: 0 10px 22px var(--gold-glow); }
.pagination-control.is-disabled { background: var(--bg-2); color: var(--faint); box-shadow: none; cursor: not-allowed; }

/* =====================================================================
   BLOG DETAIL — layout
   ===================================================================== */
.blog-main-layout { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.4rem; margin: 2.2rem auto 3.5rem; }
.blog-detail-content { flex: 1 1 0; min-width: 0; }
.blog-article {
  overflow: hidden; padding: clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.blog-article .blog-header { text-align: left; margin-bottom: 1.6rem; }
.blog-title {
  margin: 0; color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance;
}
.blog-meta { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.6rem; margin: 1.4rem 0 0; padding: 0; border: none; background: transparent; }
.blog-meta::before { content: none; }
.blog-meta-item {
  display: flex; align-items: center; gap: 0.55rem; min-width: 0; padding: 0.6rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink-soft);
  text-decoration: none; transition: border-color 0.18s, background 0.18s;
}
.blog-meta-item:hover { border-color: var(--gold-line); background: var(--surface-3); }
.blog-meta-label { display: block; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.blog-meta-value { display: block; color: var(--ink); font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.blog-category:hover .blog-meta-value,
.blog-author-link:hover .blog-meta-value { color: var(--gold); }
.blog-author-link { gap: 0.55rem; }
.blog-author-avatar { display: block; width: 34px; height: 34px; flex: 0 0 auto; border: 2px solid var(--surface-3); border-radius: 50%; object-fit: cover; }
.blog-header .blog-hero { width: 100%; max-height: 460px; margin-top: 1.6rem; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow-sm); }
.editorial-notice {
  margin: 0 0 1.8rem; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--gold-soft); color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65;
}
.editorial-notice strong { color: var(--gold-ink); }

/* Article content */
.blog-content { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.8; }
.blog-content h2 { margin: 2.4rem 0 0.8rem; color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; }
.blog-content h3 { margin: 1.7rem 0 0.6rem; color: var(--gold-ink); font-size: 1.28rem; }
.blog-content p { margin: 0 0 1.15rem; }
.blog-content a { color: var(--gold); text-decoration: underline; }
.blog-content a:hover { color: var(--gold-bright); }
.blog-content ul, .blog-content ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.blog-content li { margin: 0.5em 0; }
.blog-content strong { color: var(--ink); }
.blog-content blockquote,
.blog-content .quick-answer,
.blog-content .decision-box,
.blog-content .field-note {
  margin: 1.8rem 0; padding: 1.3rem 1.5rem;
  border: 1px solid var(--line-strong); border-left: 5px solid var(--gold); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
}
.blog-content blockquote { font-size: 1.12rem; }
.blog-content .quick-answer strong,
.blog-content .decision-box strong,
.blog-content .field-note strong { color: var(--gold-ink); }
.blog-content .quick-answer p:last-child,
.blog-content .decision-box p:last-child,
.blog-content .field-note p:last-child,
.blog-content blockquote p:last-child { margin-bottom: 0; }

.table-wrapper { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); }
.blog-content table, .legal-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: 0.96rem; color: var(--ink-soft); }
.blog-content th, .blog-content td,
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 0.8rem 0.9rem; text-align: left; vertical-align: top; }
.blog-content th, .legal-table th { background: var(--surface-3); color: var(--gold-ink); font-family: var(--display); font-weight: 700; }
.blog-content tbody tr:nth-child(even) { background: var(--surface-2); }
.blog-image { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--radius); margin: 1.7rem 0; box-shadow: var(--shadow-sm); }

/* Author box */
.article-author-box {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.4rem; align-items: center;
  margin-top: 3rem; padding: 1.5rem;
  border: 1px solid var(--line-strong); border-left: 5px solid var(--gold); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--shadow-sm);
}
.article-author-photo-link { display: block; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow-sm); }
.article-author-photo-link img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.article-author-kicker { margin: 0 0 0.5rem; }
.article-author-copy h2 { margin: 0; color: var(--ink); font-size: 1.4rem; line-height: 1.2; }
.article-author-copy h2 a, .article-author-archive-link { color: inherit; text-decoration: none; }
.article-author-role { margin: 0.25rem 0 0.6rem; color: var(--gold-ink); font-size: 0.9rem; font-weight: 700; }
.article-author-copy > p:not(.article-author-kicker):not(.article-author-role) { margin: 0 0 0.7rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.article-author-archive-link { color: var(--gold); font-size: 0.94rem; font-weight: 700; }
.article-author-copy h2 a:hover, .article-author-archive-link:hover { color: var(--gold-bright); }

/* Related sidebar */
.related-blogs {
  flex: 0 0 350px; max-width: 350px; width: 100%; margin: 0;
  position: sticky; top: 100px; align-self: flex-start; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.related-heading { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.related-kicker { margin-bottom: 0.4rem; }
.related-title { margin: 0; color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1.25; text-align: left; }
.related-list { display: grid; grid-template-columns: 1fr; gap: 0.7rem; padding: 0.85rem; }
.related-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); width: 100%; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.related-card:hover { border-color: var(--gold-line); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-image-link { display: block; min-width: 0; height: 100%; background: var(--surface-3); }
.related-card img { display: block; width: 100%; height: 100%; min-height: 92px; object-fit: cover; }
.related-content { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; min-width: 0; padding: 0.65rem 0.75rem; }
.related-category { overflow: hidden; color: var(--gold-ink); font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.related-link {
  display: -webkit-box; overflow: hidden; color: var(--ink);
  font-size: 0.92rem; font-weight: 700; line-height: 1.35; text-decoration: none; text-wrap: balance;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3; transition: color 0.18s;
}
.related-link:hover { color: var(--gold); }

/* =====================================================================
   ARCHIVE (category) + AUTHOR
   ===================================================================== */
.archive-main { padding: 2.4rem 0 4.5rem; }
.archive-hero, .author-profile {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.archive-hero::after, .author-profile::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px;
  background: var(--gradient-gold); box-shadow: 0 0 24px var(--gold-glow);
}
.archive-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  background: radial-gradient(520px 280px at 100% 0%, rgba(247, 201, 72, 0.12), transparent 60%), var(--surface);
}
.archive-hero h1, .author-profile h1 { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.035em; }
.archive-intro { max-width: 760px; margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.archive-count {
  flex: 0 0 auto; padding: 0.5rem 1rem; border: 1px solid var(--gold-line); border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink); font-family: var(--mono); font-size: 0.85rem; font-weight: 700; white-space: nowrap;
}
.archive-section { margin-top: 2.6rem; }
.archive-section-header { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.3rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.archive-section-header h2 { margin: 0; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.archive-section-header p { margin: 0; color: var(--muted); }
.archive-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; align-items: stretch; }
.archive-post-grid .post-card { width: 100%; max-width: none; min-width: 0; }

.author-profile { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 2.2rem; align-items: start; padding: clamp(1.8rem, 4vw, 2.8rem); }
.author-portrait { display: block; width: 160px; aspect-ratio: 1; border: 3px solid var(--surface-3); border-radius: 22px; object-fit: cover; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gold-line); }
.author-profile-copy > p { max-width: 850px; color: var(--ink-soft); }
.author-role { margin: 0.55rem 0 1rem; color: var(--gold-ink); font-weight: 700; }
.author-facts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.author-facts span { padding: 0.42rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--gold-ink); font-family: var(--mono); font-size: 0.82rem; font-weight: 600; }
.author-standards { padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
.author-standards a { color: var(--gold); font-weight: 600; text-decoration: none; }
.author-standards a:hover { color: var(--gold-bright); }

/* =====================================================================
   STATIC PAGES — about / contact / legal (shared editorial shell)
   ===================================================================== */
.about-main { width: min(92%, 1000px); margin: 2.5rem auto 4.5rem; }
.about-hero-card {
  position: relative; overflow: hidden; margin: 0 0 1.4rem; padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: radial-gradient(520px 280px at 100% 0%, rgba(247, 201, 72, 0.12), transparent 60%), var(--surface);
  box-shadow: var(--shadow); text-align: left;
}
.about-hero-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--gradient-gold); box-shadow: 0 0 24px var(--gold-glow); }
.about-logo-group { display: flex; align-items: center; justify-content: flex-start; gap: 0.9rem; margin-bottom: 1rem; }
.about-brand-mark { display: block; width: 3.4rem; height: 3.4rem; flex: 0 0 auto; border-radius: 14px; object-fit: contain; box-shadow: 0 8px 20px var(--gold-glow); }
.about-hero-card .logo { margin: 0; color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.05; font-weight: 700; text-align: left; }
.about-hero-lead { max-width: 64ch; margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 1.14rem; line-height: 1.65; text-align: left; }
.about-section, .about-contact {
  margin: 0 0 1.4rem; padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm);
}
.about-section:last-child, .about-contact:last-child { margin-bottom: 0; }
.about-title { margin: 0 0 0.8rem; color: var(--ink); font-size: 1.5rem; font-weight: 700; }
.about-highlight { color: var(--gold); font-weight: 700; }
.about-values-list { margin: 0.4rem 0 1rem; padding-left: 1.3rem; color: var(--ink-soft); font-size: 1.05rem; }
.about-values-list li { margin-bottom: 0.5em; line-height: 1.65; }
.about-values-list strong { color: var(--ink); }
.about-contact-invite { margin-bottom: 0.9rem; color: var(--ink-soft); }
.about-contact-list { list-style: none; padding: 0; margin: 0; }
.about-contact-list li { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6em; font-size: 1.04rem; }
.about-contact-list a { color: var(--gold); font-weight: 600; text-decoration: none; }
.about-contact-list a:hover { color: var(--gold-bright); }

/* Contact */
.contact-wrapper { width: min(92%, 920px); margin: 2.5rem auto 4.5rem; }
.contact-card {
  position: relative; overflow: hidden; width: 100%; padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.contact-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--gradient-gold); box-shadow: 0 0 24px var(--gold-glow); }
.contact-title { margin: 0 0 0.4rem; color: var(--ink); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 700; text-align: left; }
.contact-lead { max-width: 58ch; margin: 0 0 1.7rem; color: var(--ink-soft); font-size: 1.1rem; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 1.7rem; }
.form-row { position: relative; display: flex; flex-direction: column-reverse; }
.form-row input, .form-row textarea {
  width: 100%; padding: 1rem 1.05rem 0.65rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  font-family: inherit; font-size: 1.05rem; outline: none; resize: none; transition: border 0.18s, box-shadow 0.18s;
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--gold); box-shadow: var(--ring); }
.form-row label { position: absolute; left: 1.05rem; top: 1.05rem; color: var(--muted); font-size: 1rem; pointer-events: none; transition: all 0.18s cubic-bezier(.77,0,.18,1); }
.form-row input:focus + label, .form-row input:not(:placeholder-shown) + label,
.form-row textarea:focus + label, .form-row textarea:not(:placeholder-shown) + label {
  top: -0.55em; left: 0.7em; padding: 0 0.35em; background: var(--surface); color: var(--gold); font-size: 0.85rem;
}
.contact-submit {
  margin-top: 0.7rem; padding: 0.75em 2.1em; border: none; border-radius: 999px;
  background: var(--gradient-gold); color: var(--bg); font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 10px 24px var(--gold-glow); cursor: not-allowed; opacity: 0.65;
}
.contact-extra { max-width: 720px; margin: 1.5rem 0 1.9rem; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.75rem; }
.contact-detail { display: flex; align-items: center; gap: 0.6rem; font-size: 1.06rem; color: var(--ink-soft); }
.contact-detail a { color: var(--gold); font-weight: 600; text-decoration: none; }
.contact-detail a:hover { color: var(--gold-bright); }
.contact-icon { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; flex: 0 0 auto; border-radius: 10px; background: var(--gradient-gold); color: var(--bg); font-family: var(--mono); font-size: 0.85rem; font-weight: 700; }
.contact-guidance { max-width: 720px; }
.contact-guidance h2 { margin: 0 0 0.8rem; color: var(--ink); font-size: 1.6rem; }
.contact-guidance ul { padding-left: 1.3rem; color: var(--ink-soft); }
.contact-guidance li { margin: 0.55em 0; line-height: 1.6; }
.contact-guidance strong { color: var(--ink); }

/* Legal / privacy */
.privacy-policy-card {
  position: relative; overflow: hidden; width: min(92%, 940px); margin: 2.5rem auto 4.5rem; padding: clamp(2rem, 5vw, 3.6rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow);
}
.privacy-policy-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--gradient-gold); box-shadow: 0 0 24px var(--gold-glow); }
.privacy-title { margin: 0 0 0.4rem; color: var(--ink); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; font-weight: 700; text-align: left; }
.privacy-meta { margin: 0 0 2.2rem; color: var(--muted); font-family: var(--mono); font-size: 0.8rem; text-align: left; }
.privacy-policy-card section { max-width: 780px; margin-bottom: 1.6rem; }
.privacy-policy-card h2 { margin: 1.4rem 0 0.4rem; color: var(--ink); font-size: 1.4rem; line-height: 1.2; }
.privacy-policy-card p, .privacy-policy-card li { color: var(--ink-soft); font-size: 1.03rem; line-height: 1.72; }
.privacy-policy-card ul { padding-left: 1.35rem; margin: 0.6rem 0 1.1rem; }
.privacy-policy-card li { margin: 0.45em 0; }
.privacy-policy-card a { color: var(--gold); text-decoration: underline; }
.privacy-policy-card a:hover { color: var(--gold-bright); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  position: relative; overflow: hidden; margin-top: 4rem; padding: 3.2rem 0 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(820px 420px at 85% -30%, rgba(247, 201, 72, 0.14), transparent 55%),
    radial-gradient(700px 400px at 0% 0%, rgba(240, 160, 32, 0.08), transparent 55%),
    var(--bg-2);
  color: var(--ink-soft);
}
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient-gold); }
.footer-main { display: grid; grid-template-columns: minmax(320px, 1.4fr) minmax(150px, 0.6fr) minmax(220px, 0.85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-bottom: 2.4rem; }
.footer-about {
  position: relative; overflow: hidden; min-width: 0; padding: 1.6rem 1.7rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.footer-logo-group { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.9rem; }
.footer-mark { width: 3rem; height: 3rem; flex: 0 0 auto; border-radius: 12px; box-shadow: 0 6px 18px var(--gold-glow); }
.footer-brand-name { display: grid; color: var(--ink); line-height: 0.94; }
.footer-brand-name strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.footer-brand-name span { color: var(--gold); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.footer-about-text { max-width: 440px; margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.6; text-align: left; }
.footer-links, .footer-policy { min-width: 0; padding-top: 0.3rem; text-align: left; }
.footer-links h4, .footer-policy h4 { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; color: var(--ink); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-links h4::before, .footer-policy h4::before { content: ""; width: 20px; height: 3px; border-radius: 999px; background: var(--gradient-gold); }
.footer-links ul, .footer-policy ul { list-style: none; padding: 0; }
.footer-links li, .footer-policy li { margin-bottom: 0.55rem; }
.footer-links a, .footer-policy a, .site-footer a { display: inline-flex; color: var(--muted); font-size: 0.98rem; line-height: 1.45; text-decoration: none; transition: color 0.18s, transform 0.18s; }
.footer-links a:hover, .footer-policy a:hover, .site-footer a:hover { color: var(--gold); transform: translateX(3px); }
.footer-bottom { padding: 1.1rem 0 1.3rem; text-align: center; color: var(--faint); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.02em; border-top: 1px solid var(--line); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .blog-main-layout { gap: 1.4rem; }
  .related-blogs { flex-basis: 300px; max-width: 300px; }
  .related-card { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (max-width: 950px) {
  .featured { grid-template-columns: 1fr; }
  .featured > img { order: 1; min-height: 0; max-height: 320px; }
  .featured-content { order: 2; }
  .recent-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-main-layout { flex-direction: column; align-items: stretch; gap: 0; margin-top: 1.4rem; }
  .blog-detail-content { width: 100%; }
  .related-blogs { flex: none; position: static; max-width: 100%; width: 100%; margin-top: 2.2rem; }
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-card { grid-template-columns: 104px minmax(0, 1fr); }
  .author-profile { grid-template-columns: 130px minmax(0, 1fr); gap: 1.6rem; }
  .author-portrait { width: 120px; }
}

@media (max-width: 760px) {
  .site-footer { padding-top: 2.4rem; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.5rem; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .featured { margin-top: 1.2rem; }
  .featured > img { max-height: 240px; }
  .featured-content { padding: 1.7rem 1.35rem 2rem; }
  .featured-content h1 { max-width: none; font-size: 2.05rem; }
  .recent-posts { grid-template-columns: 1fr; gap: 1.4rem; padding-top: 2.6rem; }
  .home-pagination { gap: 0.3rem; margin-bottom: 3rem; }
  .pagination-label { display: none; }
  .pagination-control { width: 44px; padding: 0; }

  .blog-article { padding: 1.2rem; border-radius: var(--radius); }
  .blog-title { font-size: 1.85rem; }
  .blog-content { font-size: 1rem; }
  .blog-meta-item { flex: 1 1 auto; }
  .related-list { grid-template-columns: 1fr; }
  .related-card { grid-template-columns: 110px minmax(0, 1fr); }

  .archive-main { padding: 1.4rem 0 3rem; }
  .archive-hero { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .archive-section-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .archive-post-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .author-profile { grid-template-columns: 1fr; gap: 1.3rem; }
  .author-portrait { width: 110px; }

  .article-author-box { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .article-author-photo-link { width: 104px; }

  .footer-main { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-about { grid-column: auto; }
}

/* =====================================================================
   NEW LAYOUT + MOTION LAYER
   Home hero / topic strip / bento grid, article reading column,
   reading-progress bar, header-on-scroll, scroll-reveal + counters.
   ===================================================================== */

/* Reading progress bar (article pages) */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1400;
  height: 3px; background: rgba(255, 255, 255, 0.06);
}
.read-progress span {
  display: block; width: 0; height: 100%;
  background: var(--gradient-gold); box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.1s linear;
}

/* Header condenses on scroll */
.site-header { transition: padding 0.28s ease, background 0.28s ease, box-shadow 0.28s ease; }
.site-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(10, 11, 13, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@media (max-width: 650px) { .site-header.scrolled { padding: 0.45rem 0 0; } }

/* ---------- Home: immersive hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(78vh, 660px);
  margin-top: 1.6rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.06); animation: heroPan 22s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.2) 0%, rgba(10, 11, 13, 0.55) 46%, rgba(10, 11, 13, 0.96) 100%),
    radial-gradient(760px 420px at 12% 108%, rgba(247, 201, 72, 0.22), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem;
  padding: 0.38rem 0.8rem; border: 1px solid var(--gold-line); border-radius: 999px;
  background: rgba(10, 11, 13, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--gold-ink); font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-title {
  max-width: 20ch; margin: 0 0 1rem; color: #fff;
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.04em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}
.hero-lead { max-width: 56ch; margin: 0 0 1.6rem; color: #e6e8ec; font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.6; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 4vw, 3.2rem);
  margin: 2.4rem 0 0; padding: 1.5rem 0 0; list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-stats li { display: grid; gap: 0.15rem; }
.hero-stat-num { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 700; color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.hero-stat-num--text { font-size: clamp(1.3rem, 2.2vw, 1.9rem); color: #fff; }
.hero-stat-label { color: #b9bdc6; font-family: var(--mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

@keyframes heroPan { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -2%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; transform: scale(1.02); } }

/* ---------- Home: topic strip ---------- */
.topic-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.topic-strip-label { margin-right: 0.4rem; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.topic-strip ul { display: flex; flex-wrap: wrap; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.topic-chip {
  display: inline-flex; padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft);
  font-size: 0.86rem; font-weight: 600; text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s, transform 0.18s;
}
.topic-chip:hover { color: var(--bg); background: var(--gradient-gold); border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 20px var(--gold-glow); }

/* ---------- Home: posts section + bento grid ---------- */
.posts { margin-top: 3.4rem; }
.posts-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: 1.6rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line);
}
.posts-head h2 { margin: 0.3rem 0 0; color: var(--ink); font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.posts-head-sub { max-width: 42ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: stretch; }

/* Card excerpt + footer */
.post-excerpt {
  display: -webkit-box; overflow: hidden; margin: 0.7rem 0 0;
  color: var(--muted); font-size: 0.95rem; line-height: 1.55;
  -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.post-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-top: auto; padding-top: 1rem;
}
.post-read { color: var(--muted); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.02em; }
.post-readlink { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--gold); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.post-readlink span { transition: transform 0.2s; }
.post-card:hover .post-readlink { color: var(--gold-bright); }
.post-card:hover .post-readlink span { transform: translateX(4px); }

/* Spotlight (first) card spans the full row, horizontal on wide screens */
.post-card--spotlight { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-card--spotlight .post-image-link { height: 100%; }
.post-card--spotlight .post-image-link img { height: 100%; min-height: 340px; aspect-ratio: auto; }
.post-card--spotlight .post-content { padding: clamp(1.5rem, 3vw, 2.4rem); }
.post-card--spotlight h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); -webkit-line-clamp: 3; }
.post-card--spotlight .post-excerpt { font-size: 1.02rem; -webkit-line-clamp: 4; }
.post-card--spotlight .tag { top: 18px; left: 18px; }

/* ---------- Article: centered reading column, related grid below ---------- */
.blog-main-layout { display: block; max-width: 1120px; }
.blog-detail-content { max-width: 820px; margin: 0 auto; }
.blog-article .blog-header { text-align: center; }
.blog-title { margin-left: auto; margin-right: auto; }
.blog-meta { justify-content: center; }
.related-blogs {
  flex: none; position: static; max-width: 1120px; width: 100%;
  margin: 3rem auto 0; top: auto;
}
.related-heading { text-align: center; }
.related-title { text-align: center; }
.related-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related-card { grid-template-columns: 1fr; }
.related-image-link { aspect-ratio: 16 / 10; height: auto; }
.related-card img { min-height: 0; }
.related-content { padding: 0.85rem 0.9rem 1rem; }

@media (max-width: 950px) {
  .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .hero { min-height: 0; align-items: stretch; }
  .hero-inner { padding: 12rem 0 1.8rem; }
  .hero-stats { gap: 1.2rem 2rem; }
  .posts-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .posts-grid { grid-template-columns: 1fr; gap: 1.35rem; }
  .post-card--spotlight { grid-template-columns: 1fr; }
  .post-card--spotlight .post-image-link { height: auto; }
  .post-card--spotlight .post-image-link img { height: 210px; min-height: 0; aspect-ratio: 16 / 9; }
  .related-list { grid-template-columns: 1fr; }
}
@media (min-width: 951px) and (max-width: 1100px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   INNER PAGES — legal/policy docs, about, contact
   ===================================================================== */

/* ---------- Legal / policy document layout ---------- */
.privacy-policy-card {
  width: min(92%, 1140px);
  margin: 2.5rem auto 4.5rem;
  padding: 0;
  border: 0; background: transparent; box-shadow: none;
}
.privacy-policy-card::after { content: none; }

/* Header band */
.privacy-policy-card .privacy-title,
.privacy-policy-card > .privacy-title {
  margin: 0 0 0.7rem;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
}
.privacy-policy-card > .privacy-meta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.6rem; padding: 0.4rem 0.85rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
  background: var(--gold-soft); color: var(--gold-ink);
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em;
}
.privacy-policy-card > .privacy-meta strong { color: var(--gold-ink); font-weight: 700; }

/* Two-column shell (built by JS; degrades to single column without it) */
.legal-columns {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2.4rem;
  align-items: start;
  margin-top: 1.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal-toc {
  position: sticky; top: 90px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.legal-toc-title { margin: 0 0 0.7rem; color: var(--muted); font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.legal-toc ul { display: grid; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.legal-toc a {
  display: block; padding: 0.5rem 0.7rem;
  border-left: 2px solid transparent; border-radius: 0 8px 8px 0;
  color: var(--muted); font-size: 0.85rem; font-weight: 600; line-height: 1.35;
  text-decoration: none; transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.legal-toc a:hover { color: var(--ink); background: var(--surface-2); }
.legal-toc a.active { color: var(--gold); border-left-color: var(--gold); background: var(--gold-soft); }

.legal-body { display: grid; gap: 1.1rem; }

/* Section cards (apply with or without the column shell) */
.privacy-policy-card section {
  max-width: none; margin: 0; scroll-margin-top: 92px;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line); border-left: 4px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.privacy-policy-card section:hover { border-left-color: var(--gold); box-shadow: var(--shadow); }
.privacy-policy-card section h2 { margin: 0 0 0.7rem; color: var(--ink); font-size: 1.3rem; }
.privacy-policy-card section p:last-child,
.privacy-policy-card section ul:last-child { margin-bottom: 0; }

@media (max-width: 950px) {
  .legal-columns { grid-template-columns: 1fr; gap: 1.1rem; }
  .legal-toc { position: static; top: auto; }
  .legal-toc ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem; }
}
@media (max-width: 650px) {
  .legal-toc ul { grid-template-columns: 1fr; }
}

/* ---------- About page: hero full width, info sections side by side ---------- */
.about-main { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }
.about-hero-card { grid-column: 1 / -1; }
.about-contact { grid-column: 1 / -1; }
.about-section { height: 100%; }
@media (max-width: 760px) {
  .about-main { grid-template-columns: 1fr; }
}

/* ---------- Contact page polish ---------- */
.contact-guidance {
  margin-top: 1.6rem; padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line); border-left: 4px solid var(--gold-line); border-radius: var(--radius);
  background: var(--surface-2);
}
.contact-guidance h2 { margin-top: 0; }

/* ---------- Scroll reveal (JS-gated so no-JS still shows content) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].in-view { opacity: 1; transform: none; }

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