/* ── VARIABLES ── */
:root {
  --bg:            #101133;
  --bg-alt:        #0d0f2e;
  --bg-card:       rgba(255,255,255,0.04);
  --gold:          #D4A838;
  --gold-dim:      rgba(212,168,56,0.25);
  --gold-border:   rgba(212,168,56,0.35);
  --text:          #ede9e0;
  --text-muted:    rgba(237,233,224,0.62);
  --text-dim:      rgba(237,233,224,0.35);
  --border:        rgba(237,233,224,0.09);
  --border-gold:   rgba(212,168,56,0.3);
  --font-display:  'Cormorant Garant', Georgia, serif;
  --font-body:     'Jost', sans-serif;
  --max:           1100px;
  --nav-h:         76px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(52px, 7vw, 90px); }
h2 { font-size: clamp(36px, 4.5vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2.2vw, 24px); }

p { color: var(--text-muted); font-weight: 300; font-size: 18px; }
p + p { margin-top: 1em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
section { padding: 100px 0; }
section.alt { background: var(--bg-alt); }

.section-header {
  margin-bottom: 60px;
}
.section-header h2 { margin-top: 12px; }

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--gold);
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn-primary:hover {
  background: transparent;
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--text-muted);
}
.btn-ghost:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn-method {
  font-size: 13px;
}

/* ── NAV ── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#site-nav.scrolled {
  background: rgba(16, 17, 51, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: pointer; }
.nav-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 7px;
  vertical-align: middle;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg) translateY(0px); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: -24px;
  width: 220px;
  background: #0d0f2e;
  border: 1px solid var(--border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  transition: color 0.15s, background 0.15s;
}
.dropdown-menu a:hover {
  color: var(--gold);
  background: rgba(212,168,56,0.06);
}

.nav-cta {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  padding: 9px 24px !important;
  transition: background 0.2s, color 0.2s !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding: 0 24px;
  padding-top: var(--nav-h);
}
.hero-content h1 {
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-content .lead {
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-ctas .btn { font-size: 13px; }
.hero-scroll-cue {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Subpage hero (no starfield, lighter) */
.hero-sub {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero-sub .container { max-width: 760px; }
.hero-sub h1 { font-size: clamp(38px, 5vw, 66px); margin-top: 12px; }
.hero-sub .lead { margin-top: 20px; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
}
.card h3 { margin-bottom: 14px; }
.card h4 { margin-bottom: 12px; color: var(--gold); font-family: var(--font-body); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.card p { font-size: 15px; }

/* Phase cards */
.phase-card {
  padding: 40px;
  border: 1px solid var(--border);
  position: relative;
}
.phase-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.phase-card h3 { margin-bottom: 8px; }
.phase-duration {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
  font-weight: 500;
}
.phase-card h3 { font-size: clamp(20px, 2.2vw, 28px); }
.phase-card p { font-size: 17px; }

/* Value prop cards */
.value-card {
  padding: 40px;
  border: 1px solid var(--border);
}
.value-card h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 16px;
}
.value-card p { font-size: 15px; }

/* ── DIFFERENTIATOR TABLE ── */
.diff-table-wrap {
  overflow-x: auto;
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.diff-table th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.diff-table th.gold { color: var(--gold); }
.diff-table td {
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.diff-table td.gold { color: var(--text); font-weight: 400; }
.diff-table tr:last-child td { border-bottom: none; }
.diff-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── TESTIMONIALS ── */
.testimonial {
  border-left: 2px solid var(--gold);
  padding: 24px 40px;
  background: var(--bg-card);
}
.testimonial-context {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-attr {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CREDIBILITY BAR ── */
.cred-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 48px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  padding-left: 185px;
  padding-right: 110px;
}
.cred-logo {
  color: var(--text-dim);
  transition: color 0.2s;
}
.cred-logo:hover { color: var(--text-muted); }
.cred-logo-text {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cred-logo-linkedin {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0;
}
.cred-logo-img {
  height: auto;
  width: auto;
  opacity: 0.45;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.cred-logo-img:hover { opacity: 0.7; }

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p { max-width: 640px; margin: 0 auto 40px; font-size: clamp(19px, 2vw, 22px); }
.cta-section .btn-primary { font-size: 13px; font-weight: 600; }

/* ── WHO WE WORK WITH ── */
.who-section { text-align: left; }
.who-section .lead { margin-top: 20px; max-width: 640px; }

/* ── METHOD PHASE TABLE ── */
.method-table-wrap { overflow-x: auto; margin-top: 60px; }
.method-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}
.method-table th {
  text-align: left;
  padding: 14px 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.method-table td {
  padding: 20px 20px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}
.method-table tr:last-child td { border-bottom: none; }
.method-table .row-label {
  font-weight: 500;
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── CONTACT FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(237,233,224,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--bg-alt); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { align-self: flex-start; }

/* ── ABOUT ── */
.bio-section { max-width: 700px; }
.bio-section h2 { margin-bottom: 28px; }
.bio-section p { font-size: 17px; margin-bottom: 1.2em; }

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 60px;
}
.cred-item {
  background: var(--bg);
  padding: 36px 40px;
}
.cred-item h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.cred-item p { font-size: 14px; }

/* Philosophy */
.philosophy-section { max-width: 640px; }

/* ── FOOTER ── */
#site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand svg { display: block; margin-top: -11px; }
.footer-tagline {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 28px;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-top: -3px;
}
.footer-contact a, .footer-contact span {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--text); }
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 4px;
  align-items: center;
}
.footer-social a {
  color: var(--text-dim);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ── SCROLL INDICATOR ── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-hint-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ── HOMEPAGE SPECIFICS ── */
.what-we-do p { font-size: 20px; }
.what-we-do-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.what-we-do-text h2 { margin-bottom: 24px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  #site-nav { padding: 0 20px; }
  #site-nav.mobile-open,
  #site-nav.mobile-open.scrolled { backdrop-filter: none; background: var(--bg-alt); }
  .nav-logo svg { width: 220px; height: auto; }
  .container { padding: 0 28px; }
  section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px; }
  .what-we-do-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contact { align-items: flex-start; }
  .credentials-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  #site-nav.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-alt);
    padding: 48px 28px;
    gap: 32px;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  #site-nav.mobile-open .nav-links a { font-size: 16px; }
  #site-nav.mobile-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    border: none;
    padding: 8px 0 0 16px;
  }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-content h1 { font-size: 48px; }
  #site-nav.mobile-open .dropdown-menu a { white-space: nowrap; }
  .diff-table th, .diff-table td { padding: 14px 16px; font-size: 13px; }
  .what-we-do-grid > div:last-child { margin-top: 0 !important; }
  .phase-card h3 br { display: none; }
  .phase-card h3 { font-size: 22px !important; }
  .hero-content .lead { text-wrap: balance; }
}

@media (max-width: 900px) {
  .cred-logos {
    position: static;
    left: auto;
    transform: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
  }
  .testimonials-grid {
    position: static !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    margin-top: 40px !important;
  }
}

@media (min-width: 901px) {
  .hero-content .lead { text-wrap: balance; }
  .cta-section p { text-wrap: balance; }
}

.mobile-only { display: none; }
@media (max-width: 900px) {
  .mobile-only { display: inline; }
  .desktop-only { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .card, .phase-card, .value-card { padding: 28px 24px; }
}
