/* GrowthFlux — see DESIGN.md */

/* Fonts are served from this domain, not from Google. No visitor IP leaves
   the site to load type, which is why the site needs no cookie banner. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #0E1B2A;
  --ink-2: #16293D;
  --steel: #2E4A6B;
  --mist: #8FA6BF;
  --paper: #F2F4F7;
  --white: #FFFFFF;
  --brass: #E8B33C;

  --rule-light: rgba(46, 74, 107, 0.18);
  --rule-dark: rgba(143, 166, 191, 0.22);

  --display: "Archivo", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, serif;

  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: 1rem;
  --t-md: 1.25rem;
  --t-lg: 1.6rem;
  --t-xl: 2.4rem;

  --gutter: 24px;
  --maxw: 1140px;
  --sect: 72px;
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --sect: 112px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  /* clears the sticky header when jumping to an anchor */
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--ink);
  padding: 12px 18px;
  font-family: var(--display);
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- nav ---------- */

.nav {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  min-height: 44px;
}

.brand svg { display: block; flex: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--mist);
  text-decoration: none;
  border-radius: 2px;
}

.nav-links a:hover { color: var(--paper); }
.nav-links a[aria-current="page"] {
  color: var(--paper);
  box-shadow: inset 0 -2px 0 var(--brass);
}

/* Links wrap to a second row on narrow screens; keep that from eating the fold.
   Tap targets stay at 44px. */
@media (max-width: 760px) {
  .nav-inner { min-height: 0; gap: 2px; padding-top: 6px; padding-bottom: 6px; }
  .brand { min-height: 40px; font-size: 1.05rem; }
  .nav-links { font-size: 0.85rem; }
  .nav-links a { padding: 0 11px; }
  .nav-links li:first-child a { padding-left: 0; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: #F2C25A; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--rule-dark);
}
.btn-ghost:hover { border-color: var(--mist); }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--steel); }

.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- sections ---------- */

.sect { padding: var(--sect) 0; }
.sect-dark { background: var(--ink); color: var(--paper); }
.sect-dark h2, .sect-dark h3 { color: var(--paper); }
.sect-white { background: var(--white); }

.sect + .sect { border-top: 1px solid var(--rule-light); }
.sect-dark + .sect, .sect + .sect-dark { border-top: none; }

.lede {
  font-size: var(--t-md);
  line-height: 1.5;
  max-width: 54ch;
}

.sect-dark .lede { color: var(--mist); }

h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }

.sect-head { margin-bottom: 48px; }
.sect-head p { margin-top: 18px; }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 80px;
}

@media (min-width: 900px) {
  .hero { padding: 104px 0 112px; }
}

.hero-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 1.1rem + 3.4vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 28px;
}

.hero p {
  color: var(--mist);
  font-size: var(--t-md);
  line-height: 1.5;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---------- hero chart ---------- */

.chart {
  background: var(--ink-2);
  border: 1px solid var(--rule-dark);
  padding: 26px 26px 24px;
  margin: 0;
  min-width: 0;
}

.chart-title {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-dark);
  max-width: none;
}

.chart-note {
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--mist);
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule-dark);
  max-width: none;
}

.chart svg { display: block; width: 100%; height: auto; }

.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--mist);
}

.chart-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.key-swatch {
  width: 18px;
  height: 0;
  border-top-width: 2px;
  border-top-style: solid;
  flex: none;
}

/* No dash until JS has measured the path, so a line never flashes half-drawn. */
.draw.go {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.draw-2.go { animation-delay: 0.35s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .draw.go { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- services list ---------- */

.services { border-top: 1px solid var(--rule-light); }

.service {
  display: grid;
  gap: 8px 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule-light);
}

@media (min-width: 820px) {
  .service { grid-template-columns: 0.42fr 0.58fr; align-items: start; }
}

.service h3 { font-size: 1.35rem; }
.service p { margin: 0; }
.service-detail { color: var(--steel); }

.sect-dark .service { border-color: var(--rule-dark); }
.sect-dark .services { border-top-color: var(--rule-dark); }
.sect-dark .service-detail { color: var(--mist); }

/* ---------- method (a genuine sequence, so numbered) ---------- */

.method { display: grid; gap: 1px; background: var(--rule-light); }

@media (min-width: 820px) {
  .method { grid-template-columns: repeat(4, 1fr); }
}

.step {
  background: var(--paper);
  padding: 32px 28px 36px;
}

.step-n {
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--steel);
  display: block;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--brass);
  width: 28px;
}

.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.92rem; color: var(--steel); margin: 0; }

.sect-white .step { background: var(--white); }

/* ---------- industries ---------- */

.inds { display: grid; gap: 1px; background: var(--rule-dark); }

@media (min-width: 700px) { .inds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .inds { grid-template-columns: repeat(3, 1fr); } }

.ind {
  background: var(--ink);
  padding: 34px 30px 38px;
}

/* each sector's characteristic data shape, drawn in the brand's own language */
.ind-mark {
  display: block;
  width: 38px;
  height: 19px;
  margin-bottom: 16px;
  opacity: 0.9;
  overflow: visible;
}

.ind h3 { font-size: 1.2rem; margin-bottom: 12px; }
.ind p { font-size: 0.92rem; color: var(--mist); margin: 0 0 14px; }
.ind ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: var(--mist);
  line-height: 1.55;
}
.ind li { margin-bottom: 4px; }

/* fills the last grid cell: a way out for anyone whose sector is not listed */
.ind-cta {
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
}
.ind-cta h3 { color: var(--brass); }
.ind-cta p:last-of-type { margin-bottom: 22px; }
.ind-cta .btn { align-self: flex-start; margin-top: auto; }

/* ---------- prose ---------- */

.prose h2 { margin-top: 56px; margin-bottom: 18px; font-size: 1.9rem; }
.prose h2:first-child { margin-top: 0; }

/* the sector's data shape, sitting above its heading on the industries page */
.sector-mark {
  display: block;
  width: 46px;
  height: 23px;
  margin: 64px 0 16px;
  opacity: 0.85;
  overflow: visible;
}
.sector-mark:first-child { margin-top: 0; }
.sector-mark + h2 { margin-top: 0; }
.prose ul { padding-left: 20px; max-width: 68ch; }
.prose li { margin-bottom: 10px; }

.two-col { display: grid; gap: 48px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.4fr 1fr; gap: 72px; } }

.aside {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 24px;
  align-self: start;
}
.aside h3 { font-size: 1.1rem; margin-bottom: 12px; }
.aside p, .aside li { font-size: 0.92rem; color: var(--steel); }
.aside ul { padding-left: 18px; margin: 0; }
.aside li { margin-bottom: 8px; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-family: var(--display);
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: 7px;
}

.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
}

.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--steel); }

.form-note {
  font-size: var(--t-xs);
  color: var(--steel);
  margin-top: 14px;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--brass);
  background: var(--white);
  font-size: 0.92rem;
}
.form-status[hidden] { display: none; }

.detail-list { list-style: none; margin: 0; padding: 0; }

.detail-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule-light);
}
.detail-list li:first-child { padding-top: 0; }

.detail-k {
  display: block;
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 4px;
}

.detail-v { font-size: 1.05rem; word-break: break-word; }
.detail-v a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- faq (native details/summary, no script) ---------- */

.faq { border-top: 1px solid var(--rule-light); max-width: 78ch; }

.faq details { border-bottom: 1px solid var(--rule-light); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.faq .answer { padding: 0 0 26px; }
.faq .answer p { color: var(--steel); margin-bottom: 0.8em; }

/* ---------- cta ---------- */

.cta { text-align: center; }
.cta h2 { margin-bottom: 20px; }
.cta p { margin-left: auto; margin-right: auto; }
.cta .hero-actions { justify-content: center; }

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: var(--mist);
  padding: 56px 0 40px;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--t-sm);
}

.foot-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule-dark);
}

@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
}

.foot h4 {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 14px;
}

.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 2px; }

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
.foot a:hover { color: var(--paper); text-decoration: underline; }

.foot p { margin: 0; max-width: 42ch; }

.foot-base {
  padding-top: 28px;
  font-size: var(--t-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
