@import url('https://fonts.googleapis.com/css2?family=Space+Mono&display=swap');

/* ============================================================
   HOPE DESIGN SYSTEM — components.css
   v1.4 · May 2026
   Requires: tokens.css, reset.css (loaded first)
   ============================================================ */


/* ----------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  padding: 12px 18px;            /* +2px vertical → target ≥ 44px (WCAG 2.5.5) */
  min-height: 44px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    color            var(--duration-normal) var(--ease-out),
    border-color     var(--duration-normal) var(--ease-out),
    transform        var(--duration-fast)   var(--ease-out),
    box-shadow       var(--duration-normal) var(--ease-out);
}
.btn:focus-visible { box-shadow: var(--shadow-focus); }
.btn:active        { transform: scale(0.98); }

/* Arrow icon slides right on hover */
.btn .icon--arrow {
  transition: transform var(--duration-normal) var(--ease-out);
}
.btn:hover .icon--arrow {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .btn { width: 100%; }
}

/* ----------------------------------------------------------
   ICONS (Tabler-compatible)
   ---------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  stroke: currentColor;
}

/* Primary */
.btn--primary {
  background-color: var(--color-tinta);
  color: var(--color-nuvem);
  border: 1px solid var(--color-tinta);
}
.btn--primary:hover {
  background-color: var(--color-sombra);
  border-color: var(--color-sombra);
  color: var(--color-nuvem);
}
[data-theme="dark"] .btn--primary {
  background-color: var(--color-nuvem);
  color: var(--color-tinta);
  border-color: var(--color-nuvem);
}
[data-theme="dark"] .btn--primary:hover {
  background-color: var(--color-borda-dark);
  border-color: var(--color-borda-dark);
}

/* Secondary */
.btn--secondary {
  background-color: transparent;
  color: var(--color-text-1);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-border-strong);
  background-color: var(--color-bg-alt);
  color: var(--color-text-1);
}

/* Secondary Hero */
.btn--secondary-hero {
  background-color: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  color: var(--color-text-1);
  transition: background-color var(--duration-normal), border-color var(--duration-normal), color var(--duration-normal);
}
.btn--secondary-hero:hover {
  border-color: var(--color-border-strong);
  background-color: var(--color-bg-alt);
  color: var(--color-text-1);
}
[data-theme="dark"] .btn--secondary-hero {
  background-color: rgba(0, 0, 0, 0.25);
  color: var(--color-text-1);
}
[data-theme="dark"] .btn--secondary-hero:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text-1);
}

/* Solar */
.btn--solar {
  background-color: var(--color-solar);
  color: var(--color-tinta);
  border: 1px solid var(--color-solar);
}
.btn--solar:hover {
  background-color: var(--color-madrugada);
  border-color: var(--color-madrugada);
  color: var(--color-tinta);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--color-text-2);
  border: 1px solid transparent;
}
.btn--ghost:hover {
  color: var(--color-text-1);
  background-color: var(--color-bg-alt);
}

/* Disabled state — applies to any variant */
.btn:disabled,
.btn[aria-disabled="true"] {
  background-color: var(--color-bg-alt);
  color: var(--color-text-3);
  border-color: var(--color-border);
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.icon--title {
  color: var(--color-focus-ring);
}

/* ----------------------------------------------------------
   BADGES
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  line-height: 1.5;
}

.badge--neutral {
  background-color: var(--color-bg-alt);
  color: var(--color-text-2);
  border: var(--border-thin);
}

.badge--ancora {
  background-color: var(--color-ceu);
  color: var(--color-profundo);
}
[data-theme="dark"] .badge--ancora {
  background-color: rgba(28, 95, 168, 0.2);
  color: var(--color-mare);
}

.badge--solar {
  background-color: var(--color-aurora);
  color: var(--color-crepusculo);
}
[data-theme="dark"] .badge--solar {
  background-color: rgba(245, 200, 66, 0.15);
  color: var(--color-solar);
}

.badge--success {
  background-color: rgba(74, 159, 107, 0.12);
  color: var(--color-success);
}

.badge--draft {
  background-color: var(--color-superficie);
  color: var(--color-mudo);
  border: var(--border-thin);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
[data-theme="dark"] .badge--draft {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-3);
  border-color: var(--color-border);
}

/* ----------------------------------------------------------
   CARDS — Case Studies  (50/50 editorial split)
   ---------------------------------------------------------- */

/* Card shell — stacked on mobile, horizontal split at 768px */
.case-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: var(--border-thin);
  transition:
    box-shadow    var(--duration-slow)   var(--ease-out),
    border-color  var(--duration-normal) var(--ease-out);
}
@media (min-width: 768px) {
  .case-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .case-card__visual {
    width: 50%;
    flex-shrink: 0;
    aspect-ratio: unset;
    min-height: 320px;
  }

  .case-card__content {
    width: 50%;
    flex: 1;
  }
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ── Visual half — full-bleed studio canvas ──────────────── */
.case-card__visual {
  overflow: hidden;
  background-color: var(--color-bg-alt);
  aspect-ratio: 4/3;
  display: flex;
  align-items: flex-end;   /* ground the mockup at the bottom */
  justify-content: center;
  padding: 0;              /* full-bleed: bg fills all four edges */
}
[data-theme="dark"] .case-card__visual {
  background-color: var(--color-abismo);
}

.case-card__img--light,
.case-card__img--dark {
  display: block;
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  transition: transform var(--duration-slower) var(--ease-out);
}
.case-card:hover .case-card__img--light,
.case-card:hover .case-card__img--dark {
  transform: scale(1.04);
}

/* Image visibility — light mode default */
.case-card__img--light { display: block !important; }
.case-card__img--dark  { display: none  !important; }
[data-theme="dark"] .case-card__img--light { display: none  !important; }
[data-theme="dark"] .case-card__img--dark  { display: block !important; }

/* ── Editorial content half ──────────────────────────────── */
.case-card__content {
  background-color: var(--color-bg-alt);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Company eyebrow + title — grouped heading block */
.case-card__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.case-card__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
}
.case-card__status {
  font-family: var(--font-body);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

/* Project title */
.case-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-1);
}

/* Capsule discipline tags */
.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.case-card__tag {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  color: var(--color-text-2);
  background: rgba(13, 13, 15, 0.05);
  border: 1px solid rgba(13, 13, 15, 0.08);
  white-space: nowrap;
}
[data-theme="dark"] .case-card__tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
}

/* Description prose — margin-top:auto pushes this + metrics + footer to the bottom */
.case-card__lead {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.70;
  color: var(--color-text-2);
  margin-top: auto;
}

/* Metrics — separated by a subtle rule */
.case-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border-normal);
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px; /* no DS token — below 4px scale minimum */
}
.metric__value {
  font-family: var(--font-mono);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-ancora);
}
[data-theme="dark"] .metric__value {
  color: var(--color-solar);
}
.metric__label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  line-height: 1.4;
}

/* Footer — sits naturally after metrics, no extra push needed */
.case-card__footer {
  padding-top: var(--space-4);
}
.case-card__action {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--color-text-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-block;
  transition: color var(--duration-normal) var(--ease-out);
}
.case-card__action:hover {
  color: var(--color-text-1);
}
.case-card__action--disabled {
  color: var(--color-text-3);
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

/* ── Desktop: 50/50 side-by-side ────────────────────────── */
@media (min-width: 768px) {
  .case-card {
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
  }
  .case-card__visual {
    aspect-ratio: auto;
  }

  /* Flip variant — visual moves to the right */
  .case-card--flip .case-card__visual  { order: 2; }
  .case-card--flip .case-card__content { order: 1; }
}

/* ── Placeholder / Coming Soon variant ──────────────────── */
.case-card--placeholder {
  cursor: default;
}
.case-card--placeholder:hover {
  box-shadow: none;
  border-color: var(--color-border);
}
.case-card--placeholder:hover .case-card__img--light,
.case-card--placeholder:hover .case-card__img--dark {
  transform: none;
}
.case-card--placeholder .case-card__visual {
  filter: grayscale(55%);
  opacity: 0.50;
}
.case-card--placeholder .case-card__content {
  opacity: 0.65;
}
.case-card--placeholder .metric__value {
  color: var(--color-text-3);
}
.case-card--placeholder .case-card__tag {
  opacity: 0.55;
}

/* ======================================================================
   CASE CARD — .case-card--glass (portrait gallery card)
   Vertical layout: frosted-glass shell · inset gradient canvas ·
   paginator chrome dots (folder look) · frosted year pill ·
   bold pipe-split title · muted mono meta line · native badges ·
   impact metrics · full-width CTA button.
   Dark mode flips the accent (Âncora → Solar) and adds a glow ring.
   ====================================================================== */

/* ── Card shell — glassmorphism matching the site nav pill ──────────── */
.case-card--glass {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  /* Frosted glass — same recipe as .site-header */
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
          backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 24px rgba(13, 13, 15, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  height: 100%;
  transition:
    box-shadow   var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out),
    transform    var(--duration-slow) var(--ease-out);
}
/* Neutralise the base @media(min-width:768px){grid-template-columns:1fr 1fr} */
@media (min-width: 768px) {
  .case-card--glass { 
    min-height: 0;
    flex-direction: row; 
  }
  
}
.case-card--glass:hover {
  transform:    translateY(-4px);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.80);
}

[data-theme="dark"] .case-card--glass {
  background: rgba(26, 26, 46, 0.50);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
          backdrop-filter: blur(30px) saturate(1.6);
  border-color: rgba(74, 74, 96, 0.30);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* Dark hover: deep shadow + Solar glow ring */
[data-theme="dark"] .case-card--glass:hover {
  background: rgba(26, 26, 46, 0.65);
  border-color: rgba(245, 200, 66, 0.35);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.50),
    0 0   0  1px rgba(245, 200, 66, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Canvas — inset rounded panel with iridescent gradient ──────────── */
/* display:block + position:relative gives a clean stacking context for the
   absolutely-placed chrome, year pill, and full-bleed images.            */
.case-card--glass .case-card__visual {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 18% 8%,  var(--color-ceu)    0%, transparent 55%),
    radial-gradient(120% 120% at 88% 16%, var(--color-aurora)  0%, transparent 52%),
    linear-gradient(150deg, var(--color-ceu) 0%, var(--color-mare) 100%);
}
@media (min-width: 768px) {
  .case-card--glass .case-card__visual { aspect-ratio: 4 / 3; }
}
[data-theme="dark"] .case-card--glass .case-card__visual {
  background:
    radial-gradient(120% 120% at 15% 0%,  rgba(28, 95, 168, 0.45) 0%, transparent 55%),
    radial-gradient(120% 120% at 90% 12%, rgba(245, 200, 66, 0.20) 0%, transparent 50%),
    linear-gradient(150deg, #2A2A42 0%, #1B1B2C 100%);
}

/* Images fill the full canvas — absolute so height:100% is unambiguous */
.case-card--glass .case-card__img--light,
.case-card--glass .case-card__img--dark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* keep the UI — phone status bar — in view */
}

/* ── Paginator chrome — top-center, folder-tab feel ────────────────── */
/* 4 filled + 3 hollow squares mimics the reference's progress/tab row  */
.case-card__chrome {
  position: absolute;
  top:       var(--space-3);
  left:      50%;
  transform: translateX(-50%);
  z-index:   var(--z-raised);
  display:   flex;
  gap:       var(--space-1);
  pointer-events: none;
}
.case-card__chrome span {
  width:  6px;   /* no DS token — sub-pixel chrome dot */
  height: 6px;   /* no DS token — sub-pixel chrome dot */
  border-radius: 1.5px; /* no DS token — sub-pixel chrome dot */
  border: 1.5px solid rgba(13, 13, 15, 0.22);
  background: transparent;
}
.case-card__chrome span.is-filled {
  background: rgba(13, 13, 15, 0.28);
  border-color: rgba(13, 13, 15, 0.28);
}
[data-theme="dark"] .case-card__chrome span {
  border-color: rgba(255, 255, 255, 0.32);
}
[data-theme="dark"] .case-card__chrome span.is-filled {
  background:   rgba(255, 255, 255, 0.55);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Year pill — frosted overlay, top-right of canvas ───────────────── */
.case-card__year {
  position: absolute;
  top:   var(--space-3);
  right: var(--space-3);
  z-index: var(--z-raised);
  pointer-events: none;
  font-family:    var(--font-mono);
  font-size:      var(--fs-label);
  font-weight:    600;
  letter-spacing: 0.08em;
  padding:        var(--space-1) var(--space-3);
  border-radius:  var(--radius-pill);
  background-color: rgba(247, 247, 249, 0.82);
  border: 1px solid rgba(13, 13, 15, 0.08);
  color:  var(--color-text-2);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
[data-theme="dark"] .case-card__year {
  background-color: rgba(26, 26, 46, 0.80);
  border-color:     rgba(255, 255, 255, 0.10);
  color:            var(--color-text-3);
}

/* ── Content stack ──────────────────────────────────────────────────── */
.case-card--glass .case-card__content {
  background-color: transparent;
  flex: 1;
  padding: var(--space-2) var(--space-3) var(--space-3);
  gap:     var(--space-3);
}

/* ── Title — bold, pipe-separated ───────────────────────────────────── */
.case-card--glass .case-card__title {
  font-size:      var(--fs-h2);
  letter-spacing: -0.02em;
  line-height:    1.2;
}
.case-card__title-sep {
  margin:      0 calc(var(--space-2) + 2px);
  color:       var(--color-text-3);
  font-weight: 400;
}

/* ── Meta line — muted mono (client · year · discipline) ────────────── */
.case-card__meta {
  font-family:    var(--font-mono);
  font-size:      var(--fs-body-sm);
  letter-spacing: 0.01em;
  color:          var(--color-text-3);
  margin-top:     calc(-1 * var(--space-1));
}

/* ── Tags ────────────────────────────────────────────────────────────── */
.case-card--glass .case-card__tags { margin-top: var(--space-1); }

/* ── Lead description — reintroduced below tags ─────────────────────── */
.case-card--glass .case-card__lead {
  margin-top: 0;    /* override the base margin-top:auto */
  font-size:  var(--fs-body-sm);
  line-height: 1.65;
  color: var(--color-text-2);
}

/* Accent flip: .badge--ancora → Solar gold in dark mode */
[data-theme="dark"] .case-card--glass .badge--ancora {
  background-color: rgba(245, 200, 66, 0.15);
  color: var(--color-solar);
}

/* ── Metrics ─────────────────────────────────────────────────────────── */
.case-card--glass .case-card__metrics {
  margin-top:  var(--space-2);
  padding-top: var(--space-4);
  gap:         var(--space-6);
  border-top:  var(--border-normal);
}
[data-theme="dark"] .case-card--glass .case-card__metrics {
  border-color: var(--color-border);
}
.case-card--glass .metric__value { font-size: var(--fs-h2); }

/* ── Footer — full-width CTA, no glyph ───────────────────────────────── */
.case-card--glass .case-card__footer {
  margin-top:  auto;
  padding-top: var(--space-4);
}
/* Button fills the full footer width */
.case-card--glass .case-card__footer .btn {
  width: 100%;
}

/* ── Coming-soon variant — inert, no lift or glow ────────────────────── */
.case-card--glass.case-card--placeholder:hover {
  transform:    none;
  box-shadow:   0 4px 24px rgba(13, 13, 15, 0.06), inset 0 1px 0 rgba(255,255,255,0.85);
  border-color: rgba(255, 255, 255, 0.65);
}
[data-theme="dark"] .case-card--glass.case-card--placeholder:hover {
  background:   rgba(26, 26, 46, 0.50);
  border-color: rgba(74, 74, 96, 0.30);
  box-shadow:   0 4px 24px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ----------------------------------------------------------
   CARDS — Skills
   ---------------------------------------------------------- */
.skill-card {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition:
    transform    var(--duration-slow) var(--ease-out),
    box-shadow   var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
  ;
}
.skill-card:hover {
  transform: translateY(-4px);
}
.skill-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.skill-card__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background-color: var(--color-nuvem);
  color: var(--color-ancora);
  flex: 0 0 auto;
}
[data-theme="dark"] .skill-card__icon {
  background-color: color-mix(in srgb, var(--color-solar) 18%, transparent);
  color: var(--color-solar);
}
.skill-card__icon .icon {
  width: 20px;
  height: 20px;
}
.skill-card__title {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-text-1);
  line-height: 1.4;
}
.skill-card__body {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: 1.7;
  color: var(--color-text-2);
}

.small-note {
  display: flex;
  flex-direction: row;
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);

  font-family: var(--font-body);
  font-size: var(--fs-body-sm) !important;
  line-height: 1.7;

  background-color: var(--color-bg-alt);
  color: var(--color-text-3) !important;
  
  transition:
    transform    var(--duration-slow) var(--ease-out),
    box-shadow   var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
  ;
}

/* ── Metric card variant (Results section) ───────────────── */
.skill-card--metric {
  background-color: var(--color-bg-alt);
  border: none;
  box-shadow: none;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-card--metric .metric-icon {
  color: var(--color-text-2);
  flex-shrink: 0;
}

.skill-card--metric .metric-value {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text-2);
  line-height: 1.1;
  margin: 0;
}

.skill-card--metric .metric-desc {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  line-height: 1.8;
  margin: 0;
}



/* ----------------------------------------------------------
   TEXT HIGHLIGHT — scroll-triggered marker sweep
   ---------------------------------------------------------- */
.text-highlight {
  display: inline;
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--color-solar) 30%, transparent),
    color-mix(in srgb, var(--color-solar) 30%, transparent)
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0% 55%;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  padding: 0 2px;
  border-radius: 2px;
  transition: background-size 1.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.text-highlight.is-active {
  background-size: 100% 100%;
}

/* ----------------------------------------------------------
   CARDS — Testimonials
   ---------------------------------------------------------- */
.testimonial-card {
  /* Gradient fill: card surface fades into page background at the bottom */
  /* Gradient border: outline fades to transparent alongside the fill     */
  background-image:
    linear-gradient(to bottom, var(--color-bg-alt) 0%, var(--color-bg-alt) 50%, var(--color-bg) 100%),
    linear-gradient(to bottom, var(--color-border) 0%, transparent 80%);
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: var(--border-thin);
}

.testimonial-card__quote {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-text-2);
}

.testimonial-card__quote strong {
  color: var(--color-text-1);
  font-weight: 600;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
  display: block;
}
.testimonial-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
}

.testimonial-card__profile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-link) 40%, transparent);
  text-underline-offset: 3px;
  transition:
    color                var(--duration-normal) var(--ease-out),
    text-decoration-color var(--duration-normal) var(--ease-out);
}

.testimonial-card__profile-link:hover {
  color: var(--color-link-hover);
  text-decoration-color: var(--color-link-hover);
}

.testimonial-card__linkedin-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.testimonial-card__role {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
}

/* ----------------------------------------------------------
   LOGO STRIP — Infinite ticker carousel
   ---------------------------------------------------------- */

/* Outer container — clips the scrolling track on both sides */
.logo-strip {
  width: 100%;
  overflow: hidden;
  padding: var(--space-12) 0;
}

.logo-strip__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-3);
  margin-bottom: var(--space-6);
}

/* Ticker tunnel — fade-out mask softens both edges */
.logo-strip__ticker {
  display: flex;
  overflow: hidden;
  width: 100%;
  user-select: none;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

/* Scrolling track — each clone fills one full viewport width before looping */
.logo-strip__track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  flex-shrink: 0;
  gap: var(--space-24);
  padding-right: var(--space-24); /* prevents the visible jump at loop reset */
  animation: ticker-scroll 25s linear infinite;
}

/* Pause animation on hover */
.logo-strip__ticker:hover .logo-strip__track {
  animation-play-state: running;
}

.logo-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Logos: desaturated and dimmed by default for visual restraint */
.logo-strip__item img {
  height: 32px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
  transition:
    opacity var(--duration-normal) var(--ease-out),
    filter  var(--duration-normal) var(--ease-out);
}

/* Reveal full color on hover */
.logo-strip__ticker:hover .logo-strip__item img {
  opacity: 1;
  filter: grayscale(0%);
}

/* Dark mode: invert dark logos to white */
[data-theme="dark"] .logo-strip__item img {
  filter: brightness(0) invert(1);
  opacity: 0.4;
}
[data-theme="dark"] .logo-strip__ticker:hover .logo-strip__item img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* translate3d forces GPU compositing for smooth 60fps scroll */
@keyframes ticker-scroll {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ----------------------------------------------------------
   CASE STUDY — Content sections
   ---------------------------------------------------------- */
.case-section {
  padding: var(--space-12) 0;
  min-width: 0; /* prevent flex item from expanding beyond case-content */
}
.case-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-section__header {
  margin-bottom: var(--space-8);
}

.case-section__number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-3);
  margin-bottom: var(--space-2);
}

.case-section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-1);
}

.case-section__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text-1);
  line-height: 1.5;
}

.case-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  min-width: 0; /* prevent overflow from intrinsic-width children */
}

/* Groups a subtitle + paragraph as a single prose block.
   Internal gap (8px) is tighter than the outer gap (24px) between items. */
.case-section__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.case-section__item--bg {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-6);
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-alt);
}

.case-section__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.case-section__body p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-text-2);
  max-width: 100%; /* override global p{max-width:70ch} — let layout control width */
}

/* Lead paragraph — large intro statement, overrides the base body style */
.case-lead__text {
  font-family: var(--font-body);
  font-size: var(--fs-body-xl);
  font-weight: 500;
  color: var(--color-text-1);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

.case-section__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.case-section__body ul li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--color-text-2);
}

/* Em-dash bullet using mono font — matches the design system's typographic voice */
.case-section__body ul li::before {
  content: '—';
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--color-text-3);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   CASE STUDY — Figure
   ---------------------------------------------------------- */
.cs-figure {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-normal);
  background-color: var(--color-bg-alt);
  text-align: center;
}

.cs-figure img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 180px; /* visible placeholder area while src is empty */
}

.cs-figure figcaption {
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  border-top: var(--border-thin);
}

/* Inline results block — glassmorphism metric cards + legend caption */
.case-section__results {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Three equal-width glass cards spanning the full container */
.case-section__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
@media (max-width: 640px) {
  .case-section__metrics { grid-template-columns: 1fr; }
}

/* Individual metric glass card */
.case-metric-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  background: rgba(255, 255, 255, 0.60);      /* no DS token — rgba transparency */
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
          backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.70); /* no DS token — rgba transparency */
  box-shadow:
    0 4px 16px rgba(13, 13, 15, 0.06),         /* no DS token — rgba transparency */
    inset 0 1px 0 rgba(255, 255, 255, 0.90);   /* no DS token — rgba transparency */
}
[data-theme="dark"] .case-metric-card {
  background: rgba(26, 26, 46, 0.52);          /* no DS token — rgba transparency */
  border-color: rgba(74, 74, 96, 0.32);        /* no DS token — rgba transparency */
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.22),            /* no DS token — rgba transparency */
    inset 0 1px 0 rgba(255, 255, 255, 0.05);   /* no DS token — rgba transparency */
}

/* Highlight card */
.highlight-card {
  width: 100%;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--color-bg-alt);
}

.highlight-card:hover {
  transform: translateY(-4px);
  transition:
    transform    var(--duration-slow) var(--ease-out),
    box-shadow   var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ancora);
}

[data-theme="dark"] .highlight-card h3{
  color: var(--color-solar);
}

.highlight-card p {
  font-weight: 700;
}

/* Legend — more specific selector to win over .case-section__body p */
.case-section__body .case-section__results-legend {
  font-family: var(--font-body);
  font-size:   var(--fs-body-sm);
  color:       var(--color-text-3);
  line-height: 1.5;
  text-align:  center;
  /* Visually centered under the three cards */
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Slot variant — empty placeholder box for images not yet available */
.cs-figure--slot {
  min-height: 260px;
  display: grid;
  place-items: center;
  background-color: var(--color-bg-alt);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cs-figure--slot::after {
  content: 'Image';
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-3);
}
.cs-figure--slot img { display: none; }

/* Bare variant — image + caption only, no card frame */
.cs-figure--bare {
  border: none;
  border-radius: 0;
  overflow: visible;
  background-color: transparent;
}
.cs-figure--bare img {
  border-radius: var(--radius-md);
}
.cs-figure--bare figcaption {
  border-top: none;
  padding: var(--space-3) 0;
  text-align: center;
}

/* Centered section header — number + title flush-centered above content */
.case-section__header--center {
  text-align: center;
}

/* ----------------------------------------------------------
   CASE STUDY — Persona card
   ---------------------------------------------------------- */
.persona {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

.persona__header {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-8);
  align-items: flex-start;
  border-bottom: var(--border-thin);
}

.persona__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--color-border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text-3);
}

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

.persona__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-text-1);
  line-height: 1.3;
}

.persona__role {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  margin-top: var(--space-1);
  margin-bottom: var(--space-4);
}

/* Two-column auto grid: dt in first col, dd in second */
.persona__meta {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-1);
  align-items: baseline;
}

.persona__meta dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
}

.persona__meta dd {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-2);
}

/* 2×2 grid of persona attribute sections */
.persona__body {
  display: grid;
  grid-template-columns: 1fr;
}

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

.persona__section {
  padding: var(--space-6) var(--space-8);
  border-bottom: var(--border-thin);
}

.persona__section:last-child { border-bottom: none; }

/* Bio + Goals span full width; Needs + Pains share the last row */
@media (min-width: 640px) {
  .persona__section:nth-child(-n+2)      { grid-column: 1 / -1; }
  .persona__section:nth-child(3)         { border-right: var(--border-thin); }
  .persona__section:nth-last-child(-n+2) { border-bottom: none; }
}

.persona__section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-3);
  margin-bottom: var(--space-4);
}

.persona__section-title svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.persona__section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.persona .persona__section li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--color-text-2);
}

.persona__section li::before {
  content: '–';
  font-family: var(--font-mono);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  flex-shrink: 0;
}

.persona .persona__section p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--color-text-2);
  max-width: none;
}

.persona__goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .persona__goal-grid { grid-template-columns: 1fr; }
}

.persona__goal-card {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background-color: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  line-height: 1.65;
  color: var(--color-text-2);
  text-align: left;
}

[data-theme="dark"] .persona__goal-card {
  background-color: var(--color-abismo);
  color: var(--color-text-1);
}

.persona__quotes {
  padding: var(--space-6) var(--space-8);
  border-top: var(--border-thin);
}

.persona__quotes-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-3);
  margin-bottom: var(--space-5);
}

.persona__quotes-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.persona__quotes-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (max-width: 640px) {
  .persona__quotes-list { grid-template-columns: 1fr; }
}

.persona .persona__quotes li::before { content: none; }

.persona__quote {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  background-color: var(--color-aurora-soft);
}

.persona__quotes-list .persona__quote:nth-child(4)    { background-color: var(--color-success-soft); }
.persona__quotes-list .persona__quote:nth-child(n+5)  { background-color: var(--color-error-soft); }

.persona__quote p {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--color-text-2);
  font-style: italic;
  max-width: none;
}

/* ----------------------------------------------------------
   HEADER STATUS BADGE — floating construction indicator
   position: absolute inside .site-header (position: fixed),
   so it hangs below the pill on the right without disrupting layout.
   ---------------------------------------------------------- */
.header__status-badge {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: var(--space-6);
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  white-space: nowrap;

  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;

  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text-2);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

[data-theme="dark"] .header__status-badge {
  background: rgba(26, 26, 46, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

/* Animated amber pulse dot */
.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ambar);
  flex-shrink: 0;
  animation: status-pulse 2.4s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ----------------------------------------------------------
   CASE STUDY — Lead split (text + image side by side)
   ---------------------------------------------------------- */

.case-lead {
  display: flex;
  align-items: center;
}
.case-lead .case-lead__text {
  font-size: var(--fs-body-xl);
  margin-bottom: 0;
}

.case-lead__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (max-width: 768px) {
  .case-lead__split { grid-template-columns: 1fr; }
}
/* Slightly larger font size within the split context */
.case-lead__split .case-lead__text {
  font-size: var(--fs-body-xl);
}

/* ----------------------------------------------------------
   CASE STUDY — Result cards (glassmorphism + icon + hover lift)
   ---------------------------------------------------------- */
.result-card {
  padding:        var(--space-6);
  border-radius:  var(--radius-lg);
  display:        flex;
  flex-direction: column;
  gap:            var(--space-3);
  /* Glassmorphism — same recipe as site nav */
  background: rgba(255, 255, 255, 0.60);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
          backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.70);
  box-shadow:
    0 4px 16px rgba(13, 13, 15, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  /* Hover lift */
  transition:
    transform    var(--duration-slow) var(--ease-out),
    box-shadow   var(--duration-slow) var(--ease-out),
    border-color var(--duration-slow) var(--ease-out);
}
.result-card:hover {
  transform:    translateY(-4px);
  box-shadow:
    0 12px 32px rgba(13, 13, 15, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  border-color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .result-card {
  background: rgba(26, 26, 46, 0.52);
  border-color: rgba(74, 74, 96, 0.32);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .result-card:hover {
  transform:    translateY(-4px);
  border-color: rgba(245, 200, 66, 0.30);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.38),
    0 0   0  1px rgba(245, 200, 66, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Icon chip — Âncora blue in light, Solar gold tint in dark */
.result-card__icon {
  width:         40px;
  height:        40px;
  border-radius: var(--radius-sm);
  display:       grid;
  place-items:   center;
  flex-shrink:   0;
  background-color: var(--color-ceu);
  color:            var(--color-ancora);
}
[data-theme="dark"] .result-card__icon {
  background-color: rgba(245, 200, 66, 0.14);
  color:            var(--color-solar);
}

.result-card__title {
  font-family:    var(--font-display);
  font-size:      var(--fs-h3);
  font-weight:    700;
  color:          var(--color-text-1);
  line-height:    1.3;
}
.result-card__body {
  font-family: var(--font-body);
  font-size:   var(--fs-body-sm);
  line-height: 1.70;
  color:       var(--color-text-2);
}

/* ----------------------------------------------------------
   LIGHTBOX — full-screen image zoom modal
   ---------------------------------------------------------- */

/* Zoomable image hint */
.is-zoomable {
  cursor: zoom-in;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.is-zoomable:hover { opacity: 0.88; }

/* Overlay shell — covers the viewport */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity    var(--duration-slow) var(--ease-out),
    visibility 0s linear           var(--duration-slow);
}
.lightbox[hidden] { display: none; }

/* Open state */
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity    var(--duration-slow) var(--ease-out),
    visibility 0s linear           0s;
}

/* Frosted dark backdrop */
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 15, 0.88);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

/* Content panel — image + caption, animated scale */
.lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: min(92vw, 1280px);
  /* Closed: slightly shrunk and dropped */
  transform: scale(0.92) translateY(12px);
  transition: transform var(--duration-slower) var(--ease-out);
}
.lightbox.is-open .lightbox__panel {
  transform: scale(1) translateY(0);
}

/* Image */
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.60);
}

/* Caption */
.lightbox__caption {
  font-family: var(--font-body);
  font-size:   var(--fs-body-sm);
  color:       rgba(255, 255, 255, 0.55);
  text-align:  center;
  max-width:   60ch;
  line-height: 1.5;
}

/* Close button — top-right corner of the panel */
.lightbox__close {
  position: absolute;
  top:   calc(-1 * var(--space-10));
  right: 0;
  display: grid;
  place-items: center;
  width:  36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.80);
  cursor: pointer;
  transition:
    background var(--duration-normal) var(--ease-out),
    color      var(--duration-normal) var(--ease-out);
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-nuvem);
}
.lightbox__close:focus-visible {
  outline: 2px solid var(--color-solar);
  outline-offset: 3px;
}

/* Reduced-motion: skip the scale, keep the fade */
@media (prefers-reduced-motion: reduce) {
  .lightbox__panel { transform: none !important; transition: none !important; }
}

/* ----------------------------------------------------------
   BRAND LIST
   ---------------------------------------------------------- */
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-tinta);
}

.brand-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.brand-list li::before {
  content: "→";
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--color-ancora);
  margin-top: 2px;
  flex-shrink: 0;
}

[data-theme="dark"] .brand-list {
  color: var(--color-superficie);
}

[data-theme="dark"] .brand-list li::before {
  color: var(--color-solar);
}

/* ----------------------------------------------------------
   BANNER
   ---------------------------------------------------------- */
.banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--fs-body-sm);
  font-family: var(--font-body);
  line-height: 1.4;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: var(--space-6);
}

.banner--wip {
  background-color: var(--color-aurora-soft);
  color: var(--color-crepusculo);
  border: 1px solid var(--color-ambar);
}

[data-theme="dark"] .banner--wip {
  background-color: var(--color-aurora-soft);
  color: var(--color-madrugada);
  border-color: var(--color-ambar);
}

.banner__icon {
  flex-shrink: 0;
  font-size: var(--fs-body);
}

.banner__text {
  flex: 1;
}

/* ----------------------------------------------------------
   FIGURE — BALANCED
   Image matches the natural height of its sibling text column.
   Requires the parent grid to use align-items: stretch (layout-2col
   already does this). Do not set a fixed height on this element —
   height: 100% only works because the grid stretches the cell.
   ---------------------------------------------------------- */
.figure-balanced {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  max-height: 480px;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  gap: var(--space-2);
}

.figure-balanced img {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  object-position: center top;
  border-radius: inherit;
}

.figure-balanced figcaption {
  flex-shrink: 0;
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .figure-balanced {
    height: 280px;
    align-self: auto;
  }
}
