/* ==========================================================
   Ritu Ajwani, Advocate — stylesheet
   Palette: ink navy, ivory, muted brass. Serif display + sans body.
   ========================================================== */

:root {
  --ink: #0f1a2b;
  --ink-2: #16243a;
  --ink-3: #22324d;
  --ivory: #f7f4ee;
  --paper: #fffdf9;
  --line: #e4ddd0;
  --text: #1d2533;
  --muted: #5b6475;
  --brass: #b08d57;
  --brass-2: #c9a76f;
  --brass-soft: rgba(176, 141, 87, 0.12);
  --ok: #3f8f6b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 26, 43, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 26, 43, 0.16);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Placeholder marker: anything awaiting real content */
.ph {
  background: rgba(255, 196, 0, 0.18);
  border-bottom: 1px dashed #c79a00;
  padding: 0 3px;
  border-radius: 3px;
}
.ph-tag {
  display: inline-block;
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #ffe48a;
  color: #5a4500;
  padding: 4px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}

/* ---------- Availability strip ---------- */
.avail-strip {
  background: var(--ink);
  color: #d9dfe9;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.avail-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.avail-strip a { text-decoration: none; color: #fff; }
.avail-strip a:hover { color: var(--brass-2); }
.pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4fc28d; margin-right: 8px; position: relative; top: -1px;
  box-shadow: 0 0 0 0 rgba(79, 194, 141, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 194, 141, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(79, 194, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 194, 141, 0); }
}
.strip-contacts { display: flex; gap: 22px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 26, 43, 0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; transition: padding .3s var(--ease); }
.site-header.scrolled .nav { padding: 11px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--brass); color: var(--brass);
  font: 600 18px/1 var(--serif); letter-spacing: 0.04em;
}
.brand-name { font: 600 22px/1.05 var(--serif); color: var(--ink); }
.brand-sub { display: block; font: 500 11px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-3);
  padding: 8px 12px; border-radius: 8px; position: relative; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 14px/1 var(--sans); letter-spacing: 0.02em;
  padding: 15px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brass); color: #fff; box-shadow: 0 8px 22px rgba(176, 141, 87, 0.35); }
.btn-primary:hover { background: #9c7a47; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 110px); min-height: calc(100svh - 110px);
  display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--ink);
}
.hero-bg {
  position: absolute; inset: -60px 0 0 0;
  transform: scale(1.06); will-change: transform;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 20%; }
.hero h1, .hero-lead, .hero .eyebrow { text-shadow: 0 2px 18px rgba(10, 18, 31, 0.35); }

.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(10, 18, 31, 0.72) 0%, rgba(10, 18, 31, 0.55) 42%, rgba(10, 18, 31, 0.12) 72%, rgba(10, 18, 31, 0.05) 100%),
    linear-gradient(0deg, rgba(10, 18, 31, 0.55), transparent 35%);
}
.hero .container { position: relative; z-index: 2; padding: 80px 0 110px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-2);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { color: #fff; font-size: clamp(46px, 7vw, 92px); font-weight: 500; letter-spacing: -0.01em; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--brass-2); font-weight: 500; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #cfd6e2; max-width: 620px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: 64px; max-width: 820px; border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-facts div { padding: 20px 22px 0 0; }
.hero-facts div + div { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.hero-facts strong { display: block; font: 600 22px/1.2 var(--serif); color: #fff; }
.hero-facts span { font-size: 13px; color: #aab4c4; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 2; transform: translateX(-50%);
  width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: cue 2s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Hero text entrance */
.hero .stagger > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero .stagger > *:nth-child(1) { animation-delay: .15s; }
.hero .stagger > *:nth-child(2) { animation-delay: .3s; }
.hero .stagger > *:nth-child(3) { animation-delay: .45s; }
.hero .stagger > *:nth-child(4) { animation-delay: .6s; }
.hero .stagger > *:nth-child(5) { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section-dark { background: var(--ink); color: #cfd6e2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; }
.section-head p { color: var(--muted); font-size: 17px; }
.section-dark .section-head p { color: #aab4c4; }
.eyebrow.dark { color: var(--brass); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.portrait { position: relative; }
.portrait-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 1.2s var(--ease); }
.portrait:hover .portrait-frame img { transform: scale(1.03); }
.portrait::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brass); border-radius: var(--radius); z-index: -1;
}
.portrait-badge {
  position: absolute; left: -18px; bottom: 36px; background: var(--paper); border-radius: 12px; padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; max-width: 270px;
}
.portrait-badge .medal {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brass-soft); color: var(--brass);
}
.portrait-badge strong { display: block; font: 600 17px/1.2 var(--serif); color: var(--ink); }
.portrait-badge span { font-size: 12.5px; color: var(--muted); line-height: 1.4; display: block; }
.photo-note { font-size: 12px; color: var(--muted); margin-top: 34px; text-align: center; }
.about-copy .lead { font: 500 24px/1.45 var(--serif); color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.pillar { border-top: 1px solid var(--line); padding-top: 16px; }
.pillar h4 { font-size: 19px; margin-bottom: 6px; }
.pillar p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.languages { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; align-items: center; font-size: 14px; color: var(--muted); }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-3); background: var(--paper); }

/* ---------- Education timeline ---------- */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 10px 0; }
.timeline-rail, .timeline-progress { position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; }
.timeline-rail { bottom: 0; background: rgba(255, 255, 255, 0.12); }
.timeline-progress { height: 0; background: linear-gradient(var(--brass-2), var(--brass)); transition: height .15s linear; }
.t-item { position: relative; width: 50%; padding: 0 56px 64px 0; }
.t-item:nth-child(odd) { margin-left: 50%; padding: 0 0 64px 56px; }
.t-item::before {
  content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--brass); transition: background .4s, box-shadow .4s;
}
.t-item:nth-child(odd)::before { right: auto; left: -9px; }
.t-item.in::before { background: var(--brass); box-shadow: 0 0 0 6px rgba(176, 141, 87, 0.18); }
.t-year { font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass-2); }
.t-card {
  margin-top: 12px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius); padding: 26px 28px;
  transition: transform .4s var(--ease), border-color .4s;
}
.t-card:hover { transform: translateY(-4px); border-color: rgba(201, 167, 111, 0.45); }
.t-card h3 { font-size: 26px; margin-bottom: 4px; }
.t-inst { color: #e2e7ef; font-weight: 500; margin-bottom: 12px; }
.t-card p { font-size: 15px; color: #aab4c4; margin: 0; }
.t-card ul { margin: 12px 0 0; padding-left: 18px; font-size: 14.5px; color: #aab4c4; }
.honour {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  background: rgba(201, 167, 111, 0.14); color: var(--brass-2); border: 1px solid rgba(201, 167, 111, 0.35);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
}
.honour svg { width: 15px; height: 15px; }
.t-item.now .t-card { border-color: rgba(201, 167, 111, 0.4); }

/* ---------- Practice areas ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 26px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  display: flex; flex-direction: column; overflow: hidden;
}
.p-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.p-card:hover, .p-card[aria-expanded="true"] { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.p-card:hover::after, .p-card[aria-expanded="true"]::after { transform: scaleX(1); }
.p-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brass-soft); color: var(--brass); margin-bottom: 20px;
}
.p-icon svg { width: 26px; height: 26px; }
.p-card h3 { font-size: 25px; margin-bottom: 8px; }
.p-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; flex: 1; }
.p-more { font-size: 13px; font-weight: 600; color: var(--brass); display: inline-flex; gap: 6px; align-items: center; letter-spacing: 0.02em; }
.p-more svg { width: 14px; height: 14px; transition: transform .3s; }
.p-card[aria-expanded="true"] .p-more svg { transform: rotate(90deg); }
.p-card.featured { background: var(--ink); border-color: var(--ink); }
.p-card.featured h3 { color: #fff; }
.p-card.featured p { color: #aab4c4; }
.p-card.featured .p-icon { background: rgba(201, 167, 111, 0.16); color: var(--brass-2); }
.p-card .tag {
  position: absolute; top: 20px; right: 20px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: var(--brass-2); border: 1px solid rgba(201, 167, 111, 0.4); padding: 4px 8px; border-radius: 999px;
}

.p-detail {
  grid-column: 1 / -1; overflow: hidden; max-height: 0; opacity: 0;
  transition: max-height .6s var(--ease), opacity .4s, margin .4s;
}
.p-detail.open { opacity: 1; }
.p-detail-inner {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--radius); padding: 32px 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px;
}
.p-detail h4 { font-size: 28px; margin-bottom: 10px; }
.p-detail p { color: var(--muted); font-size: 15.5px; }
.p-detail ul { margin: 0; padding: 0; list-style: none; }
.p-detail li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; display: flex; gap: 10px; }
.p-detail li::before { content: "§"; color: var(--brass); font-family: var(--serif); font-weight: 700; }
.p-detail .law-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.avail-card {
  background: linear-gradient(135deg, var(--ink-2), var(--ink-3)); border: 1px solid rgba(201, 167, 111, 0.35);
  border-radius: var(--radius); padding: 30px; margin-bottom: 26px; position: relative; overflow: hidden;
}
.avail-card::after {
  content: "24×7"; position: absolute; right: -6px; bottom: -28px; font: 600 120px/1 var(--serif); color: rgba(201, 167, 111, 0.08); pointer-events: none;
}
.avail-card h3 { font-size: 28px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.avail-card p { color: #aab4c4; margin: 0; font-size: 15px; max-width: 380px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.contact-list .ci { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(201, 167, 111, 0.4); color: var(--brass-2); }
.contact-list .ci svg { width: 18px; height: 18px; }
.contact-list small { display: block; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #8590a3; }
.contact-list a, .contact-list span.v { color: #fff; text-decoration: none; font-size: 16px; }
.contact-list a:hover { color: var(--brass-2); }

.form { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-lg); }
.form h3, .section-dark .form h3 { font-size: 30px; margin-bottom: 6px; color: var(--ink); }
.form > p { color: var(--muted); font-size: 14.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--ivory);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); background: #fff; box-shadow: 0 0 0 4px var(--brass-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 22px; line-height: 1.5; }
.check input { margin-top: 3px; accent-color: var(--brass); }
.form-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.form-status { font-size: 14px; margin-top: 12px; color: var(--ok); min-height: 1em; }

/* ---------- Disclaimer section & footer ---------- */
.disclaimer-block { background: var(--paper); border-top: 1px solid var(--line); }
.disclaimer-block .container { max-width: 860px; }
.disclaimer-block h2 { font-size: 34px; }
.disclaimer-block p, .disclaimer-block li { color: var(--muted); font-size: 15px; }
.site-footer { background: #0a121f; color: #8590a3; padding: 56px 0 34px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .brand-name { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; color: #aab4c4; }
.footer-nav a:hover { color: var(--brass-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 12.5px; }

/* ---------- Floating availability pill ---------- */
.float-call {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  background: var(--ink); color: #fff; text-decoration: none; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(201, 167, 111, 0.4);
  transform: translateY(120px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, background .25s;
}
.float-call.show { transform: none; opacity: 1; }
.float-call:hover { background: var(--ink-3); }
.to-top {
  position: fixed; right: 22px; bottom: 80px; z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- BCI entry disclaimer modal ---------- */
.gate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 18, 31, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.gate.show { opacity: 1; visibility: visible; }
.gate-box {
  background: var(--paper); border-radius: 18px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 40px 42px 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); border-top: 4px solid var(--brass);
  transform: translateY(16px) scale(0.98); transition: transform .5s var(--ease);
}
.gate.show .gate-box { transform: none; }
.gate-box h2 { font-size: 32px; margin-bottom: 4px; }
.gate-box .sub { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 18px; }
.gate-box p { font-size: 14.5px; color: var(--muted); }
.gate-box ul { padding-left: 20px; font-size: 14.5px; color: var(--muted); margin: 0 0 1em; }
.gate-box li { margin-bottom: 6px; }
.gate-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .practice-grid, .insights-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .laws-wrap, .rights-grid, .courts-wrap, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid .portrait { max-width: 460px; margin: 0 auto 20px; }
  .p-detail-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 10px 20px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { display: block; padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a::after { display: none; }
  .strip-contacts .hide-sm { display: none; }
  .timeline-rail, .timeline-progress { left: 9px; }
  .t-item, .t-item:nth-child(odd) { width: 100%; margin-left: 0; padding: 0 0 48px 44px; }
  .t-item::before, .t-item:nth-child(odd)::before { left: 0; right: auto; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .container { width: calc(100% - 32px); }
  .practice-grid, .insights-grid, .pillars, .court-list, .form-row { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 16px; }
  .avail-strip .container { justify-content: center; text-align: center; }
  .strip-contacts { display: none; }
  .form, .gate-box { padding: 28px 22px; }
  .portrait-badge { left: 10px; right: 10px; bottom: 16px; max-width: none; }
  .portrait::before { inset: 14px -10px -14px 10px; }
  .float-call .label-long { display: none; }
  .p-detail-inner { padding: 24px 22px; }
  .map-table th, .map-table td { padding: 11px 12px; }
}


/* ==========================================================
   v2 additions
   ========================================================== */

/* Stronger availability strip */
.avail-strip { background: linear-gradient(90deg, #0f1a2b, #1b2a44 50%, #0f1a2b); border-bottom: 1px solid rgba(201, 167, 111, 0.35); font-size: 14px; }
.avail-strip .container { padding: 10px 0; }
.avail-strip strong { color: var(--brass-2); font-weight: 600; letter-spacing: 0.02em; }

/* Nav 24x7 pill */
.nav-links a.nav-cta {
  margin-left: 8px; border: 1px solid var(--brass); color: var(--ink); border-radius: 999px; padding: 8px 16px 8px 14px;
  display: inline-flex; align-items: center; transition: background .25s, color .25s;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn .pulse { margin-right: 0; }

/* Live clock band */
.clock-band { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.clock-band::before {
  content: "24×7"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font: 600 180px/1 var(--serif); color: rgba(176, 141, 87, 0.07); pointer-events: none; letter-spacing: -0.02em;
}
.clock-inner { display: flex; align-items: center; gap: 32px; padding: 34px 0; position: relative; }
.clock-face { flex: none; width: 92px; height: 92px; }
.clock-face svg { width: 100%; height: 100%; }
.clock-face .ring { fill: var(--ink); stroke: var(--brass); stroke-width: 1.5; }
.clock-face .ticks line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.clock-face .ticks line.major { stroke: var(--brass-2); stroke-width: 2; }
.clock-face .hand { stroke-linecap: round; transform-origin: 50px 50px; }
.clock-face .hand.h { stroke: #fff; stroke-width: 3.2; }
.clock-face .hand.m { stroke: #fff; stroke-width: 2.2; }
.clock-face .hand.s { stroke: var(--brass-2); stroke-width: 1; }
.clock-face .pin { fill: var(--brass-2); }
.clock-copy { flex: 1; }
.clock-time { font: 500 clamp(24px, 3vw, 34px)/1.2 var(--serif); color: var(--ink); }
.clock-time #ist-time { color: var(--brass); }
.clock-line { margin-top: 4px; font-size: 16px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.clock-line::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4fc28d; box-shadow: 0 0 0 4px rgba(79, 194, 141, 0.18); flex: none; }
.clock-btn { flex: none; }

/* Section heading helpers */
.about-h, .contact-h { font-size: clamp(34px, 4.4vw, 54px); font-weight: 500; }
.t-sub { margin-top: 10px !important; font-size: 14px !important; }

/* Court ladder */
.court-ladder { border-top: 1px solid var(--line); }
.rung { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 30px 0; border-bottom: 1px solid var(--line); position: relative; }
.rung::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--brass); transition: width .7s var(--ease);
}
.rung:hover::before { width: 100%; }
.rung-label { font: 600 12px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); padding-top: 8px; }
.rung-body h3 { font-size: 28px; margin-bottom: 6px; }
.rung-body p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.court-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cchip {
  font-size: 13.5px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-3);
  transition: border-color .25s, transform .25s var(--ease);
}
.cchip:hover { border-color: var(--brass); transform: translateY(-2px); }
.cchip.near, .mm-grid li.near { border-color: var(--brass); background: var(--brass-soft); }
.court-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cf {
  font: 600 13px/1 var(--sans); padding: 9px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted); transition: all .25s;
}
.cf:hover { color: var(--ink); border-color: var(--ink-3); }
.cf.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.mm-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mm-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: opacity .35s, transform .35s var(--ease), border-color .25s;
}
.mm-grid li:hover { border-color: var(--brass); }
.mm-grid li strong { display: block; font: 600 19px/1.2 var(--serif); color: var(--ink); }
.mm-grid li small { font-size: 12.5px; color: var(--muted); }
.mm-grid li.dim { opacity: 0.25; transform: scale(0.97); }
.legend { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.near-dot { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--brass); background: var(--brass-soft); display: inline-block; }

/* Writing (coming soon) */
.writing {
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  border: 1px dashed var(--brass); border-radius: var(--radius); padding: 40px 44px; background: var(--paper);
}
.writing h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; margin-bottom: 6px; }
.writing p { color: var(--muted); margin: 0; }
.ph-tag.big { font-size: 12px; padding: 8px 12px; }

/* Contact photo */
.desk-photo { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.desk-photo img { width: 100%; height: 100%; object-fit: cover; }
.desk-photo figcaption { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #fff; }

/* Floating pill: visible throughout */
.float-call { padding: 13px 20px 13px 16px; font-size: 14px; }

@media (max-width: 1024px) {
  .mm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .nav-links a.nav-cta { margin: 12px 0 0; justify-content: center; border-bottom: 1px solid var(--brass); }
  .rung { grid-template-columns: 1fr; gap: 6px; }
  .clock-inner { flex-wrap: wrap; gap: 20px; }
  .clock-band::before { font-size: 120px; }
}
@media (max-width: 640px) {
  .mm-grid { grid-template-columns: 1fr 1fr; }
  .clock-face { width: 72px; height: 72px; }
  .clock-btn { width: 100%; justify-content: center; }
  .writing { padding: 28px 24px; }
  .avail-strip { font-size: 13.5px; }
}

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

@media print {
  .avail-strip, .site-header, .float-call, .to-top, .gate, .scroll-cue { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 640px) {
  /* phone: photo on top, text below it on the dark background */
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero-bg { position: relative; inset: auto; display: block; height: 72svh; transform: none !important; }
  .hero-bg img { object-position: center top; }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(15, 26, 43, 0.6) 22%, rgba(15, 26, 43, 0) 50%); }
  .hero .container { padding: 0 0 64px; margin-top: -110px; }
  .hero-facts { margin-top: 36px; }
  .scroll-cue { display: none; }
}
