/* Atención — sistema visual */

:root {
  --blue: #92ace7;
  --blue-deep: #7b96d4;
  --blue-ink: #3d4f86;
  --cream: #f3eee4;
  --cream-dark: #e5ddd0;
  --paper: #fffcf7;
  --ink: #161513;
  --ink-soft: #3c3934;
  --muted: #6f6a62;
  --line: rgba(22, 21, 19, 0.12);
  --line-on-blue: rgba(255, 255, 255, 0.28);
  --magenta: #c23a64;
  --white: #ffffff;
  --font-display: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --wrap: 42rem;
  --wrap-wide: 68rem;
  --header: 4rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 999px;
}

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

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

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue-ink);
}

:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.wrap--wide {
  width: min(var(--wrap-wide), calc(100% - var(--gutter) * 2));
}

.wrap--narrow {
  width: min(38rem, calc(100% - var(--gutter) * 2));
}

.wrap--home {
  width: min(44rem, calc(100% - var(--gutter) * 2));
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: var(--white);
  border-bottom: 1px solid rgba(22, 21, 19, 0.08);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(22, 21, 19, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--wrap-wide), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.wordmark {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  z-index: 2;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark .custom-logo {
  height: 34px;
  width: auto;
}

.site-nav .menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--blue-ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
}

.nav-toggle__icon {
  display: grid;
  gap: 6px;
  width: 18px;
}

.nav-toggle__icon span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child {
  transform: translateY(3.75px) rotate(40deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child {
  transform: translateY(-3.75px) rotate(-40deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--white);
  overflow: hidden;
  padding: 3rem var(--gutter) 5rem;
}

.bg-dots {
  --dot: 22px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: var(--dot) var(--dot);
}

.bg-dots--js,
.bg-dots--js.bg-dots--on-blue,
.bg-dots--js.bg-dots--on-cream {
  background-image: none;
}

.bg-dots__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.bg-dots--on-blue {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.22) 1px, transparent 1.2px);
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.bg-dots--on-cream {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--blue) 42%, transparent) 1px, transparent 1.2px);
  mask-image: radial-gradient(ellipse at 50% 80%, #000 18%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 80%, #000 18%, transparent 72%);
}

.bg-dots--page {
  --dot: 20px;
  opacity: 0.45;
  mask-image: none;
  -webkit-mask-image: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 44rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.4vw, 5.35rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 auto 1.25rem;
}

.hero__title strong {
  font-weight: 500;
  font-style: italic;
}

.hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
}

.hero__lead strong {
  font-weight: 600;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero__scroll:hover {
  opacity: 1;
  color: var(--white);
}

/* Panels */

.panel {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.panel--cream {
  background: var(--cream);
}

.panel--paper {
  background: var(--paper);
}

.panel--blue {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
}

.panel--blue > .wrap,
.panel--blue > .wrap--wide {
  position: relative;
  z-index: 1;
}

.panel--blue .empty-note {
  color: rgba(255, 255, 255, 0.8);
}

.eyebrow,
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.eyebrow--on-blue,
.panel--blue .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.about {
  position: relative;
  overflow: hidden;
}

.about__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.about-copy {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.1vw, 2.35rem);
  line-height: 1.26;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.about-copy p {
  margin: 0 0 1.1em;
}

.about-copy p:last-child {
  margin-bottom: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.panel__actions {
  margin: 2.4rem 0 0;
}

.about .panel__actions {
  display: flex;
  justify-content: center;
}

.panel--blue .section-head {
  text-align: center;
  align-items: center;
}

.panel--blue .panel__actions {
  text-align: center;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.7rem 1.15rem 0.7rem 1.3rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--dark {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn--dark:hover {
  color: var(--ink);
  background: var(--paper);
}

.btn--light,
.btn--solid {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover,
.btn--solid:hover {
  color: var(--ink);
  background: var(--white);
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  flex-shrink: 0;
}

.btn__arrow svg {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.text-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.12rem;
}

.text-link--static {
  border-bottom-color: transparent;
}

/* Posts */

.post-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.post-index--stack {
  grid-template-columns: 1fr;
  gap: 0;
}

.post-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.post-index--stack .post-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: visible;
}

.post-index--stack .post-card:last-child {
  border-bottom: 0;
}

.post-card__link {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem 1.35rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.post-index--stack .post-card__link {
  padding: 2.5rem 0;
  grid-template-columns: minmax(10rem, 36%) minmax(0, 1fr);
  column-gap: clamp(1.25rem, 3vw, 2rem);
  row-gap: 0.5rem;
  align-items: center;
}

.lab-listing {
  padding-top: clamp(2.15rem, 5vw, 3.4rem);
}

.lab-listing__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.lab-listing .post-index--stack .post-card:first-child .post-card__link {
  padding-top: 1.7rem;
}

.post-index--stack .post-card__title {
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  grid-column: 2;
  grid-row: 1;
}

.post-index--stack .post-card__media {
  grid-column: 1;
  grid-row: 1 / span 4;
  max-width: none;
  margin: 0;
  aspect-ratio: 4 / 3;
}

.post-index--stack .post-card__excerpt {
  max-width: 46ch;
  grid-column: 2;
  grid-row: 2;
}

.post-index--stack .text-link {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
  margin-top: 0.35rem;
}

.post-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0;
}

.post-card__media {
  display: block;
  margin: 0.1rem 0;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-dark);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__excerpt {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.post-card:hover .post-card__title,
.post-card:hover .text-link {
  color: var(--blue-ink);
}

.panel--blue .post-card {
  background: var(--paper);
  border: 0;
  color: var(--ink);
  border-radius: 14px;
}

.panel--blue .post-card__link {
  padding: 1.35rem 1.15rem 1.2rem;
}

.panel--blue .post-card__title {
  font-size: 1.22rem;
}

.panel--blue .post-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.post-index--home {
  gap: 1.25rem;
}

.post-index--home .post-card__link {
  gap: 0.7rem;
  padding: 0 0 1.25rem;
}

.post-index--home .post-card__media {
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 0;
}

.post-index--home .post-card__title,
.post-index--home .post-card__excerpt,
.post-index--home .text-link {
  padding-inline: 1.25rem;
}

.post-index--home .post-card__title {
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  padding-top: 0.15rem;
}

.post-index--home .post-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.45;
}

.post-index--home .text-link {
  margin-top: 0.15rem;
}

@media (prefers-reduced-motion: no-preference) {
  .post-index--home .post-card {
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }

  .post-index--home .post-card:hover,
  .post-index--home .post-card:has(:focus-visible) {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(22, 21, 19, 0.14);
  }
}

.panel--blue .post-card:hover .post-card__title,
.panel--blue .post-card:hover .text-link {
  color: var(--blue-ink);
}

.text-link--on-blue {
  color: var(--white);
}

.text-link--on-blue:hover {
  color: var(--white);
}

.cta-band {
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.cta-band__text {
  margin: 0 auto 2rem;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.9);
}

.empty-note {
  color: var(--muted);
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 1.75rem;
  border-top: 1px solid var(--line);
}

.site-footer > .wrap {
  position: relative;
  z-index: 1;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue-ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.site-footer .eyebrow {
  color: var(--blue-ink);
}

.site-footer__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 34ch;
}

.site-footer__text p {
  margin: 0 0 0.85em;
}

.site-footer__cta {
  margin: 1.25rem 0 0;
}

.site-footer__navs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-content: start;
}

.site-footer .footer-label {
  color: var(--muted);
}

.menu--footer,
.menu--legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.menu--footer a,
.menu--legal a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer--compact {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
}

.site-footer--compact .site-footer__grid {
  grid-template-columns: 1fr;
  padding-bottom: 0;
  border-bottom: 0;
}

.site-footer--compact .site-footer__end {
  justify-self: center;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
}

.site-footer--compact .site-footer__navs {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.site-footer--compact .site-footer__meta {
  width: 0;
  min-width: 100%;
  max-width: none;
  margin-inline: 0;
  justify-content: center;
  text-align: center;
}

/* Inner pages */

.page-hero,
.article-hero {
  background: var(--blue);
  color: var(--white);
  padding: 4.75rem 0 4.25rem;
  position: relative;
  overflow: hidden;
}

.page-hero .wrap,
.article-hero .wrap {
  position: relative;
}

.page-hero .eyebrow,
.article-hero .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero h1,
.article-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.page-hero__lead,
.article-hero__dek {
  margin: 1.25rem 0 0;
  max-width: 38ch;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.page-hero__lead p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.page-hero h2.page-hero__lead {
  font-family: var(--font-sans);
  letter-spacing: 0;
}

.page-hero--center,
.article-hero--center {
  text-align: center;
}

.page-hero--center h1,
.page-hero--center .page-hero__lead,
.article-hero--center .article-hero__title,
.article-hero--center .article-hero__dek {
  margin-inline: auto;
}

.page-hero .entry-content,
.page-hero .entry-content p {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero .entry-content > * + * {
  margin-top: 0.7em;
}

.page-hero--compact {
  padding-bottom: 3rem;
}

.page-hero--compact h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.article-figure {
  margin: 0;
  background: var(--cream);
}

.article-figure img {
  width: min(68rem, 100%);
  margin-inline: auto;
}

.article--has-illu .article-hero {
  padding-bottom: clamp(2.8rem, 7vw, 4.75rem);
}

.article-illu-bleed {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    180deg,
    var(--blue) 0%,
    var(--blue) 34%,
    var(--paper) 88%
  );
  margin-top: -1px;
  padding: 0 0 clamp(0.25rem, 2vw, 1rem);
  overflow: hidden;
}

.article-illu-bleed::before {
  content: "";
  position: absolute;
  inset: 0 0 42%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.32;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.article-illu {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}

.article-illu img {
  width: 100%;
  height: min(58vh, 34rem);
  object-fit: cover;
  object-position: center 45%;
  display: block;
  mix-blend-mode: multiply;
  filter: contrast(1.2);
  -webkit-mask-image: radial-gradient(ellipse 84% 72% at 50% 58%, #000 14%, transparent 72%);
  mask-image: radial-gradient(ellipse 84% 72% at 50% 58%, #000 14%, transparent 72%);
}

.article--has-illu .panel--paper {
  padding-top: clamp(0.75rem, 3vw, 1.8rem);
}

@media (prefers-reduced-motion: no-preference) {
  .article-illu img {
    animation: rise 1.1s var(--ease) both;
  }
}

/* Entry content */

.entry-content {
  font-size: 1.08rem;
  line-height: 1.7;
}

.entry-content > * + * {
  margin-top: 1.15em;
}

.entry-content h2,
.entry-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 2.4em 0 0.6em;
}

.entry-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.entry-content h3 {
  font-size: 1.35rem;
}

.entry-content .lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.15rem;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 1.2rem;
  border-left: 2px solid var(--blue);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: -0.02em;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--cream);
  padding: 0.1em 0.35em;
}

.entry-content a {
  color: var(--blue-ink);
}

.entry-content .wp-block-image,
.entry-content figure.atencion-plate,
.entry-content .atencion-plate {
  margin: 2.4em 0;
}

.entry-content .wp-block-image img,
.entry-content .atencion-plate img {
  width: 100%;
  background: var(--cream);
  padding: 0.7rem;
  border: 1px solid var(--line);
}

.entry-content figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.75rem;
}

.svc-h2 {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.2vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.svc-lede {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: pretty;
}

.svc-copy {
  margin: 0;
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}

.svc-lede + .svc-copy {
  margin-top: 1.35rem;
}

.svc-h2 + .svc-copy,
.svc-h2 + .svc-split,
.svc-h2 + .svc-diagram {
  margin-top: 1.75rem;
}

.svc-copy p {
  margin: 0 0 1em;
}

.svc-copy p:last-child {
  margin-bottom: 0;
}

.svc-copy--on-blue,
.svc-copy--on-blue p {
  color: rgba(255, 255, 255, 0.9);
}

.svc-examples {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.svc-examples li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: 0.15rem 1rem;
  padding: 1.35rem 0;
  align-items: start;
}

.svc-examples li + li {
  border-top: 1px solid var(--line);
}

.svc-examples__mark {
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
}

.svc-examples__text {
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  line-height: 1.45;
  color: var(--ink);
}

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0.2rem 0 0;
  font-variant-numeric: tabular-nums;
}

.svc-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.svc-cell {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  min-width: 0;
  padding: 1.5rem 0;
  align-items: start;
}

.svc-cell + .svc-cell {
  border-top: 1px solid var(--line);
}

.svc-cell__text {
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  line-height: 1.45;
  color: var(--ink);
}

.svc-cell__text p {
  margin: 0 0 0.85em;
}

.svc-cell__text p:last-child {
  margin-bottom: 0;
}

.svc-aside {
  margin: 1rem 0 0;
  font-style: italic;
  color: var(--ink-soft);
}

.svc-diagram {
  margin: 0;
  padding: clamp(1.75rem, 3.5vw, 2.4rem) clamp(1.15rem, 3vw, 2rem) 1.6rem;
  background: var(--paper);
  border-radius: 12px;
  text-align: center;
}

.svc-diagram + .svc-split {
  margin-top: 2.25rem;
}

.svc-diagram__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-diagram__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.svc-diagram__step {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.svc-diagram__arrow {
  display: grid;
  place-items: center;
  color: var(--blue);
}

.svc-diagram__arrow-icon {
  display: block;
  width: 1.75rem;
  height: 0.75rem;
}

.svc-diagram figcaption {
  margin: 1.2rem auto 0;
  max-width: 42em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1.45;
  color: var(--muted);
}

.svc-cta {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.svc-cta > .wrap {
  position: relative;
  z-index: 1;
}

.svc-cta .svc-h2 {
  max-width: 14ch;
}

.svc-cta__action {
  margin: 2rem 0 0;
  display: flex;
  justify-content: center;
}

.svc-cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
}

.svc-cta .btn:hover {
  background: var(--white);
  color: var(--ink);
}

.svc-cta .btn__arrow {
  border-color: var(--ink);
}

.post-back {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding: clamp(3.75rem, 8vw, 5.75rem) 0;
}

.post-back > .wrap {
  position: relative;
  z-index: 1;
}

.post-back__link {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  max-width: 22ch;
}

.post-back__link .eyebrow {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.post-back__label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.post-back__link .btn__arrow {
  margin-top: 1rem;
  color: var(--white);
}

.post-back__link:hover {
  color: var(--white);
}

.contact.panel {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(5.25rem, 10vw, 8rem);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17rem, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: stretch;
}

.contact__copyblock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0;
}

.contact__lede {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16em;
}

.contact__lede + .contact__copy {
  margin-top: 1.6rem;
}

.contact__copy {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38ch;
}

.contact__copy p {
  margin: 0 0 1.15em;
}

.contact__copy p:last-child {
  margin-bottom: 0;
}

.contact__copy p:last-child:not(:first-child) {
  margin: 2.25rem 0 0;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-left: 3px solid var(--blue);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: var(--ink);
}

.contact-box {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 16rem;
  padding: clamp(2rem, 4vw, 2.85rem) clamp(1.5rem, 3vw, 2.4rem);
  background: var(--blue);
  border-radius: 12px;
  display: grid;
  gap: 1.15rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.contact-box > * {
  position: relative;
  z-index: 1;
}

.contact-box .btn {
  min-height: 3.6rem;
  padding: 0.95rem 1.7rem 0.95rem 1.85rem;
  font-size: 0.84rem;
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
}

.contact-box .btn:hover {
  background: var(--white);
  color: var(--ink);
}

.contact-box .btn__arrow {
  border-color: var(--ink);
}

.contact-box__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0;
}

.contact-box__note {
  margin: 0;
  max-width: 28ch;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: rgba(22, 21, 19, 0.7);
}

.post-nav {
  display: none;
}

.nav-links,
.pagination {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  gap: 0.6rem;
}

.search-form input[type="search"] {
  flex: 1;
  min-height: 3rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 0.9rem;
  font: inherit;
}

/* Cookie bar */

.cookie-bar {
  position: fixed;
  z-index: 80;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(22, 21, 19, 0.18);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar p {
  margin: 0;
  max-width: 52ch;
  font-size: 0.92rem;
}

.cookie-bar a {
  color: var(--blue);
}

/* Gutenberg helpers */

.alignwide {
  width: min(var(--wrap-wide), 100%);
}

.wp-block-image img {
  border-radius: 2px;
}

/* Motion */

.is-home .hero__title,
.is-home .hero__lead {
  animation: rise 0.85s var(--ease) both;
}

@keyframes rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}

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

  .is-home .hero__title,
  .is-home .hero__lead,
  .btn {
    animation: none;
    transition: none;
  }
}

/* High-res: scale header from 1080p up, leave smaller screens as they are */

@media (min-width: 1921px) {
  :root {
    --header: 3.333vw;
  }

  .site-header__inner {
    width: min(56.67vw, calc(100% - 2.92vw * 2));
  }

  .wordmark {
    font-size: 1vw;
  }

  .wordmark .custom-logo {
    height: 1.771vw;
  }

  .site-nav .menu {
    gap: 1.458vw;
  }

  .site-nav a {
    font-size: 0.65vw;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .post-index {
    grid-template-columns: 1fr;
  }

  .post-index--stack .post-card__link {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .post-index--stack .post-card__title,
  .post-index--stack .post-card__media,
  .post-index--stack .post-card__excerpt,
  .post-index--stack .text-link {
    grid-column: 1;
    grid-row: auto;
  }

  .post-index--stack .post-card__media {
    grid-row: 1;
  }

  .post-index--stack .post-card__title {
    grid-row: 2;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

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

  .contact-box {
    min-height: 12.5rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: var(--blue);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav .menu {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }

  .site-nav a,
  .is-inner .site-nav a,
  .site-header.is-scrolled .site-nav a {
    color: var(--white);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    text-transform: none;
    font-family: var(--font-display);
  }

  .site-footer__navs {
    grid-template-columns: 1fr;
  }

  .site-footer--compact .site-footer__navs {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer--compact .site-footer__end,
  .site-footer--compact .site-footer__navs {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .hero__inner {
    max-width: 44rem;
  }

  .cookie-bar {
    left: 0.75rem;
    right: 0.75rem;
  }

  .svc-diagram__list {
    flex-direction: column;
    gap: 0.55rem;
  }

  .svc-diagram__list li {
    flex-direction: column;
    gap: 0.45rem;
  }

  .svc-diagram__arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
