
/* ============================================================
   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 (Phosphor — regular weight, filled silhouette)
   ---------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
}

/* Primary */
.btn--primary {
  background-color: var(--color-bg-neutral-default);
  color: var(--color-text-on-neutral);
  border: 1px solid var(--color-bg-neutral-default);
}
.btn--primary:hover {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
  color: var(--color-text-on-neutral);
}

/* 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);
}

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

/* 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-disabled);
  color: var(--color-text-on-disabled);
  border-color: var(--color-border-disabled);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* Icon color roles (Figma: Hope · Icon / Icon/Color) */
.icon--default { color: var(--icon-color-default); }
.icon--secondary { color: var(--icon-color-secondary); }
.icon--tertiary { color: var(--icon-color-tertiary); }
.icon--on-neutral { color: var(--icon-color-on-neutral); }
.icon--brand-hover { color: var(--icon-color-brand-hover); }
.icon--disabled { color: var(--icon-color-disabled); }
.icon--danger { color: var(--icon-color-danger); }
.icon--positive { color: var(--icon-color-positive); }
.icon--warning { color: var(--icon-color-warning); }
.icon--info { color: var(--icon-color-info); }

.icon--title {
  color: var(--color-border-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--anchor {
  background-color: var(--color-bg-brand-secondary);
  color: var(--color-text-brand-secondary);
}

.badge--solar {
  background-color: var(--color-bg-accent-secondary);
  color: var(--color-text-accent-secondary);
}

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

.badge--draft {
  background-color: var(--color-bg-neutral-secondary);
  color: var(--color-text-neutral-secondary);
  border: var(--border-thin);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
[data-theme="dark"] .badge--draft {
  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-abyss);
}

.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);
}

/* Visual half as its own link, sibling to the footer's "View case study"
   button, so the image is clickable without nesting an anchor inside one.
   display:contents keeps the anchor out of the box tree entirely, so the
   canvas below stays a direct flex item of .case-card__visual and keeps
   the exact sizing (flex:1, aspect-ratio, the desktop fixed height) it
   had before this link wrapped it. */
.case-card__visual-link {
  display: contents;
}
.case-card__visual-link .case-card__canvas {
  cursor: pointer;
}
.case-card__visual-link:hover .case-card__img--light,
.case-card__visual-link:hover .case-card__img--dark {
  transform: scale(1.04);
  opacity: 0.92;
}

/* 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-body);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  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.3;
  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-body);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-accent);
}
.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-disabled);
  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__canvas {
  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
   Full-bleed, flat band per case study (Figma: Portfolio file, node
   43:3926, adapted to behave like the Hero section). No glass material,
   no border, no rounded corners, matching Hero's own flat full-width
   look. Fixed 381px content column at desktop, company/year merged into
   one meta line, centered tags below the image, impact metrics,
   content-hugging CTA button.
   ====================================================================== */

/* ── Outer band — full-bleed width at every breakpoint, matching the
   Hero/sub-header full-bleed technique: this element's own left/right
   edges break out of the capped .container to touch the browser edges.
   --color-bg is the same token Hero uses for its own background; there
   is no separate per-case color decision recorded anywhere for this
   section, so all four cards share it. ─────────────────────────────── */
.case-card--glass {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--color-bg);
  border: none;
  border-radius: 0;
  transition: background-color var(--duration-slower) var(--ease-out);
}
/* Blocks the base .case-card:hover box-shadow (lower specificity, still
   matches since this element carries both classes) from showing on a
   flat full-bleed band that no longer has a shadow-bearing surface. */
.case-card--glass:hover {
  box-shadow: none;
}

/* ── Full viewport height, desktop only, matching how Hero clears the
   fixed site header (padding-top: var(--header-height)) and fills the
   screen (min-height: 100dvh). Scoped to the breakpoint where the
   content column locks to its fixed Figma width and the image gets a
   fixed height (see below), so tablet and phone keep their existing
   normal-flow, auto-height stacked layout untouched. ────────────────── */
@media (min-width: 1024px) {
  .case-card--glass {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    padding-top: var(--header-height);
  }

  /* The first card sits directly below the "Featured Projects" header,
     not scrolled to on its own, so it does not need this header-
     clearance padding, or the full-viewport centering that comes with
     it (that centering leaves extra empty space above the card's
     visible content, on top of the padding, and that space grows with
     the viewport's height). Both were stacking with the header's own
     margin-bottom above, producing a gap far larger than the intended
     --space-20 and one that changed with browser window height. Later
     cards keep the full-viewport slide treatment unchanged. */
  .cases-grid > .case-card:first-child {
    min-height: 0;
    padding-top: 0;
    justify-content: flex-start;
  }
}

/* ── Inner content — capped width, standard page gutter (--space-20),
   centered, holds the visual/content column split. This is what keeps
   the card's text and image aligned with the rest of the page's content
   edges (the Featured Projects title above it) now that the outer band
   itself is full-bleed. ─────────────────────────────────────────────── */
/* width/padding here matches .container's own mobile-to-desktop
   formula exactly (--space-6 gutter on mobile, switching to the
   capped-width-plus-minimum-gutter formula at 768px), instead of
   using the desktop --space-20 gutter unconditionally. That mismatch
   was giving the card roughly 56px of extra inset on each side versus
   the "Featured Projects" title above it, which uses .container. */
.case-card__inner {
  width: 100%;
  max-width: 1120px;
  padding: 0 var(--space-6);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .case-card__inner {
    width: min(var(--content-max-width), calc(100% - 2 * var(--space-20)));
    max-width: none;
    padding: 0;
    flex-direction: row;
    /* Column gap per Figma (node 43:3926): --space-10 (40px), not the
       base --space-4 used for the mobile stacked gap. */
    gap: var(--space-10);
  }

  /* Content column first (left), visual column second (right), per Figma
     (node 43:3926). Markup order is visual then content (image column
     stays first in the DOM for a sane reading order without a visible
     image), so the swap is done here with order rather than in the
     HTML. Scoped to this row-layout breakpoint only, the stacked
     mobile order below it is unaffected. */
  .case-card--glass .case-card__content {
    order: 1;
  }
  .case-card--glass .case-card__visual {
    order: 2;
  }
}

/* ── Visual column — canvas + tags stacked underneath ────────────────── */
/* background-color:transparent overrides the base .case-card__visual gray
   fill (var(--color-bg-alt)). That fill is meant for the base card, where
   the visual is a padded inset box; here the canvas already fills the
   column full-bleed, so the base color only ever showed as a gray band
   behind the tag row below it. The tags sit directly on the page
   background instead. */
.case-card--glass .case-card__visual {
  display: flex;
  flex-direction: column;
  /* Overrides the base .case-card__visual align-items:flex-end and
     justify-content:center (meant for the base card's row layout, where
     they ground a single mockup image). Left as-is here, both canvas and
     the tag row below it shrink to their own content width and get
     pushed to one side instead of spanning the column, which is why the
     tag row was not actually centered under the image. */
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--space-4);
  background-color: transparent;
}
[data-theme="dark"] .case-card--glass .case-card__visual {
  background-color: transparent;
}

/* ── Canvas — full-bleed image panel, no gray inset box ──────────────── */
/* display:block + position:relative gives a clean stacking context for the
   full-bleed images. aspect-ratio holds a sensible shape on mobile/tablet;
   at desktop (see below) it's dropped so the panel fills the card's full
   height instead, per Figma (node 43:3926 visual column: flex:1, no fixed
   ratio). */
.case-card--glass .case-card__canvas {
  display: block;
  position: relative;
  width: 100%;
  flex: 1;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 18% 8%,  var(--color-sky)    0%, transparent 55%),
    radial-gradient(120% 120% at 88% 16%, var(--color-aurora)  0%, transparent 52%),
    linear-gradient(150deg, var(--color-sky) 0%, var(--color-tide) 100%);
}
@media (min-width: 768px) {
  .case-card--glass .case-card__canvas { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  /* No aspect-ratio at desktop, and no longer flex:1 (grow to whatever
     height the row happens to be): a fixed height instead, so the image
     stops growing or shrinking with content, sized to comfortably fit
     within the card's own fixed viewport height (min-height: 100dvh
     minus the fixed header and --space-32 of top/bottom breathing room,
     see .case-card--glass above). width:100% is explicit, not left to
     cross-axis stretch alone: with no in-flow content (the images
     inside are position:absolute), the box has nothing else to size
     its width from and can otherwise collapse to 0. */
  .case-card--glass .case-card__canvas {
    aspect-ratio: unset;
    width: 100%;
    height: calc(100dvh - var(--header-height) - var(--space-32));
    flex: none;
  }
}
[data-theme="dark"] .case-card--glass .case-card__canvas {
  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 */
}

/* ── Content stack ──────────────────────────────────────────────────── */
/* No horizontal padding: with the card's own outer padding gone, this is
   what keeps the text flush with the card's left edge (and so with the
   Featured Projects title above it). Top/bottom padding and the gap
   between children are untouched.

   justify-content: flex-start groups title, meta, description,
   separator, metrics and button as one tight block and top-aligns that
   block within the column's full height, so the title lines up with
   the top of the image beside it. Leftover space from a shorter
   description (Shell Box, New Relic) collects below the button instead
   of being split above and below the block. */
.case-card--glass .case-card__content {
  background-color: transparent;
  flex: 1;
  padding: var(--space-2) 0 var(--space-3);
  gap:     var(--space-3);
  justify-content: flex-start;
}
/* Desktop: content column locks to the Figma spec's fixed 381px, image
   column takes the rest. Below this, content and image keep sharing the
   row 50/50 (existing tablet fallback), since the fixed width is only
   specified for the desktop frame. Comes after the flex:1 rule above so
   it wins on equal specificity. */
@media (min-width: 1024px) {
  .case-card--glass .case-card__content {
    width: 381px;
    flex: 0 0 381px;
  }
  .case-card--glass .case-card__visual {
    flex: 1 1 0%;
  }
}

/* ── Title — bold, pipe-separated ───────────────────────────────────── */
.case-card--glass .case-card__title {
  font-size:      var(--fs-h2);
  letter-spacing: -0.01em;
  line-height:    1.3;
}
.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-body);
  font-size:      var(--fs-body-sm);
  letter-spacing: 0.01em;
  color:          var(--color-text-3);
  margin-top:     calc(-1 * var(--space-1));
}

/* Company + year merged into one plain line under the title, per Figma
   (43:3926): "Raízen • 2026" instead of a separate floating year badge. */
.case-card--glass .case-card__meta {
  font-size:  var(--fs-body);
  color:      var(--color-text-2);
  margin-top: 0;
}

/* ── Tags — centered row underneath the canvas, not in the text column ── */
.case-card--glass .case-card__tags {
  justify-content: center;
}

/* ── 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);
  line-height: 1.75;
  color:       var(--color-text-1);
}
/* Clamped to a fixed number of lines, desktop only, matching the card's
   own fixed viewport height (see .case-card--glass above): the full
   text stays in the DOM for SEO and screen readers, only the visual
   display truncates with an ellipsis past this many lines. Same value
   on every card regardless of how long each case's actual description
   is, so the row of title, meta, description, separator, metrics and
   button always takes up the same vertical space next to the image.

   7 lines, measured against the actual available height (content
   column height minus title, meta, separator, metrics and the tightened
   button gap, all measured live, not guessed) and against the longest
   of the four descriptions: Shell Box's full text (not Dotz's, which
   turned out shorter) wraps to exactly 7 lines at this column width, so
   7 shows it in full with no truncation and still leaves comfortable
   slack in the column before the block needs recentring. */
@media (min-width: 1024px) {
  .case-card--glass .case-card__lead {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* Deliberate accent flip, not a stray duplicate: inside .case-card--glass,
   dark mode swaps .badge--anchor from its normal Anchor-blue treatment to
   Solar gold (documented in design-system.html's case-card--glass section).
   These values match --color-bg-accent-secondary/--color-text-accent-secondary
   because that IS what "Solar in dark mode" is — this rule borrows those
   values to recolor the Ancora badge, it isn't reachable via the shared
   token (badge--anchor itself stays on brand-secondary/blue everywhere else,
   e.g. in the plain .case-card and in design-system.html's badge showcase).
   Same pattern as the Phase 5 --color-accent flip (metric__value,
   highlight-card h3, etc.) — scope it there if this ever gets consolidated. */
[data-theme="dark"] .case-card--glass .badge--anchor {
  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 ────────────────────────────────────────────────────────── */
/* Fixed --space-8 (32px) total gap from the metrics row above, per
   Figma (node 43:3926), not margin-top: auto. The button now stays
   grouped with the rest of the content as one block (see
   justify-content: center on .case-card__content above) instead of
   being pushed to the bottom of the column regardless of how much
   space is left.

   padding-top is --space-8 minus --space-3, not --space-8 outright:
   .case-card__content already puts a --space-3 flex gap between every
   child including this one, so this padding only needs to make up the
   remaining distance to reach --space-8 total, not add on top of it. */
.case-card--glass .case-card__footer {
  padding-top: calc(var(--space-8) - var(--space-3));
}
/* Button sizes to its own content (label plus arrow icon), the default
   .btn behavior (display: inline-flex), left-aligned in the footer. */


/* ----------------------------------------------------------
   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/Utilities/Icon Chip — shared with .result-card__icon */
  background-color: var(--color-bg-icon-chip);
  color: var(--color-text-brand-primary);
  flex: 0 0 auto;
}
.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.4;
  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-text-brand-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-text-brand-primary) 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-text-brand-primary-hover);
  text-decoration-color: var(--color-text-brand-primary-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-body);
  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-body);
  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.3;
  letter-spacing: -0.01em;
  color: var(--color-text-1);
}

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

.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);
  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-body);
  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;
  /* Glassmorphism — unified Material recipe (Glass/rest), non-interactive so no hover state */
  background: var(--color-material-bg);
  -webkit-backdrop-filter: var(--blur-glass);
          backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-material-border);
  box-shadow:
    var(--color-material-shadow-drop),
    inset 0 1px 0 var(--color-material-shadow-inset);
}
[data-theme="dark"] .case-metric-card {
  background: var(--color-material-bg);
  border-color: var(--color-material-border);
  box-shadow:
    var(--color-material-shadow-drop),
    inset 0 1px 0 var(--color-material-shadow-inset);
}

/* 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-h1);  /* Figma: Heading/H1 (32px) */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-accent);
}

.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-body);
  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-body);
  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.4;
}

.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-body);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  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-body);
  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-body);
  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-abyss);
  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-body);
  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-bg-accent-soft);
}

.persona__quotes-list .persona__quote:nth-child(4)    { background-color: var(--color-bg-positive-soft); }
.persona__quotes-list .persona__quote:nth-child(n+5)  { background-color: var(--color-bg-danger-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-body);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;

  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-amber);
  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 — unified Material recipe (Glass/rest) */
  background: var(--color-material-bg);
  -webkit-backdrop-filter: var(--blur-glass);
          backdrop-filter: var(--blur-glass);
  border: 1px solid var(--color-material-border);
  box-shadow:
    var(--color-material-shadow-drop),
    inset 0 1px 0 var(--color-material-shadow-inset);
  /* 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:
    var(--color-material-shadow-drop-hover),
    inset 0 1px 0 var(--color-material-shadow-inset);
  border-color: var(--color-material-border-hover);
}
[data-theme="dark"] .result-card {
  background: var(--color-material-bg);
  border-color: var(--color-material-border);
  box-shadow:
    var(--color-material-shadow-drop),
    inset 0 1px 0 var(--color-material-shadow-inset);
}
[data-theme="dark"] .result-card:hover {
  transform:    translateY(-4px);
  border-color: var(--color-material-border-hover);
  box-shadow:
    var(--color-material-shadow-drop-hover),
    inset 0 1px 0 var(--color-material-shadow-inset);
}

/* Icon chip — Background/Utilities/Icon Chip (shared with .skill-card__icon) */
.result-card__icon {
  width:         40px;
  height:        40px;
  border-radius: var(--radius-sm);
  display:       grid;
  place-items:   center;
  flex-shrink:   0;
  background-color: var(--color-bg-icon-chip);
  color:            var(--color-text-brand-primary);
}

.result-card__title {
  font-family:    var(--font-display);
  font-size:      var(--fs-h3);
  font-weight:    700;
  color:          var(--color-text-1);
  line-height:    1.4;
}
.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: var(--color-bg-scrim-strong);
  -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-cloud);
}
.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-ink);
}

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

.brand-list li::before {
  content: "→";
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-anchor);
  margin-top: 2px;
  flex-shrink: 0;
}

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

[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-bg-accent-soft);
  color: var(--color-dusk);
  border: 1px solid var(--color-amber);
}

[data-theme="dark"] .banner--wip {
  background-color: var(--color-bg-accent-soft);
  color: var(--color-daybreak);
  border-color: var(--color-amber);
}

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