/* ============================================================
   CFO STEER — SHARED BRAND STYLES
   Used across index, service pages, About.
   ============================================================ */
:root {
  --abyss: #07131F;
  --ink: #0C1E30;
  --ink-2: #13293E;
  --ink-3: #1B3954;
  --paper: #EDF0F2;
  --paper-2: #F6F7F5;
  --brass: #C7A24A;
  --brass-bright: #E2C277;
  --teal: #3AA99A;
  --muted-d: #93A6B6;
  --muted-l: #5A6B7A;
  --line-d: rgba(255, 255, 255, .12);
  --line-l: rgba(12, 30, 48, .14);
  --mark-ring: #0C1E30;
  --mark-ink: #0C1E30;
  --mark-brass: #C7A24A;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--paper);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bricolage Grotesque', 'Archivo', sans-serif;
  font-weight: 700;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -.02em;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
  opacity: .7;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  gap: 10px;
  padding: 14px 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: .25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brass);
  color: var(--ink);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--brass-bright);
}

.btn-ghost {
  border-color: var(--line-d);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--brass);
  color: var(--brass-bright);
}

.btn .arr {
  transition: transform .25s;
}

.btn:hover .arr {
  transform: translateX(4px);
}

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

/* nav */
header.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 19, 31, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  width: 40px;
  height: 40px;
}

.brand-wm {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.brand-wm .c {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--brass-bright);
  text-transform: uppercase;
}

.brand-wm .s {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -.025em;
  color: var(--paper);
}

.brand:hover .brand-wm .c {
  color: var(--brass);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted-d);
  transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--paper);
}

.nav-cta {
  margin-left: 0;
  box-shadow: 0 2px 14px rgba(199, 162, 74, .30);
}

/* burger — animated three-line → X */
.burger {
  display: none;
  background: none;
  border: 0;
  color: var(--paper);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background .2s;
}

.burger:hover {
  background: rgba(255, 255, 255, .08);
}

.burger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}

.burger-bar+.burger-bar {
  margin-top: 5px;
}

/* X state */
.burger[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.burger[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* hero (homepage full-size, service pages smaller) */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 800;
}

.hero h1 .accent {
  color: var(--brass);
  font-style: normal;
}

.hero .tagline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 27px);
  margin: 20px 0 0;
  color: var(--paper);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.hero .tagline span {
  color: var(--brass-bright);
}

.hero .lede {
  color: var(--muted-d);
  font-size: 19px;
  max-width: 30em;
  margin: 26px 0 34px;
}

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

.hero-cta .btn {
  width: auto;
  min-width: 280px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}

.hero-bg line {
  stroke: rgba(255, 255, 255, .05);
}

.trail {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  opacity: .55;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.6s ease forwards .4s;
}

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

/* service-page hero: compact, single column */
.svc-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line-d);
}

.svc-hero .crumbs {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted-d);
  margin-bottom: 22px;
}

.svc-hero .crumbs a {
  color: var(--muted-d);
}

.svc-hero .crumbs a:hover {
  color: var(--brass);
}

.svc-hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 800;
  margin-top: 18px;
  max-width: 22em;
}

.svc-hero h1 .accent {
  color: var(--brass);
}

.svc-hero .lede {
  color: var(--muted-d);
  font-size: 19px;
  max-width: 38em;
  margin: 22px 0 30px;
}

/* compass signature */
.compass-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compass {
  width: min(420px, 86%);
  aspect-ratio: 1;
}

.cmp-ring {
  fill: none;
  stroke: var(--line-d);
  stroke-width: 1;
}

.cmp-ring.bezel {
  stroke: rgba(199, 162, 74, .45);
  stroke-width: 1.4;
}

.cmp-tick {
  stroke: var(--muted-d);
}

.cmp-tick.card {
  stroke: var(--paper);
}

.cmp-card-letter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  fill: var(--muted-d);
  letter-spacing: .1em;
}

.cmp-card-letter.n {
  fill: var(--brass-bright);
}

.needle-grp {
  transform-origin: 200px 200px;
  transform: rotate(45deg);
  animation: settle 3s cubic-bezier(.2, .9, .2, 1) forwards;
}

@keyframes settle {
  0% {
    transform: rotate(-22deg);
  }

  55% {
    transform: rotate(60deg);
  }

  80% {
    transform: rotate(38deg);
  }

  100% {
    transform: rotate(45deg);
  }
}

.hdg-readout {
  font-family: 'IBM Plex Mono', monospace;
  fill: var(--brass-bright);
  font-size: 15px;
  letter-spacing: .18em;
}

.hdg-sub {
  font-family: 'IBM Plex Mono', monospace;
  fill: var(--muted-d);
  font-size: 9.5px;
  letter-spacing: .3em;
}

/* positioning strip */
.strip {
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  background: var(--ink);
}

.strip-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 30px 0;
}

.strip h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  color: var(--paper);
}

.strip p {
  margin: 6px 0 0;
  color: var(--muted-d);
  font-size: 14px;
  line-height: 1.5;
}

.strip .lbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brass);
  text-transform: uppercase;
}

/* generic section */
section {
  padding: 96px 0;
}

.sec-head {
  max-width: 42em;
}

.sec-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 18px;
}

.sec-head p {
  color: var(--muted-d);
  margin-top: 18px;
  font-size: 18px;
}

.sec-lead {
  color: var(--muted-d);
  margin-top: 18px;
  font-size: 18px;
  max-width: 44em;
}

/* light-bg sections */
.on-light {
  background: var(--paper);
  color: var(--ink);
}

.on-light .eyebrow {
  color: #9A7C2C;
}

.on-light .eyebrow::before {
  background: #9A7C2C;
}

.on-light .sec-head h2 {
  color: var(--ink);
}

.on-light .sec-head p,
.on-light .sec-lead {
  color: var(--muted-l);
}

.on-light-2 {
  background: var(--paper-2);
  color: var(--ink);
}

.on-light-2 .eyebrow {
  color: #9A7C2C;
}

.on-light-2 .eyebrow::before {
  background: #9A7C2C;
}

.on-light-2 .sec-head h2 {
  color: var(--ink);
}

.on-light-2 .sec-head p,
.on-light-2 .sec-lead {
  color: var(--muted-l);
}

/* thesis two-col */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.thesis h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--ink);
}

.thesis .big {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 600;
}

.thesis p {
  color: var(--muted-l);
}

.thesis .col p+p {
  margin-top: 18px;
}

/* HOMEPAGE service hub cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.hub-card {
  border: 1px solid var(--line-d);
  border-radius: 4px;
  padding: 32px 28px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
  transition: border-color .25s, transform .25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.hub-card:hover {
  border-color: rgba(199, 162, 74, .5);
  transform: translateY(-3px);
}

.hub-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--brass);
  letter-spacing: .2em;
}

.hub-card .verb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 6px;
}

.hub-card h3 {
  font-size: 24px;
  margin: 14px 0 10px;
  color: var(--paper);
}

.hub-card p {
  color: var(--muted-d);
  font-size: 15px;
  margin: 0 0 20px;
  flex-grow: 1;
}

.hub-card .go {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--brass-bright);
  text-transform: uppercase;
}

.hub-card .go::after {
  content: " →";
  transition: transform .25s;
}

.hub-card:hover .go::after {
  margin-left: 4px;
}

/* SERVICE PAGE — problem/deliverables/pattern/faq blocks */
.problem {
  background: var(--paper);
  color: var(--ink);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.problem-card {
  background: #fff;
  border: 1px solid var(--line-l);
  border-radius: 4px;
  padding: 26px 24px;
}

.problem-card h4 {
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 10px;
}

.problem-card p {
  margin: 0;
  color: var(--muted-l);
  font-size: 15px;
  line-height: 1.6;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.offering {
  border: 1px solid var(--line-d);
  border-radius: 4px;
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
}

.offering .n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--brass-bright);
}

.offering h3 {
  font-size: 22px;
  margin: 10px 0 8px;
}

.offering p {
  color: var(--muted-d);
  font-size: 15px;
  margin: 0;
}

.offering ul {
  margin: 14px 0 0;
  padding: 0 0 0 20px;
  color: var(--paper);
  font-size: 14.5px;
}

.offering ul li {
  margin-bottom: 6px;
}

.offering ul li::marker {
  color: var(--brass);
}

.deliverables {
  background: var(--ink-2);
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
}

.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.deliverable {
  background: var(--ink);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
  padding: 22px 24px;
}

.deliverable .stage {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brass-bright);
}

.deliverable h4 {
  font-size: 18px;
  margin: 8px 0 8px;
}

.deliverable p {
  color: var(--muted-d);
  font-size: 14.5px;
  margin: 0;
}

.pattern {
  background: var(--paper-2);
  color: var(--ink);
}

.pattern-story {
  margin-top: 40px;
  padding: 32px 34px;
  background: #fff;
  border: 1px solid var(--line-l);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
}

.pattern-story .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .22em;
  color: #9A7C2C;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.pattern-story h3 {
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 14px;
}

.pattern-story p {
  color: var(--muted-l);
  font-size: 16px;
  margin: 0 0 14px;
  line-height: 1.65;
}

.pattern-story .outcome {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-l);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
}

.pattern-story .outcome>div {
  min-width: 150px;
}

.pattern-story .outcome .k {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #9A7C2C;
  text-transform: uppercase;
}

.pattern-story .outcome .v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-top: 4px;
}

.faq {
  background: var(--abyss);
}

.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line-d);
}

.faq-item {
  border-bottom: 1px solid var(--line-d);
  padding: 24px 0;
}

.faq-item h4 {
  font-size: 19px;
  color: var(--paper);
  margin: 0 0 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.faq-item h4 .plus {
  color: var(--brass);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s;
}

.faq-item.open h4 .plus {
  transform: rotate(45deg);
}

.faq-item .a {
  color: var(--muted-d);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin-top .3s ease;
}

.faq-item.open .a {
  max-height: 400px;
  margin-top: 6px;
}

/* why cards (from homepage, reused on services) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.why-card {
  border: 1px solid var(--line-d);
  border-radius: 4px;
  padding: 26px 22px;
}

.why-card .k {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--brass-bright);
  letter-spacing: -.02em;
}

.why-card h4 {
  font-size: 17px;
  margin: 14px 0 8px;
  color: var(--paper);
}

.why-card p {
  color: var(--muted-d);
  font-size: 14px;
  margin: 0;
}

/* how we work steps (from Approach page) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 54px;
}

.step {
  position: relative;
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.step .hdg {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  color: #9A7C2C;
}

.step h3 {
  font-size: 25px;
  margin: 14px 0 12px;
  color: var(--ink);
}

.step p {
  color: var(--muted-l);
  font-size: 15.5px;
}

/* tech stack */
.tech-stack {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-layer {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line-d);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  padding: 22px 26px;
  background: linear-gradient(90deg, rgba(58, 169, 154, .07), transparent 62%);
  transition: transform .25s, border-color .25s;
}

.tech-layer:hover {
  transform: translateX(5px);
  border-color: rgba(58, 169, 154, .5);
}

.tech-layer .ln {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--teal);
  letter-spacing: .08em;
}

.tech-layer h3 {
  font-size: 20px;
}

.tech-layer .lc {
  color: var(--muted-d);
  font-size: 14.5px;
  margin-top: 5px;
  max-width: 46em;
}

.tech-layer .ltag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--teal);
  letter-spacing: .06em;
  text-align: right;
  white-space: nowrap;
}

@media (max-width:760px) {
  .tech-layer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tech-layer .ltag {
    text-align: left;
  }
}

/* CTA */
.cta {
  background: linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
  border-top: 1px solid var(--line-d);
}

.cta-in {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.cta p {
  color: var(--muted-d);
  margin-top: 18px;
  max-width: 32em;
}

.cta-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    width: 100%;
}

.cta-right .btn {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
}
.cta-right .line {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--muted-d);
  letter-spacing: .04em;
}

.cta-right .line b {
  color: var(--paper);
  font-weight: 500;
}

/* footer */
footer {
  background: var(--abyss);
  border-top: 1px solid var(--line-d);
  padding: 64px 0 36px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.foot-grid h5 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 16px;
}

.foot-grid a,
.foot-grid p {
  display: block;
  color: var(--muted-d);
  font-size: 14px;
  margin: 0 0 10px;
  transition: color .2s;
}

.foot-grid a:hover {
  color: var(--paper);
}

.foot-brand .s {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 25px;
  color: var(--paper);
  letter-spacing: -.025em;
}

.foot-brand p {
  max-width: 24em;
  margin-top: 14px;
}

.foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-d);
  margin-top: 48px;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-bot span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted-d);
  letter-spacing: .04em;
}

.foot-disclaimer {
  border-top: 1px solid var(--line-d);
  margin-top: 20px;
  padding-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-d);
  font-style: italic;
  letter-spacing: 0;
}

/* Mobile menu CTA - hidden by default */
.mobile-book {
  display: none;
}

/* responsive */
/* Nav collapses at 1024px (covers Nest Hub & tablets) */
@media (max-width:1024px) {
  /* --- Mobile nav --- */
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Fullwidth dropdown drawer */
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px;
    left: auto;
    right: 0;
    width: fit-content;
    min-width: 280px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-d);
    border-left: 1px solid var(--line-d);
    padding: 6px 0 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    animation: slideDown .25s ease forwards;
  }

  .nav-links.open a:not(.mobile-book) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 28px;
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--muted-d);
  }

  .nav-links.open a:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--brass-bright);
    border-radius: 0;
  }

  /* Hide desktop button */
  .nav-cta {
    display: none;
  }

  /* Show mobile button */
  .mobile-book {
    display: inline-flex !important;
    align-items: center;
    align-self: flex-start;
    justify-content: flex-start;
    gap: 8px;

    width: fit-content;
    margin: 10px 24px;
    padding: 10px 20px;

    background: #C7A24A;
    color: #0C1E30 !important;

    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;

    border: none;
  }

  .mobile-book .arr {
    font-size: 18px;
  }

  .nav-links.open a:not(.mobile-book)::after {
    content: "→";
    margin-left: 0;
    color: #C7A24A;
    font-size: 18px;
  }

  /* CTA in mobile drawer */
  .nav-links.open::after {
    content: "";
  }
}

@media (max-width:920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .compass-stage {
    order: -1;
  }

  .compass {
    width: min(340px, 72%);
  }

  .strip-in {
    grid-template-columns: 1fr 1fr;
  }

  .thesis-grid,
  .cta-in {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hub-grid,
  .offerings-grid,
  .problem-grid,
  .deliverables-grid,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width:520px) {

  .why-grid,
  .strip-in {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .foot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* First column (logo) takes full width */
  .foot-brand {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }

  /* Contact also takes full width */
  .foot-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion:reduce) {
  .needle-grp {
    animation: none;
  }

  .trail {
    animation: none;
    stroke-dashoffset: 0;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   MOBILE BASELINE POLISH (v28)
   ============================================================ */

/* Tighten horizontal padding on smaller viewports so content
   doesn't crowd the edges but also doesn't waste screen width */
@media (max-width:760px) {
  .wrap {
    padding: 0 20px;
  }

  /* Section vertical padding scales down — 96px on desktop is
     too much on a phone; costs a full screen of scroll every time */
  section {
    padding: 60px 0;
  }

  /* Hero paddings shrink correspondingly */
  .hero {
    padding: 60px 0 70px;
  }

  .svc-hero {
    padding: 52px 0 44px;
  }

  /* Body text and lede — slightly smaller for phone readability */
  body {
    font-size: 16px;
  }

  .hero .lede,
  .svc-hero .lede {
    font-size: 17px;
  }

  .sec-head p,
  .sec-lead {
    font-size: 17px;
  }

  /* Headline caps — the clamp minimum was still too big on 360-400px screens.
     Bring hero and section h2 down further at this size. */
  .hero h1 {
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.08;
  }

  .svc-hero h1 {
    font-size: clamp(32px, 8.5vw, 48px);
    line-height: 1.08;
  }

  .sec-head h2 {
    font-size: clamp(26px, 6.5vw, 38px);
  }

  .thesis h2,
  .cta h2 {
    font-size: clamp(26px, 6.5vw, 38px);
  }

  /* Card padding — service pages have card grids that get cramped */
  .hub-card {
    padding: 24px 22px 22px;
  }

  .hub-card h3 {
    font-size: 21px;
  }

  .problem-card,
  .offering {
    padding: 22px 20px;
  }

  .problem-card h4,
  .offering h3 {
    font-size: 18px;
  }

  .deliverable,
  .pattern-story {
    padding: 24px 22px;
  }

  /* Buttons — enforce 44px min tap target and comfortable padding */
  .btn {
    padding: 14px 20px;
    font-size: 13px;
    min-height: 46px;
  }

  /* Nav CTA on mobile — a hair smaller to fit alongside burger */
  .nav-cta {
    padding: 12px 15px;
    font-size: 11.5px;
    letter-spacing: .06em;
    min-height: auto;
  }

  /* Nav links in open mobile drawer — bigger tap targets */
  .nav-links.open a:not(.mobile-book) {
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Footer — single column at this size looks better than the
     awkward 2×2 grid that made columns too narrow */
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

  .foot-grid .foot-brand {
    margin-bottom: 8px;
  }

  .foot-bot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Compass — a bit smaller and less bottom margin on mobile */
  .compass {
    width: min(280px, 68%);
  }

  /* CTA-right stack: buttons and lines vertical with breathing room */
  /* Hero Buttons */
.hero-cta{
    display:flex;
    flex-direction:column;
    gap:16px;
    width:100%;
}

.hero-cta .btn{
    width:100%;
    max-width:100%;
    min-width:0;
    justify-content:center;
}

/* CTA Buttons */
.cta-in{
    grid-template-columns:1fr;
}

.cta-right{
    width:100%;
    display:flex;
    flex-direction:column;
}

.cta-right .btn{
    display:flex;
    width:100%;
    max-width:none;
    min-width:0;
    justify-content:center;
}
  /* Eyebrows — reduce letter-spacing to prevent wrap on narrow screens */
  .eyebrow {
    font-size: 11px;
    letter-spacing: .2em;
  }

  /* Approach method blocks (Chart · Steer · Hold) */
  .method-grid {
    grid-template-columns: 1fr;
  }
  /* Service Hero Button */
.svc-hero .btn{
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    margin-top: 20px;
}

}

/* Very small phones (< 480px) — hide CTA from header to prevent overflow */
@media (max-width:480px) {
  .nav-cta {
    display: none;
  }
}

/* Very small phones (< 400px) — a final trim */
@media (max-width:400px) {

  .wrap {
    padding: 0 12px;
  }

  .nav-in {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .brand {
    gap: 6px;
    flex-shrink: 0;
  }

  .brand svg {
    width: 30px;
    height: 30px;
  }

  .brand-wm {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Keep CFO visible */
  .brand-wm .c {
    display: block;
    font-size: 9px;
    letter-spacing: .15em;
  }

  .brand-wm .s {
    font-size: 18px;
  }

  .nav-right {
    gap: 0;
  }

  .nav-actions {
    gap: 0;
  }

  .nav-cta {
    display: none;
  }

  .burger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
  }

  .burger-bar {
    width: 18px;
    height: 2px;
  }

  .nav-links.open {
    top: 60px;
  }
}

/* Nav CTA text shorter on tiny screens — the current label wraps ugly */
.nav-cta {
  font-size: 11px;
  padding: 11px 12px;
}


/* Landscape phones — ensure hero doesn't dominate the viewport */
@media (max-height:520px) and (max-width:920px) {
  .hero {
    padding: 40px 0 50px;
  }

  .svc-hero {
    padding: 36px 0 30px;
  }
}