/*
Theme Name: Shridhar Patil – Advocate
Version: 8.0
Description: Premium legal portfolio — Cormorant Garamond + DM Sans — Black/Yellow palette
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS — Black / Yellow Palette
═══════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:           #0D0D0D;
  --bg-2:         #1A1A1A;
  --bg-3:         #202020;
  --surface:      rgba(26,26,26,0.85);
  --surface-h:    rgba(32,32,32,0.97);

  /* Brand yellow — kept as --teal/--teal-2 so all existing rules work */
  --teal:         #FFD600;
  --teal-2:       #FFEA70;
  --teal-dim:     rgba(255,214,0,0.07);
  --teal-border:  rgba(255,214,0,0.30);
  --teal-glow:    rgba(255,214,0,0.05);

  /* Neutrals */
  --slate:        #BFBFBF;
  --slate-dim:    rgba(191,191,191,0.08);
  --slate-border: rgba(191,191,191,0.18);
  --light:        #FFFFFF;
  --white:        #FFFFFF;

  /* Text */
  --t1:           #FFFFFF;
  --t2:           #BFBFBF;
  --t3:           #808080;

  /* Borders */
  --border:       #2A2A2A;
  --border-2:     #333333;

  /* On-brand (text ON yellow bg) */
  --on-gold:      #0D0D0D;

  /* Status */
  --green:        #00C853;
  --info:         #00C2FF;
  --warning:      #FF9100;
  --danger:       #FF3D00;

  --radius:       10px;
  --radius-lg:    18px;
  --pad:          100px 7%;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
}

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--t1);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-border); border-radius: 2px; }

/* ═══════════════════════════════════════
   PRE-LOADER
═══════════════════════════════════════ */
.loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
.loader-logo {
  font-family: var(--font-serif);
  font-size: 3rem; color: var(--slate);
  letter-spacing: 0.04em;
}
.loader-bar {
  width: 0; height: 1px; background: var(--teal-2);
  animation: loadBar 1.5s cubic-bezier(.4,0,.2,1) .2s forwards;
}
@keyframes loadBar { to { width: 80px; } }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
.sp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5.5%; height: 68px;
  background: rgba(13,13,13,0.75);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.45s, border-color 0.45s, box-shadow 0.45s;
  opacity: 0; transform: translateY(-10px);
  animation: navReveal 0.65s cubic-bezier(0.22,1,0.36,1) 0.35s forwards;
}
@keyframes navReveal { to { opacity:1; transform:translateY(0); } }
.sp-nav.scrolled {
  background: rgba(13,13,13,0.97);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 2px 40px rgba(0,0,0,.6);
}

/* Brand — diamond ornament */
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand-monogram {
  position: relative;
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--teal-border);
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  background: var(--teal-dim);
  transition: background 0.25s, border-color 0.25s;
}
.nav-brand-monogram span {
  transform: rotate(-45deg);
  font-family: var(--font-serif); font-size: 0.85rem;
  color: var(--slate); font-weight: 600; letter-spacing: 0.02em;
}
.nav-brand:hover .nav-brand-monogram {
  background: var(--teal-dim); border-color: var(--slate);
}
.nav-brand-text { display: flex; flex-direction: column; gap: 2px; }
.nav-brand-name {
  font-family: var(--font-serif);
  font-size: 1.1rem; color: var(--light); line-height: 1;
  letter-spacing: 0.02em; font-weight: 500;
}
.nav-brand-sub {
  font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate); font-weight: 400;
}

/* Nav links */
.nav-links { display: flex; list-style: none; align-items: center; gap: 0; }
.nav-links a {
  display: block; position: relative;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 22px 14px;
  transition: color 0.25s;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 14px; right: 14px;
  height: 2px; background: var(--teal-2);
  transform: scaleX(0); transform-origin: right center;
  transition: transform 0.32s cubic-bezier(0.22,1,0.36,1);
}
.nav-links a:hover, .nav-links a.nav-active { color: var(--t1); }
.nav-links a:hover::after, .nav-links a.nav-active::after {
  transform: scaleX(1); transform-origin: left center;
}

/* CTA */
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-gold);
  background: var(--teal); padding: 8px 18px;
  border: 1px solid var(--teal-2);
  transition: background 0.25s, transform 0.22s, box-shadow 0.25s;
}
.nav-cta::after { content: '→'; font-size: 0.78rem; transition: transform 0.22s; display: inline-block; }
.nav-cta:hover {
  background: var(--teal-2); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,214,0,.25);
}
.nav-cta:hover::after { transform: translateX(3px); }

/* Hamburger */
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  cursor: pointer; width: 36px; height: 36px;
  position: relative; flex-shrink: 0; transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--slate-border); }
.hamburger, .hamburger::before, .hamburger::after {
  display: block; width: 16px; height: 1.5px;
  background: var(--t1); position: absolute;
  left: 50%; margin-left: -8px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s, top 0.3s;
}
.hamburger        { top: 50%; margin-top: -0.75px; }
.hamburger::before { content:''; top: -5px; }
.hamburger::after  { content:''; top:  5px; }
.menu-toggle.is-active .hamburger { background: transparent; }
.menu-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-active .hamburger::after  { transform: rotate(-45deg); top: 0; }

/* Mobile overlay */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(13,13,13,0.98);
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-overlay.is-active { opacity: 1; pointer-events: all; }
.mobile-links { list-style: none; text-align: center; }
.mobile-links a {
  display: block;
  font-family: var(--font-serif); font-size: 2.8rem; font-weight: 400;
  color: var(--t2); padding: 0.45rem 0;
  transition: color 0.25s;
}
.mobile-links a:hover { color: var(--light); }
.mobile-overlay::after {
  content: 'ESC to close';
  position: absolute; bottom: 2.5rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--t3);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.sp-hero {
  min-height: 100vh;
  display: flex; align-items: flex-end;
  padding: 130px 0 0;
  position: relative; overflow: hidden;
  background: var(--bg-3);
}
.sp-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 10% 70%, rgba(255,214,0,.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(26,26,26,.5) 0%, transparent 60%);
}
.sp-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(13,13,13,.93) 45%, rgba(13,13,13,.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 100%; padding: 0 7% 5rem;
  display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: end;
}
.hero-main {}
.hero-tag {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .8s .1s ease forwards;
}
.hero-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--slate); opacity: 0.5; }
.hero-tag span {
  font-size: 0.64rem; color: var(--slate);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300; line-height: 1; letter-spacing: -0.01em;
  color: var(--white); margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .9s .2s ease forwards;
}
.hero-name em { display: block; font-style: italic; color: var(--slate); font-weight: 300; padding-left: clamp(1rem, 3vw, 3rem); }
.hero-title {
  font-size: clamp(.88rem, 1.5vw, 1rem);
  color: var(--t2); margin-bottom: 2rem; line-height: 1.75;
  padding-left: 1rem; border-left: 1px solid rgba(191,191,191,0.2);
  opacity: 0; animation: fadeUp .8s .35s ease forwards;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem;
  opacity: 0; animation: fadeUp .8s .5s ease forwards;
}
.hero-pill {
  font-size: .62rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t2);
  border: 1px solid var(--border-2); padding: 4px 12px;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-pill:hover { background: var(--teal-dim); color: var(--light); border-color: var(--teal-border); }
.hero-intro {
  font-size: 1rem; color: var(--t2);
  max-width: 520px; line-height: 1.95; margin-bottom: 2.6rem;
  opacity: 0; animation: fadeUp .8s .6s ease forwards;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s .75s ease forwards;
}

/* Advocate profile card (right side of hero) */
.hero-card {
  background: rgba(13,13,13,0.88);
  border: 1px solid var(--teal-border);
  padding: 1.8rem;
  backdrop-filter: blur(8px);
  opacity: 0; animation: fadeUp .8s .55s ease forwards;
}
.hc-label {
  font-size: 0.58rem; color: var(--slate);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .6rem;
}
.hc-row { display: flex; flex-direction: column; gap: .7rem; }
.hc-item { display: flex; align-items: flex-start; gap: .6rem; }
.hc-dot { width: 4px; height: 4px; background: var(--teal-2); border-radius: 50%; margin-top: 7px; flex-shrink: 0; }
.hc-text { font-size: .76rem; color: rgba(255,255,255,0.45); line-height: 1.45; font-weight: 300; }

/* Buttons */
.btn-gold {
  font-size: .76rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--on-gold);
  background: var(--teal); padding: 13px 30px;
  border: 1px solid var(--teal-2);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-gold:hover {
  background: var(--teal-2); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,214,0,.3);
}
.btn-ghost {
  font-size: .76rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t2);
  border: 1px solid var(--border-2); padding: 13px 30px;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--slate); color: var(--light); background: var(--slate-dim); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; animation: fadeIn 1s 1.2s ease forwards;
}
.scroll-cue span { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--t3); }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--teal-border), transparent); animation: scrollPulse 2.2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.35} 50%{opacity:.9} }
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:none} }
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }

/* ═══════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-cell {
  padding: 28px 0; text-align: center;
  border-right: 1px solid var(--border);
  transition: background .3s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--teal-glow); }
.stat-num {
  font-family: var(--font-serif); font-size: 2.6rem; font-weight: 300;
  color: var(--light); line-height: 1; margin-bottom: 5px;
}
.stat-label { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--t3); }

/* ═══════════════════════════════════════
   LEGAL QUOTE TICKER
═══════════════════════════════════════ */
.ticker-wrap {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  padding: .65rem 0; overflow: hidden;
  position: relative;
}
.ticker-wrap::before, .ticker-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.ticker-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-3), transparent); }
.ticker-wrap::after  { right: 0; background: linear-gradient(to left, var(--bg-3), transparent); }
.ticker-track {
  display: flex; white-space: nowrap;
  animation: tickScroll 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 2rem;
  padding: 0 2.5rem;
  font-family: var(--font-serif); font-size: .95rem;
  color: rgba(191,191,191,.45); font-style: italic;
}
.ticker-diamond {
  display: inline-block; width: 5px; height: 5px;
  background: var(--teal-2); transform: rotate(45deg); flex-shrink: 0;
}
@keyframes tickScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════════════════
   SECTION COMMONS
═══════════════════════════════════════ */
.sp-section { padding: var(--pad); }
.section-inner { max-width: 1180px; margin: 0 auto; }
.s-eyebrow {
  font-size: .65rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--slate);
  display: flex; align-items: center; gap: 12px; margin-bottom: .6rem;
}
.s-eyebrow::before { content:''; width: 22px; height: 1px; background: var(--teal-2); }
.s-heading {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--light); line-height: 1.15; margin-bottom: 1rem;
}
.s-heading em { color: var(--slate); font-style: italic; }
.s-rule { width: 36px; height: 1px; background: var(--teal-2); margin-bottom: 3rem; }
.s-white { color: var(--white); }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.section-header h2 { font-family: var(--font-serif); font-size: 2rem; color: var(--light); font-weight: 400; }
.section-header span { font-size: .62rem; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; }

/* ═══════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════ */
.about-section { background: var(--bg-2); padding: var(--pad); }
.about-layout { display: grid; grid-template-columns: 320px 1fr; gap: 5.5rem; align-items: start; }
.about-photo-col { position: sticky; top: 82px; }
.about-photo-frame {
  position: relative; overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.about-photo-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; display: block; }
.about-initials-frame {
  aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
}
.about-initials { font-family: var(--font-serif); font-size: 5rem; color: var(--t3); opacity: .5; letter-spacing: .05em; }
.about-badge-strip { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.about-badge {
  background: var(--surface); border: 1px solid var(--border);
  padding: .75rem 1.1rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
}
.badge-key { font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); white-space: nowrap; }
.badge-val { font-size: .8rem; color: var(--t2); text-align: right; line-height: 1.5; }
.avail-badge {
  margin-top: .5rem;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .65rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green);
}
.avail-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: blink 2s ease infinite;
  flex-shrink: 0; box-shadow: 0 0 0 3px rgba(0,200,83,.15);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.about-text-col .about-body p { font-size: .98rem; color: var(--t2); line-height: 1.95; margin-bottom: 1.5rem; }
.about-text-col .about-body p strong { color: var(--t1); font-weight: 600; }
.about-pullquote {
  border-left: 2px solid var(--teal-2); padding: 1.2rem 1.8rem;
  margin: 2rem 0; background: var(--teal-dim);
  font-style: italic; font-size: 1.02rem; color: var(--t1); line-height: 1.85;
}
.about-pullquote cite { display: block; margin-top: .6rem; font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

/* Profile box in about */
.profile-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--bg-3); border-left: 3px solid var(--teal); padding: 1.4rem;
  margin-top: 2rem;
}
.pb-init {
  width: 44px; height: 44px; min-width: 44px;
  border: 1px solid var(--teal-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; color: var(--slate); font-weight: 400;
}
.pb-name { font-family: var(--font-serif); font-size: 1rem; color: var(--light); font-weight: 500; margin-bottom: .25rem; }
.pb-role { font-size: .7rem; color: var(--t2); line-height: 1.5; }

/* ═══════════════════════════════════════
   QUOTE BANNER
═══════════════════════════════════════ */
.quote-banner {
  background: var(--bg-3);
  border-top: 1px solid var(--teal-border);
  border-bottom: 1px solid var(--teal-border);
  padding: 80px 7%; text-align: center;
  position: relative; overflow: hidden;
  /* background-image set inline when admin uploads banner bg */
}
.quote-banner::before {
  content: '"';
  position: absolute; left: 5%; top: 50%; transform: translateY(-60%);
  font-family: var(--font-serif); font-size: 18rem; color: var(--teal);
  opacity: .06; line-height: 1; pointer-events: none; user-select: none;
}
.qb-text {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); color: var(--light);
  max-width: 820px; margin: 0 auto 1.4rem; line-height: 1.65; position: relative;
}
.qb-attr { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--slate); }

/* ═══════════════════════════════════════
   VIDEO SECTION
═══════════════════════════════════════ */
.video-section { background: var(--bg); padding: var(--pad); border-top: 1px solid var(--border); }
.video-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5.5rem; align-items: center; }
.video-text .video-desc { font-size: .98rem; color: var(--t2); line-height: 1.9; margin-bottom: 2rem; }
.video-responsive {
  position: relative; padding-bottom: 56.25%; height: 0;
  overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.video-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.video-player { width: 100%; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* ═══════════════════════════════════════
   PRACTICE / SERVICES — AREAS GRID
═══════════════════════════════════════ */
.practice-section { background: var(--bg); padding: var(--pad); }
.prac-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.prac-photo { position: relative; overflow: hidden; }
.prac-photo img { width: 100%; height: 420px; object-fit: cover; display: block; filter: grayscale(15%) contrast(1.05); }
.prac-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.9) 0%, rgba(13,13,13,.15) 60%);
}
.prac-photo-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.6rem 1.4rem; }
.ppl-quote { font-family: var(--font-serif); font-size: 1rem; color: var(--light); font-style: italic; font-weight: 300; line-height: 1.55; }
.ppl-cite { font-size: .6rem; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; }

/* Areas grid */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); }
.area-item {
  padding: 1.3rem 1.2rem;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: all .22s; cursor: default; background: var(--surface);
}
.area-item:nth-child(2n) { border-right: none; }
.area-item:nth-last-child(-n+2) { border-bottom: none; }
.area-item:hover { background: var(--bg-3); border-color: var(--teal-border); }
.area-item:hover .area-name { color: var(--light); }
.area-item:hover .area-sub  { color: var(--t2); }
.area-num { font-size: .56rem; color: var(--teal-2); letter-spacing: .1em; margin-bottom: .4rem; display: block; font-weight: 500; text-transform: uppercase; }
.area-name { font-family: var(--font-serif); font-size: 1rem; color: var(--t1); font-weight: 500; line-height: 1.3; margin-bottom: .2rem; transition: color .2s; }
.area-sub { font-size: .7rem; color: var(--t3); transition: color .2s; line-height: 1.4; }

/* Legacy bento kept for CPT fallback */
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bento-card:nth-child(1), .bento-card:nth-child(4), .bento-card:nth-child(5) { grid-column: span 2; }
.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  padding: 2.2rem; display: flex; flex-direction: column; min-height: 240px;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s; cursor: pointer;
}
.bento-card:hover {
  border-color: var(--teal-border); background: var(--surface-h);
  transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.bento-card.has-thumb { background-size: cover; background-position: center; }
.bento-card.has-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,13,13,.65) 0%, rgba(13,13,13,.94) 60%); z-index: 0;
}
.bento-card > * { position: relative; z-index: 1; }
.bento-num {
  font-family: var(--font-serif); font-size: 4.5rem; font-weight: 300;
  color: rgba(255,255,255,.05); line-height: 1;
  position: absolute; top: 1rem; right: 1.4rem; z-index: 1;
}
.bento-tag { font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin-bottom: .5rem; }
.bento-title { font-family: var(--font-serif); font-size: 1.45rem; color: var(--light); font-weight: 400; margin-bottom: .7rem; line-height: 1.2; }
.bento-sub { font-size: .8rem; color: var(--t2); line-height: 1.7; flex: 1; }
.bento-link { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-top: 1.2rem; transition: gap .2s, color .2s; }
.bento-card:hover .bento-link { gap: 14px; color: var(--light); }
.bento-services { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .4rem; max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.bento-card:hover .bento-services { max-height: 200px; }
.bento-services-item { font-size: .76rem; color: var(--t2); line-height: 1.6; display: flex; align-items: flex-start; gap: 7px; }
.bento-services-item::before { content: '›'; color: var(--teal-2); flex-shrink: 0; }

/* ═══════════════════════════════════════
   EXPERIENCE / CAREER
═══════════════════════════════════════ */
.exp-section { background: var(--bg-2); padding: var(--pad); }
.exp-cards { display: flex; flex-direction: column; gap: 0; position: relative; margin-top: 3rem; }
.exp-cards::before {
  content: '';
  position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--teal-border) 8%, var(--teal-border) 92%, transparent 100%);
}
.exp-card { display: grid; grid-template-columns: 60px 1fr; gap: 0; padding: 0 0 3.2rem; position: relative; }
.exp-card:last-child { padding-bottom: 0; }
.exp-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--teal-2);
  position: relative; top: 6px; left: 16px; flex-shrink: 0;
  transition: background .3s, box-shadow .3s; z-index: 1;
}
.exp-card:hover .exp-dot { background: var(--teal-2); box-shadow: 0 0 16px rgba(255,234,112,.3); }
.exp-content {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.8rem 2rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.exp-card:hover .exp-content { border-color: var(--teal-border); background: var(--surface-h); box-shadow: 0 8px 36px rgba(0,0,0,.2); }
.exp-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: .4rem; }
.exp-role { font-family: var(--font-serif); font-size: 1.45rem; color: var(--light); font-weight: 400; line-height: 1.2; }
.exp-period {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); background: var(--teal-dim); border: 1px solid var(--teal-border);
  padding: 4px 11px; flex-shrink: 0; white-space: nowrap;
}
.exp-org { font-size: .82rem; color: var(--t2); font-style: italic; margin-bottom: 1.2rem; line-height: 1.5; }
.exp-media { margin: 1rem 0; overflow: hidden; border: 1px solid var(--border); max-width: 460px; }
.exp-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.exp-body p { font-size: .92rem; color: var(--t2); line-height: 1.95; margin-bottom: .8rem; }
.exp-body p:last-child { margin-bottom: 0; }
.exp-body p strong { color: var(--t1); font-weight: 600; }
.exp-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.exp-chip {
  font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--border-2); color: var(--t3); padding: 3px 10px;
  transition: border-color .2s, color .2s;
}
.exp-card:hover .exp-chip { border-color: var(--teal-border); color: var(--t2); }

/* ═══════════════════════════════════════
   EDUCATION
═══════════════════════════════════════ */
.edu-section { background: var(--bg); padding: var(--pad); }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.edu-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2.2rem; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.edu-card:hover { border-color: var(--teal-border); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.edu-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--teal); }
.edu-logo { height: 48px; margin-bottom: 1.2rem; display: flex; align-items: center; }
.edu-logo img { max-height: 100%; max-width: 130px; object-fit: contain; opacity: .75; }
.edu-seq { font-family: var(--font-serif); font-size: 4.5rem; font-weight: 300; color: rgba(255,255,255,.04); line-height: 1; margin-bottom: .8rem; }
.edu-degree { font-family: var(--font-serif); font-size: 1.2rem; color: var(--light); font-weight: 400; margin-bottom: .3rem; }
.edu-spec { font-size: .8rem; color: var(--slate); font-style: italic; margin-bottom: 1.1rem; line-height: 1.5; }
.edu-divider { height: 1px; background: var(--border); margin-bottom: 1.1rem; }
.edu-row { display: flex; align-items: flex-start; gap: 9px; font-size: .8rem; color: var(--t2); margin-bottom: .5rem; line-height: 1.5; }
.edu-icon { flex-shrink: 0; }
.edu-note { margin-top: 1.1rem; background: var(--teal-dim); border-left: 2px solid var(--teal-2); padding: .75rem .9rem; font-size: .76rem; color: var(--t2); font-style: italic; line-height: 1.65; }

/* ═══════════════════════════════════════
   WHY CHOOSE
═══════════════════════════════════════ */
.why-section { background: var(--bg-2); padding: var(--pad); }
.why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.why-photo { position: relative; overflow: hidden; }
.why-photo img { width: 100%; height: 360px; object-fit: cover; display: block; filter: grayscale(20%) contrast(1.1); }
.why-photo::after { content: ''; position: absolute; inset: 0; background: rgba(13,13,13,.45); mix-blend-mode: multiply; }
.why-photo-label { position: absolute; bottom: 1.2rem; left: 1.2rem; right: 1.2rem; z-index: 1; font-size: .6rem; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; }
.why-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); }
.why-item { padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; align-items: flex-start; transition: background .2s; }
.why-item:last-child { border-bottom: none; }
.why-item:hover { background: var(--teal-glow); }
.why-num { font-family: var(--font-serif); font-size: 1.4rem; color: var(--teal-2); font-weight: 300; line-height: 1; min-width: 26px; opacity: .8; }
.why-body {}
.why-title { font-size: .85rem; color: var(--light); font-weight: 500; margin-bottom: .3rem; letter-spacing: .01em; }
.why-text { font-size: .78rem; color: var(--t2); line-height: 1.7; font-weight: 300; }

/* WHY CHOOSE — card grid (fallback layout) */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.why-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2rem; transition: border-color .3s, transform .3s, background .3s;
}
.why-card:hover { border-color: var(--teal-border); transform: translateY(-3px); background: var(--surface-h); }
.why-icon-wrap {
  width: 48px; height: 48px; border: 1px solid var(--teal-border); background: var(--teal-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.2rem;
  transition: background .3s;
}
.why-card:hover .why-icon-wrap { background: rgba(255,214,0,.14); }
.why-card .why-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--light); font-weight: 400; margin-bottom: .55rem; line-height: 1.3; }
.why-card .why-text { font-size: .85rem; color: var(--t2); line-height: 1.85; }

/* ═══════════════════════════════════════
   ARTICLES SECTION
═══════════════════════════════════════ */
.articles-section { background: var(--bg); padding: var(--pad); border-top: 1px solid var(--border); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 0; }
.article-card {
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; transition: all .22s; display: flex; flex-direction: column;
}
.article-card:hover { border-color: var(--teal-border); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.article-card-img { width: 100%; height: 200px; object-fit: cover; display: block; filter: grayscale(10%); transition: filter .3s; }
.article-card:hover .article-card-img { filter: grayscale(0%); }
.article-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-tag {
  display: inline-block; background: var(--teal-dim); color: var(--slate);
  font-size: .6rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem; margin-bottom: .8rem; border: 1px solid var(--teal-border);
}
.article-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--light); margin-bottom: .6rem; font-weight: 400; line-height: 1.4; transition: color .2s; }
.article-card:hover .article-title { color: var(--white); }
.article-excerpt { font-size: .8rem; color: var(--t2); line-height: 1.75; flex: 1; margin-bottom: 1rem; }
.article-meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: .8rem; margin-top: auto; }
.article-date { font-size: .65rem; color: var(--t3); letter-spacing: .04em; }
.article-read { font-size: .65rem; color: var(--slate); font-weight: 500; transition: color .2s; }
.article-card:hover .article-read { color: var(--light); }
.articles-empty {
  grid-column: 1 / -1; text-align: center; padding: 4rem 2rem;
  color: var(--t3); font-style: italic; font-family: var(--font-serif); font-size: 1.1rem;
}

/* ═══════════════════════════════════════
   CONSTITUTIONAL QUOTE
═══════════════════════════════════════ */
.const-quote {
  background: var(--bg-2);
  border-top: 2px solid var(--teal); border-bottom: 1px solid var(--border);
  padding: 60px 7%;
}
.cq-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cq-badge {
  display: inline-block; background: var(--teal-dim); color: var(--slate);
  border: 1px solid var(--teal-border);
  font-size: .56rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .3rem .9rem; margin-bottom: 1.4rem;
}
.cq-text { font-family: var(--font-serif); font-size: 1.45rem; color: var(--light); font-weight: 300; font-style: italic; line-height: 1.6; margin-bottom: .7rem; }
.cq-cite { font-size: .6rem; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-section { background: var(--bg-3); padding: var(--pad); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }
.contact-intro { font-size: .96rem; color: var(--t2); line-height: 1.95; margin-bottom: 2.6rem; }
.c-item { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1.8rem; }
.c-icon-box {
  width: 42px; height: 42px; flex-shrink: 0; border: 1px solid var(--teal-border);
  background: var(--teal-dim); display: flex; align-items: center; justify-content: center; font-size: .95rem;
}
.c-label { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: .2rem; }
.c-val { font-size: .92rem; color: var(--t2); line-height: 1.6; }
.c-val a { color: var(--t2); transition: color .2s; }
.c-val a:hover { color: var(--light); }

/* Contact form */
.contact-form-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--teal); padding: 2.5rem;
}
.cf-heading { font-family: var(--font-serif); font-size: 1.5rem; color: var(--light); margin-bottom: .4rem; font-weight: 400; }
.cf-sub { font-size: .84rem; color: var(--t2); line-height: 1.7; margin-bottom: 1.8rem; }
.cf-row { margin-bottom: 1.1rem; }
.cf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.cf-row label, .cf-2col label { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--t2); margin-bottom: .35rem; }
.cf-row input, .cf-row textarea, .cf-row select,
.cf-2col input, .cf-2col select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2);
  padding: .7rem .9rem; font-family: var(--font-sans); font-size: .87rem; color: var(--t1);
  outline: none; transition: border-color .2s; appearance: none;
}
.cf-row input:focus, .cf-row textarea:focus, .cf-row select:focus,
.cf-2col input:focus, .cf-2col select:focus { border-color: var(--teal-2); }
.cf-row textarea { min-height: 90px; resize: vertical; }
.cf-submit {
  background: var(--teal); color: var(--on-gold); font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; padding: .85rem 2rem;
  border: 1px solid var(--teal-2); cursor: pointer;
  letter-spacing: .1em; text-transform: uppercase;
  width: 100%; margin-top: .4rem;
  transition: background .2s, box-shadow .2s;
}
.cf-submit:hover { background: var(--teal-2); box-shadow: 0 6px 20px rgba(255,214,0,.25); }
.cf-notice {
  margin-top: 1rem; padding: .8rem 1rem;
  font-size: .78rem; line-height: 1.65; display: none;
}
.cf-notice.success { background: rgba(0,200,83,.1); border: 1px solid rgba(0,200,83,.25); color: var(--green); display: block; }
.cf-notice.error   { background: rgba(255,61,0,.1); border: 1px solid rgba(255,61,0,.25); color: #FF3D00; display: block; }
.cf-disclaimer { font-size: .65rem; color: var(--t3); line-height: 1.75; margin-top: 1rem; border-top: 1px solid var(--border); padding-top: .9rem; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.sp-footer {
  background: var(--bg-3); border-top: 1px solid var(--border);
  padding: 2.5rem 7%;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand .footer-name { font-family: var(--font-serif); font-size: 1rem; color: var(--light); line-height: 1; }
.footer-brand .footer-tag { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--t3); margin-top: 3px; }
.footer-nav { display: flex; gap: 2rem; list-style: none; }
.footer-nav a { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--t3); transition: color .2s; }
.footer-nav a:hover { color: var(--slate); }
.footer-copy { font-size: .64rem; color: var(--t3); letter-spacing: .06em; }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-left  { opacity: 0; transform: translateX(-26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-left.is-visible  { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX( 26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-right.is-visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .about-layout { grid-template-columns: 260px 1fr; gap: 3.5rem; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card:nth-child(1), .bento-card:nth-child(4), .bento-card:nth-child(5) { grid-column: span 1; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .why-layout { grid-template-columns: 1fr; }
  .why-photo { display: none; }
  .why-list { grid-column: 1; }
  .prac-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --pad: 72px 6%; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-col { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .video-grid { grid-template-columns: 1fr; gap: 2rem; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .exp-header { flex-direction: column; gap: .4rem; }
  .exp-period { align-self: flex-start; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .sp-footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cf-2col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --pad: 55px 5%; }
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .bento-card:nth-child(n) { grid-column: span 1; }
  .why-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
  .hero-name { font-size: clamp(3rem, 14vw, 5rem); }
  .prac-layout { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .area-item:nth-child(2n) { border-right: 1px solid var(--border); }
  .area-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .area-item:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════
   INNER PAGES — SHARED
═══════════════════════════════════════ */

/* Reading progress bar */
.reading-progress-bar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  transition: width .1s linear;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  min-height: 340px;
  display: flex; align-items: flex-end;
  padding: 120px 7% 64px;
  background: var(--bg-3);
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  transition: transform 12s ease;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(13,13,13,.55) 0%,
    rgba(13,13,13,.80) 50%,
    rgba(13,13,13,.98) 100%
  );
}
.page-hero:hover .page-hero-bg { transform: scale(1); }
.page-hero-inner { position: relative; z-index: 1; max-width: 860px; }
.page-hero-eyebrow {
  font-size: .6rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--slate);
  display: flex; align-items: center; gap: 12px; margin-bottom: .7rem;
}
.page-hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--teal-2); }
.page-hero-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--light); line-height: 1.12; margin-bottom: 1rem;
}
.page-hero-title em { color: var(--slate); font-style: italic; }
.page-hero-meta {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  font-size: .72rem; color: var(--t3); letter-spacing: .06em;
}
.page-hero-meta a { color: var(--t3); text-decoration: none; transition: color .2s; }
.page-hero-meta a:hover { color: var(--slate); }
.page-hero-meta .sep { width: 3px; height: 3px; background: var(--t3); border-radius: 50%; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--t3); margin-bottom: .5rem;
}
.breadcrumb a { color: var(--t3); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--slate); }
.breadcrumb .bc-sep { color: var(--teal-border); }

/* ═══════════════════════════════════════
   SINGLE / ARTICLE PAGE
═══════════════════════════════════════ */
.single-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 72px 7%;
  display: grid; grid-template-columns: 1fr 300px; gap: 4.5rem; align-items: start;
}
.single-article { min-width: 0; }

/* Featured image */
.single-featured {
  width: 100%; aspect-ratio: 16/8;
  object-fit: cover; object-position: center;
  display: block; margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

/* Article typography */
.article-body {
  font-size: 1.05rem; line-height: 1.95;
  color: var(--t2);
}
.article-body h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--light); line-height: 1.2;
  margin: 2.8rem 0 1rem;
}
.article-body h3 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.5rem; color: var(--t1); margin: 2rem 0 .75rem;
}
.article-body h4 {
  font-size: .9rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate); margin: 1.6rem 0 .5rem;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body a { color: var(--slate); text-decoration: underline; text-decoration-color: var(--teal-border); text-underline-offset: 3px; transition: color .2s; }
.article-body a:hover { color: var(--light); }
.article-body blockquote {
  border-left: 2px solid var(--teal-2); padding: 1.1rem 1.8rem;
  margin: 2rem 0; background: var(--teal-dim);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.15rem; color: var(--t1); line-height: 1.8;
}
.article-body blockquote cite {
  display: block; margin-top: .5rem; font-style: normal;
  font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
}
.article-body ul, .article-body ol {
  padding-left: 1.4rem; margin-bottom: 1.5rem;
}
.article-body li { margin-bottom: .5rem; }
.article-body strong { color: var(--t1); font-weight: 600; }
.article-body em { color: var(--t1); }
.article-body hr {
  border: none; border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.article-body img {
  max-width: 100%; height: auto;
  border: 1px solid var(--border); margin: 1.5rem 0;
}
.article-body pre {
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 1.2rem 1.5rem; overflow-x: auto;
  font-size: .85rem; line-height: 1.7; margin-bottom: 1.5rem;
}
.article-body code {
  font-size: .88em;
  background: var(--bg-3); padding: .15em .45em;
  border: 1px solid var(--border);
}
.article-body pre code { background: none; border: none; padding: 0; }

/* Article footer */
.article-footer {
  margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.article-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.article-tag-pill {
  font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--teal-dim); border: 1px solid var(--teal-border);
  color: var(--slate); padding: .35rem .85rem;
}
.article-share { display: flex; align-items: center; gap: .75rem; }
.share-label { font-size: .65rem; color: var(--t3); letter-spacing: .1em; text-transform: uppercase; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border); color: var(--t3);
  text-decoration: none; font-size: .8rem; transition: all .2s;
}
.share-btn:hover { border-color: var(--teal-border); color: var(--slate); background: var(--teal-dim); }

/* Author card */
.author-card {
  display: flex; gap: 1.4rem; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 1.8rem; margin-top: 3rem;
}
.author-avatar {
  width: 64px; height: 64px; min-width: 64px;
  background: var(--bg-3); border: 1px solid var(--teal-border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-init {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--slate); font-weight: 300;
}
.author-info {}
.author-name {
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--light); font-weight: 400;
  margin-bottom: .2rem;
}
.author-role { font-size: .68rem; color: var(--slate); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .7rem; }
.author-bio { font-size: .88rem; color: var(--t2); line-height: 1.75; }

/* Sidebar */
.single-sidebar { position: sticky; top: 88px; }
.sidebar-widget {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 1.6rem; margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: .6rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--t3); margin-bottom: 1.2rem;
  padding-bottom: .7rem; border-bottom: 1px solid var(--border);
}
.toc-list { list-style: none; }
.toc-item { margin-bottom: .55rem; }
.toc-link {
  font-size: .83rem; color: var(--t2); text-decoration: none;
  display: flex; align-items: baseline; gap: .5rem; line-height: 1.4;
  transition: color .2s;
}
.toc-link::before { content: '—'; color: var(--teal-border); font-size: .6rem; flex-shrink: 0; }
.toc-link:hover { color: var(--light); }
.related-list { display: flex; flex-direction: column; gap: 1rem; }
.related-item { display: flex; gap: .9rem; align-items: flex-start; }
.related-thumb {
  width: 64px; height: 52px; min-width: 64px;
  object-fit: cover; border: 1px solid var(--border);
}
.related-thumb-ph {
  width: 64px; height: 52px; min-width: 64px;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: .7rem; color: var(--t3);
}
.related-info {}
.related-date { font-size: .6rem; color: var(--t3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; }
.related-title {
  font-family: var(--font-serif); font-size: .95rem; color: var(--t1); line-height: 1.35;
  text-decoration: none; display: block; transition: color .2s;
}
.related-title:hover { color: var(--slate); }
.sidebar-back-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); text-decoration: none;
  border: 1px solid var(--border); padding: .7rem 1.2rem;
  transition: all .2s; width: 100%; justify-content: center;
}
.sidebar-back-link:hover { border-color: var(--teal-border); background: var(--teal-dim); color: var(--light); }

/* ═══════════════════════════════════════
   ARCHIVE / INDEX PAGE
═══════════════════════════════════════ */
.archive-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 72px 7%;
}
.archive-controls {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.archive-count {
  font-size: .65rem; color: var(--t3); letter-spacing: .12em; text-transform: uppercase;
}
.archive-search-form {
  display: flex; gap: 0; background: var(--bg-2);
  border: 1px solid var(--border); overflow: hidden;
}
.archive-search-input {
  background: transparent; border: none; outline: none;
  padding: .65rem 1rem; font-size: .85rem;
  color: var(--t1); font-family: var(--font-sans);
  width: 220px;
}
.archive-search-input::placeholder { color: var(--t3); }
.archive-search-btn {
  background: var(--teal); border: none; cursor: pointer;
  padding: .65rem 1.1rem; color: var(--on-gold); font-size: .75rem;
  font-family: var(--font-sans); font-weight: 700; letter-spacing: .08em;
  transition: background .2s;
}
.archive-search-btn:hover { background: var(--teal-2); }

/* Archive grid */
.archive-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px;
  margin-bottom: 3.5rem;
}
.archive-card {
  background: var(--bg-2); display: flex; flex-direction: column;
  text-decoration: none; transition: background .25s;
  border: 1px solid var(--border); overflow: hidden;
}
.archive-card:hover { background: var(--bg-3); }
.archive-card:hover .ac-arrow { transform: translate(3px,-3px); }
.ac-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-bottom: 1px solid var(--border); display: block;
}
.ac-img-ph {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-serif); font-size: 2.2rem; color: var(--t3); font-style: italic;
}
.ac-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ac-tag {
  font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); margin-bottom: .6rem;
}
.ac-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.15rem; color: var(--t1); line-height: 1.35;
  margin-bottom: .7rem; flex: 1;
}
.ac-excerpt { font-size: .83rem; color: var(--t3); line-height: 1.7; margin-bottom: 1rem; }
.ac-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .65rem; color: var(--t3); letter-spacing: .06em;
  text-transform: uppercase; margin-top: auto;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.ac-arrow { transition: transform .25s; }

/* Pagination */
.pagination-wrap {
  display: flex; justify-content: center; align-items: center;
  gap: .5rem; margin-top: 3rem;
}
.pagination-wrap .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 .6rem;
  border: 1px solid var(--border); color: var(--t2);
  text-decoration: none; font-size: .82rem;
  transition: all .2s;
}
.pagination-wrap .page-numbers:hover,
.pagination-wrap .page-numbers.current {
  background: var(--teal); border-color: var(--teal); color: var(--light);
}
.pagination-wrap .page-numbers.dots { border-color: transparent; color: var(--t3); }

/* No posts state */
.no-posts-state {
  text-align: center; padding: 80px 0;
}
.no-posts-numeral {
  font-family: var(--font-serif); font-size: 6rem; font-weight: 300;
  color: var(--border); line-height: 1; margin-bottom: 1rem;
}
.no-posts-heading {
  font-family: var(--font-serif); font-size: 1.8rem; color: var(--t1);
  font-weight: 300; margin-bottom: .8rem;
}
.no-posts-text { font-size: .9rem; color: var(--t3); margin-bottom: 2.5rem; max-width: 420px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════
   404 PAGE
═══════════════════════════════════════ */
.error-404-wrap {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 120px 7% 80px;
  position: relative; overflow: hidden;
  background: var(--bg-3);
}
.error-404-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,214,0,.05) 0%, transparent 70%);
}
.error-404-numeral {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: clamp(18rem, 38vw, 28rem);
  font-weight: 300; color: rgba(255,255,255,.03);
  line-height: 1; user-select: none; pointer-events: none; letter-spacing: -.02em;
}
.error-404-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 560px; margin: 0 auto;
}
.error-404-eyebrow {
  font-size: .6rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 1.2rem;
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.error-404-eyebrow::before,
.error-404-eyebrow::after { content: ''; width: 22px; height: 1px; background: var(--teal-2); }
.error-404-title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--light); line-height: 1.1; margin-bottom: 1rem;
}
.error-404-title em { font-style: italic; color: var(--slate); }
.error-404-text {
  font-size: .92rem; color: var(--t2); line-height: 1.85;
  max-width: 400px; margin: 0 auto 2.8rem;
}
.error-404-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.error-404-search {
  display: flex; background: var(--bg-2);
  border: 1px solid var(--border); overflow: hidden;
  margin-bottom: 2rem;
}
.error-404-search input {
  background: transparent; border: none; outline: none;
  padding: .75rem 1.2rem; font-size: .88rem;
  color: var(--t1); font-family: var(--font-sans);
  flex: 1; min-width: 0;
}
.error-404-search input::placeholder { color: var(--t3); }
.error-404-search button {
  background: var(--teal); border: none; cursor: pointer;
  padding: .75rem 1.4rem; color: var(--on-gold); font-size: .75rem;
  font-family: var(--font-sans); font-weight: 700; letter-spacing: .08em;
  transition: background .2s;
}
.error-404-search button:hover { background: var(--teal-2); }
.error-404-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin-top: 1.5rem;
}
.error-404-nav a {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3); text-decoration: none;
  border: 1px solid var(--border); padding: .5rem 1rem;
  transition: all .2s;
}
.error-404-nav a:hover { border-color: var(--teal-border); color: var(--slate); background: var(--teal-dim); }

/* ═══════════════════════════════════════
   SEARCH RESULTS PAGE
═══════════════════════════════════════ */
.search-hero {
  background: var(--bg-3);
  padding: 120px 7% 56px;
}
.search-hero-inner { max-width: 1180px; margin: 0 auto; }
.search-hero-eyebrow {
  font-size: .6rem; font-weight: 600; letter-spacing: .35em;
  text-transform: uppercase; color: var(--slate);
  display: flex; align-items: center; gap: 12px; margin-bottom: .7rem;
}
.search-hero-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--teal-2); }
.search-hero-query {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 3rem); color: var(--light);
  line-height: 1.15; margin-bottom: 1.4rem;
}
.search-hero-query mark {
  background: none; color: var(--slate); font-style: italic;
}
.search-form-wrap {
  display: flex; background: var(--bg-2);
  border: 1px solid var(--border); overflow: hidden;
  max-width: 600px;
}
.search-form-input {
  background: transparent; border: none; outline: none;
  padding: .8rem 1.2rem; font-size: .92rem;
  color: var(--t1); font-family: var(--font-sans); flex: 1;
}
.search-form-input::placeholder { color: var(--t3); }
.search-form-btn {
  background: var(--teal); border: none; cursor: pointer;
  padding: .8rem 1.6rem; color: var(--on-gold); font-size: .75rem;
  font-family: var(--font-sans); font-weight: 700; letter-spacing: .08em;
  transition: background .2s;
}
.search-form-btn:hover { background: var(--teal-2); }
.search-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 56px 7%;
}
.search-result-card {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 1.6rem; margin-bottom: 1.5px;
  text-decoration: none; transition: background .25s;
}
.search-result-card:hover { background: var(--bg-3); }
.src-thumb {
  width: 120px; height: 84px; min-width: 120px;
  object-fit: cover; border: 1px solid var(--border);
}
.src-thumb-ph {
  width: 120px; height: 84px; min-width: 120px;
  background: var(--bg-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.1rem; color: var(--t3); font-style: italic;
}
.src-body { flex: 1; min-width: 0; }
.src-meta { font-size: .62rem; color: var(--t3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.src-title {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--t1); font-weight: 400;
  line-height: 1.3; margin-bottom: .5rem;
}
.src-excerpt { font-size: .85rem; color: var(--t2); line-height: 1.7; }
.src-excerpt mark { background: var(--teal-dim); color: var(--light); padding: 0 2px; }
.src-arrow { color: var(--t3); font-size: 1.1rem; margin-left: auto; align-self: center; transition: transform .2s; }
.search-result-card:hover .src-arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════
   INNER PAGES — RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .single-wrap { grid-template-columns: 1fr 260px; gap: 3rem; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .single-wrap { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .archive-controls { flex-direction: column; align-items: flex-start; }
  .archive-search-input { width: 180px; }
  .search-result-card { flex-direction: column; }
  .src-thumb, .src-thumb-ph { width: 100%; height: 200px; }
}
@media (max-width: 640px) {
  .archive-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 100px 5% 48px; }
  .error-404-wrap { padding: 100px 5% 60px; }
  .article-footer { flex-direction: column; align-items: flex-start; }
  .author-card { flex-direction: column; }
}
