/* ==========================================================================
   Welora AI — Design System
   Mobile-first. Vanilla CSS. No frameworks.
   Brand: Black #000000 / White #FFFFFF / Red #E10600. Typeface: Poppins
   (self-hosted substitute for the kit's "Aero"). See /assets/css/fonts.css.
   ========================================================================== */

@import url("fonts.css");

:root {
  /* Brand palette (from Welora AI Brand Identity Kit) */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-red: #e10600;
  --color-red-dim: #a80500;
  --color-red-tint: #ff3b35;

  /* Neutrals derived from the palette for surfaces/text-on-dark hierarchy */
  --color-ink: #0a0a0a;
  --color-charcoal: #161616;
  --color-graphite: #232323;
  --color-line-dark: #2b2b2b;
  --color-line-light: #e4e4e4;
  --color-muted-on-dark: #a7a7a7;
  --color-muted-on-light: #555555;
  --color-off-white: #f7f7f7;

  /* Type */
  --font-base: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-900: clamp(2.5rem, 6vw + 1rem, 5rem);
  --fs-800: clamp(2.05rem, 4.4vw + 1rem, 3.4rem);
  --fs-700: clamp(1.6rem, 2.6vw + 1rem, 2.3rem);
  --fs-600: clamp(1.25rem, 1.4vw + 1rem, 1.6rem);
  --fs-500: 1.125rem;
  --fs-400: 1rem;
  --fs-300: 0.875rem;
  --fs-200: 0.75rem;
  --lh-tight: 1.08;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --tracking-wide: 0.14em;
  --tracking-mid: 0.06em;

  /* Layout */
  --container-max: 1240px;
  --container-pad: 1.25rem;
  --radius-sm: 4px;
  --radius-md: 10px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
}

@media (min-width: 640px) {
  :root {
    --container-pad: 2rem;
  }
}

@media (min-width: 1000px) {
  :root {
    --container-pad: 2.5rem;
    --header-h: 84px;
  }
}

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

* {
  margin: 0;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-400);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

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

button {
  cursor: pointer;
  background: none;
  border: 0;
}

@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;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease);
  font-weight: 600;
  font-size: var(--fs-300);
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* ------------------------------ Type ------------------------------------ */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-900);
}

h2 {
  font-size: var(--fs-800);
}

h3 {
  font-size: var(--fs-700);
}

h4 {
  font-size: var(--fs-600);
  font-weight: 600;
}

p {
  color: var(--color-muted-on-light);
}

.on-dark p {
  color: var(--color-muted-on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-200);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-red);
}

/* WCAG AA contrast fix: #E10600 on black/charcoal is only ~4.2:1 for
   normal-size text (needs 4.5:1) — swap to the lighter red-tint token in
   every dark-background context so small red labels stay readable. The
   base red stays on light backgrounds, where it already passes (~5:1). */
.hero .eyebrow,
.page-hero .eyebrow,
.section--dark .eyebrow {
  color: var(--color-red-tint);
}

.hero .eyebrow::before,
.page-hero .eyebrow::before,
.section--dark .eyebrow::before {
  background: var(--color-red-tint);
}

.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 2px;
  background: var(--color-red);
  display: inline-block;
}

.lede {
  font-size: var(--fs-500);
  line-height: var(--lh-snug);
}

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

.text-red {
  color: var(--color-red);
}

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

.section {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

.section--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.section--off {
  background: var(--color-off-white);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head + .section-head {
  margin-top: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--color-line-light);
}

.section--dark .divider {
  border-top-color: var(--color-line-dark);
}

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

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  font-size: var(--fs-300);
  font-weight: 700;
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-arrow {
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

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

.btn--primary:hover {
  background: var(--color-red-tint);
}

.btn--outline-dark {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

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

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn--outline-light:hover {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-black);
}

.btn--ghost {
  color: var(--color-white);
  padding-inline: 0;
  text-transform: uppercase;
  letter-spacing: var(--tracking-mid);
}

.btn--ghost .btn-arrow {
  color: var(--color-red);
}

/* ------------------------------ Header/Nav -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.97);
  border-bottom: 1px solid var(--color-line-dark);
  /* Note: intentionally no backdrop-filter here — it (like transform/
     filter/will-change:transform) creates a new containing block for
     fixed-position descendants, which broke the full-screen mobile nav
     (nested inside this header) by sizing it against the 72px header
     instead of the viewport. */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  z-index: 501;
}

.brand img {
  height: 26px;
  width: auto;
}

.brand small {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted-on-dark);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-toggle {
  position: relative;
  z-index: 501;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.nav-toggle .bars {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle .bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-med) var(--ease), opacity var(--dur-fast) var(--ease), top var(--dur-med) var(--ease);
}

.nav-toggle .bars span:nth-child(1) {
  top: 0;
}

.nav-toggle .bars span:nth-child(2) {
  top: 7px;
}

.nav-toggle .bars span:nth-child(3) {
  top: 14px;
}

.nav-open .nav-toggle .bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.nav-open .nav-toggle .bars span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle .bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--color-black);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem var(--container-pad) 3rem;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease), visibility var(--dur-med);
}

@media (min-height: 560px) {
  .site-nav {
    justify-content: center;
  }
}

.nav-open .site-nav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-nav__links a {
  color: var(--color-white);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-nav__links a .idx {
  font-size: 0.9rem;
  color: var(--color-red-tint); /* .site-header/mobile nav are always dark — see contrast note above .eyebrow */
  font-weight: 700;
}

.site-nav__links a[aria-current="page"] {
  color: var(--color-red-tint); /* always on the dark header/mobile nav */
}

.site-nav__meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line-dark);
  color: var(--color-muted-on-dark);
  font-size: var(--fs-300);
}

.site-nav__meta a {
  color: var(--color-white);
  font-weight: 600;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    top: auto;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2.5rem;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    flex: 1;
    margin-left: 3rem;
  }

  .site-nav__links {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
  }

  .site-nav__links a {
    font-size: var(--fs-300);
    font-weight: 600;
    letter-spacing: var(--tracking-mid);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 6px;
  }

  .site-nav__links a .idx {
    display: none;
  }

  .site-nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--color-red);
    transition: right var(--dur-fast) var(--ease);
  }

  .site-nav__links a:hover::after,
  .site-nav__links a[aria-current="page"]::after {
    right: 0;
  }

  .site-nav__meta {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

/* ------------------------------ Hero -------------------------------------- */
.hero {
  position: relative;
  background: var(--color-black);
  color: var(--color-white);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(100vh - var(--header-h));
    padding-block: 0;
  }
}

.hero__media {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  order: -1;
}

@media (min-width: 900px) {
  .hero__media {
    order: 0;
    aspect-ratio: auto;
    height: 78vh;
    max-height: 640px;
  }
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero .lede {
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* ------------------------------ Cards -------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-line-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.35);
  border-color: var(--color-red);
}

.card__index {
  font-size: var(--fs-300);
  font-weight: 700;
  color: var(--color-red);
  letter-spacing: var(--tracking-mid);
  margin-bottom: 1rem;
  display: block;
}

.card--dark {
  background: var(--color-charcoal);
  border-color: var(--color-line-dark);
  color: var(--color-white);
}

.card--dark p {
  color: var(--color-muted-on-dark);
}

.work-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-charcoal);
  border: 1px solid var(--color-line-dark);
  color: var(--color-white);
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-red);
}

.work-card__visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--color-graphite);
}

.work-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-med) var(--ease);
}

.work-card:hover .work-card__visual img {
  transform: scale(1.04);
}

/* Subtle diagonal light sheen on hover only, on top of the artwork */
.work-card__visual::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.16) 50%, transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  pointer-events: none;
}

.work-card:hover .work-card__visual::before {
  opacity: 1;
  transform: translate(8%, 8%);
}

.work-card__body {
  padding: 1.5rem;
}

.work-card__tag {
  font-size: var(--fs-200);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-red-tint); /* work-card bodies are always dark charcoal/graphite */
  font-weight: 700;
}

.work-card__title {
  margin-top: 0.5rem;
  font-size: var(--fs-600);
}

.work-card__desc {
  margin-top: 0.5rem;
  color: var(--color-muted-on-dark);
  font-size: var(--fs-300);
}

.placeholder-note {
  display: inline-block;
  margin-top: 1rem;
  font-size: var(--fs-200);
  color: var(--color-muted-on-dark);
  border: 1px dashed var(--color-line-dark);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
}

/* ------------------------------ Stats / values ------------------------------ */
.stat {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-line-light);
}

.section--dark .stat {
  border-top-color: var(--color-line-dark);
}

.stat__num {
  font-size: var(--fs-800);
  font-weight: 800;
  color: var(--color-red);
  line-height: 1;
}

.stat__label {
  margin-top: 0.5rem;
  font-size: var(--fs-300);
  color: var(--color-muted-on-light);
}

.section--dark .stat__label {
  color: var(--color-muted-on-dark);
}

/* ------------------------------ Forms -------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.field label {
  font-size: var(--fs-300);
  font-weight: 600;
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  color: var(--color-muted-on-dark);
}

.field input,
.field textarea,
.field select {
  background: var(--color-charcoal);
  border: 1.5px solid var(--color-line-dark);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--color-white);
  transition: border-color var(--dur-fast) var(--ease);
}

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

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field-error {
  font-size: var(--fs-200);
  color: var(--color-red-tint);
  min-height: 1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-300);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid var(--color-red);
  color: var(--color-white);
}

.form-status.is-error {
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid var(--color-red-dim);
  color: var(--color-white);
}

/* ------------------------------ Footer -------------------------------------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding-block: 3rem 2rem;
}

.footer__top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-line-dark);
}

@media (min-width: 780px) {
  .footer__top {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}

.footer__brand .brand {
  margin-bottom: 0.75rem;
}

.footer__brand p {
  max-width: 26rem;
}

.footer h5 {
  font-size: var(--fs-300);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-muted-on-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__links a {
  color: var(--color-white);
  font-size: var(--fs-300);
  transition: color var(--dur-fast) var(--ease);
}

.footer__links a:hover {
  color: var(--color-red-tint); /* footer is always black */
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: var(--fs-200);
  color: var(--color-muted-on-dark);
}

.footer__bottom a {
  color: var(--color-muted-on-dark);
}

.footer__bottom a:hover {
  color: var(--color-white);
}

/* ------------------------------ Cookie banner -------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-black);
  color: var(--color-white);
  border-top: 1px solid var(--color-line-dark);
  padding: 1.25rem var(--container-pad) 1.5rem;
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

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

.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 780px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner p {
  font-size: var(--fs-300);
  color: var(--color-muted-on-dark);
  max-width: 46rem;
}

.cookie-banner p a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn--sm {
  padding: 0.7rem 1.2rem;
  font-size: var(--fs-200);
}

/* ------------------------------ Page hero (interior pages) -------------------- */
.page-hero {
  background: var(--color-black);
  color: var(--color-white);
  padding-block: clamp(3.5rem, 10vw, 6rem) clamp(2.5rem, 6vw, 4rem);
}

.page-hero .eyebrow {
  margin-bottom: 1rem;
}

.page-hero .lede {
  max-width: 40rem;
  margin-top: 1.25rem;
}

.breadcrumb {
  font-size: var(--fs-200);
  color: var(--color-muted-on-dark);
  text-transform: uppercase;
  letter-spacing: var(--tracking-mid);
}

.breadcrumb a {
  color: var(--color-muted-on-dark);
}

.breadcrumb a:hover {
  color: var(--color-white);
}

/* ------------------------------ Misc components -------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--color-line-dark);
  font-size: var(--fs-200);
  color: var(--color-muted-on-dark);
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-red);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--fs-400);
  flex-shrink: 0;
}

/* Client / reference logo wall — logos keep their own brand colors rather
   than being forced into a uniform treatment. Image is sized responsively
   (fills its grid column up to a 216px cap — 3x the original 72px) so it
   stays large on desktop without overflowing narrow mobile columns. */
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem 1.5rem;
  max-width: 40rem;
}

@media (min-width: 560px) {
  .client-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: none;
  }
}

.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.client-logo img {
  width: 100%;
  max-width: 216px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--color-line-dark);
}

.client-logo span {
  font-size: var(--fs-200);
  font-weight: 600;
  letter-spacing: var(--tracking-mid);
  text-transform: uppercase;
  color: var(--color-muted-on-light);
  line-height: 1.4;
}

.section--dark .client-logo span {
  color: var(--color-muted-on-dark);
}

.section--off .client-logo img {
  border-color: var(--color-line-light);
}

/*
  Scroll reveal is a purely cosmetic, non-blocking enhancement: content
  stays at full opacity at all times (never depends on JS, an
  IntersectionObserver firing, or a crawler/screenshot catching the right
  timing) and only nudges up a few pixels once "is-visible" is added.
*/
.reveal {
  opacity: 1;
  transform: translateY(10px);
  transition: transform 600ms var(--ease);
}

.reveal.is-visible {
  transform: translateY(0);
}

/* Logo mark used inline as a decorative background watermark */
.mark-watermark {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
  width: 60vw;
  max-width: 640px;
  right: -8vw;
  top: -6vw;
}

.numbered-list {
  counter-reset: item;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.numbered-list li {
  counter-increment: item;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line-light);
}

.section--dark .numbered-list li {
  border-bottom-color: var(--color-line-dark);
}

.numbered-list li::before {
  content: counter(item, decimal-leading-zero);
  font-weight: 800;
  font-size: var(--fs-600);
  color: var(--color-red);
}
