/* ============================================================
   Silvio Hernández — Digital Product Operator
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:            #F8F8F6;
  --surface:       #FFFFFF;
  --ink:           #111111;
  --ink-soft:      #34383C;
  --muted:         #5F6368;
  /* Carries the small uppercase labels, so it has to clear 4.5:1 on --bg.
     Anything lighter fails WCAG AA at these sizes. */
  --muted-light:   #6B6E71;
  --line:          #E4E2DC;
  --line-strong:   #D4D1C8;
  --accent:        #17304E;
  --accent-hover:  #0F2137;
  --accent-tint:   #EDF0F4;
  --dark:          #101E30;
  --dark-line:     rgba(248, 248, 246, 0.16);
  --dark-muted:    rgba(248, 248, 246, 0.66);

  --radius:        4px;
  --radius-lg:     8px;

  --container:     1160px;
  --gutter:        clamp(20px, 4vw, 40px);
  --section-y:     clamp(72px, 9vw, 132px);

  --font:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif:    "Instrument Serif", Georgia, "Times New Roman", serif;

  --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:           220ms;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: 80px;
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 760px; }

.section__title {
  font-size: clamp(1.75rem, 1.28rem + 1.95vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 600;
  margin-top: 18px;
  text-wrap: balance;
}

.section__intro {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  display: grid;
  gap: 16px;
  max-width: 62ch;
}
.section__intro em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

.lead {
  font-size: clamp(1.0625rem, 0.99rem + 0.36vw, 1.25rem);
  line-height: 1.58;
  color: var(--muted);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.eyebrow__num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-right: 12px;
  border-right: 1px solid var(--line-strong);
}
.eyebrow--light { color: var(--dark-muted); }
.eyebrow--light .eyebrow__num {
  color: #fff;
  border-right-color: var(--dark-line);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(17, 17, 17, 0.03);
}
.btn--ghost:active { transform: translateY(1px); }

.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ---------- Link ---------- */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(23, 48, 78, 0.3);
  transition: text-decoration-color var(--dur) var(--ease);
}
.link:hover { text-decoration-color: var(--accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 246, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(248, 248, 246, 0.94);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.9375rem;
}
.nav__mark {
  color: var(--accent);
  font-weight: 600;
}
.nav__name { white-space: nowrap; }

.nav__links {
  display: none;
  gap: 32px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  padding-block: 4px;
  transition: color var(--dur) var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__cta { display: none; }

/* ---------- Language switch ----------
   Wayfinding, not a call to action: it sits next to the accent CTA,
   so it stays as plain letterforms rather than a second button. */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.lang__sep {
  /* --line-strong is a border value and reads at 1.4:1 here, which is
     invisible as a glyph. This clears 3:1 and still sits behind both labels. */
  color: #908E88;
  user-select: none;
}
.lang__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px of height gives a legal tap target. The nav bar is 68px,
     so this never changes the height of the bar. */
  min-width: 30px;
  min-height: 44px;
  color: inherit;
  transition: color var(--dur) var(--ease);
}
a.lang__opt:hover { color: var(--ink); }
.lang__opt.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__burger { position: relative; }
.nav__burger::before,
.nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__burger::before { top: -6px; }
.nav__burger::after  { top: 6px; }

.nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger::after  { transform: translateY(-6px) rotate(-45deg); }

.nav__panel {
  display: grid;
  gap: 2px;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav__panel[hidden] { display: none; }
.nav__panel a {
  padding: 14px 0;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.nav__panel-cta {
  margin-top: 20px;
  border-bottom: 0 !important;
  color: #fff !important;
  padding: 14px 24px !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(56px, 8vw, 104px);
}

.hero__grid {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
  align-items: center;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(2.25rem, 1.52rem + 3.06vw, 3.875rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-weight: 600;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 26px;
  max-width: 34ch;
}

.hero__chain {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted-light);
}
.hero__chain li { display: flex; align-items: center; }
.hero__chain li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-inline: 14px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- Portrait ---------- */
.portrait {
  width: 100%;
  max-width: 380px;
  justify-self: start;
}

.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(16, 30, 48, 0.06),
              0 18px 44px -20px rgba(16, 30, 48, 0.35);
}
.portrait__frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.portrait__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.42);
}

.portrait__caption {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}
.portrait__name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.portrait__role {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================================
   VALUE CHAIN
   ============================================================ */
.chain {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 60px);
}

.chain__list {
  display: grid;
  gap: 0;
}

.chain__node {
  position: relative;
  padding: 26px 0 4px 22px;
  border-left: 1px solid var(--line);
}
.chain__node::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}
.chain__node:first-child { padding-top: 0; }
.chain__node:first-child::before { top: 0; }

.chain__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.chain__desc {
  display: block;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}
.chain__node--end .chain__label { color: var(--accent); }
.chain__node--end::before { background: var(--accent); }

/* ============================================================
   OPPORTUNITY / GAP
   ============================================================ */
.gap {
  display: grid;
  gap: 20px;
  margin-top: clamp(44px, 5vw, 64px);
}

.gap__panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.gap__panel--missing {
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
}

.gap__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.gap__panel--missing .gap__label { color: var(--accent); }

.gap__stack { margin-top: 4px; }
.gap__stack li {
  position: relative;
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  border-bottom: 1px solid var(--line);
}
.gap__stack li:last-child { border-bottom: 0; padding-bottom: 0; }
.gap__stack li:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8125rem;
  color: var(--line-strong);
}
.gap__panel--missing .gap__stack li:last-child { color: var(--accent); }

.gap__note {
  margin-top: 28px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  gap: 1px;
  margin-top: clamp(44px, 5vw, 64px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card {
  padding: clamp(28px, 3vw, 38px);
  background: var(--bg);
  transition: background-color var(--dur) var(--ease);
}
.card:hover { background: var(--surface); }

.card__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.card__title {
  margin-top: 18px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.card__body {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.66;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  gap: 0;
  margin-top: clamp(44px, 5vw, 64px);
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  padding-top: 5px;
}
.step__title {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.step__body p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 58ch;
}

/* ============================================================
   PARTNERSHIP
   ============================================================ */
.partnership {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(32px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.partnership__body { display: grid; gap: 26px; }
.partnership__body .lead { max-width: 58ch; }

.partnership__pull {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.13rem + 1vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  max-width: 26ch;
}

.partnership__note {
  font-size: 0.875rem;
  color: var(--muted-light);
  max-width: 54ch;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ============================================================
   FIT
   ============================================================ */
.fit__list {
  display: grid;
  gap: 0;
  margin-top: clamp(36px, 4vw, 52px);
  max-width: 780px;
}
.fit__list li {
  position: relative;
  padding: 20px 0 20px 34px;
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.fit__list li:last-child { border-bottom: 1px solid var(--line); }
.fit__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 30px;
  width: 14px;
  height: 1px;
  background: var(--accent);
}

.fit__note {
  margin-top: 28px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy {
  background: var(--dark);
  color: #F8F8F6;
}
/* Width is constrained on the children, not the container, so the dark
   block's left edge stays aligned with every other section. */
.philosophy__title {
  margin-top: 18px;
  font-size: clamp(1.75rem, 1.28rem + 1.95vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: balance;
}

.philosophy__quote {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-left: clamp(20px, 2.4vw, 28px);
  border-left: 2px solid rgba(248, 248, 246, 0.34);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.philosophy__body {
  display: grid;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 44px);
  color: var(--dark-muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  max-width: 60ch;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(36px, 4vw, 52px);
}

.about__body {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  max-width: 58ch;
}

.about__card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  align-self: start;
}

.about__meta { display: grid; gap: 0; }
.about__meta > div {
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.about__meta > div:first-child { padding-top: 0; }
.about__meta > div:last-child { border-bottom: 0; padding-bottom: 0; }

.about__meta dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.about__meta dd {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(40px, 4.5vw, 60px);
  align-items: start;
}

.form { display: grid; gap: 18px; }

.form__row { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.field__opt {
  color: var(--muted-light);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 108px; }

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235F6368' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted-light); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(23, 48, 78, 0.09);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #B3261E;
}

.field--hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form button[type="submit"] { margin-top: 6px; }

.form__status {
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.2em;
}
.form__status.is-error { color: #B3261E; }
.form__status.is-success { color: var(--accent); font-weight: 500; }

.contact__direct {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.contact__direct-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.contact__links {
  display: grid;
  gap: 0;
  margin-top: 8px;
}
.contact__links li {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.contact__links li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact__links span {
  font-size: 0.75rem;
  color: var(--muted-light);
  letter-spacing: 0.04em;
}
.contact__links a {
  font-size: 0.9375rem;
  word-break: break-word;
}
.contact__aside-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 5vw, 68px);
  padding-bottom: 28px;
}

.footer__inner {
  display: grid;
  gap: 32px;
}

.footer__name {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.footer__role,
.footer__loc {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.875rem;
  color: var(--muted);
}
.footer__nav a { transition: color var(--dur) var(--ease); }
.footer__nav a:hover { color: var(--ink); }

.footer__contact {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  justify-items: start;
}

.footer__base {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted-light);
}

/* ============================================================
   REVEAL
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

/* ---- below 600px ---- */
@media (max-width: 599px) {
  /* A wrapping inline row strands a separator at the end of a line,
     so switch to a tidy two-column list. */
  .hero__chain {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }
  .hero__chain li:not(:last-child)::after { display: none; }

  .hero__actions .btn { width: 100%; }

  .portrait { max-width: 300px; }
}

/* ---- 600px ---- */
@media (min-width: 600px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  .gap { grid-template-columns: 1fr 1fr; align-items: start; }
  .cards { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 24px; }
}

/* ---- 860px ---- */
@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
    align-items: center;
  }
  .portrait { justify-self: end; }

  .chain__list {
    grid-template-columns: repeat(5, 1fr);
  }
  .chain__node {
    padding: 22px 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .chain__node:first-child { padding-top: 22px; }
  .chain__node::before,
  .chain__node:first-child::before {
    left: 0;
    top: -3.5px;
  }

  .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .contact { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }

  .partnership { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .partnership__head { align-self: start; }

  .footer__inner {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
  }
  .footer__nav {
    display: grid;
    justify-items: start;
    gap: 10px;
  }
}

/* ---- 920px : desktop nav ---- */
@media (min-width: 920px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__panel { display: none !important; }
  .cards { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .hero__actions, .form, .skip-link { display: none !important; }
  body { background: #fff; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
