/* =====================================================================
   SinghDMD.com — Design System
   Gursharanjit Singh, DMD | Digital & Esthetic Dentistry
   Modern-minimal: Indigo Ink palette, Space Grotesk headings.
   One stylesheet, custom (no Bootstrap). Light + dark mode.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand accent (indigo) */
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-400: #818cf8;

  /* Semantic — light theme (default) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f6f7fb;
  --surface-inset: #eef0f7;
  --heading: #111827;
  --text: #374151;
  --muted: #6b7280;
  --border: #ebedf3;
  --border-strong: #d6d9e3;

  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --accent: #4f46e5;
  --accent-soft: #e9e8fb;
  --link: #4f46e5;
  --on-brand: #ffffff;

  /* Always-dark contrast blocks (cta / footer / aside) */
  --ink-block: #0d0f15;
  --ink-block-2: #161922;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05), 0 1px 3px rgba(17, 24, 39, 0.04);
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 18px 44px rgba(17, 24, 39, 0.12);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 74px;
}

/* Dark theme — auto (no explicit choice) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --surface: #14161d;
    --surface-alt: #101219;
    --surface-inset: #191c25;
    --heading: #f4f5f9;
    --text: #c8ccd6;
    --muted: #888ea0;
    --border: #23262f;
    --border-strong: #313545;

    --brand: #6366f1;
    --brand-strong: #4f46e5;
    --accent: #818cf8;
    --accent-soft: rgba(129, 140, 248, 0.15);
    --link: #a5b4fc;
    --on-brand: #ffffff;

    --ink-block: #0f1117;
    --ink-block-2: #191c25;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 22px 52px rgba(0, 0, 0, 0.6);
  }
}

/* Dark theme — explicit */
:root[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: #14161d;
  --surface-alt: #101219;
  --surface-inset: #191c25;
  --heading: #f4f5f9;
  --text: #c8ccd6;
  --muted: #888ea0;
  --border: #23262f;
  --border-strong: #313545;

  --brand: #6366f1;
  --brand-strong: #4f46e5;
  --accent: #818cf8;
  --accent-soft: rgba(129, 140, 248, 0.15);
  --link: #a5b4fc;
  --on-brand: #ffffff;

  --ink-block: #0f1117;
  --ink-block-2: #191c25;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 22px 52px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-strong);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--accent-soft);
  color: var(--brand-strong);
}

:focus-visible {
  outline: 3px solid var(--indigo-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section--alt {
  background: var(--surface-alt);
}

.narrow {
  max-width: 760px;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -60px;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--on-brand);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 2000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
  color: var(--on-brand);
}

/* ---------- Eyebrow + section head ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.section-head.centered .eyebrow::before {
  display: none;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  margin-top: 0.7rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1rem;
}

.lead {
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 0.8rem 1.55rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition),
    background-color var(--transition), color var(--transition),
    border-color var(--transition);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

/* Primary + gold class both render as the single indigo accent button */
.btn-primary,
.btn-gold {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover,
.btn-gold:hover {
  background: var(--brand-strong);
  color: var(--on-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--surface-alt);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

.btn-on-dark:hover {
  color: var(--ink-block);
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.02rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--link);
}

.text-link svg {
  width: 1em;
  height: 1em;
  transition: transform var(--transition);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition),
    background-color var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--heading);
  font-weight: 700;
}

.brand:hover {
  color: var(--heading);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--indigo-500), var(--indigo-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-suffix {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.32rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-link:hover {
  color: var(--heading);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--heading);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cta {
  margin-left: 0.35rem;
}

.nav-practice {
  padding: 0.6rem 1.1rem;
}

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-toggle span {
  top: 50%;
  margin-top: -1px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Hero (light, airy) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
  color: var(--text);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(46% 60% at 88% 8%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(38% 52% at 6% 92%, rgba(99, 102, 241, 0.08), transparent 62%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero-content h1 {
  color: var(--heading);
  font-size: clamp(2.4rem, 5.6vw, 3.9rem);
  margin-top: 1rem;
  line-height: 1.05;
  font-weight: 700;
}

.hero-content h1 .accent {
  color: var(--accent);
}

.hero-content p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  margin-top: 1.4rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.2rem;
  margin-top: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-strong);
}

.hero-meta div {
  min-width: 90px;
}

.hero-meta .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--heading);
  display: block;
  line-height: 1;
}

.hero-meta .lbl {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Hero portrait */
.hero-figure {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.hero-figure .portrait-ring {
  position: absolute;
  inset: -6% -6% -2% -6%;
  border-radius: 50% 50% 46% 46% / 42% 42% 54% 54%;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(99, 102, 241, 0.22),
    rgba(99, 102, 241, 0) 70%
  );
  z-index: -1;
}

.hero-figure .portrait-plate {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(160deg, #eef0fe, #ffffff);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

:root[data-theme="dark"] .hero-figure .portrait-plate {
  background: linear-gradient(160deg, #1b1f2b, #12141b);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-figure .portrait-plate {
    background: linear-gradient(160deg, #1b1f2b, #12141b);
  }
}

.hero-figure img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 16px 26px rgba(17, 24, 39, 0.18));
}

.hero-badge {
  position: absolute;
  left: -14px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--surface);
  color: var(--heading);
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-badge svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-badge strong {
  display: block;
  font-size: 0.92rem;
  color: var(--heading);
  font-family: var(--font-display);
}

.hero-badge span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Trust strip ---------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: center;
  padding-block: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-inner span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-inner svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- Cards / services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-600), var(--indigo-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.26rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
}

.card ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Approach / feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 1.4rem;
  margin-top: 1.75rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.feature-list .fico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-list .fico svg {
  width: 22px;
  height: 22px;
}

.feature-list h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: 0.2rem;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.96rem;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.media-frame img {
  width: 100%;
}

/* ---------- Stats band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
}

.stat {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 600;
  color: var(--heading);
  line-height: 1;
}

.stat .num .accent {
  color: var(--accent);
}

.stat .lbl {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Credentials / CV ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.cred-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.cred-card .cred-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.cred-card .cred-head svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.cred-card h3 {
  font-size: 1.18rem;
}

.cred-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.cred-list li {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cred-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cred-list .role {
  font-weight: 600;
  color: var(--heading);
  display: block;
}

.cred-list .org {
  color: var(--muted);
  font-size: 0.94rem;
}

.cred-list .meta {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.focus-tags span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--heading);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
}

/* ---------- CTA band (dark contrast block) ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--ink-block-2), var(--ink-block));
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 82% 8%, rgba(99, 102, 241, 0.28), transparent 60%),
    radial-gradient(42% 72% at 8% 92%, rgba(79, 70, 229, 0.24), transparent 62%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-band p {
  color: #c3c8d6;
  max-width: 52ch;
  margin: 1rem auto 2rem;
  font-size: 1.08rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- About page ---------- */
.about-hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-portrait {
  position: relative;
}

.about-portrait img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.about-portrait .about-chip {
  position: absolute;
  right: -12px;
  bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  max-width: 220px;
}

.about-chip .role {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 600;
}

.about-chip .org {
  font-size: 0.85rem;
  color: var(--muted);
}

.prose-block h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
}

.prose-block p {
  margin-top: 1.1rem;
  color: var(--text);
}

.prose-block p.lead {
  margin-top: 1.3rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.contact-methods {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-method .cm-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-method .cm-icon svg {
  width: 24px;
  height: 24px;
}

.contact-method .lbl {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.contact-method .val {
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--heading);
  font-weight: 600;
  word-break: break-word;
}

.contact-aside {
  background: linear-gradient(150deg, var(--ink-block-2), var(--ink-block));
  color: #e7eaf3;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.contact-aside h3 {
  color: #fff;
  font-size: 1.5rem;
}

.contact-aside p {
  color: #bcc2d2;
  margin-top: 0.8rem;
}

.contact-aside .btn {
  margin-top: 1.6rem;
  align-self: flex-start;
}

.contact-aside .hours {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  color: #a4abbd;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb-nav {
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li:not(:first-child)::before {
  content: "/";
  color: var(--border);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Legal / prose ---------- */
.page-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.page-header .eyebrow {
  margin-bottom: 0.6rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.page-header p {
  color: var(--muted);
  margin-top: 0.7rem;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  font-size: 1.55rem;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.22rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.prose p {
  margin-bottom: 1.1rem;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2rem 1.2rem;
  color: var(--text);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose .effective {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.5rem;
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.error-page p {
  color: var(--muted);
  margin: 1rem auto 2rem;
  max-width: 44ch;
}

/* ---------- Footer (dark contrast block) ---------- */
.site-footer {
  background: var(--ink-block);
  color: #aab0c0;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-brand .brand:hover {
  color: #fff;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #8990a2;
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ccd2e0;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--indigo-500);
  border-color: var(--indigo-500);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: #aab0c0;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--indigo-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.6rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: #7a8296;
}

.footer-bottom .disclaimer {
  max-width: 60ch;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    order: -1;
    width: min(78%, 340px);
  }

  .hero-content p {
    max-width: 52ch;
  }

  .cred-grid {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 420px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition),
      visibility var(--transition);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .nav-link {
    padding: 0.85rem 0.6rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active {
    color: var(--accent);
  }

  .main-nav .nav-cta {
    display: flex;
    margin-top: 0.6rem;
    margin-left: 0;
  }

  .main-nav .nav-practice {
    margin-top: 1rem;
  }

  .main-nav .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand-suffix {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .about-portrait .about-chip {
    right: 50%;
    transform: translateX(50%);
  }
}

/* ---------- Reduced motion ---------- */
@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;
  }
}
