/* =========================================================================
   Sting Capital Solutions — shared design system
   Dark, restrained, institutional. Amber-gold rationed to accents only.
   ========================================================================= */

:root {
  /* palette */
  --ink:        #0c0d10;
  --ink-2:      #121419;
  --ink-3:      #171a21;
  --bone:       #ece7dc;
  --bone-dim:   rgba(236, 231, 220, 0.62);
  --bone-faint: rgba(236, 231, 220, 0.50);
  --amber:      #c8a35b;
  --amber-lit:  #dcbb7c;
  --line:       rgba(236, 231, 220, 0.12);
  --line-2:     rgba(236, 231, 220, 0.20);

  /* type */
  --sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* metrics */
  --wrap: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- type ---- */
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p  { margin: 0; }

em.it, .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--amber);
  opacity: 0.7;
}

.lead {
  color: var(--bone-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.55;
  max-width: 50ch;
}

/* ---- layout ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 52px);
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 144px);
  border-top: 1px solid var(--line);
}
.section--ink2 { background: var(--ink-2); }
.section--flush { border-top: 0; }

.measure { max-width: 62ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.92rem 1.5rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn .ar { transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

.btn--solid { background: var(--amber); color: #1a1407; border-color: var(--amber); }
.btn--solid:hover { background: var(--amber-lit); border-color: var(--amber-lit); }

.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--bone); }

/* ---- nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(20px, 5vw, 52px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
.brand b {
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}
.brand b span { color: var(--bone-dim); }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.1rem); }
.nav-links a[data-page] {
  font-size: 0.9rem;
  color: var(--bone-dim);
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}
.nav-links a[data-page]:hover { color: var(--bone); }
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 4px;
  background: var(--amber);
}
.nav-cta {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink) !important;
  background: var(--amber);
  padding: 0.55rem 1.05rem;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.nav-cta:hover { background: var(--amber-lit); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--bone); transition: 0.25s var(--ease); }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: clamp(580px, 90vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + clamp(20px, 4vw, 56px));
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 38%, rgba(200, 163, 91, 0.10), transparent 60%),
    radial-gradient(90% 70% at 12% 8%, rgba(236, 231, 220, 0.04), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.hero-hornet {
  position: absolute;
  right: clamp(-160px, -8vw, -40px);
  top: 50%;
  transform: translateY(-56%);
  width: min(70vw, 820px);
  height: auto;
  color: var(--amber);
  opacity: 0.1;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 52ch; }
.hero-title {
  font-size: clamp(2.7rem, 7.4vw, 5.6rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.hero .lead { margin-top: 1.6rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.6rem; }
.scrollcue {
  position: absolute;
  left: clamp(20px, 5vw, 52px);
  bottom: 26px;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.scrollcue span { width: 40px; height: 1px; background: var(--bone-faint); }

@media (max-width: 680px) {
  .hero-hornet { width: 130vw; right: -34vw; opacity: 0.07; }
}

/* ---- section heads ---- */
.sec-head { max-width: 64ch; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-head h2 { margin-bottom: 0; }
.sec-head .lead { margin-top: 1.3rem; }
.sec-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sec-head--row > div { max-width: 40ch; }
.txt-link {
  font-size: 0.9rem;
  color: var(--amber);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease);
}
.txt-link:hover { border-color: var(--amber); }

/* ---- statistic band ---- */
.stat-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}
.stat-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(5.5rem, 19vw, 14rem);
  line-height: 0.8;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.stat-num span { font-size: 0.42em; vertical-align: baseline; }
.stat-copy {
  color: var(--bone-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  max-width: 46ch;
}
.stat-copy b { color: var(--bone); font-weight: 500; }

/* ---- who we serve grid ---- */
.serve-grid {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.serve {
  flex: 1 1 220px;
  padding: clamp(1.6rem, 2.4vw, 2.3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.serve h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.serve p { color: var(--bone-dim); font-size: 0.9rem; line-height: 1.5; }
.serve .tick { display: block; width: 18px; height: 1px; background: var(--amber); margin-bottom: 1.3rem; opacity: 0.8; }

/* ---- process steps (a genuine sequence) ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.step { background: var(--ink); padding: clamp(1.8rem, 2.6vw, 2.6rem); }
.section--ink2 .step { background: var(--ink-2); }
.step .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--amber);
  display: block;
  margin-bottom: 1.1rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.step p { color: var(--bone-dim); font-size: 0.92rem; line-height: 1.55; }

/* ---- closing CTA ---- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 1.4rem auto 2.4rem; text-align: center; }
.cta-band .btn { margin-inline: auto; }

@media (max-width: 760px) {
  .stat-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; }
}

/* ===================== inner-page components ===================== */

/* page header (clears the fixed nav) */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(52px, 9vw, 128px));
  padding-bottom: clamp(40px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.page-head .lead { margin-top: 1.6rem; }

/* editorial two-column split */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(1.8rem, 5vw, 5rem);
  align-items: start;
}
.split > h2 { letter-spacing: -0.02em; }
.split-body p { color: var(--bone-dim); font-size: 1.08rem; line-height: 1.6; max-width: 58ch; }
.split-body p + p { margin-top: 1.1rem; }
.split-body strong, .split-body b { color: var(--bone); font-weight: 500; }

/* vertical numbered process flow */
.flow { border-top: 1px solid var(--line); }
.flow-step {
  display: grid;
  grid-template-columns: 3.5rem 13rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.3rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.flow-step .n { font-family: var(--serif); font-size: 1.7rem; color: var(--amber); line-height: 1; }
.flow-step h3 { font-size: 1.18rem; }
.flow-step p { color: var(--bone-dim); font-size: 0.98rem; line-height: 1.55; max-width: 60ch; }

/* match-mode cards */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.mode {
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: var(--ink-2);
  transition: border-color 0.25s var(--ease);
}
.mode:hover { border-color: var(--line-2); }
.mode .k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.mode h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0.9rem 0 0.8rem; }
.mode p { color: var(--bone-dim); line-height: 1.6; }

/* fit list */
.fit { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.fit li {
  display: flex;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  align-items: baseline;
}
.fit li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--amber); transform: translateY(-0.5em); }

/* engagement timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.phase { background: var(--ink); padding: clamp(1.6rem, 2.4vw, 2.2rem); }
.section--ink2 .phase { background: var(--ink-2); }
.phase .n { font-family: var(--serif); font-size: 1.5rem; color: var(--amber); display: block; margin-bottom: 0.9rem; }
.phase h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.phase p { color: var(--bone-dim); font-size: 0.9rem; line-height: 1.5; }

/* understated fee line */
.fee-line {
  border-left: 2px solid var(--amber);
  padding-left: 1.1rem;
  margin-top: 2.4rem;
  color: var(--bone-dim);
  font-size: 0.98rem;
  max-width: 52ch;
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .modes { grid-template-columns: 1fr; }
  .flow-step { grid-template-columns: 2.5rem 1fr; }
  .flow-step h3 { grid-column: 2; }
  .flow-step p { grid-column: 2; margin-top: 0.4rem; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ===================== contact + form ===================== */
.contact-section {
  padding-top: calc(var(--nav-h) + clamp(52px, 9vw, 120px));
  padding-bottom: clamp(64px, 9vw, 128px);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: start;
}
.contact-info h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0;
  max-width: 14ch;
}
.contact-info .lead { margin-top: 1.4rem; max-width: 40ch; }
.info-list { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.info-row { display: flex; gap: 1.4rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row .k {
  flex: none; width: 7rem;
  color: var(--bone-faint);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding-top: 0.2rem;
}
.info-row .v { color: var(--bone); font-size: 0.96rem; }
.info-row .v a { color: var(--amber); }
.info-row .v a:hover { color: var(--amber-lit); }

.form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
.req { color: var(--amber); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.row2 .field { margin-bottom: 0; }
.input, .select, .textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--bone);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.85rem 1rem;
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--bone-faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--amber); outline: none; background: var(--ink-3); }
.select {
  appearance: none; -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23c8a35b' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 0.4rem; }
.form-status {
  min-height: 1.4em;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.form-status.show { opacity: 1; }
.form-status.ok { color: var(--amber); }
.form-status.err { color: #d98c6a; }
.consent { color: var(--bone-faint); font-size: 0.8rem; line-height: 1.5; margin-top: 1.1rem; }
.consent svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 5px; color: var(--amber); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info h1 { max-width: none; }
}
@media (max-width: 480px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .row2 .field { margin-bottom: 1.1rem; }
}

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); background: var(--ink-2); padding-block: clamp(56px, 7vw, 88px); }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--line);
}
.footer .brand { margin-bottom: 1rem; }
.footer-blurb { color: var(--bone-dim); max-width: 38ch; font-size: 0.95rem; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--bone-dim);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--bone); }
.footer-bot {
  padding-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer-bot .copy { color: var(--bone-dim); font-size: 0.85rem; }
.disclaimer {
  color: var(--bone-faint);
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 70ch;
  margin-top: 1.4rem;
}

/* ---- focus + motion floor ---- */
a:focus-visible, button:focus-visible, .input:focus-visible,
.select:focus-visible, .textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .ar { transition: none; }
}

/* ---- responsive nav ---- */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(12, 13, 16, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1.6rem clamp(20px, 5vw, 52px) 2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-cta { align-self: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}
