/* ===================================================================
   KONVEXITY — CORPORATE ADVISORY DESIGN SYSTEM (REFINED)
   ===================================================================
   Design thesis: Konvexity is a structural growth curve. The mark
   speaks for itself — the surrounding system should not. This pass
   strips the interface back to what a consulting brand actually
   needs: clear type, quiet surfaces, one disciplined accent, and
   room for the photography and the argument to carry the page.

   Palette:    Deep Corporate Blue (primary / ink) on a warm-white,
               paper-like surface, with Growth Green used only as a
               single, deliberate accent — never as a system color.
   Type:       Montserrat (display, wide tracking, used sparingly)
               paired with Inter (body, UI, everything people read
               for more than a sentence).
=================================================================== */

/* Fonts are loaded via <link rel="preload"> + <link> in base.html <head>.
   See templates/base.html. Swap in Montserrat + Inter. */

:root {
  /* ---- Surfaces (light, paper-like) ---- */
  --void: #ffffff;
  --surface: #fbfbfc;
  --surface-alt: #f5f6f8;
  --elevated: #ffffff;
  --card: #ffffff;
  --card-hover: #ffffff;
  --card-border: rgba(31, 49, 101, 0.10);
  --card-border-hover: rgba(31, 49, 101, 0.22);

  /* ---- Ink ---- */
  --ink: #1a2138;
  --ink-dim: #4b5468;
  --ink-faint: #6b7386;
  --ink-ghost: #9aa1b0;

  /* ---- Brand: Deep Corporate Blue (primary) ---- */
  --teal: #1f3165;
  --teal-deep: #141f42;
  --cyan: #1f3165;
  --accent-soft: rgba(31, 49, 101, 0.06);
  --accent-glow: rgba(31, 49, 101, 0.10);

  /* ---- Accent: Growth Green — used once, deliberately, per surface ---- */
  --champagne: #02c39a;
  --champagne-soft: rgba(2, 195, 154, 0.10);

  /* ---- Radius (slightly restrained) ---- */
  --r-sm: 0.35rem;
  --r-md: 0.6rem;
  --r-lg: 0.85rem;
  --r-xl: 1rem;
  --r-pill: 999px;

  /* ---- Shadow (soft, not cinematic) ---- */
  --shadow-sm: 0 1px 3px rgba(20, 24, 40, 0.05);
  --shadow-md: 0 6px 20px rgba(20, 24, 40, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 24, 40, 0.08);
  --shadow-glow: none;

  /* ---- Motion (present, not performative) ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 0.2s ease;
  --smooth: 0.3s var(--ease);
  --luxury: 0.35s var(--ease);

  /* ---- Type scale ---- */
  --font-display: "Montserrat", "Inter", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  font-family: var(--font-sans);
  background: var(--void);
  color: var(--ink-dim);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

::selection { background: var(--champagne-soft); color: var(--ink); }

/* Ambient backgrounds removed — surface stays quiet and lets content lead */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: none;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.25rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--ink-dim); font-size: 1.02rem; }
p:last-child { margin-bottom: 0; }

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

.accent-text {
  color: var(--teal);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.text-gradient, .gradient-text {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.heading-display {
  color: var(--ink);
  background: none;
  -webkit-text-fill-color: currentColor;
}

/* Eyebrow / labels — small caps, tracked, quiet */
.section-label, .section-eyebrow, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 1.1rem;
}
.section-label::before, .section-eyebrow::before, .eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--champagne);
}
.section-header--center .eyebrow { justify-content: center; }
.section-header--center .eyebrow::before { display: none; }

.section-title { color: var(--ink); margin-bottom: 1rem; }
.section-subtitle {
  font-size: 1.08rem;
  color: var(--ink-faint);
  max-width: 640px;
  font-weight: 400;
}

/* =========================================
   LAYOUT
========================================= */
.container, .max-w-7xl, .max-w-4xl {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 1; }

.section { padding: 6.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--alt { background: var(--surface-alt); }

.divider {
  height: 1px;
  background: var(--card-border);
  margin: 0 auto;
  max-width: 1280px;
}

.section-header { margin-bottom: 3.25rem; max-width: 720px; }
.section-header--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

.grid { display: grid; gap: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.row { display: flex; align-items: center; gap: 1rem; }
.row--center { justify-content: center; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-8 { margin-bottom: 1.5rem; }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
}

/* =========================================
   THE CURVE — signature motif
   Retained as a quiet, near-invisible detail rather than a glowing
   accent — a mark that rewards a second look instead of demanding
   the first one.
========================================= */
.curve-mark {
  position: absolute;
  pointer-events: none;
  opacity: 0.5;
}
.curve-corner {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 22px;
  height: 22px;
  opacity: 0.16;
  transition: opacity var(--smooth);
}
.card:hover .curve-corner, .glass-card:hover .curve-corner { opacity: 0.4; transform: none; }

/* =========================================
   PREMIUM NAVIGATION
========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--card-border);
  transition: background var(--smooth), padding var(--smooth), border-color var(--smooth);
}
.navbar.scrolled {
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border-bottom-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand { display: flex; align-items: center; gap: 0.85rem; }

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.02rem;
  box-shadow: none;
}

.brand-content { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.brand-tagline {
  color: var(--ink-faint);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }

.nav-link {
  position: relative;
  padding: 0.7rem 1rem;
  border-radius: var(--r-pill);
  color: var(--ink-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--smooth);
}
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--surface-alt); }

.nav-cta {
  background: var(--teal);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: none;
  margin-left: 0.4rem;
}
.nav-cta:hover { transform: none; box-shadow: none; background: var(--teal-deep); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--card-border);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hamburger-line { width: 20px; height: 2px; border-radius: 999px; background: var(--ink); transition: all var(--smooth); }

@media (max-width: 992px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; }
  .nav-links {
    position: absolute; top: calc(100% + 0.7rem); left: 1rem; right: 1rem;
    display: none; flex-direction: column; align-items: stretch; gap: 0.35rem;
    padding: 1rem; background: #ffffff; backdrop-filter: none;
    border: 1px solid var(--card-border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  }
  .nav-links.active { display: flex; animation: navSlide 0.3s var(--ease); }
  .nav-link { width: 100%; text-align: center; padding: 0.95rem; border-radius: var(--r-md); font-size: 1rem; }
  .nav-cta { margin-left: 0; }
  .brand-tagline { display: none; }
}
@keyframes navSlide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   BUTTONS
========================================= */
.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  border-radius: var(--r-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  transition: all var(--smooth);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-large, .btn-lg { padding: 1.05rem 2.3rem; font-size: 0.98rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

.btn-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: none;
}
.btn-primary:hover { transform: none; box-shadow: var(--shadow-sm); background: var(--teal-deep); }

.btn-secondary, .btn-outline {
  background: transparent;
  border: 1px solid var(--card-border-hover);
  color: var(--ink);
}
.btn-secondary:hover, .btn-outline:hover { background: var(--surface-alt); border-color: var(--teal); transform: none; }

.btn-ghost { background: transparent; color: var(--ink-dim); padding-left: 0.4rem; padding-right: 0.4rem; }
.btn-ghost:hover { color: var(--teal); }

.btn-arrow { display: inline-block; transition: transform var(--smooth); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* =========================================
   CARDS
========================================= */
.card, .glass-card, .card-glass {
  background: var(--card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 2.1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--smooth);
  position: relative;
  overflow: hidden;
}
.card::before, .glass-card::before, .card-glass::before {
  content: "";
  position: absolute; inset: 0;
  background: none;
  pointer-events: none;
}
.card:hover, .glass-card:hover, .card-glass:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 22px; height: 22px; }

/* Card images (Signature Platforms and similar image-led cards). Sits inside
   the card's existing padding, so no changes to .card/.solution-card needed. */
.card__image {
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: var(--r-md);
  overflow: hidden;
}
.card__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r-md);
  display: block;
  transition: transform var(--smooth);
}
.card:hover .card__image img { transform: scale(1.02); }

@media (max-width: 680px) {
  .card__image img { height: 220px; }
}

.card__title { color: var(--ink); margin-bottom: 0.6rem; }
.card__text { color: var(--ink-faint); font-size: 0.96rem; }
.card__footer { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--card-border); }

.about-card, .lens-card, .program-card, .solution-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  padding: 2.2rem;
  transition: all var(--smooth);
  position: relative;
}
.about-card:hover, .lens-card:hover, .program-card:hover, .solution-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  background: var(--card-hover);
  box-shadow: var(--shadow-md);
}
.about-icon, .lens-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); font-size: 1.25rem; margin-bottom: 1.1rem;
}
.lens-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--champagne); box-shadow: none; }

.solution-card { padding: 2.6rem; }
.solution-icon { font-size: 1.6rem; margin-bottom: 1rem; }
.solution-tagline {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--champagne); margin-bottom: 1rem; font-weight: 600;
}
.solution-desc { color: var(--ink-faint); margin-bottom: 1.3rem; }
.solution-features { list-style: none; margin-bottom: 1.6rem; }
.solution-features li {
  position: relative; padding-left: 1.4rem; margin-bottom: 0.6rem;
  color: var(--ink-dim); font-size: 0.94rem;
}
.solution-features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 1px; background: var(--teal);
}
.solution-card.is-featured { border-color: var(--teal); }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-sans); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal); font-weight: 600;
  background: var(--accent-soft); border: 1px solid var(--card-border);
  padding: 0.35rem 0.85rem; border-radius: var(--r-pill);
}

.program-card { display: flex; flex-direction: column; }
.program-card-header { margin-bottom: 1rem; }
.program-card-body { flex: 1; }
.program-card-footer {
  margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--card-border);
}
.program-duration { font-family: var(--font-sans); font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.01em; }

.phase-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 3rem; }
.phase-item {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-md);
  padding: 1.6rem 1.2rem; text-align: center; transition: all var(--smooth);
}
.phase-item:hover { border-color: var(--card-border-hover); transform: translateY(-2px); }
.phase-item h3 { font-size: 1.02rem; margin-bottom: 0.4rem; color: var(--teal); }
.phase-item p { font-size: 0.88rem; color: var(--ink-faint); margin: 0; }
@media (max-width: 900px) { .phase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .phase-grid { grid-template-columns: 1fr; } }

/* =========================================
   HERO
   Top spacing tightened so the headline sits closer to the nav —
   .page-hero (used on interior pages) keeps its own separate rule
   below, so this change only affects the homepage hero.
========================================= */
.hero, .page-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 6.75rem 0 4.5rem;
  position: relative;
}
.page-hero { min-height: unset; padding: 6.5rem 0 3.5rem; }

@media (max-width: 900px) {
  .page-hero { padding: 5.5rem 0 3rem; }
}

@media (max-width: 680px) {
  .page-hero { padding: 4.75rem 0 2.5rem; }
}

/* Homepage hero only: pull content closer to the nav. .page-hero (interior
   pages) keeps its own rule above and is unaffected by this override. */
.hero {
  min-height: 66vh;
  padding: 4.25rem 0 3.5rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 58vh;
    padding: 3.75rem 0 3rem;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: unset;
    padding: 3.25rem 0 2.75rem;
  }
}

.hero__aurora {
  position: absolute; inset: -10% -5% auto -5%; height: 70%;
  background: none;
  pointer-events: none; z-index: 0;
}
.bg-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: none;
}

.hero-badge, .hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim); background: var(--surface-alt);
  border: 1px solid var(--card-border); border-radius: var(--r-pill);
  padding: 0.5rem 1rem 0.5rem 0.7rem; margin-bottom: 1.6rem; font-weight: 500;
}
.live-dot, .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--champagne);
  box-shadow: none;
  animation: none;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 1; } }

.hero-content { max-width: 780px; }
.hero__content { max-width: 820px; }
.hero-subtitle, .hero__subtitle {
  font-size: 1.15rem; color: var(--ink-faint); max-width: 640px; margin: 1.4rem 0 2.2rem; font-weight: 400;
}
.hero__actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.8rem;
  font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.01em;
  color: var(--ink-ghost); padding-top: 1.4rem; border-top: 1px solid var(--card-border);
}
.hero__meta span { position: relative; padding-left: 1.1rem; }
.hero__meta span::before { content: "—"; position: absolute; left: 0; font-size: 0.8rem; color: var(--champagne); }

.page-header { padding: 6.5rem 0 3rem; position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 1.2rem; }
.page-header p { font-size: 1.12rem; color: var(--ink-faint); max-width: 620px; }

@media (max-width: 900px) {
  .page-header { padding: 5.5rem 0 2.5rem; }
}

@media (max-width: 680px) {
  .page-header { padding: 4.75rem 0 2.25rem; }
}

/* =========================================
   FOUNDER / SPLIT SECTIONS
========================================= */
.founder-section { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.founder-title { font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.02em; color: var(--teal); margin-bottom: 1.2rem; font-weight: 600; }
.founder-info .btn { margin-top: 1.6rem; }
.founder-portrait, .portrait-placeholder {
  height: 420px; border-radius: var(--r-xl);
  background: var(--surface-alt);
  border: 1px solid var(--card-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  position: relative; overflow: hidden;
}
.portrait-placeholder::after {
  content: ""; position: absolute; inset: 0;
  background: none;
}
.avatar-circle {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; color: var(--teal);
  position: relative; z-index: 1;
}
.avatar-circle svg { width: 38px; height: 38px; }
.portrait-placeholder p { position: relative; z-index: 1; color: var(--ink-faint); font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .founder-section { grid-template-columns: 1fr; gap: 2.2rem; }
  .founder-portrait, .portrait-placeholder { height: 300px; order: -1; }
}
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}

/* =========================================
   QUOTES — the one place Growth Green marks a moment
========================================= */
.quote-section, .quote-block {
  text-align: center; max-width: 880px; margin: 0 auto; position: relative; padding: 1rem 0;
}
.quote-section blockquote, .quote-block__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.5;
  color: var(--ink); margin-bottom: 1.5rem; position: relative;
}
.quote-section blockquote::before, .quote-block__text::before {
  content: "“"; color: var(--champagne); font-size: 1.6em; line-height: 0; vertical-align: -0.3em; margin-right: 0.1em; opacity: 0.9;
}
.quote-section p, .quote-block__attribution {
  font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.03em;
  color: var(--ink-faint); text-transform: uppercase; font-weight: 600;
}

/* =========================================
   LOGO WALL
   Reworked for legibility: each logo now sits in its own quiet card
   with a light border, near-full color and opacity, and a bigger
   cap height — still elegant, no longer squinting.
========================================= */
.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3.5rem 5rem;
  padding: 1rem 0;
}
.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  filter: grayscale(0.35) contrast(1.05);
  transition: opacity var(--smooth), filter var(--smooth), transform var(--smooth);
}
.logo-wall__item:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.06);
}
.logo-wall__item img { height: 76px; width: auto; }

@media (max-width: 680px) {
  .logo-wall {
    gap: 2.25rem 2.5rem;
  }
  .logo-wall__item img { height: 52px; }
}

/* =========================================
   CTA SECTIONS
========================================= */
.cta-final, .cta-section {
  position: relative; padding: 6rem 0;
  background: var(--surface-alt);
  text-align: center; overflow: hidden;
}
.cta-final::before, .cta-section::before {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: none;
  pointer-events: none;
}
.cta-final h2, .cta-section__title { max-width: 700px; margin: 0 auto 1.2rem; }
.cta-final p, .cta-section__subtitle { max-width: 560px; margin: 0 auto 2.4rem; font-size: 1.06rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-section__content { position: relative; z-index: 1; }

/* =========================================
   FOOTER
========================================= */
.footer {
  background: var(--teal);
  border-top: none;
  padding: 5rem 0 2rem;
  margin-top: 4rem;
  position: relative;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 1.75rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3.5rem;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-brand-icon {
  width: 38px; height: 38px; border-radius: var(--r-sm); margin-bottom: 1rem;
  background: #ffffff;
  color: var(--teal); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display);
}
.footer-brand-text { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; color: #ffffff; font-size: 1rem; margin-bottom: 0.5rem; }
.footer-tagline { font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--champagne); text-transform: uppercase; margin-bottom: 1rem; font-weight: 600; }
.footer-desc { max-width: 320px; color: rgba(255,255,255,0.66); font-size: 0.92rem; }

.footer h4 {
  font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #ffffff; margin-bottom: 1.2rem; font-weight: 600;
}
.footer ul { list-style: none; }
.footer a, .footer p { color: rgba(255,255,255,0.66); margin-bottom: 0.75rem; display: block; transition: color var(--fast); font-size: 0.94rem; }
.footer address p:first-child { color: rgba(255,255,255,0.8); }
.footer a:hover { color: var(--champagne); }

.footer-social { display: flex; gap: 0.7rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  margin: 0; font-size: 0.85rem; color: #ffffff;
}
.footer-social a:hover { border-color: var(--champagne); color: var(--champagne); background: transparent; }

.footer-bottom {
  max-width: 1280px; margin: 3.5rem auto 0; padding: 1.75rem 1.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin: 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* =========================================
   REVEAL / MOTION UTILITIES
   Kept subtle — a small lift, not a production number.
========================================= */
.fade-up, .fade-in, .reveal, .lens-reveal, [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-up.visible, .fade-in.visible, .reveal.visible, .lens-reveal.revealed, [data-reveal].revealed,
.fade-up.revealed, .fade-in.revealed, .reveal.revealed {
  opacity: 1; transform: translateY(0);
}
[data-reveal="left"] { transform: translateX(-16px); }
[data-reveal="left"].revealed { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(16px); }
[data-reveal="right"].revealed { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(0.98); }
[data-reveal="scale"].revealed { transform: scale(1); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(0); } }
.float-slow, .float-ambient { animation: none; }

/* =========================================
   MISC UTILITIES referenced across templates
========================================= */
.bg-deep, .bg-deeper { background: var(--void); }
.body-base { color: var(--ink-faint); }
.body-sm { color: var(--ink-faint); font-size: 0.92rem; }
.body-xl { font-size: 1.15rem; color: var(--ink-faint); }
.heading-md { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--ink); }
.heading-lg { font-size: clamp(1.85rem, 3.2vw, 2.5rem); color: var(--ink); }
.text-secondary { color: var(--ink-dim); }

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
  .container, .max-w-7xl, .max-w-4xl { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .card, .glass-card, .about-card, .lens-card, .program-card, .solution-card { padding: 1.6rem; }
  .btn, .btn-primary, .btn-secondary, .btn-outline { width: 100%; }
  .cta-buttons .btn, .hero__actions .btn { width: auto; }
  .cta-buttons, .hero__actions { flex-direction: column; align-items: stretch; }
  .section { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================
   IMAGE HANDLING — KONVEXITY PROFESSIONAL
   Photography is the visual focus now: no decorative frames,
   glows, or overlays — just clean containment.
========================================= */

/* ----- Hero Image ----- */
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ----- Profile / Faculty Avatars ----- */
.faculty-avatar {
  width: 120px;
  height: 120px;
  max-width: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  display: block;
  margin-inline: auto;
}

/* ----- Founder Portrait ----- */
.founder-portrait img,
.portrait-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--r-xl);
  display: block;
}

/* ----- Card Media Frames (Solutions, Blog, etc.) ----- */
.media-frame,
.card-media {
  overflow: hidden;
  border-radius: var(--r-md);
}

.media-frame img,
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--smooth);
}

.card:hover .media-frame img,
.card:hover .card-media img {
  transform: scale(1.02);
}

/* ----- Client Logos ----- */
.logo-wall__item img {
  max-width: 200px;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  display: block;
}

/* ----- Universal fallback for any unhandled img ----- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Responsive image adjustments ----- */
@media (max-width: 680px) {
  .faculty-avatar {
    width: 90px;
    height: 90px;
  }

  .logo-wall__item img {
    max-width: 150px;
    max-height: 52px;
  }
}
