/* ============================================================
   Trivest Partners LLP — design system
   ============================================================ */

:root {
  --ink:        #08121f;
  --ink-2:      #0d1b2c;
  --ink-3:      #12243a;
  --line:       rgba(200, 169, 106, 0.16);
  --line-soft:  rgba(255, 255, 255, 0.08);

  --gold:       #c8a96a;
  --gold-hi:    #e2c992;
  --paper:      #f6f3ed;
  --text:       #e8eaee;
  --muted:      #93a4ba;
  --muted-2:    #6c7f96;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 1200px;
  --pad: clamp(20px, 5vw, 48px);
  --sect: clamp(72px, 10vw, 136px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: 14px;
}
.skip-link:focus { left: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(8, 18, 31, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 78px;
}
.nav.is-stuck .nav__inner { height: 66px; }
.nav__inner, .nav.is-stuck .nav__inner { transition: height .35s var(--ease); }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark rect { fill: rgba(200,169,106,.12); stroke: rgba(200,169,106,.35); stroke-width: 1; }
.brand__mark path { stroke: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
/* "PARTNERS LLP" is a long sub-wordmark: tighter tracking keeps the
   lockup close to the width of "Trivest" above it. */
.brand__sub {
  font-size: 8.5px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold); margin-top: 4px; white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-size: 14px; color: var(--muted); position: relative; padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  border: 1px solid var(--line); padding: 9px 20px !important;
  border-radius: 999px; color: var(--paper) !important;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--gold); border-color: var(--gold); color: var(--ink) !important; }

.nav__toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-soft);
  border-radius: 8px; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav__toggle span {
  display: block; width: 17px; height: 1.5px; background: var(--paper);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), color .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.18); color: var(--paper); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(140px, 20vh, 210px) 0 clamp(64px, 9vw, 96px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; top: -28%; left: 50%; transform: translateX(-50%);
  width: min(1180px, 135%); aspect-ratio: 1.5;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(200,169,106,.17), transparent 58%),
    radial-gradient(ellipse at 22% 62%, rgba(58,110,165,.20), transparent 60%);
  filter: blur(14px);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translateX(-52%) scale(1); }
  to   { transform: translateX(-48%) scale(1.08); }
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
}
.hero__inner { position: relative; text-align: center; }

.eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 96px);
  line-height: 1.03;
  letter-spacing: -0.022em;
  color: var(--paper);
  margin-bottom: 26px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold);
  position: relative;
}
.hero__lede {
  max-width: 640px; margin: 0 auto 38px;
  color: var(--muted); font-size: clamp(15.5px, 1.55vw, 18px); line-height: 1.72;
  font-weight: 300;
}
.hero__lede strong { color: var(--paper); font-weight: 500; }

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.statbar {
  margin-top: clamp(56px, 8vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.stat { padding: 28px 20px; text-align: center; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat dt {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}
.stat dd {
  margin: 0; font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px); line-height: 1; color: var(--paper);
  display: flex; align-items: baseline; justify-content: center;
}
.stat__u { color: var(--gold); }
.stat__pre { order: -1; color: var(--gold); }

/* tabular figures stop width jitter while counters animate */
.count { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: var(--line-soft); overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0; background: var(--gold);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line-soft);
  background: rgba(255,255,255,.018);
  padding: 17px 0; overflow: hidden;
}
.ticker__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ticker__set { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.ticker__set span {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2); white-space: nowrap;
}
.ticker__set i { color: var(--gold); font-size: 7px; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: var(--sect) 0; position: relative; }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line-soft); }

.shead { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.shead--center { text-align: center; margin-inline: auto; }
.shead--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.kicker {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.kicker::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-right: 12px;
  opacity: .7;
}
.shead--center .kicker::before { display: none; }
.shead__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12;
  letter-spacing: -0.018em; color: var(--paper);
}
.shead__lede {
  margin-top: 18px; color: var(--muted); font-weight: 300;
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.72;
}

.link-arrow {
  font-size: 14px; color: var(--gold); display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 1px solid rgba(200,169,106,.3); padding-bottom: 3px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ============================================================
   STRATEGY CARDS
   ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  position: relative; padding: 32px 26px 26px;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.008));
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(200,169,106,.3); }
.card:hover::before { opacity: 1; }
.card__idx {
  font-family: var(--serif); font-size: 13px; color: var(--gold);
  letter-spacing: .12em; display: block; margin-bottom: 18px;
}
.card h3 {
  font-family: var(--serif); font-size: 25px; color: var(--paper); margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 14.5px; font-weight: 300; line-height: 1.68; }
.meta { margin-top: 22px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.meta li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; font-size: 12.5px;
}
.meta span { color: var(--muted-2); }
.meta b { color: var(--paper); font-weight: 500; }

/* ============================================================
   PERFORMANCE
   ============================================================ */
.perf { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.perf__copy .shead__title { margin-top: 0; }
.perf__kpis {
  margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px;
}
.perf__kpis div { border-left: 2px solid rgba(200,169,106,.4); padding-left: 16px; }
.perf__kpis b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3vw, 34px); color: var(--paper); line-height: 1.1;
}
.perf__kpis span { display: block; font-size: 12px; color: var(--muted-2); margin-top: 5px; }

.chart {
  margin: 0; padding: 26px; border: 1px solid var(--line-soft); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.chart__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.chart__title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chart__legend { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 2px; }
.dot--gold { background: var(--gold); }
.dot--mute { background: var(--muted-2); margin-left: 10px; }

.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__rules line { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.chart__rules text, .chart__x text { fill: var(--muted-2); font-size: 10px; font-family: var(--sans); }
.chart__line { stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart__line--gold { stroke: var(--gold); filter: drop-shadow(0 0 10px rgba(200,169,106,.35)); }
.chart__line--mute {
  stroke: var(--muted-2); stroke-width: 1.6; stroke-dasharray: 4 4;
  opacity: 0; transition: opacity .9s var(--ease) .35s;
}
.chart.is-in .chart__line--mute { opacity: .75; }
.chart__area { opacity: 0; transition: opacity 1s var(--ease) .5s; }
.chart.is-in .chart__area { opacity: 1; }

.chart__draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.chart.is-in .chart__draw { transition: stroke-dashoffset 1.7s var(--ease); stroke-dashoffset: 0; }

.chart__note { margin-top: 14px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step { position: relative; padding: 34px 26px 0 0; border-top: 1px solid var(--line-soft); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 1s var(--ease) var(--d, 0s);
}
.step.is-in::before { width: 100%; }
.step__n {
  font-family: var(--serif); font-size: 13px; color: var(--gold);
  letter-spacing: .14em; display: block; margin-bottom: 16px;
}
.step h3 { font-family: var(--serif); font-size: 23px; color: var(--paper); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; font-weight: 300; line-height: 1.68; }

/* ============================================================
   QUOTE
   ============================================================ */
.quote {
  padding: var(--sect) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,169,106,.09), transparent 62%),
    var(--ink);
  border-block: 1px solid var(--line-soft);
}
.quote__inner { max-width: 860px; margin-inline: auto; text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.1vw, 38px); line-height: 1.35;
  letter-spacing: -0.015em; color: var(--paper);
}
.quote footer {
  margin-top: 34px; display: flex; align-items: center; justify-content: center; gap: 14px;
}
.quote footer img { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); }
.quote footer div { text-align: left; }
.quote footer b { display: block; font-size: 14.5px; font-weight: 500; color: var(--paper); }
.quote footer span { font-size: 12.5px; color: var(--muted-2); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.logos {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden;
}
.logo {
  padding: 30px 16px; text-align: center;
  font-family: var(--serif); font-size: 16px; color: var(--muted);
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.logo:nth-child(6n) { border-right: 0; }
.logo:nth-child(n+7) { border-bottom: 0; }
.logo:hover { color: var(--gold); background: rgba(200,169,106,.05); }

.cases { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  padding: 28px 26px; border: 1px solid var(--line-soft); border-radius: 14px;
  background: rgba(255,255,255,.022);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.case:hover { border-color: rgba(200,169,106,.3); transform: translateY(-4px); }
.case__tag {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 14px;
}
.case h3 { font-family: var(--serif); font-size: 24px; color: var(--paper); margin-bottom: 10px; }
.case p { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.68; }
.case__stats {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 10px;
  align-items: baseline;
}
.case__stats b { font-family: var(--serif); font-size: 22px; color: var(--gold); font-weight: 400; }
.case__stats span { font-size: 11.5px; color: var(--muted-2); }

/* ============================================================
   INSIGHTS
   ============================================================ */
.post {
  display: flex; flex-direction: column; padding: 28px 26px; min-height: 240px;
  border: 1px solid var(--line-soft); border-radius: 14px;
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.post:hover {
  border-color: rgba(200,169,106,.32); background: rgba(255,255,255,.025);
  transform: translateY(-4px);
}
.post__meta {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.post h3 {
  font-family: var(--serif); font-size: 26px; line-height: 1.2;
  color: var(--paper); margin-bottom: 12px;
}
.post p { color: var(--muted); font-size: 14.5px; font-weight: 300; line-height: 1.66; }
.post__date {
  margin-top: auto; padding-top: 20px; font-size: 12px; color: var(--muted-2);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.offices { margin-top: 38px; display: grid; gap: 22px; }
.office { border-left: 2px solid rgba(200,169,106,.35); padding-left: 16px; }
.office b { display: block; font-size: 14px; color: var(--paper); font-weight: 500; margin-bottom: 5px; }
.office span { display: block; font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.6; }
.office a { font-size: 13px; color: var(--gold); display: inline-block; margin-top: 5px; }
.office a:hover { text-decoration: underline; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 30px; border: 1px solid var(--line-soft); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 14.5px; color: var(--paper);
  background: rgba(8,18,31,.55); border: 1px solid var(--line-soft);
  border-radius: 9px; padding: 13px 14px; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #4f6178; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: rgba(8,18,31,.8);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393a4ba' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
.field select option { background: var(--ink-2); color: var(--paper); }
.field.is-error input, .field.is-error textarea { border-color: #d1685e; }

.form .btn { grid-column: 1 / -1; margin-top: 4px; }
.form__note { grid-column: 1 / -1; font-size: 12.5px; color: var(--gold); min-height: 18px; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--line-soft); padding: clamp(56px, 7vw, 84px) 0 32px; }
.footer__top {
  display: flex; justify-content: space-between; gap: 44px; flex-wrap: wrap;
  padding-bottom: 44px; border-bottom: 1px solid var(--line-soft);
}
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 36px; }
.footer__cols h4 {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer__cols a {
  display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0;
  transition: color .25s var(--ease);
}
.footer__cols a:hover { color: var(--paper); }

.footer__legal {
  margin: 30px 0; font-size: 11.5px; line-height: 1.75; color: var(--muted-2);
  max-width: 940px;
}
.footer__bar {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--muted-2);
}
.footer__links { display: flex; gap: 20px; }
.footer__links a { transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .logo:nth-child(6n) { border-right: 1px solid var(--line-soft); }
  .logo:nth-child(4n) { border-right: 0; }
  .logo:nth-child(n+7) { border-bottom: 1px solid var(--line-soft); }
  .logo:nth-child(n+9) { border-bottom: 0; }
  .perf { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 auto 0; top: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,18,31,.97);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 92px var(--pad) 30px;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-102%); transition: transform .45s var(--ease);
    box-shadow: 0 30px 60px rgba(0,0,0,.45);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a {
    font-size: 17px; color: var(--paper); padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__links a::after { display: none; }
  .nav__cta {
    margin-top: 20px; text-align: center; border-bottom: 0 !important;
    background: var(--gold); color: var(--ink) !important; border-color: var(--gold);
  }
  .grid-3, .cases { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .shead--row { align-items: flex-start; }
  .form { grid-template-columns: 1fr; padding: 24px; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logo { border-right: 1px solid var(--line-soft) !important; border-bottom: 1px solid var(--line-soft) !important; }
  .logo:nth-child(2n) { border-right: 0 !important; }
  .logo:nth-child(n+11) { border-bottom: 0 !important; }
  .hero__actions .btn { width: 100%; }
  .perf__kpis { grid-template-columns: 1fr; }
  .quote footer { flex-direction: column; text-align: center; }
  .quote footer div { text-align: center; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart__draw { stroke-dasharray: none; stroke-dashoffset: 0; }
  .chart__area { opacity: 1; }
}
