/* =========================================================
   Forvant v2 — Theme-aware Luxury CSS
   Default: light mode. html.dark = dark mode.
   ========================================================= */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Theme Tokens ──────────────────────────────────────── */
:root {
  /* Light mode (default) */
  --bg:            #f5f2eb;
  --bg-alt:        #ede9e0;
  --text:          #1a1a16;
  --text-muted:    rgba(26,22,16,0.55);
  --text-dim:      rgba(26,22,16,0.22);
  --rule:          rgba(26,22,16,0.12);
  --surface:       rgba(0,0,0,0.03);
  --surface-hover: rgba(0,0,0,0.055);
  --nav-blur:      rgba(245,242,235,0.88);
  --nav-mobile:    rgba(245,242,235,0.97);
  --input-bg:      rgba(0,0,0,0.04);
  --input-focus:   rgba(45,157,98,0.06);
  --placeholder:   rgba(26,22,16,0.3);
  --border:        rgba(26,22,16,0.28);
  --grid-line:     rgba(26,22,16,0.07);
  --select-opt:    #ede9e0;
  /* Story section inverts against main */
  --story-bg:      #0f0f0d;
  --story-text:    #f0ede6;
  --story-muted:   rgba(240,237,230,0.62);
  --story-attr:    rgba(240,237,230,0.4);
  --story-rule:    rgba(240,237,230,0.12);
  /* Always same */
  --green:         #2d9d62;
  --green-light:   #4fba7f;
  --green-dim:     rgba(45,157,98,0.15);
  --font-sans:     'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:    'DM Serif Display', Georgia, serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;
  --nav-h:         72px;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme:    light;
}

html.dark {
  --bg:            #0a0a08;
  --bg-alt:        #111110;
  --text:          #f0ede6;
  --text-muted:    rgba(240,237,230,0.55);
  --text-dim:      rgba(240,237,230,0.2);
  --rule:          rgba(240,237,230,0.1);
  --surface:       rgba(255,255,255,0.02);
  --surface-hover: rgba(255,255,255,0.028);
  --nav-blur:      rgba(10,10,8,0.82);
  --nav-mobile:    rgba(10,10,8,0.97);
  --input-bg:      rgba(255,255,255,0.04);
  --input-focus:   rgba(45,157,98,0.04);
  --placeholder:   rgba(240,237,230,0.25);
  --grid-line:     rgba(240,237,230,0.04);
  --border:        rgba(240,237,230,0.25);
  --select-opt:    #1a1a14;
  --story-bg:      #f5f2eb;
  --story-text:    #1a1a16;
  --story-muted:   rgba(26,26,22,0.72);
  --story-attr:    rgba(26,26,22,0.48);
  --story-rule:    rgba(26,26,22,0.1);
  color-scheme:    dark;
}

/* Smooth theme transitions on structural elements only */
html { transition: background-color 0.35s, color 0.35s; }
body,
.nav.scrolled,
.ticker,
.interstitial,
.team,
.story,
.contact,
.footer,
.hero-stat,
.approach-step,
.approach-steps,
.approach-stats,
.a-stat,
.team-note,
.member-tags span {
  transition: background-color 0.35s, border-color 0.35s;
}

/* ── Base ──────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  /* Glow layers: percentage-positioned so they scale with any viewport.
     Each pair is (x% y%) for a section: hero, services, approach, contact. */
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 45% at 22% 6%,  rgba(45,157,98,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 30%,  rgba(45,157,98,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 58%,  rgba(45,157,98,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 88%,  rgba(45,157,98,0.09) 0%, transparent 65%);
  background-attachment: scroll;
  overflow-x: hidden;
  cursor: none;
}

a, button, input, select, textarea, label { cursor: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Custom Cursor ─────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-out),
              height 0.2s var(--ease-out),
              background 0.2s var(--ease-out),
              opacity 0.2s;
  opacity: 0;
}
.cursor.visible { opacity: 1; }
.cursor.hover {
  width: 36px;
  height: 36px;
  background: rgba(45,157,98,0.2);
  border: 1px solid var(--green);
}

/* ── Scroll Progress Bar ───────────────────────────────── */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  z-index: 9998;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ── Utility ───────────────────────────────────────────── */
.mono-sm {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.label-green { color: var(--green-light); }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
}
.nav.scrolled {
  background: var(--nav-blur);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--rule);
}

/* Inverted nav when over the story section */
.nav.nav-inverted.scrolled {
  background: var(--story-bg);
  border-color: var(--story-rule);
}
.nav.nav-inverted .nav-brand,
.nav.nav-inverted .nav-links a:hover,
.nav.nav-inverted .nav-links a.active,
.nav.nav-inverted .nav-cta { color: var(--story-text); }
.nav.nav-inverted .nav-toggle span { background: var(--story-text); }
.nav.nav-inverted .nav-links a { color: var(--story-muted); }
.nav.nav-inverted .theme-toggle {
  border-color: var(--story-rule);
  color: var(--story-muted);
}
.nav.nav-inverted .theme-toggle:hover {
  border-color: var(--green);
  color: var(--green-light);
}
.nav.nav-inverted .nav-cta {
  border-color: var(--story-rule);
}
.nav.nav-inverted .nav-cta:hover {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green-light);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-brand svg {
  position: relative;
  top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Theme toggle button */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover {
  border-color: var(--green);
  color: var(--green-light);
  background: var(--green-dim);
}
/* Moon shown in light mode, sun shown in dark mode */
.icon-sun  { display: none; }
.icon-moon { display: block; }
html.dark .icon-sun  { display: block; }
html.dark .icon-moon { display: none; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 22px;
  border: 1px solid var(--text-dim);
  border-radius: 100px;
  color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.nav-cta:hover {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 80px;
}

/* Glows live on body background-image (see above) so they
   are always full-viewport and never clipped by any child. */

.hero-content {
  position: relative;
  z-index: 1;
  flex: 1 1 55%;
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  color: var(--text-muted);
}
.eyebrow-rule {
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--text-dim);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-body {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary-dark:hover { background: var(--green-light); }
.btn-primary-dark:active { transform: scale(0.97) translateY(1px); }

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid var(--text-dim);
  color: var(--text);
  border-radius: 100px;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, transform 0.1s;
}
.btn-ghost-dark:hover { border-color: var(--rule); }
.btn-ghost-dark:active { transform: scale(0.97) translateY(1px); }

.hero-aside {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 64px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  max-width: 240px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.hero-stat-num {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.04em;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 10px;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.scroll-line-anim {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--green), transparent);
  background-size: 100% 200%;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { background-position: 0% 0%; opacity: 0.3; }
  50%  { background-position: 0% 100%; opacity: 1; }
  100% { background-position: 0% 200%; opacity: 0.3; }
}

/* ── Ticker ────────────────────────────────────────────── */
.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: tickerScroll 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ticker-track .t-sep {
  color: var(--green);
  font-size: 14px;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Services ──────────────────────────────────────────── */
.services {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px;
  border-top: 1px solid var(--rule);
}

.services-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 80px;
}

.services-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 600px;
  color: var(--text);
}

.service-item {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.service-item.revealed { opacity: 1; transform: translateY(0); }
.service-item:last-child { border-bottom: 1px solid var(--rule); }

.service-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.service-num {
  color: var(--green-light);
  flex-shrink: 0;
}

.service-draw-line {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.service-draw-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--green-light), var(--text-dim));
  transition: left 1s var(--ease-out) 0.2s;
}
.service-item.revealed .service-draw-line::after { left: 100%; }

.service-body-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.service-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}

.service-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}
.service-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 1px;
  background: var(--green);
}

/* ── Interstitial ──────────────────────────────────────── */
.interstitial {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 120px 32px;
  text-align: center;
  overflow: hidden;
}

.interstitial-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(45,157,98,0.09) 0%, transparent 70%);
  pointer-events: none;
}

.interstitial-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.5vw, 60px);
  font-style: italic;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}

.interstitial-sub {
  position: relative;
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ── Reveal animations ─────────────────────────────────── */
.reveal-line {
  display: block;
  overflow: visible;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-line.revealed { opacity: 1; transform: translateY(0); }
.reveal-line:nth-child(2) { transition-delay: 0.12s; }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}
.reveal-fade.revealed { opacity: 1; }

.reveal-from-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-from-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal-from-right.revealed { opacity: 1; transform: translateX(0); }

/* ── Approach ──────────────────────────────────────────── */
.approach {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px;
  border-top: 1px solid var(--rule);
}

.approach-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 80px;
}
.approach-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.approach-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 80px;
}

.approach-step {
  display: flex;
  gap: 24px;
  padding: 44px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background 0.25s;
}
.approach-step:nth-child(even) { border-right: none; }
.approach-step:nth-last-child(-n+2) { border-bottom: none; }
.approach-step:hover { background: var(--surface-hover); }

.step-num {
  flex-shrink: 0;
  width: 32px;
  text-align: right;
  color: var(--green-light);
  font-size: 12px;
  padding-top: 4px;
}

.step-content h3 {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 12px;
}
.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.approach-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.a-stat {
  padding: 40px;
  border-right: 1px solid var(--border);
  background: transparent;
}
.a-stat:last-child { border-right: none; }

.a-stat-val {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}
.a-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Team ──────────────────────────────────────────────── */
.team {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 120px 32px;
}

.team-header {
  max-width: 1280px;
  margin: 0 auto 60px;
}

.team-split {
  max-width: 1280px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 64px;
  align-items: start;
}

.team-divider {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
}

.team-member {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member-initial {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.member-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--rule);
  display: block;
}

.member-name {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.2;
}
.member-role { color: var(--green-light); }

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.member-tags span {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  background: transparent;
}

.member-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 480px;
}

.member-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--green-light);
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s, gap 0.2s;
}
.member-link:hover { color: var(--text); gap: 10px; }

.team-note {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}
.team-note p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Story — always inverted ───────────────────────────── */
.story {
  position: relative;
  z-index: 1;
  background: var(--story-bg);
}

.story-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 32px;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.story-label {
  display: block;
  color: var(--green-light);
  margin-bottom: 32px;
}

.story-pullquote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.8vw, 36px);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--story-text);
  margin-bottom: 20px;
}

.story-attr {
  color: var(--story-attr);
  font-size: 12px;
}

.story-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 60px;
}
.story-right p {
  font-size: 15px;
  color: var(--story-muted);
  line-height: 1.8;
}

/* ── Contact ───────────────────────────────────────────── */
.contact {
  position: relative;
  z-index: 1;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 55% 50% at 20% 30%, rgba(45,157,98,0.1) 0%, transparent 65%);
  border-top: 1px solid var(--rule);
  padding: 120px 32px;
}

.contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.contact-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 380px;
}

.contact-free-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(45,157,98,0.1);
  border: 1px solid rgba(45,157,98,0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.01em;
}

.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.c-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c-meta-item a,
.c-meta-item span:last-child {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.c-meta-item a:hover { color: var(--text); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--input-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--input-focus);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--placeholder); }
.form-field select option {
  background: var(--select-opt);
  color: var(--text);
}

.btn-submit {
  align-self: flex-start;
  padding: 16px 40px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.03em;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}
.btn-submit:hover { background: var(--green-light); }
.btn-submit:active { transform: scale(0.97) translateY(1px); }
.btn-submit.btn-sent {
  background: var(--green-dim);
  border: 1px solid var(--green);
  color: var(--green-light);
}
.btn-submit:disabled { pointer-events: none; }
.btn-submit.btn-error {
  background: transparent;
  border: 1px solid rgba(220,60,60,0.5);
  color: #e05555;
}

/* ── Corporate Page ─────────────────────────────────────── */

.nav-links .nav-corp-link { color: var(--green); font-weight: 500; }
.nav-links .nav-corp-link:hover { color: var(--green-light) !important; }
.nav.nav-inverted .nav-links .nav-corp-link { color: var(--green-light) !important; }

/* Corp hero */
.corp-hero {
  background: var(--story-bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 32px 120px;
  position: relative;
}
.corp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 22% 55%, rgba(45,157,98,0.18) 0%, transparent 68%),
    radial-gradient(ellipse 45% 45% at 78% 28%, rgba(45,157,98,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.corp-hero-watermark {
  position: absolute;
  right: clamp(-40px, -3vw, 0px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.04;
  pointer-events: none;
}
.corp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.corp-hero-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: var(--story-muted);
}
.corp-hero-label .eyebrow-rule { background: rgba(240,237,230,0.18); }
.corp-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.5vw, 90px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--story-text);
  max-width: 900px;
  margin-bottom: 28px;
}
.corp-hero-title em {
  font-style: italic;
  color: var(--green-light);
}
.corp-hero-body {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.72;
  color: var(--story-muted);
  max-width: 580px;
  margin-bottom: 48px;
}
.corp-hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(240,237,230,0.25);
  color: var(--story-text);
  border-radius: 100px;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-outline-light:hover {
  border-color: var(--green);
  background: rgba(45,157,98,0.08);
  color: var(--green-light);
}

/* Corp section shared */
.corp-section-label { margin-bottom: 16px; }
.corp-section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 600px;
  margin-bottom: 12px;
}
.corp-section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 56px;
}

/* Pillars */
.corp-pillars {
  position: relative;
  z-index: 1;
  padding: 96px 32px;
}
.corp-pillars-inner { max-width: 1280px; margin: 0 auto; }
.corp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.corp-pillar {
  background: var(--surface);
  border-right: 1px solid var(--rule);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}
.corp-pillar:last-child { border-right: none; }
.corp-pillar:hover { background: var(--green-dim); }
.corp-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--green-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}
.corp-pillar h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.corp-pillar p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Process */
.corp-process {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 96px 32px;
}
.corp-process-inner { max-width: 1280px; margin: 0 auto; }
.corp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.corp-step {
  padding-right: 40px;
  border-right: 1px solid var(--rule);
}
.corp-step:last-child { border-right: none; padding-right: 0; }
.corp-step:not(:first-child) { padding-left: 40px; }
.corp-step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
}
.corp-step h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.corp-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Why Forvant */
.corp-why {
  position: relative;
  z-index: 1;
  padding: 96px 32px;
}
.corp-why-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 96px;
  align-items: center;
}
.corp-why-quote {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 40px);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.corp-why-quote em {
  color: var(--green);
  font-style: inherit;
}
.corp-why-points {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.corp-why-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.corp-why-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 7px;
}
.corp-why-point h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.corp-why-point p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Corp contact section */
.corp-contact {
  background: var(--story-bg);
  padding: 96px 32px;
  position: relative;
  z-index: 1;
}
.corp-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 15% 50%, rgba(45,157,98,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.corp-contact-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.corp-contact-header {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.corp-contact-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--story-text);
}
.corp-contact-sub {
  font-size: 15px;
  color: var(--story-muted);
  line-height: 1.7;
  max-width: 360px;
}
.corp-contact-notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--story-rule);
}
.corp-contact-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--story-muted);
}
.corp-contact-note svg { color: var(--green); flex-shrink: 0; }

/* Corp form on dark bg */
.corp-form .form-field label { color: var(--story-muted); }
.corp-form .form-field input,
.corp-form .form-field select,
.corp-form .form-field textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(240,237,230,0.15);
  color: var(--story-text);
  color-scheme: dark;
}
.corp-form .form-field input:focus,
.corp-form .form-field select:focus,
.corp-form .form-field textarea:focus {
  border-color: var(--green);
  background: rgba(45,157,98,0.06);
}
.corp-form .form-field input::placeholder,
.corp-form .form-field textarea::placeholder { color: rgba(240,237,230,0.22); }
.corp-form .form-field select option {
  background: #1a1a16;
  color: var(--story-text);
}

/* Corp band on index.html */
.corp-band {
  position: relative;
  z-index: 1;
  background: var(--story-bg);
  padding: 80px 32px;
  overflow: hidden;
}
.corp-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 50% 50%, rgba(45,157,98,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.corp-band-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.corp-band-label { color: var(--story-muted); margin-bottom: 12px; display: block; }
.corp-band-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--story-text);
  margin-bottom: 10px;
}
.corp-band-sub {
  font-size: 15px;
  color: var(--story-muted);
  max-width: 480px;
  line-height: 1.65;
}

/* ── Responsive — corporate ──────────────────────────────── */
@media (max-width: 1024px) {
  .corp-pillars-grid { grid-template-columns: 1fr 1fr; }
  .corp-pillar { border-bottom: 1px solid var(--rule); }
  .corp-pillar:nth-child(2n) { border-right: none; }
  .corp-pillar:nth-last-child(-n+2) { border-bottom: none; }
  .corp-steps { grid-template-columns: 1fr 1fr; gap: 0; }
  .corp-step { padding: 32px; border-right: none; border-bottom: 1px solid var(--rule); }
  .corp-step:last-child { border-bottom: none; }
  .corp-step:not(:first-child) { padding-left: 32px; }
  .corp-why-inner { grid-template-columns: 1fr; gap: 48px; }
  .corp-contact-inner { grid-template-columns: 1fr; }
  .corp-contact-header { position: static; }
}
@media (max-width: 768px) {
  .corp-pillars-grid { grid-template-columns: 1fr; }
  .corp-pillar { border-right: none; }
  .corp-pillar:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .corp-pillar:last-child { border-bottom: none; }
  .corp-steps { grid-template-columns: 1fr; }
  .corp-band-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-logo-icon {
  flex-shrink: 0;
  display: block;
  align-self: center;
  position: relative;
  top: 4px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 11px;
  flex-shrink: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { gap: 48px; }
  .service-body-wrap { grid-template-columns: 1fr; gap: 28px; }
  .approach-stats { grid-template-columns: 1fr; }
  .a-stat { border-right: none; border-bottom: 1px solid var(--rule); }
  .a-stat:last-child { border-bottom: none; }
  .team-split { grid-template-columns: 1fr; gap: 48px; }
  .team-divider { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-header { position: static; }
  .story-inner { grid-template-columns: 1fr; gap: 40px; }
  .story-right { padding-top: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  body { cursor: auto; }
  .cursor { display: none; }
  a, button, input, select, textarea, label { cursor: auto; }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 60px;
    gap: 48px;
  }
  .hero-aside {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 32px;
    width: 100%;
  }
  .hero-stat { align-items: flex-start; text-align: left; }
  .scroll-hint { display: none; }

  .approach-steps { grid-template-columns: 1fr; }
  .approach-step {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .approach-step:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .approach-step:last-child { border-bottom: none; }

  .form-row { grid-template-columns: 1fr; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--nav-mobile);
    backdrop-filter: blur(20px);
    padding: 24px 32px;
    gap: 16px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 18px; color: var(--text); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-left { flex-direction: column; gap: 6px; align-items: flex-start; }
}
