/* ==========================================================================
   Grupo LopVal — styles.css
   Navy & gold corporate editorial. Sections in document order.
   ========================================================================== */

:root {
  --navy:      #14213D;
  --navy-2:    #0B1428;
  --navy-3:    #1C2C4F;
  --gold:      #C9A227;
  --gold-2:    #E2C35E;
  --ivory:     #F3EEE3;
  --paper:     #FBF8F2;
  --ink:       #14213D;
  --ink-soft:  #3A4560;
  --ink-mute:  #6E7690;
  --cream:     #EDE6D6;
  --on-dark:   #E9E4D8;
  --on-dark-2: #A9B1C6;
  --line:      rgba(20, 33, 61, .14);
  --line-dark: rgba(233, 228, 216, .14);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-2); padding: 10px 16px; font-weight: 600;
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
section[id] { scroll-margin-top: 70px; }

/* ----- Type ----- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow__num {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0; font-style: italic;
  color: var(--ink-mute); padding-right: 12px; border-right: 1px solid currentColor;
}
.eyebrow--light .eyebrow__num { color: var(--on-dark-2); }
.eyebrow__line { width: 36px; height: 1px; background: currentColor; }

.h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -.01em;
  text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; color: var(--gold); }

.section__head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 820px; }
.section__head--split {
  max-width: none; display: grid; gap: 24px; align-items: end;
  grid-template-columns: 1.4fr 1fr;
}
.section__intro { color: var(--ink-soft); max-width: 420px; margin: 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border: 1px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy-2); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--block { width: 100%; }

/* ----- Reveal (content visible without JS) ----- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ----- Progress ----- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: 0 50%; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--on-dark);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 22px 0;
}
.nav.is-solid {
  background: rgba(11, 20, 40, .96);
  box-shadow: 0 1px 0 var(--line-dark);
  padding: 12px 0;
}
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-dark); }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 24px; letter-spacing: .01em; }
.brand__name b { font-weight: 400; font-style: italic; color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .02em; position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid var(--gold); color: var(--gold); padding: 10px 18px; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--gold); color: var(--navy-2); }

.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  background: var(--navy-2);
  color: var(--on-dark);
  display: flex; align-items: flex-end;
  padding: 140px 0 56px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero__rings {
  position: absolute; width: min(90vw, 900px); right: -18%; top: 50%;
  transform: translateY(-50%);
  fill: none; stroke: var(--gold); stroke-width: .8; opacity: .38;
  animation: spin 120s linear infinite;
}
.hero__rings circle:nth-child(2) { stroke-dasharray: 4 10; }
.hero__rings circle:nth-child(4) { stroke-dasharray: 1 6; }
@keyframes spin { to { rotate: 360deg; } }
.hero__glow {
  position: absolute; width: 60vw; height: 60vw; left: 40%; top: 10%;
  background: radial-gradient(circle, rgba(201, 162, 39, .18), transparent 60%);
  transform: translate(-50%, -50%);
  transition: transform 1.2s var(--ease);
}

.hero__inner { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.hero__eyebrow { margin-bottom: 32px; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: .96; letter-spacing: -.02em;
  max-width: 15ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }

.hero__foot {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  margin-top: clamp(32px, 5vw, 56px);
}
.hero__lead { max-width: 520px; color: var(--on-dark-2); margin: 0; font-size: 18px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.js .hero__foot, .js .stats, .js .hero__eyebrow { opacity: 0; animation: fade 1s .6s var(--ease) forwards; }
.js .stats { animation-delay: .85s; }
.js .hero__eyebrow { animation-delay: .1s; }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.stats {
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}
.stat { padding: 22px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.stat dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); order: 2; }
.stat dd { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--gold); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { background: var(--gold); color: var(--navy-2); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 28px; align-items: center; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); white-space: nowrap; }
.marquee__track i { font-style: normal; font-size: 12px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.about__head { position: sticky; top: 110px; }
.about__body p { color: var(--ink-soft); }
.lede { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: var(--ink) !important; }
.lede::first-letter {
  float: left; font-family: var(--serif); font-size: 5.2em; line-height: .82;
  padding: 6px 12px 0 0; color: var(--gold);
}
.lede strong { font-weight: 600; }

/* ==========================================================================
   MODEL
   ========================================================================== */
.model { background: var(--ivory); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: s; }
.steps__rail { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--line); }
.steps__rail span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.steps.is-drawn .steps__rail span { transform: scaleX(1); }
.no-js .steps__rail span, html:not(.js) .steps__rail span { transform: scaleX(1); }
.step { padding: 0 28px 0 0; position: relative; }
.step__num {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--ivory); border: 1px solid var(--gold);
  font-family: var(--serif); font-size: 24px; color: var(--navy);
  margin-bottom: 28px; position: relative; z-index: 1;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.step:hover .step__num { background: var(--navy); color: var(--gold); }
.step h3 { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin-bottom: 12px; }
.step p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.steps .step:nth-child(3) { transition-delay: .1s; }
.steps .step:nth-child(4) { transition-delay: .2s; }
.steps .step:nth-child(5) { transition-delay: .3s; }

/* ==========================================================================
   PURPOSE
   ========================================================================== */
.purpose { background: var(--navy); color: var(--on-dark); overflow: hidden; }
.purpose::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 50vw; height: 50vw;
  border: 1px solid rgba(201, 162, 39, .25); border-radius: 50%;
}
.purpose__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); position: relative; }
.purpose__card { border-top: 1px solid var(--gold); padding-top: 30px; }
.purpose__text { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.2; margin: 0; color: var(--on-dark); }

.values__title {
  font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold);
  margin: clamp(72px, 10vw, 120px) 0 28px;
}
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.value { padding: 30px 24px 10px 0; position: relative; }
.value + .value { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.value__idx { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; }
.value h4 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; color: #fff; }
.value p { color: var(--on-dark-2); font-size: 15px; margin: 0; }
.values .value:nth-child(2) { transition-delay: .08s; }
.values .value:nth-child(3) { transition-delay: .16s; }
.values .value:nth-child(4) { transition-delay: .24s; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.portfolio { background: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  font: 600 13px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  cursor: pointer; transition: all .3s var(--ease);
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button.is-active { background: var(--navy); border-color: var(--navy); color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--ivory);
  padding: 32px 30px 30px;
  border-left: 3px solid var(--gold);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.card:hover { box-shadow: 0 30px 60px -30px rgba(20, 33, 61, .35); }
.card--wide { grid-column: span 2; }
.card--dark { background: var(--navy); color: var(--on-dark); }
.card--dark strong { color: var(--on-dark); }
.card.is-hidden { display: none; }
.card__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 26px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card__sector { font-size: 12px; color: var(--ink-mute); text-align: right; }
.card--dark .card__sector { color: var(--on-dark-2); }
.card__title { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1.05; margin-bottom: 6px; }
.card__loc { font-size: 14px; color: var(--ink-mute); margin-bottom: 18px; display: flex; gap: 8px; align-items: center; }
.card__loc::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.card--dark .card__loc { color: var(--on-dark-2); }
.card p:last-child { margin-bottom: 0; }
.card > p { font-size: 15.5px; color: var(--ink-soft); }
.card--dark > p { color: var(--on-dark-2); }
.card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.card__chips li { font-size: 13px; padding: 6px 12px; border: 1px solid var(--line); background: var(--paper); }
.card__link {
  margin-top: auto; padding-top: 10px; align-self: flex-start;
  color: var(--gold); font-weight: 600; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.card__link:hover { color: var(--gold-2); }

/* ==========================================================================
   CONSULTING
   ========================================================================== */
.consult { background: var(--ivory); }
.consult__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.consult__head .section__intro { margin-top: 24px; }
.table { border-top: 2px solid var(--navy); border-bottom: 2px solid var(--gold); }
.table__row {
  display: grid; grid-template-columns: 1.1fr 1.5fr .8fr; gap: 16px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.table__row:last-child { border-bottom: 0; }
.table__row:not(.table__row--head):hover { background: var(--paper); padding-left: 18px; }
.table__row--head { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); padding-top: 14px; padding-bottom: 14px; }
.table__row b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.table__row span { color: var(--ink-soft); font-size: 15.5px; }
.pill { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: .06em; padding: 6px 12px; border-radius: 99px; background: var(--navy); color: var(--gold); white-space: nowrap; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services { background: var(--navy-2); color: var(--on-dark); }
.svc { border-top: 1px solid var(--line-dark); }
.svc__item {
  display: grid; grid-template-columns: 90px 1.2fr 1fr; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.svc__item::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(201,162,39,.10), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); pointer-events: none;
}
.svc__item:hover::before { transform: scaleX(1); }
.svc__n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 22px; }
.svc__item h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.1; transition: transform .5s var(--ease), color .3s; }
.svc__item:hover h3 { transform: translateX(10px); color: var(--gold-2); }
.svc__item p { color: var(--on-dark-2); margin: 0; }

/* ==========================================================================
   PRESENCE
   ========================================================================== */
.presence { background: var(--paper); }
.states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.state {
  position: relative; overflow: hidden;
  padding: 36px 30px 34px; min-height: 300px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.state:hover { border-color: var(--gold); background: var(--ivory); }
.state__code {
  position: absolute; top: 18px; right: 20px;
  font-family: var(--serif); font-size: clamp(64px, 8vw, 110px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 162, 39, .55);
  transition: transform .6s var(--ease);
}
.state:hover .state__code { transform: translateY(-6px); }
.state h3 { font-family: var(--serif); font-size: 44px; line-height: 1; margin-bottom: 18px; }
.state li { padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15.5px; display: flex; align-items: center; gap: 10px; }
.state li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.states .state:nth-child(2) { transition-delay: .08s; }
.states .state:nth-child(3) { transition-delay: .16s; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { background: var(--navy); color: var(--on-dark); overflow: hidden; }
.contact::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold);
}
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__lead { color: var(--on-dark-2); max-width: 480px; margin-top: 26px; }
.contact__list { margin-top: 36px; border-top: 1px solid var(--line-dark); }
.contact__list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.contact__list span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.contact__list a { text-decoration: none; color: var(--gold); font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--gold-2); }

.form { background: var(--navy-2); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-dark); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--on-dark);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-dark);
  padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E07A6B; }
.form__note { margin: 14px 0 0; font-size: 14px; color: var(--on-dark-2); min-height: 1.4em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-2); color: var(--on-dark-2); padding: 56px 0 40px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer__tag { margin: 0; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--on-dark); }
.footer__meta { margin: 0; font-size: 13px; letter-spacing: .04em; }
.footer__end { display: grid; gap: 10px; justify-items: end; }
.footer__social { display: flex; gap: 20px; }
.footer__social a { color: var(--gold); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .3s; }
.footer__social a:hover { border-color: currentColor; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps__rail { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(3) { border-left: 0; padding-left: 0; }
  .value:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .consult__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__end { justify-items: start; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
    padding: 90px var(--gutter) 40px;
    background: var(--navy-2);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav__links a { font-family: var(--serif); font-size: 40px; font-weight: 400; }
  .nav__links .nav__cta { font-family: var(--sans); font-size: 16px; margin-top: 12px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open { background: transparent; box-shadow: none; }
  .brand { position: relative; z-index: 2; }

  .hero { padding-top: 120px; }
  .hero__rings { width: 130vw; right: -60%; top: 30%; }
  .hero__foot { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--line-dark); }

  .about__grid { grid-template-columns: 1fr; }
  .about__head { position: static; }
  .section__head--split { grid-template-columns: 1fr; }
  .purpose__pair { grid-template-columns: 1fr; gap: 48px; }
  .svc__item { grid-template-columns: 50px 1fr; }
  .svc__item p { grid-column: 2; }
  .states { grid-template-columns: 1fr; }
  .state { min-height: 230px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 60px 1fr; column-gap: 20px; padding: 0; }
  .step__num { margin: 0; grid-row: span 2; }
  .step h3 { font-size: 28px; align-self: center; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 24px 0 18px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line-dark); }
  .table__row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .table__row > span:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; }
  .table__row > span:nth-child(3) { grid-row: 1 / span 2; grid-column: 2; }
  .table__row--head span:nth-child(2) { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .contact__list li { flex-direction: column; gap: 4px; }
  .contact__list a { text-align: left; }
}

/* Only the continuously-moving effects respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
  .hero__rings, .marquee__track { animation-duration: 400s; }
}
