/* ==========================================================================
   Kajal K — Life & Clarity Coaching Portfolio
   Design system: twilight-glass, soft & premium
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ---- Color tokens: refined client-provided navy/purple palette.
     Backgrounds provide warm, calming contrast (off-white and cashmere ivory)
     with WCAG AA contrast for text and interactive controls. ---- */
  --bg-1: #faf9f7;          /* warm cashmere ivory */
  --bg-2: #f3f1ec;          /* serene pale cream-lavender */
  --bg-3: #eae7e0;          /* deeper grounding neutral */
  --lavender: #7a7aa3;      /* muted lavender-slate */
  --lavender-soft: #ececf5;
  --blush: #474775;          /* refined purple-navy */
  --blush-soft: #e7e6f0;
  --mint: #1e1e47;          /* rich dark navy */
  --mint-soft: #e2e1ee;
  --peach: #0d0c3d;         /* deep twilight navy */
  --peach-soft: #dddded;
  --sky: #7a7aa3;
  --sky-soft: #ececf5;
  --gold: #474775;
  --gold-soft: #e7e6f0;
  --gold-deep: #0d0c3d;
  --cream: #faf9f7;

  --accent: #474775;         /* primary accent — purple-navy for links/eyebrows */
  --accent-hover: #1e1e47;

  --emerald: #246a48;          /* refined botanical emerald */
  --emerald-soft: #eaf4ee;     /* gentle tinted surface */
  --emerald-border: rgba(36, 106, 72, 0.24);

  --ink: #0d0c3d;           /* primary text — deep twilight navy (contrast > 13:1) */
  --text-soft: #23234d;      /* secondary text — dark navy (contrast > 8:1) */
  --text-muted: #4e4e75;     /* tertiary text — accessible medium slate (contrast > 4.6:1) */

  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-bg-strong: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(13, 12, 61, 0.10);
  --glass-highlight: rgba(255, 255, 255, 0.95);

  /* ---- Type tokens ---- */
  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --step-1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-2: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-3: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-4: clamp(2.2rem, 1.8rem + 2vw, 3.2rem);
  --step-5: clamp(2.8rem, 2.1rem + 3.5vw, 4.6rem);

  /* ---- Layout tokens ---- */
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --max-width: 1180px;
  --shadow-glass: 0 8px 32px rgba(13, 12, 61, 0.07);
  --shadow-soft: 0 20px 50px rgba(13, 12, 61, 0.11);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 96px;
}

@media (max-width: 860px) {
  :root { --header-h: 84px; }
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; touch-action: manipulation; }
button { font: inherit; cursor: pointer; touch-action: manipulation; }
input, textarea, select, button { font-family: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text-soft);
  -webkit-tap-highlight-color: transparent;
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, var(--blush-soft) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 85% 15%, var(--sky-soft) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 50% 100%, var(--mint-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

/* ---- Ambient background orbs (decorative, aria-hidden) ---- */
.ambient-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.35;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
.orb--1 { width: 42vw; height: 42vw; background: var(--lavender-soft); top: -10%; left: -10%; animation: drift1 30s ease-in-out infinite; }
.orb--2 { width: 34vw; height: 34vw; background: var(--sky-soft); bottom: -12%; right: -8%; animation: drift2 36s ease-in-out infinite; }
.orb--3 { width: 26vw; height: 26vw; background: var(--mint-soft); top: 40%; right: 20%; opacity: 0.3; animation: drift3 26s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4%, 6%, 0) scale(1.08); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-5%, -4%, 0) scale(1.05); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-6%, 5%, 0) scale(0.94); } }

main, header, footer { position: relative; z-index: 1; }

/* ---- Mobile perf: fixed backgrounds + continuous blur filters are the #1
   cause of janky scrolling on mobile browsers, so we simplify below 820px ---- */
@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .orb { animation: none; filter: blur(40px); will-change: auto; }
  .nav-shell {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* backdrop-filter is one of the most expensive CSS effects to composite on
     mobile GPUs — with a dozen+ glass cards on a page, it's the main source
     of scroll jank. Swap to solid, near-opaque backgrounds on mobile instead. */
  .glass, .glass-card, .glass-card:hover {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px rgba(15, 14, 71, 0.12);
  }
  .glass-card:hover { transform: none; }
  /* CSS mask-composite (used for the gradient border highlight) is also slow
     on mobile GPUs — drop it and rely on the plain 1px border instead. */
  .glass::before { display: none; }
  /* Large blurred shadows repaint expensively at scale; shrink them site-wide. */
  :root {
    --shadow-glass: 0 4px 14px rgba(15, 14, 71, 0.10);
    --shadow-soft: 0 6px 20px rgba(15, 14, 71, 0.12);
  }
}

/* ---- Utility layout ---- */
.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: clamp(4rem, 7.5vw, 7rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3.25rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: var(--step-5); font-weight: 500; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); font-weight: 500; }
h4 { font-size: var(--step-2); font-weight: 600; }
p { font-size: var(--step-0); line-height: 1.7; color: var(--text-muted); }
.lede { font-size: var(--step-2); line-height: 1.6; color: var(--text-soft); font-weight: 300; }

em.accent { font-style: italic; color: var(--accent-hover); }

/* ---- Glass surfaces ---- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-glass);
  position: relative;
}
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--glass-highlight), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.5s var(--ease-soft), background 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.glass-card:hover { transform: translateY(-6px); background: var(--glass-bg-strong); box-shadow: var(--shadow-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--step-0);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 26px rgba(15, 14, 71, 0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 14, 71, 0.36); background: #0f0e47; }
.btn-ghost {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: #fff; transform: translateY(-3px); border-color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Header / Nav ----
   Fixed (not sticky): the bar stays pinned on screen at all times and never
   scrolls with the page. Only the active-link highlight changes as you move
   between pages — the bar itself never moves. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 0.75rem;
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-glass);
  max-width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  min-width: 0;
  flex-shrink: 1;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--blush);
  box-shadow: 0 2px 8px rgba(13, 12, 61, 0.14);
}
.brand-text {
  min-width: 0;
  line-height: 1.15;
}
.brand-text strong {
  display: block;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  padding: 0.5em 0.95em;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.nav-links a:hover, .nav-links a.is-active { background: var(--blush-soft); color: var(--accent); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blush-soft);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}
.nav-toggle:hover {
  background: #dfdeea;
  transform: scale(1.04);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mobile-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(13, 12, 61, 0.38);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}
.mobile-scrim.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.mobile-panel {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: fixed;
  top: calc(var(--header-h) + 6px);
  left: clamp(1rem, 3.5vw, 2rem);
  right: clamp(1rem, 3.5vw, 2rem);
  z-index: 55;
  max-width: 400px;
  margin-inline: auto;
  padding: 1.4rem 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-soft), transform 0.35s var(--ease-soft), visibility 0.35s;
}
.mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}
.mobile-panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 500;
}
.mobile-panel-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blush-soft);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  padding: 0;
}
.mobile-panel-links { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-panel a {
  padding: 0.85em 1.05em;
  border-radius: var(--radius-md);
  color: var(--text-soft);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}
.mobile-panel a.is-active, .mobile-panel a:hover { background: var(--blush-soft); color: var(--accent); }
.mobile-panel-cta { margin-top: 0.9rem; }
.mobile-panel a.mobile-panel-cta,
.mobile-panel a.mobile-panel-cta:hover { color: var(--cream); background: var(--ink); }

.nav-cta .btn-primary span.short { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary span.long { display: none; }
  .nav-cta .btn-primary span.short { display: inline; }
  .btn { white-space: normal; max-width: 100%; box-sizing: border-box; text-align: center; }
  .cta-banner { align-items: stretch; text-align: center; }
  .cta-banner-top { flex-direction: column; text-align: center; }
  .cta-banner-top > div { text-align: center; }
  .cta-banner .cta-photo { margin-inline: auto; }
  .cta-banner .btn { width: 100%; }
}

/* ---- Mobile Header Refinement (<= 767px) ----
   Provides comfortable breathing room (~94–98px total header height),
   vertically centered avatar/text/buttons, balanced internal padding,
   and prevents any cramped or compressed feel while keeping desktop/tablet intact. */
@media (max-width: 767px) {
  .site-header {
    padding-block: 1rem;
  }
  .nav-shell {
    min-height: 74px;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    gap: 0.75rem;
    border-radius: var(--radius-pill);
    box-sizing: border-box;
  }
  .brand {
    gap: 0.75rem;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
  .brand-text strong {
    font-size: 0.98rem;
    line-height: 1.2;
  }
  .brand-text span {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    margin-top: 2px;
  }
  .nav-cta {
    gap: 0.55rem;
  }
  .nav-cta .btn-primary {
    padding: 0.52rem 0.95rem;
    font-size: 0.84rem;
    font-weight: 600;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .wrap { padding-inline: 1rem; }
  .nav-shell {
    min-height: 74px;
    padding: 0.82rem 0.8rem 0.82rem 0.85rem;
    gap: 0.65rem;
  }
  .brand {
    gap: 0.7rem;
  }
  .brand-mark {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
  }
  .brand-text strong {
    font-size: 0.96rem;
  }
  .brand-text span {
    font-size: 0.60rem;
  }
  .nav-cta {
    gap: 0.5rem;
  }
  .nav-cta .btn-primary {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 0.75rem; }
  .nav-shell {
    min-height: 72px;
    padding: 0.78rem 0.65rem 0.78rem 0.75rem;
    gap: 0.45rem;
  }
  .brand {
    gap: 0.55rem;
  }
  .brand-mark {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .brand-text strong {
    font-size: 0.92rem;
  }
  .brand-text span {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
  }
  .nav-cta {
    gap: 0.45rem;
  }
  .nav-cta .btn-primary {
    padding: 0.48rem 0.75rem;
    font-size: 0.80rem;
    min-height: 36px;
  }
  .nav-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
}

/* ---- Footer ---- */
.site-footer { padding-block: 0; margin-top: clamp(2rem, 5vw, 3.5rem); margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.footer-shell {
  background: linear-gradient(160deg, #272757 0%, #0f0e47 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(15, 14, 71, 0.22);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.footer-col--brand { max-width: 300px; }
.footer-brand-row { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.footer-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(80,80,129,0.6);
  flex-shrink: 0;
}
.footer-col--brand .brand-text strong { color: #f0f0f7; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; display: block; }
.footer-col--brand .brand-text span { color: rgba(255,255,227,0.6); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-tagline { font-size: 0.88rem; color: rgba(255,255,227,0.65); line-height: 1.6; margin-bottom: 1rem; }
.footer-address { font-size: 0.85rem; color: rgba(255,255,227,0.55); line-height: 1.6; margin-top: 0.5rem; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blush); margin-bottom: 1.1rem; font-weight: 700; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,227,0.68); font-size: 0.9rem; margin-bottom: 0.65rem; transition: color 0.2s ease, transform 0.2s ease; }
.footer-col a:hover { color: #f0f0f7; transform: translateX(2px); }
.footer-col--brand a { color: rgba(255,255,227,0.75); }
.footer-col--brand a:hover { color: var(--blush); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,227,0.12);
  font-size: 0.78rem; color: rgba(255,255,227,0.5);
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: rgba(255,255,227,0.5); font-size: 0.78rem; margin-bottom: 0; }
.footer-bottom-links a:hover { color: #f0f0f7; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 640px) {
  .footer-shell { padding: 2.25rem 1.5rem 1.75rem; border-radius: var(--radius-lg); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    text-align: center;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255,255,227,0.18);
  }
  .footer-brand-row { flex-direction: column; gap: 0.65rem; }
  .footer-photo { width: 64px; height: 64px; }
  .footer-col--brand .brand-text strong { font-size: 1.15rem; }
  .footer-tagline { max-width: 32ch; margin-inline: auto; font-size: 0.92rem; color: rgba(255,255,227,0.8); }
  .footer-address { max-width: 26ch; margin-inline: auto; font-size: 0.88rem; color: rgba(255,255,227,0.7); }
  .footer-col--brand a { font-size: 0.92rem; color: rgba(255,255,227,0.9); }
  .footer-col:not(.footer-col--brand) { padding-bottom: 0.5rem; }
  .footer-col h5 { font-size: 0.76rem; margin-bottom: 0.85rem; }
  .footer-col a { font-size: 0.94rem; margin-bottom: 0.75rem; color: rgba(255,255,227,0.82); }
  /* Legal links already live in the bottom bar below — no need to repeat
     the full column again on a small screen. */
  .footer-col--legal { display: none; }
  .footer-disclaimer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.6;
    color: rgba(255, 255, 227, 0.65);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: rgba(255,255,227,0.7);
  }
  .footer-bottom-links { gap: 1.5rem; }
  .footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,227,0.75); }
}

/* ---- Editorial Reveal & Continuous Glide ---- */
html {
  scroll-behavior: auto; /* JS smoothGlide handles continuous glide to avoid browser collisions */
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

/* Masked boundary wrapper for headings: cleanly clips rising text */
.reveal-mask {
  overflow: hidden;
  display: block;
  padding-bottom: 6px;
  margin-bottom: -6px;
}

/* Headings: noticeable masked upward rise (44px) */
.reveal-heading,
.section-head h1,
.section-head h2,
.section-head h3,
.hero-copy h1,
.about-body h1,
.about-body h2 {
  display: block;
  transform: translateY(44px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.82s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.82s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Eyebrows: subtle 16px rise */
.reveal-eyebrow,
.section-head .eyebrow,
.about-body .eyebrow {
  display: inline-block;
  transform: translateY(16px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-copy .hero-badge {
  display: inline-flex;
  align-items: center;
  transform: translateY(16px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Supporting paragraphs: 24px rise */
.reveal-text,
.section-head p,
.hero-copy .hero-lead,
.hero-copy .hero-sub,
.about-body p {
  transform: translateY(24px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.74s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cards & Compound Elements: 28px rise */
.reveal-card,
.specialty-card,
.service-detail,
.booking-path-card,
.booking-single-card,
.roadmap-step,
.faq-item,
.contact-form-card,
.contact-info-card,
.trust-strip,
.reflective-panel,
.cta-banner,
.hero-portrait,
.about-portrait {
  transform: translateY(28px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

/* CTAs and buttons: 20px rise */
.reveal-cta,
.hero-actions {
  transform: translateY(20px);
  opacity: 0;
  will-change: transform, opacity;
  transition:
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active Revealed States: when element has .is-revealed or .is-visible, or when parent section is revealed */
.reveal-heading.is-revealed,
.reveal-heading.is-visible,
.is-revealed .reveal-heading,
.is-visible .reveal-heading,
.section-head.is-revealed h1,
.section-head.is-revealed h2,
.section-head.is-revealed h3,
.section-head.is-visible h1,
.section-head.is-visible h2,
.section-head.is-visible h3,
.hero-copy.is-revealed h1,
.hero-copy.is-visible h1,
.about-body.is-revealed h1,
.about-body.is-visible h1,
.about-body.is-revealed h2,
.about-body.is-visible h2 {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.reveal-eyebrow.is-revealed,
.reveal-eyebrow.is-visible,
.is-revealed .reveal-eyebrow,
.is-visible .reveal-eyebrow,
.hero-badge.is-revealed,
.hero-badge.is-visible,
.is-revealed .hero-badge,
.is-visible .hero-badge,
.section-head.is-revealed .eyebrow,
.section-head.is-visible .eyebrow,
.about-body.is-revealed .eyebrow,
.about-body.is-visible .eyebrow {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.reveal-text.is-revealed,
.reveal-text.is-visible,
.is-revealed .reveal-text,
.is-visible .reveal-text,
.section-head.is-revealed p,
.section-head.is-visible p,
.hero-copy.is-revealed .hero-lead,
.hero-copy.is-revealed .hero-sub,
.hero-copy.is-visible .hero-lead,
.hero-copy.is-visible .hero-sub,
.about-body.is-revealed p,
.about-body.is-visible p {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.reveal-card.is-revealed,
.reveal-card.is-visible,
.specialty-card.is-revealed,
.specialty-card.is-visible,
.service-detail.is-revealed,
.service-detail.is-visible,
.booking-path-card.is-revealed,
.booking-path-card.is-visible,
.booking-single-card.is-revealed,
.booking-single-card.is-visible,
.roadmap-step.is-revealed,
.roadmap-step.is-visible,
.faq-item.is-revealed,
.faq-item.is-visible,
.contact-form-card.is-revealed,
.contact-form-card.is-visible,
.contact-info-card.is-revealed,
.contact-info-card.is-visible,
.trust-strip.is-revealed,
.trust-strip.is-visible,
.reflective-panel.is-revealed,
.reflective-panel.is-visible,
.cta-banner.is-revealed,
.cta-banner.is-visible,
.hero-portrait.is-revealed,
.hero-portrait.is-visible,
.about-portrait.is-revealed,
.about-portrait.is-visible,
.reveal-cta.is-revealed,
.reveal-cta.is-visible,
.hero-actions.is-revealed,
.hero-actions.is-visible,
[data-reveal].is-visible,
[data-reveal].is-revealed {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Release will-change layer memory as soon as elements settle */
.is-revealed,
.is-visible,
.is-revealed .reveal-heading,
.is-revealed .reveal-eyebrow,
.is-revealed .reveal-text,
.is-revealed .reveal-card,
.is-revealed .reveal-cta,
.is-revealed .specialty-card,
.is-revealed .service-detail,
.is-revealed .booking-path-card,
.is-revealed .booking-single-card,
.is-revealed .roadmap-step,
.is-revealed .faq-item,
.is-revealed .contact-form-card,
.is-revealed .contact-info-card,
.is-revealed .trust-strip,
.is-revealed .reflective-panel,
.is-revealed .cta-banner,
.is-revealed .hero-portrait,
.is-revealed .about-portrait,
.reveal-heading.is-revealed,
.reveal-eyebrow.is-revealed,
.reveal-text.is-revealed,
.reveal-card.is-revealed,
.reveal-cta.is-revealed,
[data-reveal].is-revealed,
[data-reveal].is-visible {
  will-change: auto;
}

/* Backward compatibility fallback */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.74s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.74s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Accessibility: Prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .reveal-heading,
  .reveal-eyebrow,
  .reveal-text,
  .reveal-card,
  .reveal-cta,
  .hero-actions,
  .hero-badge,
  .specialty-card,
  .service-detail,
  .booking-path-card,
  .booking-single-card,
  .roadmap-step,
  .faq-item,
  .contact-form-card,
  .contact-info-card,
  .trust-strip,
  .reflective-panel,
  .cta-banner,
  .hero-portrait,
  .about-portrait,
  [data-reveal] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .reveal-mask {
    overflow: visible !important;
  }
}


/* ---- Tag pill ---- */
.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.4em 0.9em; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-soft);
}

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--text-soft); }
.field .hint { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-hover); background: #fff;
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-section-title {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}
.contact-form-card form > .form-section-title:first-of-type { margin-top: 0.5rem; padding-top: 0; border-top: none; }
.form-privacy-note { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }

/* visible focus ring for a11y across interactive elements */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Toast / status ---- */
.status-msg { display: none; padding: 0.9em 1.2em; border-radius: var(--radius-sm); font-size: 0.9rem; margin-top: 1rem; }
.status-msg.is-visible { display: block; }
.status-msg--success { background: #e8f5e9; border: 1px solid #43a047; color: #1b5e20; }
.status-msg--error { background: #fbe9e7; border: 1px solid #e53935; color: #b71c1c; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: #fff; padding: 0.8em 1.2em; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- Footer disclaimer ---- */
.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 227, 0.58);
  margin-top: clamp(1.75rem, 3.5vw, 2.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.5rem);
  border-top: 1px solid rgba(255, 255, 227, 0.12);
}

/* ---- Certificate Lightbox Modal ---- */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 12, 61, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-soft), visibility 0.3s;
}
.cert-modal.is-active {
  opacity: 1;
  visibility: visible;
}
.cert-modal-dialog {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-soft);
}
.cert-modal.is-active .cert-modal-dialog {
  transform: scale(1);
}
.cert-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, background 0.2s;
}
.cert-modal-close:hover {
  transform: scale(1.1);
  background: #000;
}
.cert-modal-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}
.cert-modal-caption {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
}
