/* ============================================================
   LUNA-SHEET.CSS
   Design System for saasmedia.com

   Designed & Developed by SaaSMedia
   https://saasmedia.com

   Version  : 1.1  (stylesheet fixes — 5)
   Theme    : Luma — dark-first, pastel glow, cinematic minimalism
   Fonts    : Cormorant Garamond · Outfit · Space Grotesk (Google Fonts)
   Supports : Dark mode (default) + Light mode via [data-theme="light"]
              Safari/WebKit mobile fix included
   ============================================================

   TABLE OF CONTENTS
   ─────────────────────────────────────────────────────────────
   01  Google Fonts Import
   02  Design Tokens  (CSS custom properties)
   03  Aurora Background System
   04  Reset & Base
   05  Typography Scale
   06  Layout Utilities  (wrap, grid, section spacing)
   07  Navigation  (desktop + mobile + hamburger)
   08  Theme Toggle
   09  Buttons
   10  Glow Cards
   11  Glowing Divider
   12  Hero Section
   13  Stat Bar
   14  Brand Strip
   15  Pillar Cards  (Three-column feature cards)
   16  Testimonial Section
   17  Matrix / mitem Grid  (multicolour pastel tiles)
   18  Two-Column Layout
   19  Portrait Placeholder
   20  Pills
   21  Timeline
   22  Service Rows
   23  Topic Cards  (Speaking page)
   24  Cohort Box
   25  Insights / LinkedIn Feed
   26  Contact Grid + Form
   27  Video Box
   28  Event Chips
   29  Page Hero  (inner pages)
   30  CTA Section
   31  Footer
   32  Fade-In Animation
   33  Light Theme Overrides
   34  Safari / WebKit Mobile Fix
   35  Registrar Nav Extensions
   ============================================================ */


/* ============================================================
   01  GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600&display=swap');


/* ============================================================
   02  DESIGN TOKENS
   ============================================================
   Usage: var(--violet), var(--rose), var(--mint), etc.
   All colours, shadows and glows are driven by these tokens.
   Override any token to retheme the entire system.
   ============================================================ */
:root {
  /* ── Core palette: deep midnight base ── */
  --bg:           #080810;
  --bg2:          #0d0d1a;
  --bg3:          #111124;
  --surface:      rgba(255,255,255,.04);
  --surface2:     rgba(255,255,255,.07);
  --border:       rgba(255,255,255,.08);
  --border-glow:  rgba(180,140,255,.25);

  /* ── Pastel glow accents ── */
  --violet:  #b48fff;
  --rose:    #ff8fb5;
  --mint:    #7fffd4;
  --gold:    #ffd580;
  --sky:     #7ec8e3;
  --peach:   #ffb699;

  /* ── Text ── */
  --text:   #f0eeff;
  --text2:  rgba(240,238,255,.65);
  --text3:  rgba(240,238,255,.38);

  /* ── Glow shadows ── */
  --glow-v:   0 0 60px rgba(180,143,255,.18), 0 0 120px rgba(180,143,255,.08);
  --glow-r:   0 0 60px rgba(255,143,181,.15), 0 0 120px rgba(255,143,181,.07);
  --glow-m:   0 0 60px rgba(127,255,212,.12), 0 0 120px rgba(127,255,212,.06);
  --shadow:   0 20px 60px rgba(0,0,0,.5);
  --shadow-sm:0 4px 20px rgba(0,0,0,.35);

  /* ── Navigation ── */
  --nav-bg:   rgba(8,8,16,.85);
}


/* ============================================================
   03  AURORA BACKGROUND SYSTEM
   ============================================================
   body::before  — layered radial gradient orbs (ambient colour)
   body::after   — SVG fractal noise grain overlay for depth
   Both are position:fixed so they never scroll.
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 15%,  rgba(180,143,255,.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%,  rgba(255,143,181,.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 90%,  rgba(127,255,212,.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 60%,  rgba(255,213,128,.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .6;
}
/* Ensure content layers sit above pseudo-element backgrounds */
main, header, footer { position: relative; z-index: 1; }


/* ============================================================
   04  RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a  { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--violet); color: #fff; }


/* ============================================================
   05  TYPOGRAPHY SCALE
   ============================================================
   Headings  → Cormorant Garamond (editorial serif)
   Labels    → Space Grotesk (geometric, all-caps tags)
   Body/UI   → Outfit (clean, modern sans)
   ============================================================ */
h1, h2, h3  { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; line-height: 1.15; }
h4, h5, h6  { font-family: 'Space Grotesk', sans-serif; }

/* Tag / eyebrow label */
.tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--violet); display: block;
}
.tag.rose  { color: var(--rose); }
.tag.mint  { color: var(--mint); }
.tag.gold  { color: var(--gold); }


/* ============================================================
   06  LAYOUT UTILITIES
   ============================================================ */
.wrap    { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.wrap-sm { max-width: 740px;  margin: 0 auto; padding: 0 2rem; }
@media (max-width: 640px) {
  .wrap, .wrap-sm { padding: 0 1.25rem; }
}

/* Grids */
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
@media (max-width: 960px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g3, .g2 { grid-template-columns: 1fr; } }

/* Section spacing */
.sec    { padding: 6rem 0; }
.sec-lg { padding: 8rem 0; }
.sec-sm { padding: 3.5rem 0; }

/* Section heading */
.sh { text-align: center; margin-bottom: 4rem; }
.sh .tag { margin-bottom: .75rem; }
.sh h2 { font-size: clamp(2rem,3.5vw,3rem); font-weight: 300; }
.sh p  { color: var(--text2); font-size: 1rem; max-width: 540px; margin: .75rem auto 0; line-height: 1.75; }

main { flex: 1; padding-top: 72px; }


/* ============================================================
   07  NAVIGATION
   ============================================================
   v1.1 CHANGES:
   - FIX 1: #mob-nav *container* rule removed. Sole definition
     is now nav#mob-nav in §35. The #mob-nav a rules below are
     kept as base styling refined by §35.
   - FIX 3: .nav-links merged — gap/flex-wrap/white-space now
     live here, not in §35.
   - FIX 5: .nav-inner uses gap:2rem; .nav-links uses
     margin-inline:auto for true centering.
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 0;
  transition: all .35s;
}
#nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;                                    /* FIX 5 */
  max-width: 1180px; margin: 0 auto; padding: 0 2rem;
}

/* Logo — gradient text */
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem; font-weight: 500; letter-spacing: .02em;
  color: var(--text); transition: color .2s;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Desktop nav links — merged from §35 (FIX 3) + centered (FIX 5) */
.nav-links {
  display: flex; align-items: center;
  gap: 1.25rem;                                 /* FIX 3 — single source of truth */
  flex-wrap: nowrap;                            /* FIX 3 */
  white-space: nowrap;                          /* FIX 3 */
  list-style: none;
  margin-inline: auto;                          /* FIX 5 — true center between flex siblings */
}
.nav-links li { flex-shrink: 0; }               /* FIX 3 */
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text2); transition: color .2s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
  transition: width .3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile — hamburger */
.ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.ham span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text2); border-radius: 2px; transition: all .3s;
}
.ham.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── #mob-nav CONTAINER removed (FIX 1) — see §35 nav#mob-nav ── */

/* Mobile overlay links — base styling (retained; §35 refines) */
#mob-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300;
  color: var(--text2); transition: color .2s;
  /* ── Safari WebKit fix: reset gradient-text bleed from .nav-logo ── */
  -webkit-text-fill-color: var(--text2);
  background: none; -webkit-background-clip: unset; background-clip: unset;
}
#mob-nav a:hover, #mob-nav a.active {
  color: var(--text); font-style: italic;
  -webkit-text-fill-color: var(--text);
}

/* Mobile breakpoint */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .ham { display: flex; }
  main { padding-top: 64px; }
  /* Logo inside badge wrapper always visible */
  .nav-logo-wrap .nav-logo { display: inline !important; }
}


/* ============================================================
   08  THEME TOGGLE
   ============================================================
   v1.1: .toggle-btn removed (FIX 4). The active control is
   .theme-toggle-btn in §35. Grep HTML for class="toggle-btn"
   before deploy — any straggler will render as unstyled button.
   ============================================================ */
.ttrack {
  width: 32px; height: 17px; background: rgba(255,255,255,.1);
  border-radius: 9px; position: relative; flex-shrink: 0; transition: background .3s;
}
[data-theme="light"] .ttrack { background: rgba(180,143,255,.4); }
.tthumb {
  position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; background: #fff;
  border-radius: 50%; transition: transform .3s; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
[data-theme="light"] .tthumb { transform: translateX(15px); }
.tlabel { font-size: .68rem; }
.mob-toggle {
  display: flex; margin-top: 1rem;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 50px;
  padding: .5rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem; font-weight: 500; color: var(--text2);
  gap: .6rem; align-items: center;
}


/* ============================================================
   09  BUTTONS
   ============================================================
   .btn-p  → violet gradient primary
   .btn-r  → rose gradient (speaking / accented CTAs)
   .btn-o  → ghost outline (violet)
   .btn-g  → surface ghost (neutral)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  transition: all .25s; border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.btn-p {
  background: linear-gradient(135deg, var(--violet), #9b6dff);
  color: #fff; border-color: transparent;
  box-shadow: 0 0 30px rgba(180,143,255,.3);
}
.btn-p:hover { box-shadow: 0 0 50px rgba(180,143,255,.5); transform: translateY(-1px); }

.btn-o {
  background: transparent; color: var(--violet);
  border-color: rgba(180,143,255,.35);
}
.btn-o:hover { background: rgba(180,143,255,.1); border-color: var(--violet); box-shadow: 0 0 20px rgba(180,143,255,.2); }

.btn-r {
  background: linear-gradient(135deg, var(--rose), #ff6a9b);
  color: #fff; border-color: transparent;
  box-shadow: 0 0 30px rgba(255,143,181,.3);
}
.btn-r:hover { box-shadow: 0 0 50px rgba(255,143,181,.5); transform: translateY(-1px); }

.btn-g {
  background: var(--surface2); color: var(--text2); border-color: var(--border);
}
.btn-g:hover { border-color: var(--border-glow); color: var(--text); }


/* ============================================================
   10  GLOW CARDS
   ============================================================
   Base card with hover glow sweep.
   Modifier classes: .rose-card, .mint-card
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 2.25rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card::before {
  content: '';
  position: absolute; inset: -1px; border-radius: 21px;
  background: linear-gradient(135deg,rgba(180,143,255,.15) 0%,transparent 50%,rgba(255,143,181,.1) 100%);
  opacity: 0; transition: opacity .3s;
  pointer-events: none; z-index: 0;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-glow); box-shadow: var(--glow-v); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card.rose-card:hover { border-color: rgba(255,143,181,.35); box-shadow: var(--glow-r); }
.card.mint-card:hover { border-color: rgba(127,255,212,.25); box-shadow: var(--glow-m); }


/* ============================================================
   11  GLOWING DIVIDER
   ============================================================ */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(180,143,255,.4),rgba(255,143,181,.3),transparent);
  border: none; margin: 0;
}


/* ============================================================
   12  HERO SECTION (homepage)
   ============================================================
   Animated aurora orbs sit behind content.
   .hero-orb-1/2/3 use infinite alternate keyframe animations.
   ============================================================ */
.hero {
  padding: 8rem 0 6rem;
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
}
.hero-orb-1 {
  position: absolute; top: -20%; left: -10%;
  width: 60vw; height: 60vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle,rgba(180,143,255,.12) 0%,transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: orb1 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  position: absolute; top: 10%; right: -15%;
  width: 50vw; height: 50vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle,rgba(255,143,181,.09) 0%,transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: orb2 15s ease-in-out infinite alternate;
}
.hero-orb-3 {
  position: absolute; bottom: -10%; left: 30%;
  width: 40vw; height: 40vw; max-width: 500px; max-height: 500px;
  background: radial-gradient(circle,rgba(127,255,212,.07) 0%,transparent 65%);
  border-radius: 50%; pointer-events: none;
  animation: orb3 18s ease-in-out infinite alternate;
}
@keyframes orb1 { 0%{transform:translate(0,0) scale(1);}   100%{transform:translate(5%,3%) scale(1.05);} }
@keyframes orb2 { 0%{transform:translate(0,0) scale(1);}   100%{transform:translate(-4%,5%) scale(1.08);} }
@keyframes orb3 { 0%{transform:translate(0,0) scale(1);}   100%{transform:translate(-3%,-4%) scale(1.04);} }

.hero-inner { text-align: center; max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(180,143,255,.08);
  border: 1px solid rgba(180,143,255,.2); border-radius: 50px;
  padding: .4rem 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .73rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 2rem;
}
.hero-eyebrow span {
  width: 6px; height: 6px; background: var(--violet); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.5;transform:scale(.8);} }

.hero h1 {
  font-size: clamp(2.8rem,6vw,5.2rem);
  font-weight: 300; line-height: 1.08;
  margin-bottom: 1.75rem; letter-spacing: -.01em;
}
.hero h1 .g-text {
  background: linear-gradient(135deg,var(--violet) 0%,var(--rose) 50%,var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 em { font-style: italic; color: var(--text2); }
.hero-sub {
  font-size: clamp(1rem,1.6vw,1.2rem);
  color: var(--text2); max-width: 640px;
  margin: 0 auto 2.75rem; line-height: 1.8; font-weight: 300;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


/* ============================================================
   13  STAT BAR
   ============================================================ */
.statbar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0; position: relative;
}
.statbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(180,143,255,.2),transparent);
}
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; }
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 3rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
@media (max-width: 640px) {
  .stat-item { padding: .75rem 1.5rem; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 500; line-height: 1;
  background: linear-gradient(135deg,var(--violet),var(--rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .3rem;
}
.stat-label { font-family: 'Space Grotesk',sans-serif; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--text3); }


/* ============================================================
   14  BRAND STRIP
   ============================================================ */
.brand-strip { padding: 3rem 0; border-bottom: 1px solid var(--border); }
.brand-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem 2.5rem; }
.brand-chip {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text3); padding: .45rem 1.1rem;
  border: 1px solid rgba(255,255,255,.06); border-radius: 50px;
  background: var(--surface); transition: all .25s;
}
.brand-chip:hover { color: var(--text); border-color: rgba(180,143,255,.3); background: rgba(180,143,255,.06); }


/* ============================================================
   15  PILLAR CARDS
   ============================================================
   Three-column feature cards with coloured bottom-border accent.
   Colour variants: .v (violet), .r (rose), .m (mint)
   ============================================================ */
.pillar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pillar-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-grad, linear-gradient(90deg,var(--violet),var(--rose)));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.pillar-card:hover { transform: translateY(-8px); }
.pillar-card:hover::after { transform: scaleX(1); }

.pillar-card.v { --accent-grad: linear-gradient(90deg,var(--violet),#c9a3ff); }
.pillar-card.v:hover { border-color: rgba(180,143,255,.3); box-shadow: 0 0 40px rgba(180,143,255,.12); }
.pillar-card.r { --accent-grad: linear-gradient(90deg,var(--rose),var(--peach)); }
.pillar-card.r:hover { border-color: rgba(255,143,181,.3); box-shadow: 0 0 40px rgba(255,143,181,.12); }
.pillar-card.m { --accent-grad: linear-gradient(90deg,var(--mint),var(--sky)); }
.pillar-card.m:hover { border-color: rgba(127,255,212,.25); box-shadow: 0 0 40px rgba(127,255,212,.1); }

.pillar-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  border: 1px solid var(--border);
}
.pillar-card.v .pillar-icon { background: rgba(180,143,255,.1); border-color: rgba(180,143,255,.2); }
.pillar-card.r .pillar-icon { background: rgba(255,143,181,.1); border-color: rgba(255,143,181,.2); }
.pillar-card.m .pillar-icon { background: rgba(127,255,212,.1); border-color: rgba(127,255,212,.2); }

.pillar-title { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 400; }
.pillar-desc  { font-size: .93rem; color: var(--text2); line-height: 1.75; flex: 1; }
.pillar-link  {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: .3rem; transition: gap .2s;
}
.pillar-card.v .pillar-link { color: var(--violet); }
.pillar-card.r .pillar-link { color: var(--rose); }
.pillar-card.m .pillar-link { color: var(--mint); }
.pillar-link:hover { gap: .6rem; }


/* ============================================================
   16  TESTIMONIAL SECTION
   ============================================================ */
.testi-sec {
  background: linear-gradient(180deg,var(--bg) 0%,var(--bg2) 100%);
  padding: 7rem 0; position: relative;
}
.testi-sec::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(180,143,255,.25),transparent);
}
.testi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 2.5rem; position: relative;
}
.testi-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem; line-height: 1; font-weight: 300;
  color: var(--violet); opacity: .18;
  position: absolute; top: .5rem; left: 1.75rem;
}
.qtext {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem,1.9vw,1.45rem); font-weight: 300;
  font-style: italic; line-height: 1.7; color: var(--text);
  margin-bottom: 1.75rem; padding-top: 1.5rem;
}
.qattr { display: flex; align-items: center; gap: .85rem; }
.qavatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg,var(--violet),var(--rose));
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-size: .75rem; font-weight: 700; color: #fff;
}
.qname { font-family: 'Space Grotesk', sans-serif; font-size: .88rem; font-weight: 600; color: var(--text); }
.qrole { font-family: 'Space Grotesk', sans-serif; font-size: .75rem; color: var(--mint); }


/* ============================================================
   17  MATRIX / MITEM GRID  (multicolour pastel tiles)
   ============================================================
   Auto-fill grid of expertise tiles.
   Each .mitem gets a colour class (c-v through c-p) applied
   via JS cycling: c-v c-r c-m c-g c-s c-p
   The coloured left-border glow is the signature visual.
   ============================================================ */
.matrix-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: .85rem; }

.mitem {
  border-radius: 14px; padding: 1.2rem 1.25rem 1.2rem 1rem;
  transition: all .3s; cursor: default;
  position: relative; overflow: hidden;
  border: 1px solid transparent;
  background: var(--mi-bg, rgba(180,143,255,.06));
}
/* Glowing left-border accent */
.mitem::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--mi-accent, var(--violet));
  border-radius: 3px 0 0 3px;
  box-shadow: 0 0 12px var(--mi-glow, rgba(180,143,255,.5));
  transition: box-shadow .3s;
}
.mitem:hover {
  transform: translateY(-3px);
  border-color: var(--mi-border, rgba(180,143,255,.22));
  box-shadow: 0 6px 28px var(--mi-shadow, rgba(180,143,255,.12));
}
.mitem:hover::before { box-shadow: 0 0 20px var(--mi-glow, rgba(180,143,255,.7)); }

/* ── Colour variants ── */
.mitem.c-v { --mi-bg:rgba(180,143,255,.06); --mi-accent:#b48fff; --mi-glow:rgba(180,143,255,.55); --mi-border:rgba(180,143,255,.22); --mi-shadow:rgba(180,143,255,.12); }
.mitem.c-r { --mi-bg:rgba(255,143,181,.05); --mi-accent:#ff8fb5; --mi-glow:rgba(255,143,181,.5);  --mi-border:rgba(255,143,181,.2);  --mi-shadow:rgba(255,143,181,.1);  }
.mitem.c-m { --mi-bg:rgba(127,255,212,.04); --mi-accent:#7fffd4; --mi-glow:rgba(127,255,212,.45); --mi-border:rgba(127,255,212,.18); --mi-shadow:rgba(127,255,212,.09); }
.mitem.c-g { --mi-bg:rgba(255,213,128,.05); --mi-accent:#ffd580; --mi-glow:rgba(255,213,128,.45); --mi-border:rgba(255,213,128,.2);  --mi-shadow:rgba(255,213,128,.1);  }
.mitem.c-s { --mi-bg:rgba(126,200,227,.04); --mi-accent:#7ec8e3; --mi-glow:rgba(126,200,227,.45); --mi-border:rgba(126,200,227,.18); --mi-shadow:rgba(126,200,227,.09); }
.mitem.c-p { --mi-bg:rgba(255,182,153,.05); --mi-accent:#ffb699; --mi-glow:rgba(255,182,153,.45); --mi-border:rgba(255,182,153,.2);  --mi-shadow:rgba(255,182,153,.1);  }

/* Glowing dot (replaces icon) */
.mitem-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mi-accent, var(--violet));
  box-shadow: 0 0 8px var(--mi-glow, rgba(180,143,255,.6));
  display: inline-block; margin-bottom: .6rem; flex-shrink: 0;
}
.mitem-title { font-family: 'Space Grotesk', sans-serif; font-size: .84rem; font-weight: 600; margin-bottom: .25rem; color: var(--text); line-height: 1.3; }
.mitem-sub   { font-size: .74rem; color: var(--text3); line-height: 1.5; }
.mitem-icon  { display: none; } /* hidden — replaced by .mitem-dot */


/* ============================================================
   18  TWO-COLUMN LAYOUT
   ============================================================ */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
@media (max-width: 760px) { .twocol { grid-template-columns: 1fr; gap: 2.5rem; } }


/* ============================================================
   19  PORTRAIT PLACEHOLDER
   ============================================================ */
.portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg,rgba(180,143,255,.06) 0%,rgba(255,143,181,.04) 100%);
  border-radius: 24px; border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--text3); font-size: 1.1rem; text-align: center; padding: 2rem;
  position: relative; overflow: hidden;
}
.portrait::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%,rgba(180,143,255,.08) 0%,transparent 65%);
}
.bio h2 { font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 300; margin-bottom: 1.25rem; }
.bio p  { font-size: .97rem; line-height: 1.85; color: var(--text2); }
.bio p + p { margin-top: .9rem; }


/* ============================================================
   20  PILLS
   ============================================================ */
.pills { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; }
.pill {
  padding: .45rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 500; color: var(--text2);
  transition: all .2s;
}
.pill:hover { border-color: rgba(180,143,255,.35); color: var(--text); background: rgba(180,143,255,.07); }


/* ============================================================
   21  TIMELINE
   ============================================================
   Left-border gradient line with coloured dot indicators.
   Dot colour variants: default (violet), .rose, .mint, .gold
   ============================================================ */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg,var(--violet),var(--rose),transparent);
}
.tl-item { position: relative; padding: 0 0 3rem 2rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -2.3rem; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 12px rgba(180,143,255,.5);
}
.tl-item.rose .tl-dot { background: var(--rose); box-shadow: 0 0 12px rgba(255,143,181,.5); }
.tl-item.mint .tl-dot { background: var(--mint); box-shadow: 0 0 12px rgba(127,255,212,.4); }
.tl-item.gold .tl-dot { background: var(--gold); box-shadow: 0 0 12px rgba(255,213,128,.4); }

.tl-period  { font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: .35rem; }
.tl-company { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; margin-bottom: .2rem; }
.tl-role    { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; font-weight: 500; color: var(--text2); margin-bottom: .75rem; }
.tl-desc    { font-size: .88rem; color: var(--text3); line-height: 1.75; }
.tl-item.rose .tl-period { color: var(--rose); }
.tl-item.mint .tl-period { color: var(--mint); }
.tl-item.gold .tl-period { color: var(--gold); }
.tl-bullets { list-style: none; margin-top: .6rem; }
.tl-bullets li { font-size: .84rem; color: var(--text3); line-height: 1.7; padding: .2rem 0 .2rem 1.2rem; position: relative; }
.tl-bullets li::before { content: '›'; position: absolute; left: 0; color: var(--violet); font-weight: 700; }


/* ============================================================
   22  SERVICE ROWS
   ============================================================
   Alternating two-column layout.
   .srow.rev uses direction:rtl to flip column order.
   ============================================================ */
.srow { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; padding: 5rem 0; border-bottom: 1px solid var(--border); }
.srow:last-child { border-bottom: none; }
.srow.rev { direction: rtl; }
.srow.rev > * { direction: ltr; }
@media (max-width: 760px) { .srow { grid-template-columns: 1fr; gap: 2.5rem; direction: ltr !important; } }

.simg {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg,rgba(180,143,255,.06),rgba(255,143,181,.04));
  border-radius: 20px; border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--text3);
  position: relative; overflow: hidden; padding: 2rem; text-align: center;
}
.simg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%,rgba(180,143,255,.1) 0%,transparent 65%);
}
.sicon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; border: 1px solid var(--border); }
.stitle { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; margin-bottom: .6rem; }
.stag   { font-family: 'Space Grotesk', sans-serif; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: .9rem; }
.sdesc  { color: var(--text2); line-height: 1.8; margin-bottom: 1.25rem; font-size: .93rem; }
.ckl    { list-style: none; margin-bottom: 2rem; }
.ckl li { display: flex; align-items: flex-start; gap: .65rem; color: var(--text2); font-size: .9rem; padding: .3rem 0; }
.ckl li::before { content: '✓'; color: var(--mint); font-weight: 700; flex-shrink: 0; }


/* ============================================================
   23  TOPIC CARDS  (Speaking page)
   ============================================================ */
.topic-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 2rem; display: flex; flex-direction: column; transition: all .3s;
}
.topic-card:hover { border-color: rgba(180,143,255,.3); transform: translateY(-5px); box-shadow: 0 0 40px rgba(180,143,255,.1); }
.topic-num {
  font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 300; line-height: 1;
  background: linear-gradient(135deg,var(--violet),var(--rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  opacity: .4; margin-bottom: .4rem;
}
.topic-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400; margin-bottom: .6rem; }
.topic-desc  { font-size: .85rem; color: var(--text2); line-height: 1.7; flex: 1; }
.topic-tag   { font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); margin-top: .85rem; }


/* ============================================================
   24  COHORT BOX
   ============================================================ */
.cohort-box {
  background: linear-gradient(135deg,rgba(180,143,255,.06) 0%,rgba(255,143,181,.04) 100%);
  border: 1px solid var(--border-glow); border-radius: 28px;
  padding: 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.cohort-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%,rgba(180,143,255,.08) 0%,transparent 65%);
}
.cohort-box > * { position: relative; z-index: 1; }
.cohort-badge {
  display: inline-block; padding: .35rem 1rem;
  background: rgba(127,255,212,.12); border: 1px solid rgba(127,255,212,.25); border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--mint); margin-bottom: 1.25rem;
}


/* ============================================================
   25  INSIGHTS / LINKEDIN FEED
   ============================================================ */
.li-feed { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 1.5rem; }
.li-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 1.85rem; display: flex; flex-direction: column; gap: .9rem;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.li-card:hover { transform: translateY(-5px); border-color: rgba(180,143,255,.3); box-shadow: 0 0 40px rgba(180,143,255,.1); }
.li-meta   { display: flex; align-items: center; gap: .7rem; }
.li-avatar {
  width: 38px; height: 38px;
  background: linear-gradient(135deg,var(--violet),var(--rose));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .82rem; flex-shrink: 0;
}
.li-author { font-family: 'Space Grotesk', sans-serif; font-size: .85rem; font-weight: 600; }
.li-date   { font-size: .75rem; color: var(--text3); }
.li-cat    { font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--violet); }
.li-body   { font-size: .88rem; line-height: 1.75; color: var(--text2); flex: 1; }
.li-cta    { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 600; color: var(--violet); display: inline-flex; align-items: center; gap: .2rem; transition: gap .2s; margin-top: auto; }
.li-cta:hover { gap: .45rem; }

/* Filter buttons */
.li-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.li-filter button {
  padding: .4rem 1rem; border-radius: 50px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: 'Space Grotesk', sans-serif; font-size: .75rem; font-weight: 500;
  color: var(--text3); transition: all .2s; cursor: pointer;
}
.li-filter button.active,
.li-filter button:hover { border-color: rgba(180,143,255,.35); color: var(--violet); background: rgba(180,143,255,.08); }

/* LinkedIn iframe wrapper (if used) */
.li-iframe-wrap { border: 1px solid var(--border-glow); border-radius: 20px; overflow: hidden; box-shadow: var(--glow-v); background: var(--surface); }
.li-iframe-head { background: #0a66c2; padding: .85rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }


/* ============================================================
   26  CONTACT GRID + FORM
   ============================================================ */
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
@media (max-width: 760px) { .cgrid { grid-template-columns: 1fr; gap: 3rem; } }

label {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  margin-bottom: .5rem; color: var(--text2);
}
input, textarea, select {
  width: 100%; padding: .85rem 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-size: .92rem; color: var(--text);
  transition: border-color .2s, background .2s; outline: none;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus { border-color: rgba(180,143,255,.5); background: rgba(180,143,255,.04); }
input::placeholder, textarea::placeholder { color: var(--text3); }
textarea { resize: vertical; min-height: 140px; }
select option { background: #0d0d1a; color: var(--text); }
.fgrp { margin-bottom: 1.25rem; }

.calbox {
  background: var(--surface); border: 1px solid var(--border-glow); border-radius: 24px;
  min-height: 460px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.calbox::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%,rgba(180,143,255,.08) 0%,transparent 65%);
}
.calbox > * { position: relative; z-index: 1; }
.calico   { font-size: 2.6rem; margin-bottom: 1rem; }
.caltitle { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 400; margin-bottom: .7rem; }
.caldesc  { color: var(--text2); font-size: .9rem; max-width: 280px; margin: 0 auto 1.5rem; line-height: 1.75; }
.calnote  { font-size: .75rem; color: var(--text3); margin-top: 1rem; }
.cinfo    { display: flex; align-items: center; gap: .75rem; font-size: .9rem; color: var(--text2); padding: .5rem 0; }
.cico     { font-size: .9rem; color: var(--violet); flex-shrink: 0; }


/* ============================================================
   27  VIDEO BOX
   ============================================================ */
.vbox {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,rgba(180,143,255,.06),rgba(255,143,181,.04));
  border-radius: 20px; border: 1px solid var(--border-glow);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow); margin-top: -3.5rem;
  transition: all .3s; position: relative; overflow: hidden;
}
.vbox::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%,rgba(180,143,255,.1) 0%,transparent 65%);
}
.vbox > * { position: relative; z-index: 1; }
.vbox:hover { border-color: rgba(180,143,255,.4); box-shadow: var(--glow-v); }
.vbox:hover .vplay { transform: scale(1.1); }
.vplay  { font-size: 3.5rem; color: var(--violet); margin-bottom: .65rem; transition: transform .25s; }
.vlabel { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--text2); }


/* ============================================================
   28  EVENT CHIPS
   ============================================================ */
.events { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.ename {
  padding: .6rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif; font-size: .8rem; font-weight: 500; color: var(--text2);
  transition: all .2s;
}
.ename:hover { border-color: rgba(180,143,255,.3); color: var(--text); }


/* ============================================================
   29  PAGE HERO  (inner pages)
   ============================================================ */
.phero { padding: 5rem 0 3.5rem; text-align: center; position: relative; }
.phero h1 { font-size: clamp(2.2rem,4vw,3.6rem); font-weight: 300; margin-bottom: 1rem; }
.phero p  { color: var(--text2); font-size: 1.05rem; max-width: 540px; margin: 0 auto; line-height: 1.75; }


/* ============================================================
   30  CTA SECTION
   ============================================================ */
.ctasec { text-align: center; padding: 7rem 0; position: relative; }
.ctasec::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(180,143,255,.3),transparent);
}
.ctasec h2 { font-size: clamp(1.9rem,3.5vw,3rem); font-weight: 300; margin-bottom: 1rem; }
.ctasec p  { color: var(--text2); font-size: 1rem; margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }


/* ============================================================
   31  FOOTER
   ============================================================ */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 4rem 0 2rem; position: relative;
}
footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,transparent,rgba(180,143,255,.3),rgba(255,143,181,.2),transparent);
}
.fgrid { display: grid; grid-template-columns: 2.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; gap: 2rem; } }

.fbrand-name {
  font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400;
  background: linear-gradient(135deg,var(--violet),var(--rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: .6rem;
}
.ftagline { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--text3); font-size: .95rem; line-height: 1.6; }
.fcol h4  { font-family: 'Space Grotesk', sans-serif; font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; color: var(--violet); margin-bottom: 1.25rem; }
.fcol ul  { list-style: none; }
.fcol ul li + li { margin-top: .6rem; }
.fcol a   { font-size: .875rem; color: var(--text3); transition: color .2s; }
.fcol a:hover { color: var(--text); }

.fsoc { display: flex; gap: .65rem; }
.socbtn {
  width: 36px; height: 36px; background: var(--surface2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .82rem; border: 1px solid var(--border); color: var(--text2); transition: all .2s;
}
.socbtn:hover { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: 0 0 20px rgba(180,143,255,.4); }

.fbot { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.fbot p, .fbot a { font-size: .78rem; color: var(--text3); }
.fbot a:hover { color: var(--text2); }
.flegal { display: flex; gap: 1.5rem; }

/* Attribution */
.fattr { font-size: .72rem; color: var(--text3); }
.fattr a { color: var(--violet); transition: color .2s; text-decoration: none; }
.fattr a:hover { color: var(--rose); }


/* ============================================================
   32  FADE-IN ANIMATION
   ============================================================
   Add class .fi to any element.
   JS IntersectionObserver adds .vis when element enters viewport.
   ============================================================ */
.fi  { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fi.vis { opacity: 1; transform: translateY(0); }


/* ============================================================
   33  LIGHT THEME OVERRIDES
   ============================================================
   Applied via [data-theme="light"] on <html>.
   Toggled by JS writing to localStorage key "av-theme".
   ============================================================ */
[data-theme="light"] {
  --bg:           #faf8ff;
  --bg2:          #f2eeff;
  --bg3:          #ece8f8;
  --surface:      rgba(0,0,0,.03);
  --surface2:     rgba(0,0,0,.05);
  --border:       rgba(0,0,0,.09);
  --border-glow:  rgba(130,80,255,.2);
  --text:         #1a0f3a;
  --text2:        rgba(26,15,58,.62);
  --text3:        rgba(26,15,58,.4);
  --violet:       #7c3aed;
  --rose:         #c2185b;
  --mint:         #00796b;
  --gold:         #b45309;
  --sky:          #0277bd;
  --peach:        #e64a19;
  --nav-bg:       rgba(250,248,255,.9);
  --glow-v:       0 0 40px rgba(124,58,237,.12);
  --glow-r:       0 0 40px rgba(194,24,91,.1);
  --glow-m:       0 0 40px rgba(0,121,107,.1);
  --shadow:       0 12px 40px rgba(0,0,0,.12);
  --shadow-sm:    0 4px 16px rgba(0,0,0,.08);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 10% 15%, rgba(124,58,237,.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(194,24,91,.04)  0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(0,121,107,.04)  0%, transparent 65%);
}
[data-theme="light"] .nav-logo          { background: linear-gradient(135deg,var(--violet),var(--rose)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .hero h1 .g-text   { background: linear-gradient(135deg,var(--violet) 0%,var(--rose) 60%,var(--gold) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
[data-theme="light"] .stat-num          { background: linear-gradient(135deg,var(--violet),var(--rose)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }


/* ============================================================
   34  SAFARI / WEBKIT MOBILE FIX
   ============================================================
   Problem: Safari on iOS inherits -webkit-text-fill-color:transparent
   from .nav-logo gradient text, bleeding into #mob-nav links
   and making them invisible (dark/transparent on dark bg).

   Fix: explicitly reset -webkit-text-fill-color on all
   mobile nav links so Safari renders them white, matching Chrome.
   ============================================================ */
#mob-nav a {
  /* Reset any inherited -webkit-text-fill-color from gradient text ancestors */
  -webkit-text-fill-color: var(--text2);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
#mob-nav a:hover,
#mob-nav a.active {
  -webkit-text-fill-color: var(--text);
}


/* ============================================================
   35  REGISTRAR NAV EXTENSIONS
   ============================================================
   Added for domains.saasmedia.com registrar pages.
   All new nav components sit here so per-page overrides
   are no longer needed.

   v1.1 CHANGES:
   - FIX 1: nav#mob-nav is now the SOLE container definition.
   - FIX 2: padding-top:80px replaced with
            padding-top: max(1.5rem, env(safe-area-inset-top)).
   - FIX 3: .nav-links duplicate block removed — merged to §07.
   - FIX 4: .theme-toggle-btn retained; .toggle-btn deleted (§08).
   - FIX 5: handled in §07 (.nav-inner gap + .nav-links margin).
   ============================================================ */

/* ── Nav column layout ── */
.nav-left  { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.nav-right { display: flex; flex-direction: column; align-items: flex-end;   gap: .35rem; }

/* ── Icon buttons (gear + profile) ── */
.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); transition: all .2s; flex-shrink: 0;
}
.nav-icon-btn:hover {
  border-color: var(--border-glow); color: var(--violet);
  background: rgba(180,143,255,.08); box-shadow: 0 0 16px rgba(180,143,255,.2);
}
.nav-icon-btn svg { width: 22px; height: 22px; }

/* ── Logo badge ── */
.nav-logo-wrap {
  display: inline-flex; align-items: center;
  padding: .3rem .85rem; border-radius: 50px;
  background: #272229;
  position: relative; text-decoration: none;
  line-height: 1; white-space: nowrap; flex-shrink: 0;
  min-width: max-content;
}
.nav-logo-wrap::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50px; padding: 1.5px;
  background: linear-gradient(135deg, #b48fff, #ff8fb5);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
[data-theme="light"] .nav-logo-wrap { background: #EBE4EC; }
.nav-logo-wrap .nav-logo { position: relative; z-index: 1; font-size: 1.1rem; }

/* ── Theme toggle (renamed from .toggle-btn to escape mobile hide rule) ── */
.theme-toggle-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 50px;
  padding: .3rem .85rem; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 500; color: var(--text2);
  transition: border-color .2s, color .2s;
}
.theme-toggle-btn:hover { border-color: var(--violet); color: var(--text); }

/* ── Mobile overlay: always dark regardless of theme ──
   FIX 1: single authoritative definition.
   FIX 2: notch-aware top padding replaces flat 80px. */
nav#mob-nav {
  position: fixed !important; inset: 0 !important; z-index: 99 !important;
  display: none; flex-direction: column; align-items: center;
  justify-content: center; gap: 2.5rem;
  padding-top: max(1.5rem, env(safe-area-inset-top));   /* FIX 2 */
  padding-bottom: 1.5rem;                               /* FIX 2 */
  background: rgba(8,8,16,.97) !important;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
nav#mob-nav.open { display: flex !important; }
nav#mob-nav a,
[data-theme="light"] nav#mob-nav a {
  color: rgba(240,238,255,.65) !important;
  -webkit-text-fill-color: rgba(240,238,255,.65) !important;
  background: none !important; -webkit-background-clip: unset !important;
  background-clip: unset !important; display: block !important;
  opacity: 1 !important; visibility: visible !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.5rem !important; font-weight: 300 !important;
}
nav#mob-nav a:hover, nav#mob-nav a.active,
[data-theme="light"] nav#mob-nav a:hover,
[data-theme="light"] nav#mob-nav a.active {
  color: #f0eeff !important; -webkit-text-fill-color: #f0eeff !important;
  font-style: italic;
}
nav#mob-nav .mob-toggle,
[data-theme="light"] nav#mob-nav .mob-toggle {
  display: flex !important; opacity: 1 !important; visibility: visible !important;
  color: rgba(240,238,255,.65) !important;
  -webkit-text-fill-color: rgba(240,238,255,.65) !important;
  border-color: rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.06) !important;
}
[data-theme="light"] nav#mob-nav { background: rgba(8,8,16,.97) !important; }

/* Ham X always white when open */
.ham.open span,
[data-theme="light"] .ham.open span { background: #f0eeff !important; }

/* ── .nav-links duplicate block REMOVED (FIX 3) — see §07 ── */

/* ── Registrar responsive breakpoints ── */

/* Tablet + mobile (≤860px): 3-column grid — nav-left | ham (center) | nav-right */
@media (max-width: 860px) {
  .nav-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: start !important;
    gap: 0 !important;
  }
  .nav-left {
    grid-column: 1;
    display: flex !important; flex-direction: column !important;
    align-items: flex-start !important; gap: .35rem !important;
  }
  .ham {
    grid-column: 2;
    align-self: center !important;
    display: flex !important;
  }
  .nav-right {
    grid-column: 3;
    display: flex !important; flex-direction: column !important;
    align-items: flex-end !important; gap: .35rem !important;
  }
  .nav-logo-wrap {
    display: inline-flex !important; padding: .25rem .7rem !important;
    white-space: nowrap !important;
  }
  .nav-logo-wrap .nav-logo { display: inline !important; font-size: .95rem !important; }
  .nav-left .nav-icon-btn  { display: inline-flex !important; }
  .theme-toggle-btn        { display: flex !important; }
  .nav-right .nav-icon-btn { display: inline-flex !important; }
  /* nav-links hidden at this breakpoint — handled by §07 */
}

/* True mobile (≤480px): hide theme toggle, keep gear | ham | profile */
@media (max-width: 480px) {
  .theme-toggle-btn { display: none !important; }
}
