/* ==========================================================================
   LEO BUI AI — stylesheet
   Design tokens live in :root. Never hardcode a colour anywhere below.
   ========================================================================== */

:root {
  --background: #ffffff;
  --surface: #f6f5f3;
  --surface-strong: #efedea;
  --border: #e6e3df;
  --foreground: #0d0d0d;
  --muted: #6b6b6b;
  --accent: #ff5c28;

  --container: 72rem;
  --gutter: 1.5rem;
  --radius-card: 0.875rem;
  --radius-input: 0.5rem;

  --section-y: 5rem;
  --font-sans: "Be Vietnam Pro", ui-sans-serif, system-ui, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
  :root {
    --section-y: 7rem;
  }
}

/* --------------------------------------------------------------- reset -- */

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

* {
  margin: 0;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Guards against any single element pushing the page sideways. */
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--foreground);
  color: var(--background);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 60;
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------- layout -- */

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

.section {
  padding-block: var(--section-y);
}

.section--bordered {
  border-top: 1px solid var(--border);
}

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

/* --------------------------------------------------------------- text -- */

.lead {
  color: var(--muted);
  line-height: 1.7;
  max-width: 42rem;
}

.label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.label::before {
  content: "";
  width: 1px;
  height: 1rem;
  background: var(--foreground);
  flex: none;
}

.section-head {
  max-width: 48rem;
}

.section-head__row {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-head__text {
  max-width: 42rem;
}

.section-head h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
}

.section-head .lead {
  margin-top: 0.75rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .section-head {
    max-width: none;
  }

  .section-head__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }

  .section-head__action {
    flex: none;
  }

  .section-head .lead {
    font-size: 1.125rem;
  }
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.875rem;
  height: 2.75rem;
  padding-inline: 1.25rem;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    opacity 150ms ease,
    color 150ms ease;
}

.btn--sm {
  height: 2.25rem;
  padding-inline: 1rem;
}

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

.btn--primary:hover {
  opacity: 0.85;
}

.btn--secondary {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--surface);
}

.btn--ghost {
  background: transparent;
  padding-inline: 0;
}

.btn--ghost:hover {
  opacity: 0.7;
}

.btn--light {
  background: #ffffff;
  color: var(--foreground);
}

.btn--light:hover {
  opacity: 0.85;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--sm {
  width: 0.9375rem;
  height: 0.9375rem;
}

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__bar {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foreground);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.site-header__actions > a:first-child {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.site-header__actions > a:first-child:hover {
  color: var(--foreground);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.5rem;
  background: none;
  border: 0;
  border-radius: var(--radius-input);
}

.nav-toggle .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: block;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav .container {
  padding-block: 1.5rem;
}

.mobile-nav a {
  display: block;
  padding-block: 0.75rem;
  font-size: 1rem;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .site-nav,
  .site-header__actions {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* --------------------------------------------------------------- hero -- */

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

.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__lines svg {
  position: absolute;
  top: -45%;
  right: -10%;
  width: 85rem;
  height: 60rem;
  color: var(--accent);
  opacity: 0.28;
}

.hero .container {
  position: relative;
  padding-block: 5rem;
}

.hero__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

/* Plain text link above the headline, as in the reference — no pill, no border. */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.hero__eyebrow::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--accent);
  flex: none;
}

.hero__eyebrow:hover {
  color: var(--foreground);
}

.hero__eyebrow .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.04;
}

.hero .lead {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
}

.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .hero .lead {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero .container {
    padding-block: 7rem;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  /* Bleeds past the container edge, as in the reference design. */
  .hero__panel-wrap {
    margin-right: -5rem;
  }
}

@media (min-width: 1280px) {
  .hero__panel-wrap {
    margin-right: -8rem;
  }
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--background);
  overflow: hidden;
}

.panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.panel__dots {
  display: flex;
  gap: 0.375rem;
}

.panel__dots span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--border);
}

.panel__chrome p {
  font-size: 0.75rem;
  color: var(--muted);
}

.panel__step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  /* Taller rows give the panel the vertical presence it has in the reference. */
  .panel__step {
    padding: 1.5rem 1.5rem;
  }

  .panel__chrome,
  .panel__foot {
    padding: 1rem 1.5rem;
  }
}

.panel__step:first-child {
  border-top: 0;
}

.panel__num {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  background: var(--accent);
  color: #fff;
}

.panel__num--dark {
  background: var(--foreground);
  color: var(--background);
}

.panel__num--muted {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.panel__step strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.panel__step p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.panel__foot span:first-child {
  font-size: 0.75rem;
  color: var(--muted);
}

.panel__foot span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
}

/* --------------------------------------------------------- logo cloud -- */

.logos {
  border-top: 1px solid var(--border);
  padding-block: 4rem;
}

.logos__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.logos__intro p {
  max-width: 24rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.logos__intro .btn {
  margin-top: 1.5rem;
}

.logos__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

.logos__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  filter: grayscale(1);
}

/* Secondary strip of integration marks, below the main cloud. */
.logos__strip {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.logos__strip p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex: none;
}

.logos__strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.logos__strip li {
  font-size: 0.8125rem;
  color: var(--muted);
  filter: grayscale(1);
}

@media (min-width: 640px) {
  .logos__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .logos__strip {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

@media (min-width: 768px) {
  .logos {
    padding-block: 5rem;
  }

  .logos__grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .logos__intro p {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------- bento / services -- */

.bento {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.5rem;
  transition: background-color 150ms ease;
}

/* Reference cards carry noticeably more vertical air than their text needs;
   the slack collects at the bottom of the card. */
@media (min-width: 1024px) {
  .bento .card {
    min-height: 15rem;
  }

  .bento .card p {
    margin-bottom: auto;
  }
}

.card:hover {
  background: var(--surface-strong);
}

.card h3 {
  margin-top: 1.25rem;
  font-size: 1.125rem;
}

.card p {
  margin-top: 0.5rem;
  max-width: 36rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.card--wide h3 {
  font-size: 1.25rem;
}

.outcomes {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.625rem 2rem;
}

.outcomes li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Used where the list stands alone rather than inside a card. */
.outcomes--plain {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.outcomes .icon {
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento > .bento__item--wide,
  .bento > .bento__item--full {
    grid-column: span 2;
  }

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

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento > .bento__item--wide {
    grid-column: span 2;
  }

  .bento > .bento__item--full {
    grid-column: span 3;
  }

  .card--wide {
    padding: 2rem;
  }

  .card--wide h3 {
    font-size: 1.5rem;
  }

  .card--split {
    display: flex;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .card--split > div:first-child {
    width: 38%;
    flex: none;
  }

  .card--split .outcomes {
    flex: 1;
    margin-top: 0.25rem;
    padding-top: 0;
    padding-left: 3.5rem;
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

/* --------------------------------------------------------- case study -- */

.case {
  border-top: 1px solid var(--border);
  padding-block: var(--section-y);
}

/* Horizontal card row; the last card is deliberately clipped so the row reads
   as scrollable, matching the reference. */
.case-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.case-row::-webkit-scrollbar {
  display: none;
}

.case-card {
  flex: 0 0 auto;
  width: min(85vw, 26rem);
  scroll-snap-align: start;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-card--accent {
  width: min(85vw, 34rem);
  background: var(--accent);
  color: #fff;
}

.case-card--muted {
  background: var(--surface);
  border: 1px solid var(--border);
}

.case-card__body {
  padding: 1.75rem;
  flex: 1;
}

.case-card__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.7);
}

.case-card--muted .case-card__eyebrow {
  color: var(--muted);
}

.case-card h3 {
  margin-top: 1.25rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.case-card__summary {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.8);
}

.case-card--muted .case-card__summary {
  color: var(--muted);
}

.case-card .btn {
  margin-top: 1.75rem;
}

.case-card__metrics {
  display: flex;
  gap: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.case-card--muted .case-card__metrics {
  border-top-color: var(--border);
}

.case-card__metrics strong {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.case-card__metrics span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.75);
}

.case-card--muted .case-card__metrics span {
  color: var(--muted);
}

@media (min-width: 768px) {
  .case-card__body {
    padding: 2.5rem;
  }

  .case-card__metrics {
    padding: 1.75rem 2.5rem;
  }

  .case-card h3 {
    font-size: 1.875rem;
  }
}

.case__inner {
  display: grid;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: #fff;
  overflow: hidden;
}

.case__body {
  padding: 2rem;
}

.case__body p:first-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(255 255 255 / 0.7);
}

.case__body h2 {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
}

.case__body .case__summary {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgb(255 255 255 / 0.8);
  line-height: 1.7;
}

.case__body .btn {
  margin-top: 2rem;
}

.case__metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.case__metrics strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.case__metrics span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.75);
}

@media (min-width: 768px) {
  .case__body,
  .case__metrics {
    padding: 3rem;
  }

  .case__metrics strong {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .case__inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .case__metrics {
    border-top: 0;
    border-left: 1px solid rgb(255 255 255 / 0.2);
  }
}

/* -------------------------------------------------------------- stats -- */

.stats {
  margin-top: 3.5rem;
  display: grid;
  border-top: 1px solid var(--border);
}

.stats > div {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
}

.stats > div:last-child {
  border-bottom: 0;
}

.stats__topic {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.stats dt {
  margin-top: 1rem;
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats dd {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.stats__source {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats > div {
    padding-block: 2.5rem;
    border-bottom: 0;
  }

  .stats > div + div {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
  }

  .stats > div:not(:last-child) {
    padding-right: 2rem;
  }

  .stats dt {
    font-size: 3.75rem;
  }
}

/* ------------------------------------------------------------ process -- */

.steps {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.step {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: background-color 150ms ease;
}

.step:hover {
  background: var(--surface);
}

.step__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.step__meta span:last-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step h3 {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    padding: 2rem;
  }
}

/* ------------------------------------------------------- testimonials -- */

.quotes {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.quote {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.5rem;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.avatar {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

.quote figcaption strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.quote figcaption span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.quote blockquote {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -------------------------------------------------------------- posts -- */

.posts {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}

.post-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: background-color 150ms ease;
}

.post-card:hover {
  background: var(--surface);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.post-card__meta span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-card h3 {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.35;
}

.post-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.post-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

.post-card__time {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .posts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------------------------------------------------------- list rows -- */

.rows {
  display: grid;
}

.rows > li {
  border-top: 1px solid var(--border);
}

.rows > li:first-child {
  border-top: 0;
}

.row-grid {
  display: grid;
  gap: 1rem;
  padding-block: 2.5rem;
}

.row-grid h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.row-grid .lead {
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* Inside a row the list has a narrow column, so keep it single-file. */
.row-grid .outcomes {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .row-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }

  .row-grid--three {
    grid-template-columns: auto 1fr 1.4fr;
  }

  .row-grid--faq {
    grid-template-columns: 1fr 1.4fr;
  }
}

/* --------------------------------------------------------------- faq -- */

.faq {
  margin-top: 3rem;
}

.faq > div {
  border-top: 1px solid var(--border);
}

.faq dt {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq dd {
  color: var(--muted);
  line-height: 1.7;
}

/* --------------------------------------------------------- page hero -- */

.page-hero {
  padding-block: 4rem;
}

.page-hero__inner {
  max-width: 48rem;
}

.page-hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.08;
}

.page-hero .lead {
  margin-top: 1.25rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .page-hero {
    padding-block: 6rem;
  }

  .page-hero .lead {
    font-size: 1.125rem;
  }
}

/* ---------------------------------------------------------------- cta -- */

/* Closing statement on white, with the same line-art as the hero — as in the
   reference, where the page opens and closes on the same motif. */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding-block: 5rem;
}

.cta__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cta__lines svg {
  position: absolute;
  right: -15%;
  bottom: -60%;
  width: 70rem;
  height: 40rem;
  color: var(--accent);
  opacity: 0.22;
}

.cta .container {
  position: relative;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cta h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta {
    padding-block: 7rem;
  }

  .cta__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .cta__actions {
    flex: none;
  }
}

/* --------------------------------------------------------------- form -- */

.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form__row {
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  transition: border-color 150ms ease;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--foreground);
}

.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form__note {
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 3rem;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 1.125rem;
}

.contact-card dl {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.contact-card dt {
  color: var(--muted);
}

.contact-card dd {
  margin-top: 0.25rem;
}

.contact-card dd a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-card__note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
  }

  .contact-card {
    padding: 2rem;
  }
}

/* ------------------------------------------------------------- values -- */

.values {
  display: grid;
  gap: 2.5rem;
}

.values__list {
  display: grid;
  gap: 1rem;
}

.values__list h3 {
  font-size: 1.125rem;
}

.values__list p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .values__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .values {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }

  .values h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
  }
}

/* ------------------------------------------------------ article page -- */

.article {
  padding-block: 4rem;
}

.article__head {
  max-width: 48rem;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.article__back:hover {
  color: var(--foreground);
}

.article__meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.article__meta span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article h1 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.1;
}

.article__excerpt {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 42rem;
}

.article__body {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.8;
}

@media (min-width: 768px) {
  .article {
    padding-block: 6rem;
  }
}

/* ------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 4rem;
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
}

.site-footer__brand p:nth-child(2) {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 20rem;
}

.site-footer__brand a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.site-footer__brand a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer h2 {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-footer ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer ul a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.site-footer ul a:hover {
  color: var(--foreground);
}

.site-footer__bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-social a {
  color: var(--muted);
  transition: color 150ms ease;
}

.site-social a:hover {
  color: var(--foreground);
}

.site-social .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  .site-footer {
    padding-block: 5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1.5fr repeat(4, 1fr);
  }

  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------ reveal -- */

/* The hidden state is only applied once JS confirms observer support, so
   content stays visible with JavaScript disabled and for crawlers. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out;
}

.js-reveal .reveal[data-visible="true"] {
  opacity: 1;
  transform: none;
}

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

  .js-reveal .reveal,
  .js-reveal .reveal[data-visible="true"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
