/* =========================================================
   BCJaymez e Hijo — design tokens
   Palette "Greige": vino, greige and oro viejo (see brand/README.md).
   ========================================================= */
:root {
  /* Canvas */
  --bg: #ece7df;
  --bg-2: #e2dbd0;
  --surface: #f7f4ef;
  --surface-strong: #ffffff;

  /* Text */
  --text: #3e1522;
  --muted: #68474f;
  --faint: #6f555c;

  /* Accent: reads as text on the canvas (>= 4.5:1) */
  --accent: #775515;
  --accent-strong: #614409;
  --accent-soft: rgba(119, 85, 21, 0.1);
  --on-accent: #ffffff;

  /* Fourth colour: decorative only, never text */
  --deco: #c8bdae;

  /* Dark panels */
  --ink: #3e1522;
  --ink-2: #2d0e18;
  --ink-text: #ece7df;
  --ink-muted: #d3c5c2;
  --ink-accent: #d4b57f;
  --ink-stroke: rgba(236, 231, 223, 0.16);
  --ink-rgb: 62, 21, 34;

  /* Derived */
  --stroke: rgba(var(--ink-rgb), 0.13);
  --stroke-strong: rgba(var(--ink-rgb), 0.28);
  --shadow: 0 30px 70px rgba(var(--ink-rgb), 0.14);
  --shadow-sm: 0 10px 30px rgba(var(--ink-rgb), 0.08);

  /* Second colour of the logo mark (see tools/brand_logos.py) */
  --mark-accent: var(--accent);

  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --gutter: 24px;
  --section: 112px;
  --header: 76px;

  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Anything sitting on a dark panel */
.on-ink {
  --mark-accent: var(--ink-accent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

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

svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

.on-ink :focus-visible {
  outline-color: var(--ink-accent);
}

::selection {
  background: var(--ink);
  color: var(--ink-text);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* =========================================================
   Type helpers
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.on-ink .eyebrow {
  color: var(--ink-accent);
}

.section__title,
.hero__title,
.contact__title {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.section__title em,
.hero__title em,
.contact__title em,
.mission__text em {
  font-style: italic;
  color: var(--accent);
}

.on-ink .section__title em,
.on-ink .contact__title em,
.on-ink .mission__text em {
  color: var(--ink-accent);
}

.section__title {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  margin-top: 20px;
}

.lead {
  font-size: 1.28rem;
  line-height: 1.5;
  color: var(--text);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--ink);
  color: var(--ink-text);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--ghost {
  border-color: var(--stroke-strong);
}

.btn--ghost:hover {
  border-color: var(--text);
  background: var(--surface-strong);
}

.btn--light {
  background: var(--ink-text);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--ink-accent);
}

.btn--outline-light {
  border-color: var(--ink-stroke);
  color: var(--ink-text);
}

.btn--outline-light:hover {
  border-color: var(--ink-text);
}

.btn--header {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--stroke);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header);
}

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

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand__text {
  display: grid;
  gap: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.brand__name em {
  font-style: italic;
  color: var(--mark-accent);
  padding: 0 0.04em;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.on-ink .brand__tag {
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
}

.lang-switch__btn {
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ink-text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--stroke-strong);
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.site-header.is-open .nav-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.site-header.is-open .nav-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 56px 0 0;
  margin-top: calc(var(--header) * -1);
  padding-top: calc(var(--header) + 56px);
  overflow: hidden;
}

/* Blueprint grid: the engineer's side of the house */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--stroke) 1px, transparent 1px), linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 78% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 78% 38%, #000 0%, transparent 72%);
  opacity: 0.75;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
  min-height: min(640px, 76vh);
}

.hero__title {
  font-size: clamp(2.9rem, 6.3vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin-top: 26px;
  max-width: 13ch;
}

.hero__lede {
  margin-top: 28px;
  max-width: 54ch;
  font-size: 1.12rem;
  color: var(--muted);
}

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

.hero__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
}

.hero__sign-rule {
  width: 40px;
  height: 1px;
  background: var(--stroke-strong);
}

/* --- Hero illustration: a tracked, automated process --- */
.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1.06;
}

.sheet {
  position: absolute;
  inset: 7% 9% 9% 9%;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
}

.sheet--back {
  background: var(--deco);
  transform: rotate(-7deg) translate(-5%, 1%);
  opacity: 0.75;
}

.sheet--mid {
  background: var(--bg-2);
  transform: rotate(4deg) translate(5%, 1%);
}

.tracker {
  position: absolute;
  inset: 5% 8% 8% 8%;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tracker__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--stroke);
}

.tracker__mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.tracker__title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
}

.tracker__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.tracker__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.tracker__steps {
  flex: 1;
  display: grid;
  align-content: space-evenly;
  padding: 10px 0;
}

.tracker__steps li {
  display: grid;
  grid-template-columns: 26px auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.tracker__tick {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--stroke-strong);
  color: transparent;
  animation: tick 9s calc(var(--i) * 1.3s + 0.6s) infinite both;
}

.tracker__tick svg {
  width: 13px;
  height: 13px;
}

.tracker__label {
  font-size: 0.9rem;
  font-weight: 500;
}

.tracker__line {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.tracker__line::after {
  content: "";
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
  animation: fill 9s calc(var(--i) * 1.3s) infinite both;
}

.tracker__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
}

.tracker__foot-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.tracker__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 40px;
}

.tracker__bars i {
  width: 9px;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--ink);
  opacity: 0.22;
}

.tracker__bars i:last-child {
  background: var(--accent);
  opacity: 1;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--ink-text);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  animation: float 7s ease-in-out infinite;
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--ink-accent);
}

.chip--a {
  top: 0;
  right: -2%;
}

.chip--b {
  bottom: 1%;
  left: -4%;
  animation-delay: -3.5s;
}

@keyframes tick {
  0%,
  6% {
    background: transparent;
    border-color: var(--stroke-strong);
    color: transparent;
    transform: scale(1);
  }
  10% {
    transform: scale(1.18);
  }
  14%,
  92% {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ink-text);
    transform: scale(1);
  }
  100% {
    background: transparent;
    border-color: var(--stroke-strong);
    color: transparent;
  }
}

@keyframes fill {
  0% {
    transform: scaleX(0);
  }
  12%,
  92% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}

/* --- Pillars --- */
.pillars {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--stroke-strong);
}

.pillar {
  padding: 28px 28px 34px 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.pillar + .pillar {
  padding-left: 28px;
  border-left: 1px solid var(--stroke);
}

.pillar__num,
.step__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.pillar__title {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--text);
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: var(--section) 0;
}

.section--tint {
  background: var(--bg-2);
}

.section--ink {
  background: var(--ink);
  color: var(--ink-text);
}

.section__head {
  max-width: 820px;
  margin-bottom: 56px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.split__body {
  display: grid;
  gap: 22px;
  color: var(--muted);
}

.split__note {
  margin-top: 28px;
  max-width: 44ch;
  color: var(--muted);
}

/* --- Quiénes somos --- */
.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.duo__card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
}

.duo__card h3 {
  margin: 18px 0 6px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--text);
}

.duo__card p {
  font-size: 0.97rem;
}

.duo__icon,
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.duo__icon svg,
.card__icon svg {
  width: 24px;
  height: 24px;
}

/* --- Misión --- */
.mission {
  display: grid;
  gap: 36px;
}

.mission__text {
  max-width: min(100%, 1000px);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
}

.mission__outcomes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-stroke);
}

.mission__lead {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mission__outcomes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mission__outcomes li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--ink-stroke);
  border-radius: 999px;
  font-weight: 500;
}

.mission__outcomes svg {
  width: 16px;
  height: 16px;
  color: var(--ink-accent);
}

/* --- Servicios --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
  border-color: var(--stroke-strong);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 26px 0 10px;
  font-family: var(--font-display);
  font-size: 1.62rem;
  line-height: 1.12;
}

.card p {
  font-size: 0.98rem;
  color: var(--muted);
}

/* --- Método --- */
.split--method .split__head {
  position: sticky;
  top: calc(var(--header) + 32px);
}

.steps {
  border-top: 1px solid var(--stroke-strong);
}

.step {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--stroke);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.12;
}

.step p {
  margin-top: 6px;
  color: var(--muted);
}

/* --- Valores --- */
.values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--stroke-strong);
}

.value {
  padding: 28px 22px 8px 0;
  counter-increment: value;
}

.value + .value {
  padding-left: 22px;
  border-left: 1px solid var(--stroke);
}

.value::before {
  content: "0" counter(value);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.value h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
}

.value p {
  font-size: 0.94rem;
  color: var(--muted);
}

/* --- Contacto --- */
.section--contact {
  padding-top: 0;
}

.contact {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: start;
  gap: 20px;
  padding: clamp(40px, 7vw, 88px);
  background: var(--ink);
  color: var(--ink-text);
  border-radius: calc(var(--radius) * 1.6);
}

.contact__watermark {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 380px;
  height: 380px;
  opacity: 0.09;
  pointer-events: none;
}

.contact__title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  max-width: 14ch;
}

.contact__text {
  max-width: 48ch;
  font-size: 1.1rem;
  color: var(--ink-muted);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contact__actions .btn:hover svg {
  transform: none;
}

.contact__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.contact__details a {
  padding: 6px 0;
  transition: color 0.2s ease;
}

.contact__details a:hover {
  color: var(--ink-accent);
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 56px 0 28px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px 64px;
}

.site-footer__brand {
  display: grid;
  gap: 18px;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-content: start;
  font-size: 0.94rem;
  color: var(--muted);
}

.site-footer__nav a:hover {
  color: var(--text);
}

.site-footer__base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--stroke);
  font-size: 0.84rem;
  color: var(--faint);
}

/* =========================================================
   Reveal on scroll (only when JS is running)
   ========================================================= */
html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

html:not(.no-js) .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  :root {
    --section: 88px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }

  .hero__visual {
    justify-self: center;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .split--method .split__head {
    position: static;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 24px;
  }

  .value:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .btn--header {
    display: none;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--stroke);
    font-size: 1.1rem;
  }

  .site-header.is-open {
    background: var(--bg);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--stroke);
    color: var(--text);
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --section: 72px;
    --gutter: 20px;
    --header: 68px;
  }

  body {
    font-size: 16px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 1.3rem;
  }

  .brand__tag {
    font-size: 0.5rem;
    letter-spacing: 0.16em;
  }

  .site-header__tools {
    gap: 10px;
  }

  .hero {
    padding-top: calc(var(--header) + 32px);
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__visual {
    width: min(100%, 360px);
  }

  .chip {
    font-size: 0.74rem;
    padding: 8px 12px;
  }

  .chip--a {
    right: -1%;
  }

  .chip--b {
    left: -1%;
  }

  .pillars,
  .cards,
  .values {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillars {
    margin-top: 56px;
  }

  .pillar,
  .pillar + .pillar {
    padding: 22px 0;
    border-left: 0;
  }

  .pillar + .pillar {
    border-top: 1px solid var(--stroke);
  }

  .duo {
    grid-template-columns: minmax(0, 1fr);
  }

  .values {
    row-gap: 0;
  }

  .value,
  .value + .value {
    padding: 22px 0;
    border-left: 0;
    border-bottom: 1px solid var(--stroke);
  }

  .step {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 22px 0;
  }

  .step h3 {
    font-size: 1.5rem;
  }

  .contact__actions .btn {
    flex: 1 1 100%;
  }

  .site-footer {
    padding-bottom: 96px;
  }

  .tracker {
    padding: 18px;
  }

  .tracker__badge {
    font-size: 0.52rem;
    padding: 4px 7px;
  }

}

/* =========================================================
   Not-found page
   ========================================================= */
.notfound {
  min-height: calc(100vh - var(--header) - 120px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  padding: 72px 0;
}

.notfound .hero__title {
  max-width: 16ch;
}

.notfound .btn {
  margin-top: 36px;
}

/* Narrow phones: the header keeps the name and drops the descriptor (the hero repeats it). */
@media (max-width: 520px) {
  .site-header .brand__tag {
    display: none;
  }

  .site-header .brand {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html:not(.no-js) .reveal {
    opacity: 1;
    transform: none;
  }

  .tracker__tick {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--ink-text);
  }
}
