/* ==========================================================================
   Dynamic Paradox — Core Stylesheet
   Tokens · Reset · Typography · Layout · Navbar · Footer · Page sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy: #0B1224;
  --navy-800: #15203A;
  --navy-700: #334155;
  --emerald: #00A878;
  --emerald-600: #008A63;
  --emerald-100: #E8F7F3;
  --warm: #FAFBFC;
  --warm-200: #EAF1FF;
  --warm-300: #D8E4FA;
  --ink: #222222;
  --muted: #5F6470;
  --line: rgba(11, 18, 36, 0.1);
  --line-strong: rgba(11, 18, 36, 0.18);
  --white: #FFFFFF;
  --gold: #E5B45B;
  --blue: #3B82F6;

  /* Typography */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  --fs-display: clamp(2.75rem, 1.6rem + 4.2vw, 5.25rem);

  /* Spacing & layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 18, 36, 0.06), 0 2px 8px rgba(11, 18, 36, 0.04);
  --shadow: 0 10px 30px -12px rgba(11, 18, 36, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(11, 18, 36, 0.32);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --nav-h: 84px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

::selection { background: var(--emerald); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--warm);
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--emerald-600);
}

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-md);
  color: var(--muted);
  max-width: 60ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-600);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.text-muted { color: var(--muted); }
.serif { font-family: var(--font-serif); }

/* --------------------------------------------------------------------------
   4. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--alt { background: var(--warm-200); }
.section--dark {
  background: var(--navy);
  color: rgba(250, 251, 252, 0.78);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--warm); }
.section--dark h2 em { color: var(--emerald); }
.section--dark .eyebrow { color: var(--emerald); }
.section--dark .lead { color: rgba(250, 251, 252, 0.68); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 1.25rem; }

.divider { height: 1px; background: var(--line); border: 0; }

/* --------------------------------------------------------------------------
   5. Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease), backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  --nav-h: 70px;
  background: rgba(250, 251, 252, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--warm);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.5s var(--ease);
}
.brand__mark span { color: var(--emerald); }
.brand:hover .brand__mark { transform: rotate(-8deg); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}
.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.95rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--navy-700);
  border-radius: var(--radius-pill);
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--navy); background: rgba(11, 18, 36, 0.05); }
.nav__link[aria-current="page"] { color: var(--navy); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  transform: translateX(-50%);
}

.nav__actions { display: flex; align-items: center; gap: 0.75rem; }

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  place-items: center;
  color: var(--navy);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav__toggle-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform: translateX(-50%);
}
.nav__toggle-bar:nth-child(1) { top: 17px; }
.nav__toggle-bar:nth-child(2) { top: 22px; }
.nav__toggle-bar:nth-child(3) { top: 27px; width: 12px; transform: translateX(-3px); }
.nav__toggle[aria-expanded="true"] { color: var(--warm); border-color: rgba(250, 251, 252, 0.3); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateX(-50%) translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { width: 18px; transform: translateX(-50%) translateY(-5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--navy);
  color: var(--warm);
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 42px);
  transition: clip-path 0.7s var(--ease), opacity 0.4s, visibility 0s 0.7s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  clip-path: circle(150% at calc(100% - 44px) 42px);
  transition: clip-path 0.7s var(--ease), opacity 0.2s, visibility 0s;
}
.mobile-menu__links { list-style: none; padding: 0; }
.mobile-menu__links li {
  border-bottom: 1px solid rgba(250, 251, 252, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.mobile-menu.is-open .mobile-menu__links li { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__links li:nth-child(6) { transition-delay: 0.25s; }
.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.1;
}
.mobile-menu__links a small {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  color: var(--emerald);
  letter-spacing: 0.1em;
}
.mobile-menu__links a[aria-current="page"] { color: var(--emerald); font-style: italic; }
.mobile-menu__footer { display: grid; gap: 1.25rem; margin-top: 2rem; }
.mobile-menu__footer p { color: rgba(250, 251, 252, 0.6); font-size: var(--fs-sm); }

.site-header.menu-open .brand { color: var(--warm); }
.site-header.menu-open .brand__mark { background: var(--warm); color: var(--navy); }
.site-header.menu-open.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }

/* --------------------------------------------------------------------------
   6. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -20% -15% auto auto;
  width: 60vw;
  max-width: 820px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 168, 120, 0.16), transparent);
  z-index: -1;
}
.page-hero__inner { display: grid; gap: 1.5rem; max-width: 900px; }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem); }
.page-hero .lead { font-size: var(--fs-lg); }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: var(--muted);
  list-style: none;
  padding: 0;
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumb a:hover { color: var(--emerald-600); }

.page-hero__index {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(2rem, 5vw, 4rem);
  font-family: var(--font-serif);
  font-size: clamp(6rem, 16vw, 14rem);
  font-style: italic;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  z-index: -1;
  user-select: none;
}

/* --------------------------------------------------------------------------
   7. Home — Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--white);
}
.hero__orbs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.75;
  animation: orb-drift 14s ease-in-out infinite;
}
.orb--1 { width: clamp(180px, 22vw, 340px); aspect-ratio: 1; top: 12%; right: 6%; background: #EAF1FF; }
.orb--2 { width: clamp(70px, 6vw, 100px); aspect-ratio: 1; top: 62%; right: 3%; background: #F3E2B8; animation-delay: -4s; animation-duration: 11s; }
.orb--3 { width: clamp(110px, 10vw, 170px); aspect-ratio: 1; bottom: 8%; right: 20%; background: #BCD3FB; animation-delay: -7s; }
.orb--4 { width: clamp(150px, 16vw, 250px); aspect-ratio: 1; top: 22%; left: 4%; background: #E8F7F3; animation-delay: -2s; animation-duration: 17s; }
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-22px, 26px) scale(1.06); }
  66% { transform: translate(18px, -20px) scale(0.95); }
}
.hero__content { display: grid; justify-items: center; gap: 1.75rem; max-width: 62rem; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-serif); font-style: italic; font-size: var(--fs-md);
  color: var(--navy-700);
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }
.hero__title { font-size: clamp(2.75rem, 1.4rem + 5.4vw, 5rem); line-height: 1.04; letter-spacing: -0.02em; }
.hero__rotator {
  display: block;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  margin-top: 0.05em;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  white-space: nowrap;
  padding-right: 0.1em;
}
.hero__word { display: block; animation: word-in 0.45s var(--ease) both; }
.hero__word.is-out { animation: word-out 0.3s ease-in both; }
@keyframes word-in { from { opacity: 0; transform: translateY(70%); } to { opacity: 1; transform: none; } }
@keyframes word-out { to { opacity: 0; transform: translateY(-70%); } }
.hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 42rem; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.hero__actions .btn svg { width: 18px; height: 18px; }

/* Logo marquee */
.marquee {
  position: relative;
  padding-block: 2.25rem;
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__label {
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.marquee__track {
  display: flex;
  gap: clamp(3rem, 6vw, 5.5rem);
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__track span {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  color: rgba(11, 18, 36, 0.38);
  white-space: nowrap;
}
.marquee__track span:nth-child(3n) { font-family: var(--font-sans); font-weight: 800; letter-spacing: -0.03em; }
.marquee__track span:nth-child(3n + 1) { font-style: italic; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   8. Home — Agency
   -------------------------------------------------------------------------- */
.agency { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.agency__content { display: grid; gap: 1.5rem; justify-items: start; }
.agency__content .lead { color: var(--muted); max-width: 36rem; }
.agency__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 1.5rem; text-align: center; }
.agency__stats dd {
  font-family: var(--font-serif); font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums;
  font-size: clamp(3rem, 2rem + 3.5vw, 5.5rem); line-height: 1; letter-spacing: -0.02em;
}
.agency__stats dd sup { font-size: 0.5em; color: var(--emerald); vertical-align: top; margin-left: 2px; }
.agency__stats dt { order: 2; margin-top: 0.75rem; font-size: var(--fs-sm); color: var(--muted); }
.agency__stats div { display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   9. Stats band
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(250, 251, 252, 0.12);
}
.stat {
  padding: 2.25rem 1.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}
.stat + .stat { padding-left: 1.5rem; border-left: 1px solid rgba(250, 251, 252, 0.12); }
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4.25rem);
  line-height: 1;
  color: var(--warm);
}
.stat__value sup { font-size: 0.45em; color: var(--emerald); vertical-align: super; margin-left: 2px; }
.stat__label { font-size: var(--fs-sm); color: rgba(250, 251, 252, 0.6); }

.achievements__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.awards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.award {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border: 1px solid rgba(250, 251, 252, 0.1);
  border-radius: var(--radius);
  transition: border-color 0.3s, background 0.3s;
}
.award:hover { border-color: rgba(0, 168, 120, 0.5); background: rgba(250, 251, 252, 0.03); }
.award svg { flex: none; color: var(--emerald); width: 26px; height: 26px; }
.award h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.award p { font-size: var(--fs-sm); line-height: 1.55; }

/* --------------------------------------------------------------------------
   10. Newsletter CTA
   -------------------------------------------------------------------------- */
.newsletter {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(250, 251, 252, 0.75);
  padding: clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  isolation: isolate;
}
.newsletter::before,
.newsletter::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}
.newsletter::before {
  width: 520px; height: 520px;
  right: -160px; top: -220px;
  background: radial-gradient(closest-side, rgba(0, 168, 120, 0.35), transparent);
}
.newsletter::after {
  width: 380px; height: 380px;
  left: -120px; bottom: -220px;
  border: 1px solid rgba(250, 251, 252, 0.08);
  box-shadow: 0 0 0 60px rgba(250, 251, 252, 0.02), 0 0 0 120px rgba(250, 251, 252, 0.015);
}
.newsletter h2 { color: var(--warm); }
.newsletter h2 em { color: var(--emerald); }
.newsletter__perks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: var(--fs-sm); list-style: none; padding: 0; }
.newsletter__perks li { display: flex; align-items: center; gap: 0.5rem; }
.newsletter__perks svg { width: 16px; height: 16px; color: var(--emerald); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(250, 251, 252, 0.64);
  padding-top: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.footer__brand .brand { color: var(--warm); }
.footer__brand .brand__mark { background: var(--warm); color: var(--navy); }
.footer__brand p { margin: 1.25rem 0 1.5rem; max-width: 22rem; font-size: var(--fs-sm); }
.footer__col h2 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 1.25rem;
}
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
/* Services list flows down two columns (15 links) */
.footer__col--services ul { grid-auto-flow: column; grid-template-rows: repeat(8, auto); column-gap: 2rem; }
.footer__col a,
.footer__col span {
  font-size: var(--fs-sm);
  transition: color 0.25s, padding 0.3s var(--ease);
}
.footer__col a:hover { color: var(--emerald); padding-left: 4px; }

.footer__wordmark {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 14.5vw, 13.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(250, 251, 252, 0.14);
  white-space: nowrap;
  text-align: center;
  user-select: none;
  margin-bottom: 0.2em;
}
.footer__wordmark em { color: rgba(0, 168, 120, 0.16); -webkit-text-stroke: 0; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(250, 251, 252, 0.1);
  font-size: var(--fs-xs);
}
.footer__bottom ul { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.footer__bottom a:hover { color: var(--warm); }

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--warm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s, background 0.3s;
}
.back-to-top svg { transform: rotate(-90deg); width: 18px; height: 18px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--emerald-600); }

/* --------------------------------------------------------------------------
   12. About page
   -------------------------------------------------------------------------- */
.bio__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: start;
}
.bio__media { position: sticky; top: calc(var(--nav-h) + 2rem); }
.bio__media img { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); width: 100%; aspect-ratio: 9 / 11; object-fit: cover; }
.bio__caption { margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); display: flex; justify-content: space-between; }
.bio__content { display: grid; gap: 1.5rem; font-size: var(--fs-md); }
.bio__content .dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.6em;
  line-height: 0.8;
  padding: 0.08em 0.12em 0 0;
  color: var(--emerald-600);
}
.bio__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1rem;
}
.bio__facts div { background: var(--warm); padding: 1.25rem 1.5rem; }
.bio__facts dt { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bio__facts dd { margin: 0.2rem 0 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); }

.mission {
  text-align: center;
  display: grid;
  gap: 2rem;
  justify-items: center;
}
.mission blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  line-height: 1.25;
  color: var(--warm);
  max-width: 22ch;
}
.mission blockquote em { color: var(--emerald); }
.mission cite { font-style: normal; font-size: var(--fs-sm); letter-spacing: 0.14em; text-transform: uppercase; }

.philosophy { counter-reset: principle; }
.principle {
  counter-increment: principle;
  display: grid;
  grid-template-columns: 110px 1fr 1.2fr;
  gap: 2rem;
  align-items: baseline;
  padding-block: 2.25rem;
  border-top: 1px solid var(--line-strong);
  transition: padding 0.4s var(--ease);
}
.principle:last-child { border-bottom: 1px solid var(--line-strong); }
.principle::before {
  content: counter(principle, decimal-leading-zero);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--emerald-600);
}
.principle h3 { font-size: var(--fs-2xl); }
.principle p { color: var(--muted); }
.principle:hover { padding-left: 0.75rem; }

/* --------------------------------------------------------------------------
   13. Courses page — featured
   -------------------------------------------------------------------------- */
.course-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy);
  color: rgba(250, 251, 252, 0.72);
  box-shadow: var(--shadow-lg);
}
.course-feature__body { padding: clamp(2rem, 5vw, 4rem); display: grid; gap: 1.5rem; align-content: center; }
.course-feature__body h2 { color: var(--warm); font-size: var(--fs-3xl); }
.course-feature__body h2 em { color: var(--emerald); }
.course-feature__media { position: relative; min-height: 360px; }
.course-feature__media { overflow: hidden; }
.course-feature__media img { position: absolute; left: 0; top: -5%; width: 100%; height: 110%; object-fit: cover; }
.course-feature__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--warm);
  color: var(--navy);
  box-shadow: 0 0 0 14px rgba(250, 251, 252, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.course-feature__play:hover { transform: scale(1.08); box-shadow: 0 0 0 22px rgba(250, 251, 252, 0.1); }
.course-feature__play svg { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.course-feature__list { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; font-size: var(--fs-sm); }
.course-feature__list li { display: flex; gap: 0.6rem; align-items: center; }
.course-feature__list svg { width: 16px; height: 16px; flex: none; color: var(--emerald); }
.course-feature__price { display: flex; align-items: baseline; gap: 0.75rem; }
.course-feature__price strong { font-family: var(--font-serif); font-size: 2.5rem; color: var(--warm); line-height: 1; }
.course-feature__price s { opacity: 0.5; }

/* --------------------------------------------------------------------------
   14. Blog page
   -------------------------------------------------------------------------- */
.featured-post {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.featured-post__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.featured-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.featured-post:hover .featured-post__media img { transform: scale(1.04); }
.featured-post__body { display: grid; gap: 1.25rem; }
.featured-post__body h2 { font-size: var(--fs-3xl); }
.featured-post__body h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.featured-post__body h2 a:hover { background-size: 100% 1px; }

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); display: grid; gap: 1.5rem; min-width: 0; }
.sidebar .subscribe input { width: 100%; }
.sidebar__block {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.sidebar__block h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.sidebar__list { list-style: none; padding: 0; display: grid; }
.sidebar__list a {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  transition: color 0.25s;
}
.sidebar__list li:last-child a { border-bottom: 0; }
.sidebar__list a:hover { color: var(--emerald-600); }
.sidebar__list span { color: var(--muted); }
.sidebar__block--dark { background: var(--navy); color: rgba(250, 251, 252, 0.72); border: 0; }
.sidebar__block--dark h2 { color: var(--warm); }
.sidebar__block--dark p { font-size: var(--fs-sm); margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   15. Contact page
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__info { display: grid; gap: 2rem; }
.contact__channels { list-style: none; padding: 0; display: grid; gap: 1rem; }
.contact__channel {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.contact__channel:hover { border-color: var(--emerald); transform: translateX(4px); }
.contact__channel-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--warm-200);
  color: var(--navy);
}
.contact__channel-icon svg { width: 20px; height: 20px; }
.contact__channel small { display: block; font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.contact__channel strong { font-weight: 500; color: var(--navy); }

.map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  min-height: 280px;
  background-color: #E9EEEA;
  background-image:
    linear-gradient(rgba(11, 18, 36, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 36, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map svg.map__roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin {
  position: absolute;
  left: 58%;
  top: 46%;
  transform: translate(-50%, -100%);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}
.map__pin-dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.map__pin-dot::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--emerald);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.map__card {
  position: absolute;
  left: clamp(1rem, 4vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2.5rem);
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 280px;
}
.map__card h3 { font-size: 1.15rem; }
.map__card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

/* Brand wordmark: "Dynamic Paradox" */
.brand__name { white-space: nowrap; }
.brand__name em { font-style: italic; color: var(--emerald-600); }
.footer__brand .brand__name em,
.site-header.menu-open .brand__name em { color: var(--emerald); }

.nowrap { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Mega menu (desktop) + mobile accordion
   -------------------------------------------------------------------------- */
.nav__trigger { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav__chevron { width: 14px; height: 14px; transition: transform 0.35s var(--ease); }
.nav__trigger[aria-expanded="true"] { color: var(--navy); background: rgba(11, 18, 36, 0.05); }
.nav__trigger[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

/* Header turns solid while a panel is open so the panel reads as one surface */
.site-header.mega-open {
  background: var(--warm);
  box-shadow: 0 1px 0 var(--line);
}

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - var(--nav-h) - 1rem);
  overflow-y: auto;
  background: var(--warm);
  border-top: 1px solid var(--line);
  box-shadow: 0 40px 60px -36px rgba(11, 18, 36, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s 0.3s;
}
.nav__item.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)) minmax(0, 360px);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: 2.5rem 3rem;
  align-items: start;
}
.mega__heading {
  margin: 0 0 1rem 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-600);
}
.mega__list { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
.mega__link {
  display: grid;
  gap: 0.1rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s, transform 0.35s var(--ease);
}
.mega__title { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.3; color: var(--navy); transition: color 0.25s; }
.mega__desc { font-size: var(--fs-sm); color: var(--muted); }
.mega__link:hover, .mega__link:focus-visible { background: var(--warm-200); transform: translateX(3px); }
.mega__link:hover .mega__title, .mega__link:focus-visible .mega__title { color: var(--emerald-600); }

.mega__card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: rgba(250, 251, 252, 0.78);
}
.mega__eyebrow { margin: 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--emerald); }
.mega__card-title { margin: 0; font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.3; color: var(--warm); }
.mega__card-title em { color: var(--emerald); }
.mega__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: inherit;
  transition: gap 0.3s var(--ease), color 0.25s;
}
.mega__card-link svg { width: 16px; height: 16px; }
.mega__card-link:hover { gap: 0.85rem; color: var(--emerald); }
.mega__card--light { background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.mega__card--light .mega__card-title { color: var(--navy); }
.mega__card--light .mega__card-link:hover { color: var(--emerald-600); }

/* Mobile accordion inside the full-screen menu */
.mm-trigger {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  line-height: 1.1;
  text-align: left;
  color: inherit;
}
.mm-meta { display: inline-flex; align-items: center; gap: 0.75rem; }
.mm-meta small { font-family: var(--font-sans); font-size: var(--fs-xs); color: var(--emerald); letter-spacing: 0.1em; }
.mm-meta svg { width: 18px; height: 18px; align-self: center; transition: transform 0.35s var(--ease); }
.mm-trigger[aria-expanded="true"] .mm-meta svg { transform: rotate(180deg); }
.mm-trigger[aria-current="page"] { color: var(--emerald); font-style: italic; }

.mm-sub {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease), visibility 0s 0.45s;
}
.mm-sub > div { overflow: hidden; }
.mm-trigger[aria-expanded="true"] + .mm-sub {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s var(--ease), visibility 0s;
}
.mm-sub__title {
  margin: 0.5rem 0 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
}
.mm-sub ul { list-style: none; padding: 0 0 0.75rem; }
.mobile-menu__links .mm-sub li { border-bottom: 0; opacity: 1; transform: none; transition: none; }
.mobile-menu__links .mm-sub a {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: rgba(250, 251, 252, 0.82);
}
.mobile-menu__links .mm-sub a:hover { color: var(--emerald); }
