/* =====================================================================
   NAFF PROPERTIES - shared stylesheet
   Design system: deep slate + gold, Playfair Display / Plus Jakarta Sans,
   glass header, rounded-2xl cards, soft lifts and slow image zooms.
   ===================================================================== */

/* Self-hosted variable fonts (latin) */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/playfair-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ================= DESIGN TOKENS ================= */
:root {
  /* Slate scale */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Gold accent */
  --gold: #fbbf24;          /* on dark backgrounds & as fills */
  --gold-hover: #fcd34d;
  --gold-deep: #d97706;     /* icons on light backgrounds (3:1+) */
  --gold-ink: #b45309;      /* gold text on light backgrounds (4.9:1) */
  --gold-glow: rgba(245, 158, 11, 0.12);

  /* Semantic */
  --color-text: var(--slate-800);
  --color-heading: var(--slate-900);
  --color-muted: var(--slate-600);
  --color-border: var(--slate-200);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(2.25rem, 1.3rem + 3.6vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem);
  --fs-h3: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  --fs-card: 1.25rem;
  --fs-lede: 1.0625rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Layout & spacing */
  --container: 1280px;
  --gutter: 32px;
  --section-pad: 96px;
  --header-h: 80px;

  /* Shape */
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-btn: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms var(--ease);
  --t: 300ms var(--ease);
  --t-slow: 500ms var(--ease);

  --focus: 2px solid var(--slate-900);

  /* Legacy aliases - referenced by inline styles in the HTML */
  --accent-light: var(--gold-ink);
  --text-muted: var(--color-muted);
  --radius-sm: var(--r-md);
}

/* ================= RESET & BASE ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
}

/* Playfair defaults to old-style figures; keep numbers even */
h1, h2, h3, h4, h5,
.why-reason-num,
.proc-card::before,
.fp-stat .v,
.detail-value,
.mega-title {
  font-variant-numeric: lining-nums;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}

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

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* Sections: full-bleed background without extra wrappers */
.section {
  --section-bg: var(--white);
  padding: var(--section-pad) var(--gutter);
  background: var(--section-bg);
  box-shadow: 0 0 0 100vmax var(--section-bg);
  clip-path: inset(0 -100vmax);
}

#mission-vision,
#projects { --section-bg: var(--slate-50); }

#process,
#mentorship { --section-bg: var(--slate-100); }

/* Dark "studio" section */
#investment-opportunities {
  --section-bg: var(--slate-950);
  --focus: 2px solid var(--gold);
  color: var(--slate-300);
}

#investment-opportunities h2 { color: var(--white); }
#investment-opportunities .eyebrow { color: var(--gold); }
#investment-opportunities .lede { color: var(--slate-400); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 32px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t), transform var(--t);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t);
}

.btn-icon.accent {
  stroke: var(--gold);
}

.btn:hover .btn-icon:not(.accent) {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--slate-800);
}

.btn-ghost {
  background: var(--white);
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn-ghost:hover {
  background: var(--slate-100);
}

/* ================= SHARED TYPE ================= */
.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: var(--fs-lede);
  line-height: 1.7;
  color: var(--color-muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: var(--fs-h2);
}

.section-head.center {
  margin: 0 auto 64px;
  text-align: center;
}

/* Split header: title left, supporting copy right */
#services .section-head,
#investment-opportunities .section-head,
#projects .section-head,
#why .section-head,
#first-project .section-head {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  grid-template-areas: "eyebrow ." "title copy";
  column-gap: 64px;
  align-items: end;
}

#services .section-head .eyebrow,
#investment-opportunities .section-head .eyebrow,
#projects .section-head .eyebrow,
#why .section-head .eyebrow,
#first-project .section-head .eyebrow { grid-area: eyebrow; }

#services .section-head h2,
#investment-opportunities .section-head h2,
#projects .section-head h2,
#why .section-head h2,
#first-project .section-head h2 { grid-area: title; }

#services .section-head .lede,
#investment-opportunities .section-head .lede,
#projects .section-head .lede,
#why .section-head .lede,
#first-project .section-head .lede {
  grid-area: copy;
  margin-top: 0;
  font-size: var(--fs-sm);
}

/* ================= SCROLL REVEALS ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.stagger-container .reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), box-shadow var(--t), border-color var(--t), background-color var(--t);
}

.stagger-container.active .reveal-item {
  opacity: 1;
  transform: none;
}

/* Re-enable hover lift once revealed */
.stagger-container.active .reveal-item:hover {
  transform: translateY(-4px);
  transition: opacity 0.7s var(--ease-out), transform var(--t), box-shadow var(--t), border-color var(--t), background-color var(--t);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= TOP INFO BAR ================= */
.utility-bar {
  background: var(--slate-900);
  border-bottom: 1px solid var(--slate-800);
  color: var(--slate-300);
  font-size: var(--fs-xs);
}

.utility-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 40px;
}

.utility-inner a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.utility-inner a:last-child {
  margin-left: auto;
}

.utility-inner a:hover {
  color: var(--white);
}

.utility-inner svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.utility-bar :focus-visible {
  outline-color: var(--gold);
}

/* ================= HEADER ================= */
/* Info bar scrolls away; the glass header row stays pinned */
header#siteHeader {
  position: sticky;
  top: -40px;
  z-index: 40;
}

/* Glass layer lives on a pseudo-element so fixed children (mobile drawer)
   are not trapped by backdrop-filter's containing block */
.header-main::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: box-shadow var(--t);
}

header#siteHeader.is-scrolled .header-main::before {
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  isolation: isolate;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.logo-mark {
  width: 48px;
  height: 48px;
  padding: 4px;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--slate-950);
  box-shadow: var(--shadow-md);
  transition: transform var(--t-fast);
}

.logo:hover .logo-mark {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--slate-900);
}

.logo-text span {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-600);
}

#primaryNav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

#primaryNav > a,
.nav-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-700);
}

#primaryNav > a:hover,
.nav-item > a:hover {
  color: var(--slate-900);
}

#primaryNav > a::after,
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--slate-900);
  transition: width var(--t);
}

#primaryNav > a:hover::after,
.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
  width: 100%;
}

.nav-chevron {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--t);
}

.nav-item:hover .nav-chevron,
.nav-item:focus-within .nav-chevron {
  transform: rotate(180deg);
}

/* Mega menu */
.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.mega {
  position: absolute;
  top: calc(100% + 8px);
  left: var(--gutter);
  right: var(--gutter);
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}

/* Hover bridge across the gap */
.mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.nav-item:hover .mega,
.nav-item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mega-item {
  padding: 16px;
  border-radius: var(--r-lg);
  transition: background-color var(--t-fast);
}

.mega-item:hover {
  background: var(--slate-50);
}

.mega-item .mega-title {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
}

.mega-item p {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--slate-600);
}

.mega-more {
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--slate-900);
}

.mega-more a {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold);
}

.mega-more a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mega-more :focus-visible {
  outline-color: var(--gold);
}

/* Header CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  background: var(--slate-900);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transition: background-color 200ms var(--ease);
}

.nav-cta:hover {
  background: var(--slate-800);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile-only drawer parts (built by JS) */
.drawer-head,
.drawer-foot,
.nav-backdrop {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t-fast);
}

.nav-toggle:hover {
  background: var(--slate-100);
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--slate-700);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

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

/* ================= HERO ================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0;
  background: var(--slate-950);
  color: var(--white);
  --focus: 2px solid var(--gold);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  background: url('../images/site/hero.webp') center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--slate-950) 0%, rgb(2 6 23 / 0.8) 50%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
}

.hero-main > * + * {
  margin-top: 32px;
}

/* Badge pill */
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgb(30 41 59 / 0.8);
  border: 1px solid var(--slate-700);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.hero .eyebrow::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14l-1.5 7 5-3 5 3-1.5-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14l-1.5 7 5-3 5 3-1.5-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  color: var(--slate-200);
}

.hero .lede {
  max-width: 576px;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--slate-300);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-cta .btn {
  border-radius: var(--r-lg);
}

.hero .btn-primary {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: var(--shadow-xl);
}

.hero .btn-primary:hover {
  background: var(--slate-100);
}

.hero .btn-ghost {
  background: rgb(15 23 42 / 0.8);
  border-color: var(--slate-700);
  color: var(--white);
  font-weight: 500;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero .btn-ghost:hover {
  background: var(--slate-800);
}

/* Trust indicators row */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgb(30 41 59 / 0.8);
}

.stat .num {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 4px;
}

.stat .label {
  font-size: var(--fs-sm);
  color: var(--slate-400);
}

/* Showcase card */
.hero-card {
  padding: 32px;
  border-radius: var(--r-xl);
  background: rgb(15 23 42 / 0.9);
  border: 1px solid var(--slate-800);
  box-shadow: var(--shadow-2xl);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.hero-card-media {
  position: relative;
  margin-bottom: 24px;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  height: 300px;
  border-radius: var(--r-lg);
}


.hero-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--slate-950), transparent 70%);
  opacity: 0.9;
  display: none;
}

/* Caption sits below the photo so it never covers her face */
.hero-card-caption {
  margin-top: 16px;
}

.hero-card-caption h3 {
  font-size: 1.25rem;
  color: var(--white);
}

.hero-card-caption p {
  margin-top: 4px;
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--slate-300);
}

.hero-card-label {
  margin-bottom: 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.hero-card-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-card-options a {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.4;
  color: var(--white);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.hero-card-options a:hover {
  background: var(--slate-700);
  color: var(--gold-hover);
}

/* ================= CARD BASE ================= */
.about-feat,
.svc-card,
.why-reason,
.proc-card,
.case-card,
.testimonial-card {
  border-radius: var(--r-xl);
  border: 1px solid rgb(226 232 240 / 0.8);
  background: var(--slate-50);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t), background-color var(--t);
}

.about-feat:hover,
.svc-card:hover,
.why-reason:hover,
.proc-card:hover,
.case-card:hover {
  box-shadow: var(--shadow-2xl);
}

/* Dark icon tile with gold glyph */
.icon-badge,
.svc-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: var(--r-lg);
  background: var(--slate-900);
  color: var(--gold);
  box-shadow: var(--shadow-md);
}

.icon-badge svg,
.svc-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.about-feat h4,
.svc-card h4,
.why-reason h4,
.proc-card h4,
.case-body h4 {
  font-size: var(--fs-card);
  margin-bottom: 8px;
}

.about-feat p,
.why-reason p,
.proc-card p,
.svc-desc {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--slate-600);
}

/* ================= ABOUT ================= */
#about {
  margin-top: 0 !important;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.about-top h2 {
  font-size: var(--fs-h2);
}

.about-mission p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--slate-600);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.about-feat {
  padding: 32px;
}

/* ================= MISSION & VISION ================= */
.mv-grid {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.mv-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mv-card.reverse .mv-image { order: 2; }
.mv-card.reverse .mv-text { order: 1; }

.mv-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mv-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.mv-card:hover .mv-image img {
  transform: scale(1.05);
}

.mv-text h3 {
  font-size: var(--fs-h2);
  margin-bottom: 20px;
}

.mv-text p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-600);
}

/* ================= SERVICES ================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.svc-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.svc-card:nth-child(4),
.svc-card:nth-child(5) {
  grid-column: span 3;
}

.svc-desc {
  flex-grow: 1;
  margin-bottom: 16px;
}

/* Tags rendered as a gold-check feature list */
.svc-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.svc-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--slate-600);
}

.svc-tag::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: var(--gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ================= INVESTMENT OPTIONS (dark studio) ================= */
.inv-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: start;
}

.inv-image {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
}

.inv-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  /* Founder portrait: keep her face in frame instead of centre-cropping */
  object-position: center 10%;
  border-radius: var(--r-lg);
}

.accordion-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
}

.accordion-item {
  border-radius: var(--r-lg);
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  transition: background-color var(--t-fast), border-color var(--t);
}

.accordion-item:hover {
  background: rgb(51 65 85 / 0.8);
}

.accordion-item.active {
  background: var(--slate-950);
  border-color: rgb(251 191 36 / 0.45);
}

.accordion-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: none;
  border-radius: var(--r-lg);
  background: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  transition: transform var(--t), background-color var(--t), color var(--t);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--slate-950);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}

.accordion-content {
  padding: 0 16px 16px;
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--slate-300);
}

.accordion-content ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: rgb(2 6 23 / 0.8);
  border: 1px solid var(--slate-800);
}

/* ================= WHY INVEST ================= */
.why-reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-reason {
  padding: 32px 24px;
}

.why-reason-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--gold-ink);
  margin-bottom: 24px;
}

/* ================= PROCESS ================= */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: process;
}

.proc-card {
  padding: 32px;
  background: var(--white);
}

.proc-card::before {
  counter-increment: process;
  content: counter(process);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: var(--r-lg);
  background: var(--gold);
  color: var(--slate-950);
  font-family: var(--font-serif);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ================= FIRST PROJECT (BEFORE/AFTER) ================= */
.fp-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 560px;
  margin-bottom: 48px;
}

.fp-stat {
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.fp-stat .v {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.fp-stat .k {
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

/* Segmented control */
.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 8px;
  border-radius: var(--r-xl);
  background: var(--slate-900);
  border: 1px solid var(--slate-800);
}

.ba-tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--r-lg);
  background: transparent;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--slate-300);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}

.ba-tab:hover {
  background: var(--slate-800);
  color: var(--white);
}

.ba-tab.active {
  background: var(--gold);
  color: var(--slate-950);
  box-shadow: var(--shadow-md);
}

.ba-tab:focus-visible {
  outline-color: var(--gold);
}

.ba-slider {
  position: relative;
  height: 560px;
  border-radius: var(--r-xl);
  overflow: hidden;
  display: none;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  box-shadow: var(--shadow-2xl);
  user-select: none;
}

.ba-slider.active {
  display: block;
  animation: fadeIn 0.5s var(--ease);
}

.ba-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after {
  position: absolute;
  inset: 0;
}

/* Before layer covers the full frame and is revealed with a clip,
   so the photo stays fixed in place instead of resizing while dragging */
.ba-before {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 48px;
  transform: translateX(-50%);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  /* Divider line */
  background: linear-gradient(var(--white), var(--white)) center / 4px 100% no-repeat;
}

.ba-handle::before {
  content: "↔";
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--slate-900);
  color: var(--slate-900);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ba-handle:focus-visible {
  outline: none;
}

.ba-handle:focus-visible::before {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 4;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgb(15 23 42 / 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; }

/* ================= PROJECTS ================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.case-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
}

.case-media {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: var(--slate-100);
}

.case-media.has-gallery {
  height: 300px;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-main-img {
  transition: transform var(--t-slow);
}

.case-card:hover .case-main-img {
  transform: scale(1.05);
}

.case-media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgb(15 23 42 / 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.case-thumbs {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px;
}

.case-thumbs::-webkit-scrollbar {
  display: none;
}

.case-thumbs img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  opacity: 0.85;
  box-shadow: var(--shadow-md);
  transition: opacity var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}

.case-thumbs img:hover,
.case-thumbs img:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--gold);
}

.case-thumbs img:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.case-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.case-body h4 {
  margin-bottom: 16px;
}

.case-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.case-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-stats .v {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.case-stats .k {
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

/* ================= TESTIMONIALS ================= */
.testimonials-grid {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  /* matches the padding, so the slider does not scroll itself on load */
  scroll-padding-inline: 4px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 8px;
  margin: -4px;
  transition: height 0.4s var(--ease);
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - 64px) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.testimonial-quote-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 20px;
  color: var(--gold-deep);
}

.testimonial-card p {
  margin-bottom: 24px;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--slate-600);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.testimonial-author .name {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
}

.testimonial-author .role {
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.t-arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), opacity var(--t-fast), box-shadow var(--t);
}

.t-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.t-arrow:hover:not(:disabled) {
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.t-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.t-dots {
  display: flex;
  gap: 8px;
}

.t-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--slate-300);
  cursor: pointer;
  transition: width var(--t), background-color var(--t);
}

.t-dot[aria-current="true"] {
  width: 28px;
  background: var(--gold-deep);
}

/* ================= MENTORSHIP ================= */
.mentor-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}

.mentor-left h2 {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}

.mentor-left .subtitle {
  margin-bottom: 16px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gold-ink);
}

.mentor-left .desc {
  margin-bottom: 40px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-600);
}

.mentor-left h4 {
  font-size: var(--fs-card) !important;
  font-weight: 700 !important;
}

.mentor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mentor-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}

.mentor-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.mentor-bullet {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-size: 0;
  border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M17 8.5L10.5 15L7 11.5' stroke='%23020617' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.mentor-item p {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--slate-700);
}

.mentor-right {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  padding: 40px;
  border-radius: var(--r-2xl);
  background: var(--slate-900);
  color: var(--white);
  box-shadow: var(--shadow-2xl);
  --focus: 2px solid var(--gold);
}

.mentor-right::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--gold-glow);
  filter: blur(64px);
  pointer-events: none;
}

.mentor-right > * {
  position: relative;
}

.mentor-right h3 {
  font-size: var(--fs-h3);
  color: var(--white);
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-800);
}

.detail-label {
  font-size: var(--fs-sm);
  color: var(--slate-400);
}

.detail-value {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gold);
}

.mentor-footer-text {
  margin-top: 24px;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--slate-300);
}

.mentor-right .btn-primary {
  min-height: 52px;
  background: var(--gold);
  color: var(--slate-950);
  font-weight: 700;
  justify-content: center;
  align-items: center;
}

.mentor-right .btn-primary:hover {
  background: var(--gold-hover);
}

/* ================= REGULATION ================= */
.reg-header {
  text-align: center;
  margin-bottom: 48px;
}

.reg-header h2 {
  font-size: var(--fs-h2);
  margin-bottom: 8px;
}

.reg-header p {
  font-size: var(--fs-sm);
  color: var(--slate-600);
}

.reg-card-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.reg-card {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.reg-card img {
  height: 56px;
  object-fit: contain;
}

.reg-card h4 {
  font-size: 1.0625rem;
}

.reg-divider {
  width: 1px;
  background: var(--slate-200);
}

/* ================= CONTACT CTA ================= */
#contact.section {
  padding-top: 0;
}

.cta-band {
  position: relative;
  overflow: hidden;
  max-width: 1024px;
  margin: 0 auto;
  padding: 64px 48px;
  border-radius: var(--r-2xl);
  background: var(--slate-900);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  --focus: 2px solid var(--gold);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: rgb(245 158 11 / 0.1);
  filter: blur(64px);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-inner h2 {
  font-size: var(--fs-h2);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-inner .lede {
  margin: 0 0 32px;
  font-size: var(--fs-sm);
  color: var(--slate-400);
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--slate-950);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.cta-band .btn-primary:hover {
  background: var(--gold-hover);
}

/* ================= FOOTER ================= */
footer {
  padding: 64px 0 0;
  background: var(--slate-950);
  border-top: 1px solid var(--slate-800);
  color: var(--slate-400);
  --focus: 2px solid var(--gold);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--slate-800);
}

footer .logo {
  margin-bottom: 16px;
}

footer .logo-mark {
  width: 40px;
  height: 40px;
  background: var(--slate-800);
}

footer .logo-text {
  font-size: 1.125rem;
  color: var(--white);
}

footer .logo-text span {
  color: var(--slate-400);
}

footer p {
  max-width: 384px;
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--slate-400) !important;
}

footer h5 {
  margin-bottom: 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: var(--fs-xs);
}

footer a:hover {
  color: var(--gold);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 32px 0;
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

/* ================= MULTI-PAGE: ACTIVE NAV ================= */
#primaryNav a[aria-current="page"] {
  color: var(--slate-900);
  font-weight: 600;
}

#primaryNav > a[aria-current="page"]::after,
.nav-item > a[aria-current="page"]::after {
  width: 100%;
  background: var(--gold-deep);
}

/* ================= INNER PAGE HERO + BREADCRUMB ================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 80px;
  background: var(--slate-950);
  color: var(--white);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--slate-950) 0%, rgb(2 6 23 / 0.85) 55%, rgb(2 6 23 / 0.35) 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  animation: pageTitleIn 0.8s var(--ease-out) both;
}

@keyframes pageTitleIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  font-size: var(--fs-sm);
  color: var(--slate-500);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--slate-400);
  border-right: 1.5px solid var(--slate-400);
  transform: rotate(45deg);
}

.breadcrumb a {
  color: var(--slate-600);
}

.breadcrumb a:hover {
  color: var(--slate-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Regulation block sits between page content and the CTA on every page */
#regulation {
  --section-bg: var(--slate-50);
  border-top: 1px solid var(--slate-200);
}

#regulation .reg-card-container {
  background: var(--white);
}

/* ================= HOME: OVERVIEW SECTIONS ================= */
/* Background rhythm: about white / services slate / investments dark / why white /
   process slate / before-after white / featured slate / testimonials white / mentorship dark */
.page-home #services,
.page-home #featured-projects { --section-bg: var(--slate-50); }

.page-home #services .svc-card,
.page-home #featured-projects .feat-card { background: var(--white); }

/* "More information" on dark sections */
#investment-opportunities .section-more .btn-ghost {
  background: rgb(15 23 42 / 0.8);
  border-color: var(--slate-700);
  color: var(--white);
}

#investment-opportunities .section-more .btn-ghost:hover {
  background: var(--slate-800);
}

/* "More information" link under each preview */
.section-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.section-more .btn {
  min-height: 48px;
  padding: 0 24px;
  font-size: var(--fs-sm);
}

/* Featured projects */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feat-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--slate-50);
  border: 1px solid rgb(226 232 240 / 0.8);
  transition: box-shadow var(--t), transform var(--t);
}

.feat-card:hover {
  box-shadow: var(--shadow-2xl);
}

.feat-media {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--slate-100);
}

.feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.feat-card:hover .feat-media img {
  transform: scale(1.05);
}

.feat-media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgb(15 23 42 / 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
}

.feat-body {
  padding: 24px;
}

.feat-body h3 {
  font-size: var(--fs-card);
  margin-bottom: 16px;
  transition: color var(--t-fast);
}

.feat-card:hover h3 {
  color: var(--gold-ink);
}

.feat-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-200);
}

.feat-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feat-stats .v {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: lining-nums;
  color: var(--slate-900);
}

.feat-stats .k {
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

/* Mentorship band (dark) */
#mentorship-band {
  --section-bg: var(--slate-950);
  --focus: 2px solid var(--gold);
}

.mentor-band {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}

.mentor-band-text h2 {
  font-size: var(--fs-h2);
  color: var(--white);
  margin-bottom: 12px;
}

.mentor-band-text .eyebrow,
.mentor-band-text .subtitle {
  color: var(--gold);
}

.mentor-band-text .subtitle {
  margin-bottom: 16px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.mentor-band-text .desc {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-300);
}

.mentor-band-text .btn-ghost {
  background: rgb(15 23 42 / 0.8);
  border-color: var(--slate-700);
  color: var(--white);
}

.mentor-band-text .btn-ghost:hover {
  background: var(--slate-800);
}

.mentor-band .mentor-right {
  position: relative;
  top: 0;
  border: 1px solid var(--slate-800);
}

/* ================= EBOOK ================= */
.ebook {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: center;
}

.ebook-cover {
  position: relative;
  display: block;
  max-width: 400px;
  margin: 0 auto;
  perspective: 1200px;
}

/* Soft gold glow behind the book */
.ebook-cover::before {
  content: "";
  position: absolute;
  inset: 10% 0;
  z-index: -1;
  border-radius: 50%;
  background: rgb(245 158 11 / 0.22);
  filter: blur(60px);
}

.ebook-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgb(15 23 42 / 0.06);
  transform: rotateY(-8deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.ebook-cover:hover img,
.ebook-cover:focus-visible img {
  transform: none;
  box-shadow: 0 32px 64px -16px rgb(0 0 0 / 0.35);
}

.ebook-text h2 {
  font-size: var(--fs-h2);
  margin-bottom: 12px;
}

.ebook-author {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--gold-ink);
}

.ebook-text .lede {
  margin-bottom: 32px;
}

.ebook-list-title {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.ebook-chapters {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: var(--r-xl);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
}

.ebook-chapters li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--slate-700);
}

.ebook-chapters li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background: var(--gold-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ebook-text .btn-primary:hover .btn-icon {
  transform: translateY(2px);
}

.ebook-meta {
  display: inline-block;
  margin-left: 16px;
  font-size: var(--fs-xs);
  color: var(--slate-500);
}

.ebook-disclaimer {
  margin-top: 24px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--slate-500);
}

.ebook-disclaimer strong {
  color: var(--slate-700);
}

/* ================= CONTACT PAGE ================= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--slate-50);
  border: 1px solid rgb(226 232 240 / 0.8);
  transition: box-shadow var(--t), transform var(--t);
}

.contact-card:hover {
  box-shadow: var(--shadow-2xl);
}

.contact-card .icon-badge {
  margin-bottom: 20px;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  word-break: break-word;
}

.contact-card:hover .contact-value {
  color: var(--gold-ink);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  /* Slide-in drawer */
  #primaryNav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(80vw, 384px);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    overflow-y: auto;
    background: var(--white);
    box-shadow: var(--shadow-2xl);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  header#siteHeader.nav-open #primaryNav {
    transform: none;
    visibility: visible;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgb(15 23 42 / 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
  }

  header#siteHeader.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .drawer-head .logo-mark {
    width: 40px;
    height: 40px;
  }

  .drawer-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--slate-500);
    cursor: pointer;
  }

  .drawer-close:hover {
    color: var(--slate-900);
    background: var(--slate-100);
  }

  .drawer-close svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  #primaryNav > a,
  .nav-item > a {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    color: var(--slate-800);
    border-bottom: 1px solid var(--slate-100);
  }

  #primaryNav > a::after,
  .nav-item > a::after,
  .nav-chevron,
  .mega {
    display: none;
  }

  .nav-item {
    display: block;
    height: auto;
  }

  .drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
  }

  .drawer-foot .nav-cta {
    justify-content: center;
    padding: 14px;
    font-size: 1rem;
  }

  .drawer-foot .drawer-call {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: var(--r-md);
    background: var(--slate-100);
    font-weight: 500;
    color: var(--slate-800);
  }

  .drawer-call svg {
    width: 16px;
    height: 16px;
    stroke: var(--slate-900);
    stroke-width: 2;
    fill: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .about-top,
  .inv-grid,
  .mv-card,
  .mentor-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mv-card.reverse .mv-image,
  .mv-card.reverse .mv-text {
    order: initial;
  }

  .mv-grid {
    gap: 72px;
  }

  .inv-image,
  .mentor-right {
    position: relative;
    top: 0;
  }

  .inv-image img {
    height: 380px;
  }

  .why-reasons,
  .proc-grid,
  .case-grid,
  .about-features,
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feat-grid > :last-child {
    grid-column: span 2;
  }

  .mentor-band {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ebook {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .ebook-cover {
    max-width: 320px;
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .svc-card,
  .svc-card:nth-child(4) {
    grid-column: span 1;
  }

  .svc-card:nth-child(5) {
    grid-column: span 2;
  }

  .testimonial-card {
    flex-basis: calc((100% - 32px) / 2);
  }

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

  .foot-grid > :first-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  #services .section-head,
  #investment-opportunities .section-head,
  #projects .section-head,
  #why .section-head,
  #first-project .section-head {
    grid-template-columns: 1fr;
    grid-template-areas: "eyebrow" "title" "copy";
  }

  #services .section-head .lede,
  #investment-opportunities .section-head .lede,
  #projects .section-head .lede,
  #why .section-head .lede,
  #first-project .section-head .lede {
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --section-pad: 72px;
  }

  .utility-inner a:not([href^="tel"]) {
    display: none;
  }

  .utility-inner a[href^="tel"] {
    margin-left: auto;
    color: var(--gold);
    font-weight: 600;
  }

  .hero {
    padding: 80px 0;
  }

  .section-head,
  .section-head.center {
    margin-bottom: 48px;
  }

  .mv-image img {
    height: 300px;
  }

  .inv-image img {
    height: 280px;
  }

  .accordion-wrap {
    padding: 12px;
  }

  .ba-slider {
    height: 420px;
  }

  .reg-divider {
    display: none;
  }

  .cta-band {
    padding: 48px 24px;
  }
}

@media (max-width: 640px) {
  .header-main > .nav-cta {
    display: none;
  }

  .header-main {
    gap: 12px;
  }

  .logo-mark {
    width: 44px;
    height: 44px;
  }

  .logo-text {
    font-size: 1.125rem;
  }

  .logo-text span {
    font-size: 9px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .stat-bar {
    gap: 12px;
  }

  .stat .num {
    font-size: 1.25rem;
  }

  .stat .label {
    font-size: var(--fs-xs);
  }

  .hero-card {
    padding: 20px;
  }

  .hero-card-media img {
    height: 260px;
  }

  .hero-card-options {
    grid-template-columns: 1fr;
  }

  .why-reasons,
  .proc-grid,
  .case-grid,
  .about-features,
  .svc-grid,
  .mentor-list,
  .fp-stats,
  .feat-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feat-grid > :last-child {
    grid-column: auto;
  }

  .mentor-band-text .btn {
    width: 100%;
  }

  .ebook-chapters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .ebook-cover img {
    transform: none;
  }

  .ebook-text .btn {
    width: 100%;
  }

  .ebook-meta {
    display: block;
    margin: 12px 0 0;
    text-align: center;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .svc-card:nth-child(5) {
    grid-column: span 1;
  }

  .ba-tab {
    min-width: calc(50% - 4px);
  }

  .ba-slider {
    height: 320px;
  }

  .testimonial-card {
    flex-basis: 100%;
    padding: 24px;
  }

  .mentor-right {
    padding: 28px 24px;
  }

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

  .foot-grid > :first-child {
    grid-column: auto;
  }

  .foot-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .stagger-container .reveal-item {
    opacity: 1;
    transform: none;
  }
}

/* ================= PROJECT CARD WITHOUT PHOTOS =================
   Used until a project's photos are available */
.case-media--text {
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgb(245 158 11 / 0.18), transparent 70%),
    var(--slate-900);
}

.case-media-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-media-steps span {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
}

.case-media-steps span:nth-child(even) {
  font-style: italic;
  color: var(--gold);
}

/* Smaller hero photo on tablets and phones */
@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../images/site/hero-mobile.webp');
  }

  .page-hero .hero-bg {
    background-image: url('../images/site/hero-banner-mobile.webp');
  }
}

/* Hero text is visible straight away (slide-up kept) instead of waiting for JS */
.hero h1.reveal,
.hero .lede.reveal {
  opacity: 1;
}
