/* ============================================================
   Southbridge Consulting Services Ltd — Marketing site
   Design system: deep navy + warm ivory + muted brass
   Typography: Fraunces (display serif) + Inter + JetBrains Mono
   ============================================================ */

:root {
  --bg:           #0A0E1A;
  --bg-2:         #0E1320;
  --surface:      #111726;
  --ivory:        #F5F1E8;
  --ivory-2:      #ECE6D7;
  --text-light:   #E8E4DC;
  --text-light-2: #B5B0A2;
  --text-light-muted: #8B8676;
  --text-dark:    #0A0E1A;
  --text-dark-2:  #3A3B3C;
  --text-dark-muted: #6B6657;
  --accent:       #B89B6F;
  --accent-2:     #C9AC81;
  --accent-deep:  #8E7350;
  --rule:         rgba(232, 228, 220, 0.10);
  --rule-strong:  rgba(232, 228, 220, 0.18);
  --rule-light:   rgba(10, 14, 26, 0.10);
  --rule-light-strong: rgba(10, 14, 26, 0.18);

  --container:    1280px;
  --gutter:       40px;

  --tx-display:   clamp(48px, 7.4vw, 104px);
  --tx-h2:        clamp(36px, 4.4vw, 60px);
  --tx-h3:        clamp(20px, 1.6vw, 24px);
  --tx-lede:      clamp(18px, 1.5vw, 22px);
  --tx-body:      17px;
  --tx-small:     14px;
  --tx-mono:      12px;

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-light);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: var(--tx-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
}

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  font-size: var(--tx-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 40px;
  color: var(--text-light);
}
.display .ln { display: block; }

.display-small {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 100;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  font-size: var(--tx-h2);
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin: 0 0 32px;
  max-width: 980px;
}

.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--tx-mono);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}
.section-label.centred { text-align: center; }

.section-lede {
  font-size: var(--tx-lede);
  line-height: 1.5;
  color: var(--text-light-2);
  max-width: 760px;
  margin: 0 0 72px;
  font-weight: 300;
}

.light .section-lede { color: var(--text-dark-2); }

p { margin: 0 0 16px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s ease, padding 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 14, 26, 0.88);
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
}
.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.005em;
  color: var(--text-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-light-2);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-light); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  color: var(--accent) !important;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

@media (max-width: 880px) {
  .nav-links { gap: 24px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ SECTIONS BASE ============ */
section {
  padding: 160px 0;
  position: relative;
}
section.light {
  background: var(--ivory);
  color: var(--text-dark);
}
section.light .section-title,
section.light .display-small,
section.light h3,
section.light h4,
section.light blockquote {
  color: var(--text-dark);
}
section.light p { color: var(--text-dark-2); }
section + section { border-top: 1px solid var(--rule); }
section.light + section,
section + section.light { border-top: none; }

@media (max-width: 720px) {
  section { padding: 96px 0; }
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  border-top: none !important;
}
.hero-inner { position: relative; z-index: 2; }
.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -300px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(184, 155, 111, 0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(184, 155, 111, 0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(232, 228, 220, 0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: var(--tx-mono);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 48px;
}
.lede {
  font-size: var(--tx-lede);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-light-2);
  max-width: 700px;
  margin: 0 0 56px;
}
.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 100px;
  flex-wrap: wrap;
}
.trust-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--text-light-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.trust-strip .sep { color: var(--accent); font-size: 14px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-light);
  border-color: var(--rule-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-large {
  padding: 22px 40px;
  font-size: 15.5px;
}

/* ============ PROBLEM ============ */
.problem .failures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  margin: 96px 0 80px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.failure {
  background: var(--bg);
  padding: 56px 40px;
}
.failure .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 28px;
}
.failure h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: var(--tx-h3);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text-light);
}
.failure p {
  color: var(--text-light-2);
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}
.problem .closer {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
  max-width: 760px;
  color: var(--text-light);
  margin: 0;
}
.problem .closer em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 980px) {
  .problem .failures { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .problem .failures { grid-template-columns: 1fr; }
  .failure { padding: 40px 28px; }
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: 140px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.manifesto blockquote {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  position: relative;
}
.manifesto blockquote::before {
  content: '“';
  font-family: 'Fraunces', serif;
  font-size: 80px;
  color: var(--accent);
  position: absolute;
  top: -40px;
  left: -20px;
  opacity: 0.4;
  font-style: normal;
}
@media (max-width: 720px) {
  .manifesto { padding: 96px 0; }
  .manifesto blockquote::before { display: none; }
}

/* ============ WHAT WE DO ============ */
.two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 120px;
  margin-top: 64px;
}
.prose p {
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light-2);
  font-weight: 300;
}
.props {
  list-style: none;
  margin: 0;
  padding: 0;
}
.props li {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.props li:last-child { border-bottom: 1px solid var(--rule); }
.props h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--text-light);
}
.props p {
  color: var(--text-light-2);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 980px) {
  .two-col { grid-template-columns: 1fr; gap: 60px; }
}

/* ============ WHO WE SERVE (LIGHT) ============ */
.who.light .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 72px;
}
.card {
  background: #FFFFFF;
  padding: 64px 56px;
  border: 1px solid var(--rule-light);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 24px;
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 28px;
  color: var(--text-dark);
}
.card p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark-2);
  margin: 0 0 32px;
  font-weight: 400;
}
.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.card-tags li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border: 1px solid var(--rule-light-strong);
  color: var(--text-dark-2);
  border-radius: 1px;
  background: var(--ivory-2);
}

@media (max-width: 980px) {
  .who.light .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card { padding: 48px 32px; }
}

/* ============ HOW WE WORK ============ */
.stages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 64px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stage {
  background: var(--bg);
  padding: 56px 32px;
}
.stage-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 28px;
}
.stage h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text-light);
}
.stage-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 22px;
  letter-spacing: 0.02em;
}
.stage p:not(.stage-meta):not(.stage-num) {
  color: var(--text-light-2);
  font-size: 14.5px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

@media (max-width: 980px) {
  .stages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stages { grid-template-columns: 1fr; }
}

/* ============ WHY US (LIGHT) ============ */
.differentiators {
  margin-top: 72px;
}
.diff {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 48px 0;
  border-top: 1px solid var(--rule-light);
}
.diff:last-child { border-bottom: 1px solid var(--rule-light); }
.diff h4 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--text-dark);
}
.diff p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark-2);
  margin: 0;
  font-weight: 400;
}

@media (max-width: 880px) {
  .diff { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
}

/* ============ COMPLIANCE ============ */
.frameworks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.fw {
  background: var(--bg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s ease;
}
.fw:hover { background: var(--bg-2); }
.fw-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-light);
  letter-spacing: -0.005em;
}
.fw-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--text-light-muted);
  letter-spacing: 0.01em;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .frameworks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .frameworks { grid-template-columns: repeat(2, 1fr); }
  .fw { padding: 28px 20px; }
}

/* ============ CTA ============ */
.cta {
  padding: 180px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 155, 111, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  max-width: 800px;
  position: relative;
  z-index: 2;
}
.cta-lede {
  font-size: var(--tx-lede);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-light-2);
  margin: 40px 0 56px;
}
.cta-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-light-muted);
  margin: 36px 0 0;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .cta { padding: 120px 0; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-brand-block .brand { margin-bottom: 20px; }
.footer-brand-block .brand-name { font-size: 17px; }
.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-light-muted);
  margin: 0 0 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--text-light-2);
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }
.footer-copyright {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-light-muted);
  letter-spacing: 0.05em;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
  margin: 0;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { justify-content: flex-start; }
}

/* ============ REVEAL UTILS (GSAP toggles) ============ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-line .ln {
  display: block;
  opacity: 0;
  transform: translateY(40px);
}
