/* ============================================================
   HOPE DESIGN SYSTEM: hope.css
   GENERATED FILE. Do not edit by hand.
   Built by scripts/build-css.mjs (npm run css:build) from 65 source files:
   tokens, reset, components/*, site/*. Edit the sources, then rebuild.
   css/auth.css (loaded by js/auth.js) and css/output.css (Tailwind) stay separate.
   ============================================================ */

/* ===== css/tokens.css ===== */
/* ============================================================
   HOPE DESIGN SYSTEM — tokens.css
   v2.20.7 · November 2026
   Source of truth: Figma Foundation for VALUES; DESIGN.md
   for prose and rules (GOVERNANCE.md §7)
   ============================================================ */

:root {
  /* ----------------------------------------------------------
     COLORS — Solar Family
     Warm, luminous, hopeful
     ---------------------------------------------------------- */
  --color-aurora:   #FEF8E0;
  --color-daybreak: #FAE19A;
  --color-solar:    #F5C842; /* ★ BRAND ACCENT */
  --color-amber:    #C49A1F;
  --color-dusk:     #8B6914;

  /* ----------------------------------------------------------
     COLORS — Anchor Family
     Cool, precise, structural
     ---------------------------------------------------------- */
  --color-sky:      #E8F0F9;
  --color-tide:     #8CB4E0;
  --color-anchor:   #1C5FA8; /* ★ BRAND ACCENT */
  --color-deep:     #144278;
  --color-abyss:    #1A1A2E;

  /* ----------------------------------------------------------
     COLORS — Neutrals
     ---------------------------------------------------------- */
  --color-cloud:       #FFFFFF;
  --color-surface:     #F7F7F9;
  --color-border-base: #E2E2E8;
  --color-muted:       #5F5F6E; /* adjusted for WCAG AA */
  --color-shadow:      #3D3D45;
  --color-ink:         #0D0D0F;

  /* ----------------------------------------------------------
     COLORS — Functional
     ---------------------------------------------------------- */
  --color-success:      #4A9F6B;
  --color-bg-positive-secondary: rgba(74, 159, 107, 0.12);  /* 8.6:1 on white */
  --color-warning:      #C47A1F;  /* Functional primitive only. The Warning component family uses Solar (13/11/2026) */
  --color-error:        #B83434;
  --color-bg-danger-secondary:   rgba(184, 52, 52, 0.10);   /* 8.3:1 on white */
  --color-bg-accent-tertiary:  var(--color-aurora);        /* 9.1:1 on white */
  --color-info:        #634590;
  --color-celebrate:   #F5A8C0;

  /* Contrast variants (Figma Foundation v2.2): same hue as the
     functional color, adjusted so text passes WCAG 1.4.3 (4.5:1). */
  --color-success-deep: #2A7347;  /* success text on light: 5.77:1 on white */
  --color-warning-deep: #94540A;  /* warning text on light: 5.94:1 on white */
  --color-error-light:  #F28585;  /* error text/border on dark: 6.88:1 on abyss */
  --color-info-light:   #B89EDB;  /* info text on dark: 7.3:1 on abyss */
  --color-error-deep:   #7a2020;  /* Destructive hover fill (Figma Core, Button) */  /* TODO dark mode */

  /* ----------------------------------------------------------
     COLORS — Night Family (dark-mode ramp)
     ---------------------------------------------------------- */
  --color-night-800:          #242438;
  --color-night-700:          #2E2E40;
  --color-night-600:          #4A4A60;
  --color-night-400:          #9090A8;
  --color-night-300:          #B4B4C8;
  --color-night-accent-hover: #FFD96B;
  --color-night-aurora-soft:  #2A2618;
  --color-night-success-soft: #162418;
  --color-night-error-soft:   #261616;
  --color-night-500:          #69697E;  /* disabled text/icon/stroke and control outline in dark mode */
  --color-night-warning-soft: #2A1E10;
  --color-night-info-soft:    #1E182A;

  /* ----------------------------------------------------------
     SURFACES — Light mode (default)
     ---------------------------------------------------------- */
  --color-bg:            var(--color-cloud);
  --color-bg-alt:        var(--color-surface);
  --color-bg-inverse:    var(--color-abyss);
  --color-border:        var(--color-border-base);
  --color-border-strong: var(--color-muted);
  --color-border-input:  var(--color-night-400);  /* Figma Border/Utilities/Input: 3.12:1 on white (WCAG 1.4.11); --color-border is 1.29:1 */
  --color-text-1:        var(--color-ink);
  --color-text-2:        var(--color-shadow);
  --color-text-3:        var(--color-muted);
  --color-text-inverse:  var(--color-cloud);
  --color-text-brand-default:          var(--color-anchor);
  --color-text-brand-hover:    var(--color-deep);
  --color-border-focus-ring:    var(--color-anchor);
  --color-accent:               var(--color-anchor);

  /* ----------------------------------------------------------
     STATE + STATUS TOKENS — Light mode (Figma Foundation v2.2)
     Disabled comes from tokens, never from opacity.
     ---------------------------------------------------------- */
  --color-bg-disabled-default:       var(--color-border-base);
  --color-text-disabled-default:     var(--color-night-400);
  --color-text-disabled-inverse:  var(--color-night-400);
  --color-border-disabled-default:   var(--color-border-base);

  --color-bg-scrim: rgba(13, 13, 15, 0.5);  /* behind modals/drawers; not the glass overlay */
  --color-bg-scrim-strong: rgba(13, 13, 15, 0.88);  /* image focus (Lightbox); same in light and dark. Use this token, never write the rgba by hand. */

  /* Warning is in the Solar family (Figma, 13/11/2026). Dusk on Aurora is 4.78:1.
     Amber on Aurora is about 2.5:1: accepted, the border is decorative. */
  --color-bg-warning-default:       var(--color-solar);
  --color-bg-warning-secondary:  var(--color-aurora);
  --color-text-warning-default:     var(--color-dusk);
  --color-text-warning-inverse:  var(--color-ink);
  --color-border-warning-default:   var(--color-amber);

  --color-bg-info-default:          var(--color-info);
  --color-bg-info-secondary:     rgba(99, 69, 144, 0.10);
  --color-text-info-default:        var(--color-info);
  --color-text-info-inverse:     var(--color-cloud);
  --color-border-info-default:      var(--color-info);

  --color-text-positive-default:     var(--color-success-deep);
  --color-text-danger-default:       var(--color-error);
  --color-border-positive-default:   var(--color-success);
  --color-border-danger-default:     var(--color-error);

  /* ----------------------------------------------------------
     ICON COLOR — Figma "Hope · Icon" / Icon/Color (10 modes).
     Each role aliases a semantic text token, so dark mode follows
     automatically. Icons still inherit currentColor by default;
     use .icon--<role> (css/components/icon.css) to pick a role.
     ---------------------------------------------------------- */
  --icon-color-default:     var(--color-text-1);
  --icon-color-secondary:   var(--color-text-2);
  --icon-color-tertiary:    var(--color-text-3);
  --icon-color-neutral:     var(--color-text-neutral-default);  /* Figma mode "Neutral" (was "On Neutral") */
  --icon-color-brand-hover: var(--color-text-brand-hover);
  --icon-color-disabled:    var(--color-text-disabled-default);
  --icon-color-danger:      var(--color-text-danger-default);
  --icon-color-positive:    var(--color-text-positive-default);
  --icon-color-warning:     var(--color-text-warning-default);
  --icon-color-info:        var(--color-text-info-default);

  /* ----------------------------------------------------------
     COMPONENT TOKENS — Light mode (default)
     ---------------------------------------------------------- */
  --color-bg-neutral-default:     var(--color-ink);
  --color-bg-neutral-hover:       var(--color-shadow);
  --color-text-neutral-default:   var(--color-cloud);

  --color-bg-brand-secondary:     var(--color-sky);
  --color-bg-brand-tertiary:      rgba(232, 240, 249, 0.40);  /* Sky at 40%. Reserved: no component uses it yet */
  --color-text-brand-secondary:   var(--color-deep);

  --color-bg-accent-secondary:    var(--color-aurora);
  --color-text-accent-default:  var(--color-dusk);

  --color-bg-neutral-secondary:   var(--color-night-800);  /* was Surface; Foundation rename 2026-11-20 */
  --color-text-neutral-secondary: var(--color-night-300);  /* was Muted; Foundation rename 2026-11-20 */

  --color-bg-brand-strong:        var(--color-abyss);
  --color-border-accent-default:   var(--color-solar);
  --color-text-brand-strong-inverse:   var(--color-cloud);

  --color-bg-icon-chip: var(--color-sky);

  /* ----------------------------------------------------------
     FOUNDATION RENAME 2026-11-20 — new semantic tokens
     Grammar: Property/Role/Level[ Modifier]. Level: Default, Secondary,
     Tertiary, Strong. Inverse = text/icon/border on the role's contrasting
     fill. Values below are the Light value; dark mode is parked, so the
     dark block does not override them yet unless stated.
     ---------------------------------------------------------- */
  /* Neutral */
  --color-bg-neutral-tertiary:    var(--color-night-700);  /* TODO dark mode */
  --color-bg-neutral-inverse:     #ffffff;
  --color-text-neutral-tertiary:  var(--color-night-400);  /* TODO dark mode */
  --color-text-neutral-inverse:   #0d0d0f;
  --color-border-neutral-default: var(--color-night-700);  /* TODO dark mode */
  --color-border-neutral-strong:  var(--color-night-500);  /* TODO dark mode */

  /* Brand. Light and Dark values from the Foundation snapshot of 2026-11-20 (dark overrides in [data-theme="dark"]) */
  --color-bg-brand-default:       var(--color-anchor);
  --color-bg-brand-hover:         var(--color-deep);
  --color-text-brand-inverse:     var(--color-cloud);

  /* Accent */
  --color-bg-accent-default:      var(--color-solar);
  --color-bg-accent-hover:        var(--color-amber);
  --color-text-accent-inverse:    var(--color-ink);

  /* Danger and Positive */
  --color-bg-danger-default:      var(--color-error);
  --color-bg-danger-hover:        var(--color-error-deep); /* TODO dark mode */
  --color-text-danger-inverse:    var(--color-cloud);
  --color-bg-positive-default:    var(--color-success);
  --color-text-positive-inverse:  var(--color-cloud);

  /* Focus ring (outline, all interactive components) */
  --focus-ring-width: 2px;
  --focus-ring-gap:   2px;

  /* ----------------------------------------------------------
     DEPRECATED ALIASES (2026-11, remove in a later MAJOR).
     Old names keep working and point at the new names. Do not use them in
     new code. Defined only in :root: the dark block overrides the new names
     on the same element, so the aliases follow dark mode.
     ---------------------------------------------------------- */
  --color-text-on-neutral:           var(--color-text-neutral-default);       /* deprecated 2026-11, use --color-text-neutral-default */
  --color-text-brand-primary:        var(--color-text-brand-default);         /* deprecated 2026-11, use --color-text-brand-default */
  --color-text-brand-primary-hover:  var(--color-text-brand-hover);           /* deprecated 2026-11, use --color-text-brand-hover */
  --color-text-on-brand-strong:      var(--color-text-brand-strong-inverse);  /* deprecated 2026-11, use --color-text-brand-strong-inverse */
  --color-bg-accent-soft:            var(--color-bg-accent-tertiary);         /* deprecated 2026-11, use --color-bg-accent-tertiary */
  --color-text-accent-secondary:     var(--color-text-accent-default);        /* deprecated 2026-11, use --color-text-accent-default */
  --color-border-accent-strong:      var(--color-border-accent-default);      /* deprecated 2026-11, use --color-border-accent-default */
  --color-bg-danger-soft:            var(--color-bg-danger-secondary);        /* deprecated 2026-11, use --color-bg-danger-secondary */
  --color-text-error:                var(--color-text-danger-default);        /* deprecated 2026-11, use --color-text-danger-default */
  --color-border-error:              var(--color-border-danger-default);      /* deprecated 2026-11, use --color-border-danger-default */
  --color-bg-positive-soft:          var(--color-bg-positive-secondary);      /* deprecated 2026-11, use --color-bg-positive-secondary */
  --color-text-success:              var(--color-text-positive-default);      /* deprecated 2026-11, use --color-text-positive-default */
  --color-border-success:            var(--color-border-positive-default);    /* deprecated 2026-11, use --color-border-positive-default */
  --color-bg-warning:                var(--color-bg-warning-default);         /* deprecated 2026-11, use --color-bg-warning-default */
  --color-bg-warning-soft:           var(--color-bg-warning-secondary);       /* deprecated 2026-11, use --color-bg-warning-secondary */
  --color-text-warning:              var(--color-text-warning-default);       /* deprecated 2026-11, use --color-text-warning-default */
  --color-text-on-warning:           var(--color-text-warning-inverse);       /* deprecated 2026-11, use --color-text-warning-inverse */
  --color-border-warning:            var(--color-border-warning-default);     /* deprecated 2026-11, use --color-border-warning-default */
  --color-bg-info:                   var(--color-bg-info-default);            /* deprecated 2026-11, use --color-bg-info-default */
  --color-bg-info-soft:              var(--color-bg-info-secondary);          /* deprecated 2026-11, use --color-bg-info-secondary */
  --color-text-info:                 var(--color-text-info-default);          /* deprecated 2026-11, use --color-text-info-default */
  --color-text-on-info:              var(--color-text-info-inverse);          /* deprecated 2026-11, use --color-text-info-inverse */
  --color-border-info:               var(--color-border-info-default);        /* deprecated 2026-11, use --color-border-info-default */
  --color-bg-disabled:               var(--color-bg-disabled-default);        /* deprecated 2026-11, use --color-bg-disabled-default */
  --color-text-disabled:             var(--color-text-disabled-default);      /* deprecated 2026-11, use --color-text-disabled-default */
  --color-text-on-disabled:          var(--color-text-disabled-inverse);      /* deprecated 2026-11, use --color-text-disabled-inverse */
  --color-border-disabled:           var(--color-border-disabled-default);    /* deprecated 2026-11, use --color-border-disabled-default */
  --icon-color-on-neutral:           var(--icon-color-neutral);               /* deprecated 2026-11, use --icon-color-neutral */

  /* ----------------------------------------------------------
     MATERIAL — unified glassmorphism recipe
     Figma effect styles: Glass/rest = --blur-glass +
     --color-material-shadow-drop + inset highlight; Glass/hover =
     --blur-glass + --color-material-shadow-drop-hover + inset highlight.
     ---------------------------------------------------------- */
  --blur-glass: blur(24px) saturate(1.5);
  --color-material-bg:                rgba(255, 255, 255, 0.60);
  --color-material-border:            rgba(255, 255, 255, 0.70);
  --color-material-border-hover:      rgba(255, 255, 255, 0.85);
  --color-material-shadow-drop:       0 4px 16px rgba(13, 13, 15, 0.06);
  --color-material-shadow-drop-hover: 0 12px 32px rgba(13, 13, 15, 0.10);
  --color-material-shadow-inset:      rgba(255, 255, 255, 0.90);

  /* ----------------------------------------------------------
     TYPOGRAPHY
     ---------------------------------------------------------- */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale. Fluid (clamp): display, h1, h2 and body-xl only.
     Everything else is fixed, as in the Figma size/* variables. */
  --fs-display: clamp(36px, 5vw, 52px);
  --fs-h1:      clamp(26px, 3.5vw, 32px);
  --fs-h2:      clamp(18px, 2.5vw, 22px);
  --fs-h3:      16px;                       /* Figma Heading/H3: fixed, not fluid */
  --fs-body:    16px;                       /* Figma Body: fixed, not fluid */
  --fs-body-sm: 13px;                       /* Figma Body sm: fixed, not fluid */
  --fs-body-xl: clamp(16px, 1.7vw, 19px);   /* Figma Body xl (size/lead, 19px Desktop / 16px Mobile, tracking -1%): case lead text. Figma "Body lg" (19px, no tracking) exists only in Figma, kept on purpose without a CSS token */
  --fs-body-xs: 11px;                       /* Figma Body xs: fixed, not fluid */
  --fs-label:   11px;                       /* Figma Label caps: fixed, not fluid */

  /* Weight. Figma variables weight/regular|medium|semibold|bold (bound to the text styles through fontStyle). Not themed. */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Line height, named by value (D-48). Figma keeps line height as a percentage inside the text styles: a numeric variable
     bound to it is read as pixels, so there is no Figma variable. 110% is 1.1 here, and so on. Not themed. */
  --lh-110: 1.1;   /* Display */
  --lh-120: 1.2;   /* Heading/H1 */
  --lh-130: 1.3;   /* Heading/H2 */
  --lh-140: 1.4;   /* Heading/H3, Label/label-caps, Metric */
  --lh-160: 1.6;   /* Body xs, Body sm, Link */
  --lh-170: 1.7;   /* Body lg, Body xl */
  --lh-175: 1.75;  /* Body */

  /* Letter spacing, a semantic ladder (D-48, D-49). Figma keeps it as a percentage inside the text styles (no variable, same
     reason as line height). -2% is -0.02em here, 12% is 0.12em. Not themed. */
  --ls-tighter: -0.02em;  /* Display */
  --ls-tight:   -0.01em;  /* Heading/H1, Heading/H2, Body xl */
  --ls-normal:  0;        /* every other style */
  --ls-widest:  0.12em;   /* Label/label-caps */

  /* ----------------------------------------------------------
     SPACING — 4px base scale
     ---------------------------------------------------------- */
  --space-none: 0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Semantic spacing tokens */
  --gap-tight:     var(--space-2);
  --gap-element:   var(--space-4);
  --gap-component: var(--space-6);
  --gap-section:   var(--space-12);
  --gap-page:      var(--space-24);

  /* ----------------------------------------------------------
     CONTENT WIDTH — shared cap for section inner content.
     Gutter formula (see .container in css/site/container.css): width shrinks
     to keep exactly --space-20 (80px) on each side up to the
     width where the cap takes over, so the minimum gutter never
     drops below 80px on any desktop width.
     ---------------------------------------------------------- */
  --content-max-width: 1280px;

  /* ----------------------------------------------------------
     HEADER HEIGHT — fixed height of the sticky site header.
     Kept as an explicit token (not left to content auto-sizing)
     so anything that needs to line up flush against the header's
     bottom edge, like the Featured Projects sticky section header,
     can reference the exact same value instead of guessing at it.
     ---------------------------------------------------------- */
  --header-height: 64px;

  /* ----------------------------------------------------------
     BORDERS & RADIUS
     ---------------------------------------------------------- */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Stroke scale (Figma Stroke/*). Intentional name offset: CSS "thin" is
     Figma Stroke/hairline (0.8px), CSS "normal" and "strong" are Figma
     Stroke/thin (1px). Strength of --border-strong comes from colour. */
  --border-thin:   0.8px solid var(--color-border);
  --border-width-normal: 1px;  /* width alone, for calc(); --border-normal is a shorthand and cannot be used inside calc() */
  --border-normal: var(--border-width-normal) solid var(--color-border);
  --border-width-accent: 3px;  /* Figma Stroke/accent: width alone, for the accent borders (footer top border); same pattern as --border-width-normal */
  --border-width-medium: 1.5px;  /* Figma Stroke/medium: width alone, for the field, checkbox, radio and switch borders (and the Error state of a field); same pattern as --border-width-normal */
  --border-strong: 1px solid var(--color-border-strong);

  /* ----------------------------------------------------------
     SHADOWS
     ---------------------------------------------------------- */
  --shadow-sm:    0 1px 3px rgba(13, 13, 15, 0.06);
  --shadow-md:    0 4px 12px rgba(13, 13, 15, 0.08);
  --shadow-lg:    0 8px 32px rgba(13, 13, 15, 0.10);
  --shadow-focus: 0 0 0 3px var(--color-border-focus-ring);  /* deprecated 2026-11: focus is now an outline, see --focus-ring-width and --focus-ring-gap */

  /* ----------------------------------------------------------
     MOTION
     ---------------------------------------------------------- */
  --duration-instant:    0ms;
  --duration-fast:     100ms;
  --duration-normal:   150ms;
  --duration-slow:     250ms;
  --duration-slower:   400ms;
  --duration-deliberate: 600ms;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ----------------------------------------------------------
     Z-INDEX
     ---------------------------------------------------------- */
  /* Figma Hope · Primitives, group Z-index. Above the sticky layer the layers keep gaps of 100, so a new layer only
     needs a new number when it must sit between two existing ones. */
  --z-base:          0;
  --z-raised:        1;
  --z-sticky:        10;   /* Figma Z-index/z-sticky: the site header */
  --z-overlay:       var(--z-sticky);  /* DEPRECATED (2026-11, v2.13.0): old name of the site header layer. Use --z-sticky. The next MAJOR may remove it. Nothing in the repo uses it. */
  --z-modal-scrim:   100;  /* Figma Z-index/z-modal-scrim */
  --z-modal:         200;  /* Figma Z-index/z-modal */
  --z-popover:       300;  /* Figma Z-index/z-popover: Popover, Menu and Select panels */
  --z-tooltip:       400;  /* Figma Z-index/z-tooltip */
  --z-notification:  500;  /* Figma Z-index/z-notification: Toast */

  /* ----------------------------------------------------------
     GLOBAL URLS
     ---------------------------------------------------------- */
  --resume-url: "https://drive.google.com/file/d/14kBZ0YikjJjGseS0qQdrOuB4ix4UHtkm/view?usp=drive_link";
}

/* ----------------------------------------------------------
   DARK MODE — enabled via data-theme="dark"
   ---------------------------------------------------------- */
[data-theme="dark"] {
  --color-bg-accent-tertiary:   var(--color-night-aurora-soft);   /* 7.7:1 on #B4B4C8 */
  --color-bg-positive-secondary: var(--color-night-success-soft);  /* 8.3:1 on #B4B4C8 */
  --color-bg-danger-secondary:   var(--color-night-error-soft);    /* 8.9:1 on #B4B4C8 */

  --color-bg:            var(--color-abyss);
  --color-bg-alt:        var(--color-night-800);
  --color-bg-inverse:    var(--color-cloud);
  --color-border:        var(--color-night-700);
  --color-border-strong: var(--color-night-500);  /* 3.19:1 on abyss (WCAG 1.4.11) */
  --color-border-input:  var(--color-night-500);  /* Figma Border/Utilities/Input: 3.19:1 on abyss (WCAG 1.4.11) */
  --color-text-1:        var(--color-cloud);
  --color-text-2:        var(--color-night-300);
  --color-text-3:        var(--color-night-400);  /* WCAG AA: 4.6:1 on dark mode cards */
  --color-text-inverse:  var(--color-ink);
  --color-text-brand-default:          var(--color-solar);
  --color-text-brand-hover:    var(--color-night-accent-hover);
  --color-border-focus-ring:    var(--color-solar);
  --color-accent:               var(--color-solar);

  --color-bg-disabled-default:       var(--color-night-700);
  --color-text-disabled-default:     var(--color-night-500);
  --color-text-disabled-inverse:  var(--color-night-500);
  --color-border-disabled-default:   var(--color-night-700);

  --color-bg-scrim: rgba(0, 0, 0, 0.65);

  --color-bg-warning-secondary:  var(--color-night-aurora-soft);
  --color-text-warning-default:     var(--color-solar);
  --color-bg-info-secondary:     var(--color-night-info-soft);
  --color-text-info-default:        var(--color-info-light);
  --color-text-positive-default:     var(--color-success);
  --color-text-danger-default:       var(--color-error-light);
  --color-border-danger-default:     var(--color-error-light);

  --color-bg-neutral-default:     var(--color-cloud);
  --color-bg-neutral-hover:       var(--color-border-base);
  --color-text-neutral-default:   var(--color-ink);

  --color-bg-neutral-inverse:     #0d0d0f;
  --color-text-neutral-inverse:   #ffffff;

  /* Foundation 2026-11-20 Dark values (Semantic collection, Dark mode) */
  --color-bg-brand-default:       var(--color-tide);
  --color-bg-brand-hover:         var(--color-anchor);
  --color-text-brand-inverse:     var(--color-ink);
  --color-bg-accent-default:      var(--color-daybreak);
  --color-bg-accent-hover:        var(--color-solar);
  --color-text-accent-inverse:    var(--color-ink);
  --color-bg-danger-default:      var(--color-night-error-soft);
  --color-bg-positive-default:    var(--color-night-success-soft);
  --color-text-positive-inverse:  var(--color-cloud);
  --color-text-danger-inverse:    var(--color-cloud);

  --color-bg-brand-secondary:     rgba(28, 95, 168, 0.2);
  --color-bg-brand-tertiary:      rgba(28, 95, 168, 0.15);   /* Anchor at 15%. Reserved */
  --color-text-brand-secondary:   var(--color-tide);

  --color-bg-accent-secondary:    rgba(245, 200, 66, 0.15);
  --color-text-accent-default:  var(--color-solar);

  --color-bg-neutral-secondary:   var(--color-night-800);
  --color-text-neutral-secondary: var(--color-night-300);

  --color-bg-icon-chip: rgba(245, 200, 66, 0.14);

  --color-material-bg:                rgba(26, 26, 46, 0.52);
  --color-material-border:            rgba(74, 74, 96, 0.32);
  --color-material-border-hover:      rgba(245, 200, 66, 0.30);
  --color-material-shadow-drop:       0 4px 16px rgba(0, 0, 0, 0.22);
  --color-material-shadow-drop-hover: 0 12px 32px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(245, 200, 66, 0.10);
  --color-material-shadow-inset:      rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------------
   REDUCED MOTION — respects system preference
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }
}

/* ----------------------------------------------------------
   REDUCED TRANSPARENCY — frosts glass surfaces to solid,
   drops blur. Overrides the Material recipe tokens (css/tokens.css
   §COMPONENT TOKENS) so every glass surface (site header, case
   cards, result cards, metric cards) degrades consistently from
   one place. Placed after [data-theme="dark"] so it wins the
   cascade in both themes.
   ---------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --blur-glass:                  none;
    --color-material-bg:           var(--color-cloud);
    --color-material-border:       var(--color-border-base);
    --color-material-border-hover: var(--color-border-strong);
  }
  [data-theme="dark"] {
    --blur-glass:                  none;
    --color-material-bg:           var(--color-night-800);
    --color-material-border:       var(--color-night-700);
    --color-material-border-hover: var(--color-night-600);
  }
}

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

/* ----------------------------------------------------------
   BOX MODEL
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------
   HTML / BODY
   ---------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  /* Prevent horizontal scroll/overflow.
     hidden is the widely-supported fallback; clip is preferred because
     it does not create a scroll container (so position:sticky keeps
     working). Browsers that support clip ignore the hidden line above. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
  color: var(--color-text-1);
  background-color: var(--color-bg);
  transition:
    background-color var(--duration-slower) var(--ease-out),
    color            var(--duration-slower) var(--ease-out);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any rogue element from creating horizontal scroll.
     hidden is the fallback; clip is preferred (doesn't break sticky). */
  overflow-x: hidden;
  overflow-x: clip;
  /* Disable text selection globally */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Restore selection for readable content and form fields */
p, h1, h2, h3, h4, h5, h6,
li, td, th, dt, dd,
blockquote, pre, code,
figcaption, label, span, a,
input, textarea, select {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ----------------------------------------------------------
   BASE ELEMENTS
   ---------------------------------------------------------- */
img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-text-brand-default);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}
a:hover { color: var(--color-text-brand-hover); }
a:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
  border-radius: var(--radius-xs);
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
  border-radius: var(--radius-xs);
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: inherit;
}

p { max-width: 70ch; }

/* ----------------------------------------------------------
   ACCESSIBILITY
   ---------------------------------------------------------- */

/* Skip link — visible on focus only */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-modal);
  background-color: var(--color-bg);
  color: var(--color-text-1);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: var(--border-strong);
  transition: top var(--duration-normal) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
}

/* Visually hidden — accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ----------------------------------------------------------
   TYPOGRAPHY UTILITIES
   ---------------------------------------------------------- */
.text-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-110);
  letter-spacing: var(--ls-tighter);
}

.text-h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
}

.text-h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-130);
  letter-spacing: var(--ls-tight);
}

.text-h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-140);
}

.text-body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
}

.text-body-sm {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
}

/* ----------------------------------------------------------
   TWO LABEL STYLES (D-46, the only place where text-transform: uppercase is allowed; docs:check fails anywhere else)

   1. Label, Figma Foundation Label/label-caps: 11px (--fs-label), Plus Jakarta Sans Regular 400, line height 140%,
      letter-spacing 12% (0.12em), uppercase. Only for labels of up to three words: overlines, eyebrows, short field labels.
      Acronyms and initialisms (HTML, UX, B2B2C) stay as written.
   2. Sentence case, Figma Body/SemiBold/body-xs semibold: 11px (--fs-body-xs), weight 600, line height 160%, no tracking,
      no transform. For everything longer than three words.

   Use the utility class (.text-label, .text-body-xs-semibold) in new markup. The selector groups below give the same style to
   the site classes that already existed, so their own rules only keep layout and color. Weight, line height and tracking use
   the tokens --fw-*, --lh-* and --ls-* (tokens.css, D-48): Label is --fw-regular, --lh-140 and --ls-widest, sentence case is
   --fw-semibold, --lh-160 and --ls-normal.
   A class goes to the sentence case group when any string it styles has more than three words, in any language the site
   ships (a standalone "&" counts as a word, a dash or a colon does not).
   ---------------------------------------------------------- */
.text-label,
.case-card__eyebrow,
.case-section__number,
.cs-figure--slot::after,
.persona__meta dt,
.persona__quotes-label,
.case-hero__overline,
.case-hero__meta dt,
.case-phase-break__label,
.case-section__body .team-section__title,
.hero__overline,
.section__overline {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-regular);
  line-height: var(--lh-140);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}

.text-body-xs-semibold,
.logo-strip__label,
.persona__section-title,
.case-callout__attribution {
  font-family: var(--font-body);
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-160);
  letter-spacing: var(--ls-normal);
  text-transform: none;
}

.text-mono {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
}

/* Text colors */
.text-primary   { color: var(--color-text-1); }
.text-secondary { color: var(--color-text-2); }
.text-tertiary  { color: var(--color-text-3); }
.text-solar     { color: var(--color-solar);  }
.text-anchor    { color: var(--color-anchor); }

/* ----------------------------------------------------------
   ENTRANCE ANIMATIONS
   ---------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.animate-in            { animation: fadeUp var(--duration-slower) var(--ease-out) both; }
.animate-in--delay-1   { animation-delay: 80ms;  }
.animate-in--delay-2   { animation-delay: 160ms; }
.animate-in--delay-3   { animation-delay: 240ms; }
.animate-in--delay-4   { animation-delay: 320ms; }

/* ===== css/components/accordion.css ===== */
/* Hope DS: css/components/accordion.css
   Figma: Core, Accordion item (Open false|true, State Default|Hover|Focus|Disabled, Disabled only closed, set 2413:948).
   Edit this file, then run: npm run css:build. The behavior (toggle, panel role by item count) is in js/accordion.js.

   Markup contract (docs/components/accordion.html):
     <div class="accordion">
       <div class="accordion__item">
         <h3 class="accordion__heading">
           <button type="button" class="accordion__trigger" id="a1-trigger" aria-expanded="false" aria-controls="a1-panel">
             <span class="accordion__title">Título</span>
             <svg class="icon accordion__chevron" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="..."/></svg>
           </button>
         </h3>
         <div class="accordion__panel" id="a1-panel" role="region" aria-labelledby="a1-trigger" hidden>Conteúdo.</div>
       </div>
       ...
     </div>
   role="region" and aria-labelledby on the panel only when the list has 6 items or fewer (more would flood the landmark list);
   js/accordion.js applies this rule. The heading level is the author's. A closed panel is hidden with the hidden attribute. */

/* The list: stacked items, full width. No overflow here: the focus ring of an item is drawn 4px outside it. */
.accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ----------------------------------------------------------
   ITEM
   Figma strokesIncludedInLayout is true: only a bottom border of 1px, part of the height (closed item 54 = 16 + 21 + 16 + 1),
   so box-sizing is border-box and the padding is not discounted. The item fills its container (480 is the Figma specimen).
   Stacked items: the last one keeps its border, as in Figma. The container must not set overflow: the focus ring is drawn
   4px outside the item.
   ---------------------------------------------------------- */
.accordion__item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-4);
  font-family: var(--font-body);
  border-bottom: var(--border-width-normal) solid var(--color-border);
}

/* Hover: the whole item takes Background/Default/Secondary (open or closed). A disabled item does not. */
.accordion__item:hover:not(:has(.accordion__trigger:disabled)) {
  background-color: var(--color-bg-alt);
}

.accordion__heading {
  margin: 0;
  font: inherit;
}

/* ----------------------------------------------------------
   TRIGGER
   The header is a button: title Body/SemiBold/body-sm semibold, chevron 20px at the right, gap 12. A transparent
   pseudo-element extends the click target over the item padding (the padding belongs to the item, as in Figma).
   ---------------------------------------------------------- */
.accordion__trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-160);
  text-align: left;
  color: var(--color-text-1);
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.accordion__trigger::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-4) * -1) calc(var(--space-4) * -1) calc(var(--space-2) * -1);  /* open: stops at the gap, so the content is not part of the button */
}

.accordion__trigger[aria-expanded="false"]::after {
  bottom: calc(var(--space-4) * -1);
}

.accordion__title {
  flex: 1 1 0;
  min-width: 0;
}

/* Chevron: CaretDown 20px, Icon/Color Secondary. Open: rotated 180 degrees. No transition: Figma defines no motion. */
.accordion__trigger .accordion__chevron {
  flex: none;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--icon-color-secondary);
}

.accordion__trigger[aria-expanded="true"] .accordion__chevron {
  transform: rotate(180deg);
}

/* Content: Body/Regular/body-sm, Text/Default/Secondary. */
.accordion__panel {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-2);
}

.accordion__panel[hidden] {
  display: none;
}

/* ----------------------------------------------------------
   FOCUS
   Fallback first: a plain ring on the button, so focus is never invisible where :has() is not supported. Where :has() is
   supported the ring surrounds the WHOLE item (488 by 62 closed, 488 by 112 open: 4px outside each side), square, even
   though the focus is on the header button, and the button's own ring is removed. The focused item is raised one layer so
   the ring is not painted under the next item.
   ---------------------------------------------------------- */
.accordion__trigger:focus-visible {
  border-radius: 0;  /* reset.css sets radius-xs on button:focus-visible */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

@supports selector(:has(a)) {
  .accordion__trigger:focus-visible {
    outline: none;
  }

  .accordion__item:has(.accordion__trigger:focus-visible) {
    position: relative;
    z-index: var(--z-raised);
    outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
    outline-offset: var(--focus-ring-gap);
  }
}

/* Disabled (closed only in Figma): title Text/Disabled/Default, chevron in the Disabled mode, no opacity. */
.accordion__trigger:disabled {
  color: var(--color-text-disabled-default);
  cursor: not-allowed;
}

.accordion__trigger:disabled .accordion__chevron {
  color: var(--icon-color-disabled);
}

@media (forced-colors: active) {
  .accordion__item {
    border-bottom-color: CanvasText;
  }
  .accordion__trigger {
    forced-color-adjust: none;
    color: ButtonText;
  }
  .accordion__trigger:disabled {
    color: GrayText;
  }
}

/* ===== css/components/alert.css ===== */
/* Hope DS: css/components/alert.css
   Figma: Core, Alert (Type Info|Success|Warning|Error). Optional title, action and dismiss.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/alert.html):
     <div class="alert alert--info" role="status">
       <span class="alert__icon" aria-hidden="true"><svg class="icon" viewBox="0 0 256 256" fill="currentColor">...</svg></span>
       <div class="alert__content">
         <p class="alert__title">Title</p>
         <p class="alert__description">Description</p>
         <a class="alert__action" href="#">Action</a>            (or a <button type="button">)
       </div>
       <button type="button" class="alert__dismiss" aria-label="Dismiss"><svg class="icon" ...>...</svg></button>
     </div>
   Error uses role="alert", Warning, Info and Success use role="status". The width is fluid (Figma shows 480).
   Figma defines no hover, no underline and no focus for the action: it uses the Hope focus ring. */

/* ----------------------------------------------------------
   ALERT
   The border is NOT discounted from the padding here. Figma property strokesIncludedInLayout is true on this node
   (DESIGN.md, Shapes, "Borda dentro da caixa"), so the box is content + padding + border, as in CSS; the frame
   is 105 high with three lines (3 x 20.8 + 8 + 32 + 2). Fill, border and icon color come from the type.
   ---------------------------------------------------------- */
.alert {
  --alert-bg: var(--color-bg-info-secondary);
  --alert-border: var(--color-border-info-default);
  --alert-icon: var(--icon-color-info);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background-color: var(--alert-bg);
  border: var(--border-width-normal) solid var(--alert-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
}

.alert--info {
  --alert-bg: var(--color-bg-info-secondary);
  --alert-border: var(--color-border-info-default);
  --alert-icon: var(--icon-color-info);
}

.alert--success {
  --alert-bg: var(--color-bg-positive-secondary);
  --alert-border: var(--color-border-positive-default);
  --alert-icon: var(--icon-color-positive);
}

.alert--warning {
  --alert-bg: var(--color-bg-warning-secondary);
  --alert-border: var(--color-border-warning-default);
  --alert-icon: var(--icon-color-warning);
}

.alert--error {
  --alert-bg: var(--color-bg-danger-secondary);
  --alert-border: var(--color-border-danger-default);
  --alert-icon: var(--icon-color-danger);
}

/* Status icon slot, 20x20, in the status Icon/Color mode. */
.alert__icon {
  display: flex;
  flex: none;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--alert-icon);
}

.alert__icon .icon {
  width: 100%;
  height: 100%;
}

.alert__content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: 0;
  overflow-wrap: break-word;
}

.alert__title {
  margin: 0;
  font-weight: var(--fw-semibold);
  color: var(--color-text-1);
}

.alert__description {
  margin: 0;
  font-weight: var(--fw-regular);
  color: var(--color-text-2);
}

/* Action: text style, no underline (it overrides the global a rule). */
.alert__action {
  padding: 0;
  font: inherit;
  font-weight: var(--fw-semibold);
  color: var(--color-text-1);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

.alert__action:hover {
  color: var(--color-text-1);
}

.alert__action:focus-visible,
.alert__dismiss:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
  border-radius: var(--radius-xs);
}

/* Dismiss: 16x16 as in Figma, Icon/Color Default (no mode override). */
.alert__dismiss {
  position: relative;
  display: flex;
  flex: none;
  width: var(--space-4);
  height: var(--space-4);
  padding: 0;
  color: var(--icon-color-default);
  background: none;
  border: 0;
  cursor: pointer;
}

.alert__dismiss .icon {
  width: 100%;
  height: 100%;
}

/* The visual stays 16x16 (Figma). A transparent pseudo-element grows the hit area to 24x24 (WCAG 2.2 SC 2.5.8) without
   changing the layout: it grows 4px each way, inside the 16px padding, away from the action. */
.alert__dismiss::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-1) * -1);
}

@media (forced-colors: active) {
  .alert {
    border-color: CanvasText;
  }
}

/* ===== css/components/avatar.css ===== */
/* Hope DS: css/components/avatar.css
   Figma: Core, Avatar (Size Small|Medium|Large, component set 2413:755). Edit this file, then run: npm run css:build

   Markup contract (docs/components/avatar.html):
     Initials, name NOT next to it:   <span class="avatar avatar--medium" role="img" aria-label="Renan Moura">RM</span>
     Initials, name next to it:       <span class="avatar avatar--medium" aria-hidden="true">RM</span> Renan Moura
     Photo, name NOT next to it:      <span class="avatar avatar--medium"><img class="avatar__image" src="..." alt="Renan Moura"></span>
     Photo, name next to it:          <span class="avatar avatar--medium"><img class="avatar__image" src="..." alt=""></span> Renan Moura
   The initials are content (the Figma property defaults to "RM"), not generated. With a photo the initials are not rendered. */

/* ----------------------------------------------------------
   AVATAR
   Circle (--radius-pill), fill Border/Default/Default, initials Text/Default/Default, centered. Small is the default.
   No border in Figma, so box-sizing needs no discount.
   ---------------------------------------------------------- */
.avatar {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: var(--space-8);   /* Small 32 */
  height: var(--space-8);
  overflow: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-body-xs);  /* Body/SemiBold/body-xs semibold */
  font-weight: var(--fw-semibold);
  line-height: var(--lh-160);
  white-space: nowrap;
  color: var(--color-text-1);
  background-color: var(--color-border);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}

.avatar--small {
  width: var(--space-8);
  height: var(--space-8);
  font-size: var(--fs-body-xs);
}

/* Medium 40: Body/SemiBold/body-sm semibold. */
.avatar--medium {
  width: var(--space-10);
  height: var(--space-10);
  font-size: var(--fs-body-sm);
}

/* Large 56: Heading/H3 (display font, Bold, 16px, line height 1.4). Figma: 56, no spacing token. */
.avatar--large {
  width: 56px;
  height: 56px;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-140);
}

/* Photo: the image fills the circle. */
.avatar__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== css/components/badge.css ===== */
/* Hope DS: css/components/badge.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   BADGES
   ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  padding: var(--space-1) var(--space-3);  /* Figma: 4px 12px */
  border-radius: var(--radius-pill);
  line-height: var(--lh-160);                         /* Figma: 160%, one line is 29px high */
}

.badge--neutral {
  background-color: var(--color-bg-alt);
  color: var(--color-text-2);
  border: var(--border-thin);
  /* The stroke is drawn inside the box in Figma, so the border is discounted from the padding
     (rule: DESIGN.md, Shapes, "Borda dentro da caixa"). Box = 28.8px high, as the other styles. */
  padding: calc(var(--space-1) - var(--border-width-normal)) calc(var(--space-3) - var(--border-width-normal));
}

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

/* Success (12% in Light) and Danger (10% in Light) get their alpha from the Figma
   tokens, which are solid in Dark. */
.badge--success {
  background-color: var(--color-bg-positive-secondary);
  color: var(--color-text-positive-default);
}

.badge--danger {
  background-color: var(--color-bg-danger-secondary);
  color: var(--color-text-danger-default);
}

/* ===== css/components/banner.css ===== */
/* Hope DS: css/components/banner.css
   Figma: Core, Banner (Type Notice). A brand strip, not a status: statuses use the Alert.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/banner.html):
     <div class="banner">
       <span class="banner__icon" aria-hidden="true">🚧</span>           optional, decorative
       <span class="banner__text">Text</span>
     </div>
   The emoji uses the same text style as the text, Body/Medium/body-sm medium (Figma now does too). The width is fluid
   (Figma shows 1206). */

/* ----------------------------------------------------------
   BANNER
   No border in Figma, so there is nothing to discount from the padding.
   ---------------------------------------------------------- */
.banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background-color: var(--color-bg-accent-secondary);
  border-radius: var(--radius-md);
  color: var(--color-text-accent-default);
  font-size: var(--fs-body-sm);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-160);
  width: 100%;
  box-sizing: border-box;
}

/* Legacy site modifier (case-studies/sb-home-redesign.html): it keeps the look the site has always had, so the page
   does not change. It is not a Figma variant. */
.banner--wip {
  padding: var(--space-3) var(--space-6);
  margin-bottom: var(--space-6);
  background-color: var(--color-bg-accent-tertiary);
  color: var(--color-dusk);
  border: 1px solid var(--color-amber);
  font-weight: inherit;
  line-height: var(--lh-140);
}

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

.banner__icon {
  flex-shrink: 0;
}

.banner--wip .banner__icon {
  font-size: var(--fs-body);
}

.banner__text {
  flex: 1;
}

/* ===== css/components/bottom-sheet.css ===== */
/* Hope DS: css/components/bottom-sheet.css
   Figma: Core, Bottom Sheet (component 2602:134, page "Bottom Sheet", example on the scrim 2602:175). Edit this file, then run:
   npm run css:build. The behavior (open and close, swipe down, initial focus) is in js/bottom-sheet.js; the focus trap, Escape,
   inert page, scroll lock and focus return are shared with the Modal in js/overlay.js.

   Markup contract (docs/components/bottom-sheet.html):
     <button type="button" class="btn btn--secondary" data-bottom-sheet-open="sheet-confirm">Open</button>
     <div class="bottom-sheet" role="dialog" aria-modal="true" id="sheet-confirm" aria-labelledby="sheet-confirm-title" aria-describedby="sheet-confirm-body" hidden>
       <div class="bottom-sheet__handle"><span class="bottom-sheet__grabber" aria-hidden="true"></span></div>
       <div class="bottom-sheet__content">
         <div class="bottom-sheet__header"><h2 class="bottom-sheet__title" id="sheet-confirm-title">Title</h2></div>
         <p class="bottom-sheet__body" id="sheet-confirm-body">Supporting text.</p>
       </div>
       <div class="bottom-sheet__footer">
         <button type="button" class="btn btn--primary" data-bottom-sheet-close>Confirm</button>            (the primary comes first, as in Figma)
         <button type="button" class="btn btn--secondary" data-bottom-sheet-close>Cancel</button>
       </div>
     </div>
   There is no close X: the secondary button, Escape and the swipe down close it. For a destructive confirmation, put
   data-bottom-sheet-initial-focus on the Cancel button (the primary comes first in the DOM, so the focus would otherwise start on it).
   js/bottom-sheet.js creates the scrim (the same .modal-scrim of the Modal) and moves the dialog to the end of <body>. A click on the
   scrim does not close the sheet: it is for decisions. */

/* ----------------------------------------------------------
   BOTTOM SHEET PANEL
   Figma strokesIncludedInLayout is true on the panel, as in the Modal: the box is content + padding + border and nothing is
   discounted (390 wide = 340 of content + 48 of padding + 2 of side border; 278 high in the specimen = 8 + 16 + 20 + 87 + 20 + 102
   + 24 + 1 of top border). The border is 1px on the top, left and right and none at the bottom, which is the screen edge.
   Layer Z-index/z-modal (200), above the Modal scrim (100) and below the Toast (500). Anchored to the bottom edge of the viewport.
   No motion: Figma defines none, so the panel appears and disappears at once. The only movement is the swipe down (js/bottom-sheet.js
   sets a transform while a finger or the pointer drags it), so nothing needs a reduced-motion override.
   Narrow height: the panel is as tall as its content up to the viewport minus 16px; then the BODY scrolls and the grabber row, the
   title and the footer stay in view (the same rule as the Modal).
   ---------------------------------------------------------- */
.bottom-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-modal);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: 100%;
  max-height: calc(100dvh - var(--space-4));
  /* Figma: 8 top, 24 sides, 24 bottom. The bottom also clears the home indicator where the page has viewport-fit=cover (env() is
     0 otherwise). */
  padding: var(--space-2) var(--space-6) calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  border: var(--border-width-normal) solid var(--color-border);
  border-bottom-width: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
}

.bottom-sheet[hidden] {
  display: none;
}

/* The dialog gets the focus when it has nothing focusable: no ring on the panel itself. */
.bottom-sheet:focus {
  outline: none;
}

/* Grabber row: 16 high, content centered. The row and the title are the only places where a drag starts, so scrolling the body
   never moves the sheet (touch-action: none lets the pointer events through instead of the browser scrolling or zooming there). */
.bottom-sheet__handle {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--space-4);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Grabber: 32 by 4, radius 2, Border/Utilities/Input. Decorative (aria-hidden), not focusable, not a button. */
.bottom-sheet__grabber {
  display: block;
  width: var(--space-8);
  height: var(--space-1);
  background-color: var(--color-border-input);
  border-radius: calc(var(--space-1) / 2);
}

/* Content: title and body, gap 16. It takes the space left by the footer and the grabber row; the body scrolls inside it. */
.bottom-sheet__content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.bottom-sheet__header {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Title: Heading/H2 (display font, Bold, --fs-h2, line height 130%, tracking -1%), Text/Default/Default. */
.bottom-sheet__title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-130);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-1);
}

/* Body: Body/Regular/body-sm, Text/Default/Secondary, the same as the Modal. It scrolls when the content passes the height of the
   screen (js/bottom-sheet.js gives it tabindex="0" then, so the keyboard can scroll it). */
.bottom-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* The scroll box would clip the focus ring (4px) of a link or control inside the body: 4px of padding give it room and the
     same negative margin keeps the layout where Figma has it. */
  margin: calc(var(--space-1) * -1);
  padding: var(--space-1);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-2);
}

.bottom-sheet__body:focus-visible {
  border-radius: var(--radius-xs);
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Footer (required, there is no "Show footer"): a column, gap 12, two Buttons Medium at full width, the primary on top. Fixed while
   the body scrolls. */
.bottom-sheet__footer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bottom-sheet__footer .btn {
  width: 100%;
}

/* Forced colors: the border is the only edge of the panel. */
@media (forced-colors: active) {
  .bottom-sheet {
    border-color: CanvasText;
  }
  .bottom-sheet__grabber {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
}

/* ===== css/components/brand-list.css ===== */
/* Hope DS: css/components/brand-list.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   BRAND LIST
   ---------------------------------------------------------- */
.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-ink);
}

/* Figma Persona, frame brand-list/item: marker (long dash) and text in Body sm, 13px Regular, line-height 160%. */
.brand-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
  color: var(--color-text-2);
}

.brand-list li::before {
  content: "\2014";
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
  color: var(--color-text-3);
  flex-shrink: 0;
}

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

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

/* ===== css/components/breadcrumb.css ===== */
/* Hope DS: css/components/breadcrumb.css
   Figma: Core, Breadcrumb item (Type Link|Link Hover|Link Focus|Current|Ellipsis|Ellipsis Hover|Ellipsis Focus), set 2413:51. Edit this file, then run:
   npm run css:build.

   Markup contract (docs/components/breadcrumb.html):
     <nav class="breadcrumb" aria-label="Breadcrumb">
       <ol class="breadcrumb__list">
         <li class="breadcrumb__item">
           <a class="breadcrumb__link" href="/">Início</a>
           <svg class="icon breadcrumb__separator" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="..."/></svg>
         </li>
         <li class="breadcrumb__item"><span class="breadcrumb__current" aria-current="page">Componentes</span></li>
       </ol>
     </nav>
   The separator is a sibling of the link, never inside it, so the focus ring wraps the label only. The last item
   (Current) has no separator in code: Figma draws one in the Current variant but marks it optional.

   Collapsed path (Type=Ellipsis): the author decides which middle levels are hidden. The path always shows the first
   level, the ellipsis and the current page; the hidden levels open in a Menu (css/components/menu.css, js/menu.js):
     <li class="breadcrumb__item">
       <div class="breadcrumb__collapse">
         <button type="button" class="breadcrumb__ellipsis" aria-label="Show path" aria-haspopup="menu" aria-expanded="false" aria-controls="bc-menu">
           <svg class="icon" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="..."/></svg>
         </button>
         <div class="menu" role="menu" id="bc-menu" aria-label="Hidden levels" hidden>
           <a class="menu__item" role="menuitem" tabindex="-1" href="/projects"><span class="menu__label">Projects</span></a>
         </div>
       </div>
       <svg class="icon breadcrumb__separator" ... aria-hidden="true">...</svg>
     </li>
   The ellipsis is a button, not a link. The panel hangs under it, aligned to its start, 8px away. */

/* ----------------------------------------------------------
   BREADCRUMB
   Item: horizontal, gap 8 between label and separator, centered, padding 0. Items are 8 apart (Figma example).
   Narrow screens: the list wraps. Collapsing is done by the author with the Ellipsis item below; there is no automatic
   collapse by container width (known gap breadcrumb-auto-collapse).
   ---------------------------------------------------------- */
.breadcrumb {
  font-family: var(--font-body);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Link: Default text Text/Default/Secondary (Regular), Hover and Focus text Text/Default/Default. No underline in Figma. */
.breadcrumb__link {
  display: block;
  font-weight: var(--fw-regular);
  color: var(--color-text-2);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

.breadcrumb__link:hover {
  color: var(--color-text-1);
}

/* Focus ring around the label only: 40 by 29 around a 32 by 21 label (2px ring + 2px gap = 4px on each side). */
.breadcrumb__link:focus-visible {
  color: var(--color-text-1);
  border-radius: 0;  /* reset.css sets radius-xs on a:focus-visible; the Figma ring has no radius */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Current: Medium, Text/Default/Default, not a link, never focusable. */
.breadcrumb__current {
  display: block;
  font-weight: var(--fw-medium);
  color: var(--color-text-1);
}

/* Ellipsis (Figma Type=Ellipsis, Ellipsis Hover, Ellipsis Focus): a button with DotsThree at 16px. Default uses Icon/Color in
   the Secondary mode, Hover and Focus use the Default mode. No fill and no radius. */
.breadcrumb__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 16px;  /* Figma: 16, no spacing token */
  height: 16px;
  margin: 0;
  padding: 0;
  color: var(--icon-color-secondary);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-out);
}

/* Two classes: icon.css loads after this file and its .icon sets 1em, so one class would lose. */
.breadcrumb__ellipsis .icon {
  display: block;
  width: 16px;
  height: 16px;
}

.breadcrumb__ellipsis:hover {
  color: var(--icon-color-default);
}

/* Focus: a square ring (radius 0) around the icon only, 24 by 24 (16 + 2px gap + 2px ring on each side), Border/Utilities/Focus Ring. */
.breadcrumb__ellipsis:focus-visible {
  color: var(--icon-color-default);
  border-radius: 0;  /* reset.css sets radius-xs on button:focus-visible; the Figma ring has no radius */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* The Menu panel hangs under the button, aligned to its start, 8px away, on the popover layer (the .menu rule sets
   --z-popover). Its width is the specimen of the Menu (238), because the items fill the panel. This is the CSS default: with
   data-placement on the panel (the docs markup has it) js/position.js flips it above near the bottom edge and keeps it inside the
   viewport. The second selector keeps the 238 against the width of .menu[data-placement] in menu.css. */
.breadcrumb__collapse {
  position: relative;
  display: flex;
  align-items: center;
}

.breadcrumb__collapse > .menu,
.breadcrumb__collapse > .menu[data-placement] {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  width: 14.875rem;  /* 238, the Figma Menu specimen */
  max-width: calc(100vw - 2 * var(--space-4));
}

/* Separator: CaretRight 14px. Figma paints it #5F5F6E, which is Icon/Color Tertiary. */
/* Two classes: icon.css loads after this file and its .icon sets 1em, so one class would lose. */
.breadcrumb__item .breadcrumb__separator {
  flex: none;
  width: 14px;  /* Figma: 14, no spacing token */
  height: 14px;
  color: var(--icon-color-tertiary);
}

@media (forced-colors: active) {
  .breadcrumb__link {
    color: LinkText;
  }
  .breadcrumb__current {
    color: CanvasText;
  }
  .breadcrumb__ellipsis {
    forced-color-adjust: none;
    color: ButtonText;
  }
}

/* ===== css/components/button.css ===== */
/* Hope DS: css/components/button.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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: var(--fw-semibold);
  line-height: var(--lh-160);
  /* Every style keeps a 1px border so the box never changes size between
     states. A style with "no border" sets border-color to its fill (or
     transparent when it has no fill). */
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  /* Figma Core draws the 1px stroke inside the box (Medium is 12px 20px of padding). In CSS the
     border adds to the box, so it is subtracted from the padding: 11px 19px plus the 1px border
     gives the Figma size. */
  padding: calc(var(--space-3) - var(--border-width-normal)) calc(var(--space-5) - var(--border-width-normal));
  min-height: 44px;              /* target size >= 44px (WCAG 2.5.5) */
  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);
}
/* Focus ring: outline for every interactive component. The radius is set
   again because reset.css button:focus-visible / a:focus-visible would
   otherwise shrink it to --radius-xs. */
.btn:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
  border-radius: var(--radius-md);
}
.btn:active        { transform: scale(0.98); }

/* Icons inside a button are 16px and follow the text colour in every state */
.btn .icon {
  width: 16px;
  height: 16px;
  color: inherit;
}

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

/* Primary */
.btn--primary {
  background-color: var(--color-bg-neutral-default);
  color: var(--color-text-neutral-default);
  border-color: 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-neutral-default);
}

/* Secondary */
.btn--secondary {
  background-color: transparent;
  color: var(--color-text-1);
  border-color: var(--color-border-strong);
}
.btn--secondary:hover {
  background-color: var(--color-bg-neutral-default);
  border-color: var(--color-bg-neutral-default);   /* no visible border: equals the fill */
  color: var(--color-text-neutral-default);
}

/* Accent (Figma Core: Brand fill) */
.btn--accent {
  background-color: var(--color-bg-brand-default);
  color: var(--color-text-inverse);
  border-color: var(--color-bg-brand-default);
}
.btn--accent:hover {
  background-color: var(--color-bg-brand-secondary);
  border-color: var(--color-bg-brand-secondary);
  color: var(--color-text-brand-hover);
}

/* Solar (site-only variant, not in Figma Core) */
.btn--solar {
  background-color: var(--color-solar);
  color: var(--color-ink);
  border-color: 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-color: transparent;
}
.btn--ghost:hover {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
  color: var(--color-text-neutral-default);
}

/* Inverse (Figma Core: neutral-inverse fill, for dark surfaces) */
.btn--inverse {
  background-color: var(--color-bg-neutral-inverse);
  color: var(--color-text-neutral-inverse);
  border-color: var(--color-bg-neutral-inverse);
}
.btn--inverse:hover {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
  color: var(--color-text-neutral-default);
}

/* Destructive */
.btn--destructive {
  background-color: var(--color-error);
  color: var(--color-text-danger-inverse);
  border-color: var(--color-error);
}
.btn--destructive:hover {
  background-color: var(--color-bg-danger-hover);
  border-color: var(--color-bg-danger-hover);
  color: var(--color-text-danger-inverse);
}

/* Small Ghost: Ghost colours and states, smaller box, pill radius */
.btn--ghost-sm {
  /* Figma 8px 16px with the border inside the box: 7px 15px plus the 1px border. */
  padding: calc(var(--space-2) - var(--border-width-normal)) calc(var(--space-4) - var(--border-width-normal));
  border-radius: var(--radius-pill);
  min-height: 0;
  background-color: transparent;
  color: var(--color-text-2);
  border-color: transparent;
}
.btn--ghost-sm:hover {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
  color: var(--color-text-neutral-default);
}
.btn--ghost-sm:focus-visible { border-radius: var(--radius-pill); }

/* Disabled state: tokens, never opacity. Specificity is (0,3,0) so it also
   beats every :hover rule above, whatever the source order. */
.btn.btn:disabled,
.btn.btn[aria-disabled="true"] {
  background-color: var(--color-bg-disabled-default);
  color: var(--color-text-disabled-inverse);
  border-color: var(--color-border-disabled-default);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}
.btn--secondary.btn:disabled,
.btn--secondary.btn[aria-disabled="true"] {
  background-color: transparent;
  color: var(--color-text-disabled-default);
  border-color: var(--color-border-disabled-default);
}
.btn--ghost.btn:disabled,
.btn--ghost.btn[aria-disabled="true"],
.btn--ghost-sm.btn:disabled,
.btn--ghost-sm.btn[aria-disabled="true"] {
  background-color: transparent;
  color: var(--color-text-disabled-default);
  border-color: transparent;
}

/* ===== css/components/case-card.css ===== */
/* Hope DS: css/components/case-card.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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);
  /* The card is a <li> in a list: reset.css restores text selection on li, which would reach the card chrome
     (images, wrappers) that was not selectable when the card was an <article>. p, h3 and span still select. */
  -webkit-user-select: none;
  user-select: none;
  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 {
  color: var(--color-text-3);
}
.case-card__status {
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: var(--ls-normal);
}

/* Project title */
.case-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-130);
  letter-spacing: var(--ls-tight);
  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: var(--fw-medium);
  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: var(--lh-175);
  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: var(--fw-bold);
  line-height: var(--lh-140);
  color: var(--color-accent);
}
.metric__label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  line-height: var(--lh-140);
}

/* 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: var(--fw-medium);
  color: var(--color-text-3);
  text-decoration: none;
  letter-spacing: var(--ls-normal);
  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-default);
  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: var(--ls-tight);
  line-height:    var(--lh-130);
}
.case-card__title-sep {
  margin:      0 calc(var(--space-2) + 2px);
  color:       var(--color-text-3);
  font-weight: var(--fw-regular);
}

/* ── Meta line — muted mono (client · year · discipline) ────────────── */
.case-card__meta {
  font-family:    var(--font-body);
  font-size:      var(--fs-body-sm);
  letter-spacing: var(--ls-normal);
  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: var(--lh-175);
  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-default
   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. */

/* ===== css/components/case-lead.css ===== */
/* Hope DS: css/components/case-lead.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

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

/* ===== css/components/case-section.css ===== */
/* Hope DS: css/components/case-section.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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;
  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: var(--fw-bold);
  line-height: var(--lh-130);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-1);
}

.case-section__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-text-1);
  line-height: var(--lh-140);
}

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

/* :where() keeps the scope at specificity 0, so components with their own
   rule (.skill-card__body, .persona__role, .case-lead__text...) keep their values */
:where(.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: var(--fw-medium);
  color: var(--color-text-1);
  line-height: var(--lh-170);
  letter-spacing: var(--ls-tight);
  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: var(--lh-175);
  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;
}

/* ===== css/components/checkbox.css ===== */
/* Hope DS: css/components/checkbox.css
   Figma: Core, Checkbox (Checked Unchecked|Checked|Indeterminate, State Default|Hover|Focus|Error|Disabled).
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/checkbox.html):
     <div class="checkbox">
       <input type="checkbox" class="checkbox__input" id="ID" aria-describedby="ID-help">
       <label class="checkbox__label" for="ID">Label</label>
       <p class="checkbox__help" id="ID-help">Helper text</p>
     </div>
   The helper sits outside the label, so the accessible name is the label only and the helper is the description
   (aria-describedby). A real checkbox with appearance: none, so semantics, keyboard and form submission stay native.
   Checked = :checked, Indeterminate = :indeterminate (set from script, there is no HTML attribute), Error =
   aria-invalid="true", Disabled = the disabled attribute. Hover is drawn when the pointer is over the box, the label or
   the helper (Figma defines it on the box only; an inference). The label and the box are the click target. */

/* ----------------------------------------------------------
   CHECKBOX
   The border is drawn inside the 20x20 box (border-box), as in Figma. The mark is a mask, so its color is a token.
   ---------------------------------------------------------- */
.checkbox {
  display: grid;
  grid-template-columns: var(--space-5) 1fr;
  align-items: start;
  column-gap: var(--space-2);
  row-gap: var(--space-1);
  font-family: var(--font-body);
}

.checkbox__input {
  position: relative;
  grid-row: 1;
  width: var(--space-5);
  height: var(--space-5);
  margin: 0;
  background-color: var(--color-bg);
  border: var(--border-width-medium) solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  appearance: none;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

/* The 14px Phosphor mark (Figma), centered in the box. */
.checkbox__input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  translate: -50% -50%;
  background-color: var(--icon-color-neutral);
  mask: var(--checkbox-mark, none) center / contain no-repeat;
  opacity: 0;
}

.checkbox__input:checked {
  --checkbox-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
}

.checkbox__input:indeterminate {
  --checkbox-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z'/%3E%3C/svg%3E");
}

.checkbox__input:checked,
.checkbox__input:indeterminate {
  background-color: var(--color-bg-neutral-default);
  border-color: var(--color-bg-neutral-default);
}

.checkbox__input:checked::after,
.checkbox__input:indeterminate::after {
  opacity: 1;
}

.checkbox:hover .checkbox__input:not(:disabled) {
  background-color: var(--color-bg-alt);
}

.checkbox:hover .checkbox__input:not(:disabled):checked,
.checkbox:hover .checkbox__input:not(:disabled):indeterminate {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
}

/* Focus: 28x28 ring around the box only (20 + 2 + 2 on each side), radius 4 + 4 = 8. */
.checkbox__input:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Error: Danger border (still 1.5px), fill as the Checked value. Hover keeps the Danger border. */
.checkbox__input[aria-invalid="true"],
.checkbox:hover .checkbox__input[aria-invalid="true"]:not(:disabled) {
  border-color: var(--color-border-danger-default);
}

.checkbox__label {
  grid-row: 1;
  grid-column: 2;
  cursor: pointer;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-1);
}

.checkbox__help {
  grid-row: 2;
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-3);
}

.checkbox__input[aria-invalid="true"] ~ .checkbox__help {
  font-weight: var(--fw-medium);
  color: var(--color-text-danger-default);
}

/* Disabled: no opacity. The mark keeps the Disabled icon color, also when checked. */
.checkbox__input:disabled {
  background-color: var(--color-bg-disabled-default);
  border-color: var(--color-border-disabled-default);
  cursor: not-allowed;
}

.checkbox__input:disabled::after {
  background-color: var(--icon-color-disabled);
}

.checkbox__input:disabled ~ .checkbox__label {
  cursor: not-allowed;
}

.checkbox__input:disabled ~ .checkbox__label,
.checkbox__input:disabled ~ .checkbox__help {
  color: var(--color-text-disabled-default);
}

/* Forced colors: backgrounds are replaced by the system, so the mark is drawn with system colors. */
@media (forced-colors: active) {
  .checkbox__input {
    forced-color-adjust: none;
    background-color: Canvas;
    border-color: CanvasText;
  }
  .checkbox__input:checked,
  .checkbox__input:indeterminate {
    background-color: Highlight;
    border-color: Highlight;
  }
  .checkbox__input::after {
    background-color: HighlightText;
  }
  .checkbox__input:disabled {
    background-color: Canvas;
    border-color: GrayText;
  }
  .checkbox__input:disabled::after {
    background-color: GrayText;
  }
}

/* ===== css/components/cs-figure.css ===== */
/* Hope DS: css/components/cs-figure.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
  color: var(--color-accent);
}

.highlight-card p {
  font-weight: var(--fw-bold);
}

/* 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: var(--lh-140);
  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';
  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;
}

/* ----------------------------------------------------------
   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: var(--lh-140);
}

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

/* ===== css/components/empty-state.css ===== */
/* Hope DS: css/components/empty-state.css
   Figma: Core, Empty state (one component). Icon, title, optional description and optional action.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/empty-state.html):
     <div class="empty-state">
       <svg class="icon empty-state__icon" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true">...</svg>
       <p class="empty-state__title">Nothing here yet</p>              (the author chooses the heading level, see below)
       <p class="empty-state__description">When there is content, it will show up here.</p>
       <a class="btn btn--primary" href="#">Add item</a>               (the Hope Button, Primary, Medium)
     </div>
   The title is styled by class and carries no heading semantics of its own: use the heading level that fits the page
   (<h2>, <h3>...) with the class, or a <p> when it is not a heading. */

/* ----------------------------------------------------------
   EMPTY STATE
   No fill, no border, no radius. Everything is centered on both axes.
   ---------------------------------------------------------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8);
  font-family: var(--font-body);
  text-align: center;
}

/* 48px Phosphor icon, swappable. Figma draws the default Tray in Icon/Color Tertiary. */
.empty-state .empty-state__icon {
  width: var(--space-12);
  height: var(--space-12);
  color: var(--icon-color-tertiary);
}

.empty-state__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-140);
  color: var(--color-text-1);
}

.empty-state__description {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-2);
}

/* ===== css/components/field.css ===== */
/* Hope DS: css/components/field.css
   Figma: Core, Input, Textarea and Select (State Default|Hover|Focus|Error|Disabled, Value Empty|Filled).
   What the three share: the wrapper, the label, the helper text and the control box. input.css, textarea.css
   and select.css only add what is specific to each.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/input.html):
     <div class="field">
       <label class="field__label" for="id">Label</label>
       <div class="field__control">
         <input class="input" id="id" aria-describedby="id-help">
         <svg class="field__icon" aria-hidden="true">...</svg>      optional (Input), always present on Select
       </div>
       <p class="field__help" id="id-help">Helper text</p>
     </div>
   The wrapper .field__control exists to position the 16px icon over the control. A Textarea does not need it.
   States: Hover = :hover, Focus = :focus-visible, Error = aria-invalid="true", Disabled = the disabled attribute. */

/* ----------------------------------------------------------
   FIELD: label, control wrapper, helper text
   ---------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.field__label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-160);
  color: var(--color-text-1);
}

.field__control {
  position: relative;
  display: flex;
}

.field__help {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-3);
}

/* Error: the helper text carries the message, in Danger and Medium weight. The label does not change. */
.field:has([aria-invalid="true"]) .field__help {
  font-weight: var(--fw-medium);
  color: var(--color-text-danger-default);
}

/* Disabled: label and helper follow the control. */
.field:has(.input:disabled, .textarea:disabled, .select:disabled) .field__label,
.field:has(.input:disabled, .textarea:disabled, .select:disabled) .field__help {
  color: var(--color-text-disabled-default);
}

/* 16px trailing icon, drawn over the control, not clickable. Color: Icon/Color Tertiary, Disabled when the control is. */
.field__icon {
  position: absolute;
  top: 50%;
  right: calc(var(--space-3) + var(--border-width-normal));  /* Figma: 12 padding + 1 stroke from the edge */
  width: var(--space-4);
  height: var(--space-4);
  translate: 0 -50%;
  fill: currentColor;
  color: var(--icon-color-tertiary);
  pointer-events: none;
}

:disabled + .field__icon {
  color: var(--icon-color-disabled);
}

/* ----------------------------------------------------------
   CONTROL BOX (shared by .input, .textarea and .select)
   Figma strokesIncludedInLayout is true on these nodes (DESIGN.md, Shapes, "Borda dentro da caixa"): the outer
   size is fixed (254 by 44, Textarea 96) and the content starts at padding + stroke, so the text sits 13px from the edge
   (12 + 1). The inline padding is therefore NOT discounted. The block padding is discounted only to keep the 44.8
   outer height of a centered single line (the text is centered, so its vertical position is the same).
   --field-border-width is the border of the current state (1px, 1.5px on Error); the outer size never changes.
   ---------------------------------------------------------- */
.input,
.textarea,
.select {
  --field-border-width: var(--border-width-normal);
  --field-border-color: var(--color-border-input);
  display: block;
  width: 100%;
  margin: 0;
  padding: calc(var(--space-3) - var(--field-border-width)) var(--space-3);
  /* Browsers draw a 1.5px border as 1px on a 1x screen, which would shrink the Error box by 1px: the outer height
     is fixed instead (12 + 12 + one line of 160%), the text stays centered. Figma: 44px, rendered 44.8px. */
  min-height: calc(var(--space-6) + var(--fs-body-sm) * var(--lh-160));
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-1);
  background-color: var(--color-bg);
  border: var(--field-border-width) solid var(--field-border-color);
  border-radius: var(--radius-sm);
  appearance: none;
  transition: border-color var(--duration-normal) var(--ease-out);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-3);
  opacity: 1;
}

.input:hover,
.textarea:hover,
.select:hover {
  --field-border-color: var(--color-border-strong);
}

/* Focus: the border stays as in Default; the ring is an outline, 2px with a 2px gap, following the radius. */
.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Error: Danger border at 1.5px. The value text does not change. */
.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"] {
  --field-border-color: var(--color-border-danger-default);
  --field-border-width: var(--border-width-medium);
}

/* Disabled: no opacity. Filled text Text/Disabled/Default, empty text (placeholder) Text/Disabled/Inverse. */
.input:disabled,
.textarea:disabled,
.select:disabled {
  --field-border-color: var(--color-border-disabled-default);
  --field-border-width: var(--border-width-normal);
  color: var(--color-text-disabled-default);
  background-color: var(--color-bg-disabled-default);
  cursor: not-allowed;
}

.input:disabled::placeholder,
.textarea:disabled::placeholder {
  color: var(--color-text-disabled-inverse);
}

/* Room for the 16px icon: padding 12 + icon 16 + gap 8 (the 1px stroke comes on top, as in Figma). */
.field__control:has(.field__icon) > .input,
.field__control:has(.field__icon) > .select {
  padding-inline-end: calc(var(--space-3) + var(--space-4) + var(--space-2));
}

@media (forced-colors: active) {
  .input,
  .textarea,
  .select {
    border-color: CanvasText;
  }
  .input:disabled,
  .textarea:disabled,
  .select:disabled {
    border-color: GrayText;
  }
}

/* ===== css/components/icon-button.css ===== */
/* Hope DS: css/components/icon-button.css
   Figma: Core, Icon Button (Style Primary|Ghost, State Default|Hover|Focus|Disabled). A 44 by 44 round button with one
   24px icon (WCAG 2.5.5). Edit this file, then run: npm run css:build

   Markup contract (docs/components/icon-button.html):
     <button type="button" class="icon-btn icon-btn--primary" aria-label="Add item">
       <svg class="icon" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="..."/></svg>
     </button>
   Named .icon-btn, not a .btn modifier: .btn brings a padding, a gap and a full width under 768px that a 44 by 44 circle
   would have to cancel. The button has an accessible name (aria-label). Disabled = the native attribute, no opacity. The
   icon uses the existing .icon mechanism; its color is the Icon/Color role of each state. */

/* ----------------------------------------------------------
   ICON BUTTON
   The size is fixed at 44 by 44 with border-box, so the 1px Primary Disabled border needs no discount from a padding.
   ---------------------------------------------------------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;  /* Figma: 44 (WCAG 2.5.5 target size); no 44px spacing token */
  height: 44px;
  margin: 0;
  padding: 0;
  font: inherit;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out);
}

.icon-btn .icon {
  width: var(--space-6);
  height: var(--space-6);
}

/* Primary: Default and Focus Background/Neutral/Default, Hover Neutral/Hover; icon in the Neutral mode. */
.icon-btn--primary {
  color: var(--icon-color-neutral);
  background-color: var(--color-bg-neutral-default);
}

.icon-btn--primary:hover {
  background-color: var(--color-bg-neutral-hover);
}

/* Ghost: no fill and no border; Hover Background/Default/Secondary. Icon Secondary, Default on hover. */
.icon-btn--ghost {
  color: var(--icon-color-secondary);
  background-color: transparent;
}

.icon-btn--ghost:hover {
  color: var(--icon-color-default);
  background-color: var(--color-bg-alt);
}

/* Focus: 52 by 52 ring (44 + 2 x (2 + 2)), following the pill radius. */
.icon-btn:focus-visible {
  border-radius: var(--radius-pill);  /* reset.css sets radius-xs on button:focus-visible, which squared the button on focus */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

.icon-btn--ghost:focus-visible {
  color: var(--icon-color-secondary);
}

/* Disabled: the disabled tokens, no opacity. Primary has a 1px Disabled border; Ghost has none. */
.icon-btn:disabled,
.icon-btn[aria-disabled="true"] {
  color: var(--icon-color-disabled);
  cursor: not-allowed;
}

.icon-btn--primary:disabled,
.icon-btn--primary[aria-disabled="true"] {
  background-color: var(--color-bg-disabled-default);
  border: var(--border-width-normal) solid var(--color-border-disabled-default);
}

.icon-btn--ghost:disabled,
.icon-btn--ghost[aria-disabled="true"] {
  background-color: transparent;
}

@media (forced-colors: active) {
  .icon-btn {
    border: 1px solid ButtonText;
  }
  .icon-btn:disabled {
    border-color: GrayText;
  }
}

/* ===== css/components/icon.css ===== */
/* Hope DS: css/components/icon.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   ICONS (Phosphor — regular weight, filled silhouette)
   ---------------------------------------------------------- */
.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: currentColor;
}

/* 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--neutral { color: var(--icon-color-neutral); }
.icon--on-neutral { color: var(--icon-color-neutral); } /* deprecated 2026-11, use .icon--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);
}

/* ===== css/components/input.css ===== */
/* Hope DS: css/components/input.css
   Figma: Core, Input. The box, the states and the label are in field.css (shared with Textarea and Select).
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   INPUT
   Value Empty is the placeholder (field.css), Value Filled is the control's own color.
   ---------------------------------------------------------- */
.input {
  min-width: 0;
  text-overflow: ellipsis;
}

/* ===== css/components/lightbox.css ===== */
/* Hope DS: css/components/lightbox.css
   Split from css/components.css on 2026-11-20 (D-18). Aligned to Figma Core, Lightbox (component 2456:4) and Lightbox close (set 2570:1148, page "Lightbox") in v2.13.0 and v2.13.1.
   Edit this file, then run: npm run css:build. The behavior (open from an image, close, focus trap, inert page, scroll lock)
   is in js/lightbox.js, which builds the markup below and opens it from every image of .case-section and from any
   <img data-lightbox> (the docs demo). The caption comes from the figcaption of the image. */

/* ----------------------------------------------------------
   LIGHTBOX: full-screen image viewer
   ---------------------------------------------------------- */

/* 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, padding 24 (Figma), layer Z-index/z-modal (200), the same level as the Modal. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  box-sizing: border-box;
  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;
}

/* Backdrop: Background/Utilities/Scrim Strong (Neutral ink at 88%) plus a background blur. The Figma effect is a raw
   BACKGROUND_BLUR of radius 12 (not a style). The Figma radius is double the CSS radius, so Figma 12 is blur(6px) (decided
   2026-11-24; Figma's own code export gives blur(6px); the source of the equivalence is Figma forum answers, not the official
   docs). No blur token matches it (--blur-glass is 24px with saturation), so the value is a literal. Accepted divergence in
   docs/data/accepted-divergences.json. */
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--color-bg-scrim-strong);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}

/* Panel: image and caption, gap 16. The image is up to 960 wide. Motion (scale and fade) is the one the repo already had;
   Figma defines none, and it is removed under reduced motion. */
.lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 100%;
  /* 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);
}

/* Media: hugs the image, so the close button sits at the corner of the image (Figma: the top-right of a panel as wide as the
   image). */
.lightbox__media {
  position: relative;
  display: flex;
  max-width: 100%;
}

/* Image: radius 16 and Shadow/lg (Figma). It never grows past 960 wide (Figma: 960, no spacing token), and its height leaves
   room above for the close button (40px) and below for a caption of up to three lines, so the button always stays inside the
   viewport. The image has no border, and the panel has no root border. */
.lightbox__img {
  display: block;
  max-width: min(960px, calc(100vw - 2 * var(--space-6)));
  max-height: calc(100dvh - 2 * (var(--space-6) + var(--space-10)) - 6rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Caption: Body/Regular/body-sm, the Figma white variable at 55%, centered, 520 wide. */
.lightbox__caption {
  max-width: 520px;  /* Figma: 520, no spacing token */
  margin: 0;
  font-family: var(--font-body);
  font-size:   var(--fs-body-sm);
  line-height: var(--lh-160);
  text-align:  center;
  color:       color-mix(in srgb, var(--color-cloud) 55%, transparent);
}

/* Close button (Figma component Lightbox close: Default, Hover, Focus; no Disabled). A 36 by 36 circle at the top-right corner of
   the image, 40px above it (Figma: x 924, y -40 in a 960 panel). The two glass layers use the Figma primitive white (no CSS
   token of that name; --color-cloud is the same #FFFFFF): fill at 12%, edge 1px at 18%, the edge part of the 36 (border-box).
   The X is 20px at 80% opacity. Hover: fill 22%, edge 32%, X at 100%. Focus: Default plus a ring in Border/Accent/Default
   (--color-border-accent-default, Solar), 2px with a 2px gap (44 by 44 around the circle, radius 22). The X is white in BOTH
   themes on purpose: the Lightbox scrim is dark in both, so it does not follow Icon/Color (Neutral would turn ink in Dark).
   Dark mode era item: reevaluate when dark mode lands. */
.lightbox__close {
  position: absolute;
  top:   calc(-1 * var(--space-10));
  right: 0;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width:  36px;  /* Figma: 36, no spacing token */
  height: 36px;
  padding: 0;
  color: var(--color-cloud);
  background: color-mix(in srgb, var(--color-cloud) 12%, transparent);
  border: var(--border-width-normal) solid color-mix(in srgb, var(--color-cloud) 18%, transparent);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background   var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}
.lightbox__close .icon {
  width: var(--space-5);
  height: var(--space-5);
  opacity: 0.8;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.lightbox__close:hover {
  background: color-mix(in srgb, var(--color-cloud) 22%, transparent);
  border-color: color-mix(in srgb, var(--color-cloud) 32%, transparent);
}
.lightbox__close:hover .icon {
  opacity: 1;
}
.lightbox__close:focus-visible {
  border-radius: var(--radius-pill);  /* reset.css sets radius-xs on button:focus-visible */
  outline: var(--focus-ring-width) solid var(--color-border-accent-default);   /* Solar, in both themes: sits on the dark scrim */
  outline-offset: var(--focus-ring-gap);
}

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

@media (forced-colors: active) {
  .lightbox__close {
    forced-color-adjust: none;
    color: ButtonText;
    background: ButtonFace;
    border-color: ButtonText;
  }
}

/* ===== css/components/link.css ===== */
/* Hope DS: css/components/link.css
   Figma: Core, Link (Size Medium|Small, State Default|Hover|Focus|Disabled).
   New classes only: the global a rules in css/reset.css are untouched, so anchors
   without .link render as before.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   LINK
   Always underlined, no icon. Hover and Focus change only the weight (400 to 700),
   which widens the text by about 1px (a small layout shift, as in Figma).
   ---------------------------------------------------------- */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  letter-spacing: var(--ls-normal);
  color: var(--color-text-1);
  text-decoration: underline;
}

.link--small {
  font-size: var(--fs-body-xs);
}

.link:hover {
  color: var(--color-text-1);
  font-weight: var(--fw-bold);
}

/* Square ring (no radius), 2px with a 2px gap, as in the other components. */
.link:focus-visible {
  color: var(--color-text-1);
  font-weight: var(--fw-bold);
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
  border-radius: 0;
}

/* Disabled stays regular weight at both sizes, also on hover. Use an anchor without
   href (not focusable) plus aria-disabled="true". */
.link[aria-disabled="true"],
.link[aria-disabled="true"]:hover {
  color: var(--color-text-disabled-default);
  font-weight: var(--fw-regular);
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== css/components/logo-strip.css ===== */
/* Hope DS: css/components/logo-strip.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

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

/* ===== css/components/menu.css ===== */
/* Hope DS: css/components/menu.css
   Figma: Core, Menu (panel, 2413:381) and Menu item (Tone Default|Danger, State Default|Hover|Focus|Selected|Disabled,
   set 2413:380). Edit this file, then run: npm run css:build. The behavior (open and close, arrow keys, Escape) is in
   js/menu.js. Typeahead is not coded. Positioning against the trigger is opt-in (see .menu[data-placement] below).

   Markup contract (docs/components/menu.html):
     <button type="button" class="btn btn--secondary" id="m-trigger" aria-haspopup="menu" aria-expanded="false" aria-controls="m-panel">Conta</button>
     <div class="menu" role="menu" id="m-panel" aria-labelledby="m-trigger" hidden>
       <button type="button" class="menu__item" role="menuitem" tabindex="-1"><span class="menu__label">Configurações</span></button>
       <button type="button" class="menu__item" role="menuitem" tabindex="-1" aria-disabled="true"><span class="menu__label">Cobrança</span></button>
       <div class="menu__divider" role="separator"></div>
       <button type="button" class="menu__item menu__item--danger" role="menuitem" tabindex="-1"><span class="menu__label">Sair</span></button>
     </div>
   A chosen option (Selected in Figma) uses role="menuitemradio" (or menuitemcheckbox) with aria-checked="true"; the check
   icon is a child with the class menu__check and shows only when the item is checked. */

/* ----------------------------------------------------------
   MENU PANEL
   Figma strokesIncludedInLayout is true on the panel: it is 238 wide = 220 of item + 16 of padding + 2 of border, so
   the border is added to the box and the padding is not discounted. The items fill the panel (220 is the specimen).
   ---------------------------------------------------------- */
.menu {
  position: relative;
  z-index: var(--z-popover);  /* Figma Z-index/z-popover (300) */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2);
  font-family: var(--font-body);
  background-color: var(--color-bg);
  border: var(--border-width-normal) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.menu[hidden] {
  display: none;
}

/* Opt-in positioning: a panel with data-placement (and optionally data-align) is placed against its trigger by js/position.js, below
   and start-aligned by default, flipped near the viewport edge. Without the attribute the panel stays in flow as before. The width
   comes from the content (the items fill the panel), never below the content and never past the viewport minus the margin. Static
   fallback if the script does not run: absolute at its place in the flow, which is right under the trigger. */
.menu[data-placement] {
  position: absolute;
  width: max-content;
  max-width: calc(100vw - 2 * var(--space-4));
}

/* Divider: 1px Border/Default/Default across the inner width. Destructive actions go after one. */
.menu__divider {
  flex: none;
  width: 100%;
  height: var(--border-width-normal);
  margin: 0;
  background-color: var(--color-border);
  border: 0;
}

/* ----------------------------------------------------------
   MENU ITEM
   36 high, padding 0 12, gap 8, radius 8, label Regular body-sm. The optional 16px check sits on the right.
   ---------------------------------------------------------- */
.menu__item {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  height: 36px;  /* Figma: 36, no spacing token */
  margin: 0;
  padding: 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  text-align: left;
  color: var(--color-text-1);
  background-color: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out);
}

.menu__label {
  flex: 1 1 0;
  min-width: 0;
}

/* Two classes: icon.css loads after this file and its .icon sets 1em, so one class would lose. */
.menu__item .menu__check {
  display: none;
  flex: none;
  width: var(--space-4);
  height: var(--space-4);
  color: var(--icon-color-default);
}

/* Hover (Default and Danger): Background/Default/Secondary. */
.menu__item:hover:not([aria-disabled="true"]) {
  background-color: var(--color-bg-alt);
}

/* A link item (for example the hidden levels of a collapsed Breadcrumb): reset.css colors a:hover with the brand hover color,
   but the item keeps its own text color. Danger and Disabled have their own rules and are left out. */
a.menu__item:hover:not(.menu__item--danger, [aria-disabled="true"]) {
  color: var(--color-text-1);
}

/* Focus: ring 228 by 44 around a 220 by 36 item (4px outside), radius 12 on the outer edge. The ring sits inside the
   8px panel padding, so the panel needs no overflow. */
.menu__item:focus-visible {
  border-radius: var(--radius-sm);  /* reset.css sets radius-xs on button:focus-visible */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Selected (a chosen option): Background/Default/Secondary, SemiBold, check visible. */
.menu__item[aria-checked="true"] {
  font-weight: var(--fw-semibold);
  background-color: var(--color-bg-alt);
}

.menu__item[aria-checked="true"] .menu__check {
  display: block;
}

/* Danger (Figma Tone=Danger, set 2413:380, 10 variants):
   Default and Hover: Text/Danger/Default, the Hover fill is the same as Default.
   Focus: the shared ring (Border/Utilities/Focus Ring) and the text stays Text/Danger/Default.
   Selected: Background/Default/Secondary, SemiBold, text Text/Danger/Default, check in the Danger mode of Icon/Color.
   Disabled: identical to Default Disabled (below); the variant exists so a Tone switch never lands on a missing combination.
   Each state has its own selector, so the text color does not depend on source order. */
.menu__item--danger,
.menu__item--danger:hover:not([aria-disabled="true"]),
.menu__item--danger:focus-visible,
.menu__item--danger[aria-checked="true"] {
  color: var(--color-text-danger-default);
}

.menu__item--danger[aria-checked="true"] .menu__check {
  color: var(--icon-color-danger);
}

/* Disabled: Text/Disabled/Default, no opacity. aria-disabled keeps it in the arrow-key order of assistive technology,
   js/menu.js skips it. */
.menu__item[aria-disabled="true"],
.menu__item--danger[aria-disabled="true"] {
  color: var(--color-text-disabled-default);
  cursor: not-allowed;
}

.menu__item--danger[aria-disabled="true"] .menu__check {
  color: var(--icon-color-disabled);
}

@media (forced-colors: active) {
  .menu {
    border-color: CanvasText;
  }
  .menu__divider {
    background-color: CanvasText;
  }
  .menu__item {
    forced-color-adjust: none;
    color: ButtonText;
  }
  .menu__item:hover:not([aria-disabled="true"]) {
    color: HighlightText;
    background-color: Highlight;
  }
  .menu__item[aria-disabled="true"] {
    color: GrayText;
  }
}

/* ===== css/components/modal.css ===== */
/* Hope DS: css/components/modal.css
   Figma: Core, Modal (component 2413:472, page "Modal"). Edit this file, then run: npm run css:build. The behavior (open and
   close, focus trap, Escape, inert page, scroll lock) is in js/modal.js.

   Markup contract (docs/components/modal.html):
     <button type="button" class="btn btn--secondary" data-modal-open="m-confirm">Excluir projeto</button>
     <div class="modal" role="dialog" aria-modal="true" id="m-confirm" aria-labelledby="m-confirm-title" aria-describedby="m-confirm-body" hidden>
       <div class="modal__header">
         <h2 class="modal__title" id="m-confirm-title">Excluir projeto?</h2>
         <button type="button" class="modal__close" aria-label="Fechar" data-modal-close><svg class="icon" ...>X</svg></button>
       </div>
       <p class="modal__body" id="m-confirm-body">Texto de apoio.</p>
       <div class="modal__footer">                         (optional: Figma "Show footer")
         <button type="button" class="btn btn--secondary" data-modal-close>Cancelar</button>
         <button type="button" class="btn btn--primary">Confirmar</button>
       </div>
     </div>
   js/modal.js creates the scrim (.modal-scrim) and moves the dialog to the end of <body>, so the page behind can be made
   inert without making the dialog inert. A click on the scrim does not close the Modal: it is for decisions. */

/* ----------------------------------------------------------
   SCRIM
   Background/Utilities/Scrim (--color-bg-scrim), layer Z-index/z-modal-scrim (100).
   ---------------------------------------------------------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-scrim);
  background-color: var(--color-bg-scrim);
}

.modal-scrim[hidden] {
  display: none;
}

/* ----------------------------------------------------------
   MODAL PANEL
   Figma strokesIncludedInLayout is true on the panel: 480 is the OUTER width (430 of content + 48 of padding + 2 of
   border), so box-sizing is border-box and nothing is discounted from the padding. Layer Z-index/z-modal (200), above the
   scrim and below the Toast (500). Centered with inset and auto margins (no transform). On narrow screens the panel keeps
   a 16px margin each side (--space-4): the width is min(480, 100% - 32), the panel is as tall as its content up to the viewport
   minus the same margin, the BODY scrolls and the header and footer stay in view (Figma Info text, approved 2026-11-24).
   No motion: Figma defines none, so the panel appears and disappears at once (nothing to remove for reduced motion).
   ---------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  width: min(480px, calc(100% - 2 * var(--space-4)));  /* Figma: 480, no spacing token */
  height: fit-content;
  max-height: calc(100dvh - 2 * var(--space-4));
  margin: auto;
  padding: var(--space-6);
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--color-bg);
  border: var(--border-width-normal) solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal[hidden] {
  display: none;
}

/* The dialog gets the focus when it has nothing focusable: no ring on the panel itself. */
.modal:focus {
  outline: none;
}

/* Header: title and close button, gap 12. Fixed while the body scrolls. */
.modal__header {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Title: Heading/H3 (display font, Bold, 16px, line height 1.4), Text/Default/Default. */
.modal__title {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-140);
  color: var(--color-text-1);
}

/* Close: the 20px X icon in the Icon/Color Secondary mode. It follows the Icon Button Ghost behavior (Figma Info text): Hover
   fills Background/Default/Secondary (--color-bg-alt) and the X goes to Icon/Color Default; Focus is the shared ring (2px, 2px gap)
   following the pill radius. The hover fill and the hit area are a transparent pseudo-element of 28 by 28 (4px around the X, which
   also covers the tips of the glyph; WCAG 2.5.8 asks 24 by 24) so the layout does not change. It is not a new component. */
.modal__close {
  position: relative;
  display: flex;
  flex: none;
  width: var(--space-5);
  height: var(--space-5);
  margin: 0;
  padding: 0;
  color: var(--icon-color-secondary);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-out);
}

.modal__close .icon {
  position: relative;  /* above the hover fill */
  z-index: 1;
  width: 100%;
  height: 100%;
}

.modal__close::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-1) * -1);
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-normal) var(--ease-out);
}

.modal__close:hover {
  color: var(--icon-color-default);
}

.modal__close:hover::after {
  background-color: var(--color-bg-alt);
}

.modal__close:focus-visible {
  border-radius: var(--radius-pill);  /* reset.css sets radius-xs on button:focus-visible */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Body: Body/Regular/body-sm, Text/Default/Secondary. Free content is allowed. It scrolls when the content passes the height of the
   screen (js/modal.js gives it tabindex="0" then, so the keyboard can scroll it). */
.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* The scroll box would clip the focus ring (4px) of a link or control inside the body: 4px of padding give it room and the
     same negative margin keeps the layout where Figma has it. */
  margin: calc(var(--space-1) * -1);
  padding: var(--space-1);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-2);
}

.modal__body:focus-visible {
  border-radius: var(--radius-xs);
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Footer ("Show footer"): fixed while the body scrolls, right aligned, gap 12. Figma shows both buttons at 184 wide, a fixed width on the instances and not
   a Button rule, so the buttons hug their label here. .btn is full width under 768px; inside the dialog it hugs too. */
.modal__footer {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
}

.modal__footer .btn {
  width: auto;
}

/* Forced colors: the border is the only edge of the panel. */
@media (forced-colors: active) {
  .modal {
    border-color: CanvasText;
  }
  .modal__close {
    forced-color-adjust: none;
    color: ButtonText;
  }
}

/* ===== css/components/pagination.css ===== */
/* Hope DS: css/components/pagination.css
   Figma: Core, Pagination item (Type Number|Prev|Next|Ellipsis, State Default|Hover|Focus|Current|Disabled), set 2413:261.
   Edit this file, then run: npm run css:build.

   Markup contract (docs/components/pagination.html):
     <nav class="pagination" aria-label="Paginação">
       <ul class="pagination__list">
         <li><a class="pagination__item" aria-disabled="true" aria-label="Página anterior"><svg class="icon" ... aria-hidden="true">...</svg></a></li>
         <li><a class="pagination__item" href="?p=1" aria-label="Página 1">1</a></li>
         <li><a class="pagination__item" href="?p=2" aria-label="Página 2" aria-current="page">2</a></li>
         <li><span class="pagination__item pagination__item--ellipsis" aria-hidden="true"><svg class="icon" ...>...</svg></span></li>
         <li><a class="pagination__item" href="?p=3" aria-label="Próxima página"><svg class="icon" ...>...</svg></a></li>
       </ul>
     </nav>
   Disabled Prev and Next: a link with aria-disabled="true" and NO href, so it is neither focusable nor activatable (same
   idea as Link, which is disabled through aria-disabled). The Ellipsis is a decorative span, not focusable. */

/* ----------------------------------------------------------
   PAGINATION
   Items are 36 by 36 with radius 12, 4px apart (Figma example). The number is Medium body-sm. Current is the only
   state that is not just a color change: a dark fill, plus aria-current="page".
   ---------------------------------------------------------- */
.pagination {
  font-family: var(--font-body);
}

.pagination__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination__item {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;  /* Figma: 36, no spacing token */
  height: 36px;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-160);
  color: var(--color-text-1);
  text-decoration: none;
  background-color: transparent;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out);
}

.pagination__item .icon {
  width: var(--space-5);
  height: var(--space-5);
  color: var(--icon-color-default);
}

/* Hover (Number, Prev, Next): Background/Default/Secondary. */
.pagination__item:hover:not([aria-disabled="true"], [aria-current="page"], .pagination__item--ellipsis) {
  background-color: var(--color-bg-alt);
}

/* Focus: ring 44 by 44 (36 + 2 x (2 ring + 2 gap)), radius 16 on the outer edge: the outline follows the 12px radius
   plus the 2px offset and the 2px width. */
.pagination__item:focus-visible {
  border-radius: var(--radius-md);  /* reset.css sets radius-xs on a:focus-visible and button:focus-visible */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Current: Background/Neutral/Default with Text/Neutral/Default. */
.pagination__item[aria-current="page"] {
  color: var(--color-text-neutral-default);
  background-color: var(--color-bg-neutral-default);
  cursor: default;
}

/* Disabled: text and icon use the disabled roles, no opacity. */
.pagination__item[aria-disabled="true"] {
  color: var(--color-text-disabled-default);
  cursor: not-allowed;
}

.pagination__item[aria-disabled="true"] .icon {
  color: var(--icon-color-disabled);
}

/* Ellipsis: DotsThree 20px, Default only, not interactive. */
.pagination__item--ellipsis {
  cursor: default;
}

@media (forced-colors: active) {
  .pagination__item {
    forced-color-adjust: none;
    color: LinkText;
  }
  .pagination__item .icon {
    color: LinkText;
  }
  .pagination__item[aria-current="page"] {
    color: HighlightText;
    background-color: Highlight;
  }
  .pagination__item[aria-disabled="true"],
  .pagination__item[aria-disabled="true"] .icon {
    color: GrayText;
  }
  .pagination__item--ellipsis,
  .pagination__item--ellipsis .icon {
    color: CanvasText;
  }
}

/* ===== css/components/persona.css ===== */
/* Hope DS: css/components/persona.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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: var(--fw-bold);
  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: var(--fw-bold);
  color: var(--color-text-1);
  line-height: var(--lh-140);
}

.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 {
  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);
  color: var(--color-text-3);
  margin-bottom: var(--space-4);
}

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

/* The lists in a persona section are .brand-list (css/components/brand-list.css owns their values, from Figma).
   Inside .case-section__body the generic list rules there (16px text, 175% line height, 12px gap, 11px marker) are more
   specific, so these two rules restate only what they would override. */
.persona .persona__section .brand-list li {
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
}

.persona .persona__section .brand-list li::before {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
}

.persona .persona__section p {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
  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: var(--fw-bold);
  line-height: var(--lh-170);
  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);
  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-tertiary);
}

.persona__quotes-list .persona__quote:nth-child(4)    { background-color: var(--color-bg-positive-secondary); }
.persona__quotes-list .persona__quote:nth-child(n+5)  { background-color: var(--color-bg-danger-secondary); }

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

/* ===== css/components/popover.css ===== */
/* Hope DS: css/components/popover.css
   Figma: Core, Popover (component 2413:573, page "Popover"). Edit this file, then run: npm run css:build. The behavior (open and
   close, aria-expanded, Escape, click outside, flip) is in js/popover.js,
   which places the panel with js/position.js.

   Markup contract (docs/components/popover.html):
     <div class="popover-anchor">
       <button type="button" class="btn btn--secondary" id="p-trigger" data-popover-trigger aria-expanded="false" aria-controls="p-panel">Detalhes</button>
       <div class="popover" id="p-panel" hidden>
         <p class="popover__title">Título</p>                 (optional: Figma "Show title")
         <p class="popover__body">Contexto extra ou um controle pequeno.</p>
       </div>
     </div>
   The panel has no role when it holds text only. When it holds interactive content, add role="dialog" (without aria-modal) and
   aria-labelledby pointing at the title. It does not block the page and does not trap the focus (the Modal does). */

/* ----------------------------------------------------------
   ANCHOR
   The trigger and the panel share this wrapper; the panel is placed against it.
   ---------------------------------------------------------- */
.popover-anchor {
  position: relative;
  display: inline-block;
}

/* ----------------------------------------------------------
   POPOVER PANEL
   Figma strokesIncludedInLayout is true: 280 is the outer width (246 of content + 32 of padding + 2 of border), so
   box-sizing is border-box. Placement: below the trigger, aligned to its start, 8px away (--space-2); Figma defines no
   arrow and no placement. This is the CSS default (below, start, 8px). js/position.js replaces it with inline left and top while the
   panel is open: it flips above when the panel does not fit below, aligns to the end or shifts when it would leave the viewport.
   ---------------------------------------------------------- */
.popover {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: var(--z-popover);  /* Figma Z-index/z-popover (300) */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 280px;  /* Figma: 280, no spacing token */
  max-width: calc(100vw - 2 * var(--space-4));
  padding: var(--space-4);
  font-family: var(--font-body);
  background-color: var(--color-bg);
  border: var(--border-width-normal) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.popover[hidden] {
  display: none;
}

/* Title ("Show title"): Body/SemiBold/body-sm semibold, Text/Default/Default. */
.popover__title {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-160);
  color: var(--color-text-1);
}

/* Body: Body/Regular/body-sm, Text/Default/Secondary. Free content (links, a small control) is allowed. */
.popover__body {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-2);
}

@media (forced-colors: active) {
  .popover {
    border-color: CanvasText;
  }
}

/* ===== css/components/progress.css ===== */
/* Hope DS: css/components/progress.css
   Figma: Core, Progress (Value 0|25|50|75|100 are the documented values; in code the fill is any value).
   Determinate only: for a wait with no known percentage use the Spinner. Edit this file, then run: npm run css:build

   Markup contract (docs/components/progress.html):
     <div class="progress">
       <div class="progress__header">
         <span class="progress__label" id="ID">Uploading</span>
         <span class="progress__value" aria-hidden="true">50%</span>
       </div>
       <div class="progress__bar progress__bar--50" role="progressbar" aria-labelledby="ID" aria-valuemin="0" aria-valuemax="100"
            aria-valuenow="50">
         <span class="progress__fill"></span>
       </div>
     </div>
   Why not a native <progress>: tested in Chromium, Firefox and WebKit. The native element matched the geometry in all
   three, but Firefox draws ::-moz-progress-bar without honoring transitions, so the fill jumped instead of animating.
   The div with role="progressbar" animates in every engine.
   The modifier classes cover the five Figma values; for another percentage set style="--progress-value: 37%" on the bar
   and keep aria-valuenow in sync (the CSS cannot read the ARIA attribute). The visible value is hidden from assistive
   technology because the progressbar already reports it. Without a visible label use aria-label instead of
   aria-labelledby. */

/* ----------------------------------------------------------
   PROGRESS
   Track 8px high with a pill radius. The fill animates its width with the base duration and ease-in-out; the global
   reduced-motion rule in tokens.css removes the transition.
   ---------------------------------------------------------- */
.progress {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-body);
}

.progress__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-160);
  white-space: nowrap;
}

.progress__label {
  color: var(--color-text-1);
}

.progress__value {
  color: var(--color-text-2);
}

.progress__bar {
  --progress-value: 0%;
  display: block;
  width: 100%;
  height: var(--space-2);
  overflow: hidden;
  background-color: var(--color-border-input);
  border-radius: var(--radius-pill);
}

/* The five values of the Figma Value property. Any other percentage: set --progress-value on the bar. */
.progress__bar--0 { --progress-value: 0%; }
.progress__bar--25 { --progress-value: 25%; }
.progress__bar--50 { --progress-value: 50%; }
.progress__bar--75 { --progress-value: 75%; }
.progress__bar--100 { --progress-value: 100%; }

.progress__fill {
  display: block;
  width: var(--progress-value);
  height: 100%;
  background-color: var(--color-bg-neutral-default);
  border-radius: var(--radius-pill);
  transition: width var(--duration-normal) var(--ease-in-out);
}

@media (forced-colors: active) {
  .progress__bar {
    forced-color-adjust: none;
    background-color: Canvas;
    border: 1px solid CanvasText;
  }
  .progress__fill {
    background-color: Highlight;
  }
}

/* ===== css/components/radio.css ===== */
/* Hope DS: css/components/radio.css
   Figma: Core, Radio (Selected Unselected|Selected, State Default|Hover|Focus|Error|Disabled).
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/radio.html): same shape as the checkbox, with type="radio", inside a
   <fieldset><legend> for the group:
     <div class="radio">
       <input type="radio" class="radio__input" id="ID" name="group" aria-describedby="ID-help">
       <label class="radio__label" for="ID">Label</label>
       <p class="radio__help" id="ID-help">Helper text</p>
     </div>
   The helper sits outside the label, so the accessible name is the label only and the helper is the description.
   Real radio with appearance: none. Selected = :checked, Error = aria-invalid="true", Disabled = the disabled
   attribute. Hover is drawn when the pointer is over the circle, the label or the helper (Figma defines it on the
   circle only; an inference). */

/* ----------------------------------------------------------
   RADIO
   20x20 circle, 1.5px border drawn inside (border-box), 8px dot.
   ---------------------------------------------------------- */
.radio {
  display: grid;
  grid-template-columns: var(--space-5) 1fr;
  align-items: start;
  column-gap: var(--space-2);
  row-gap: var(--space-1);
  font-family: var(--font-body);
}

.radio__input {
  position: relative;
  grid-row: 1;
  width: var(--space-5);
  height: var(--space-5);
  margin: 0;
  background-color: var(--color-bg);
  border: var(--border-width-medium) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  appearance: none;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.radio__input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--space-2);
  height: var(--space-2);
  translate: -50% -50%;
  background-color: var(--color-text-neutral-default);
  border-radius: var(--radius-pill);
  opacity: 0;
}

.radio__input:checked {
  background-color: var(--color-bg-neutral-default);
  border-color: var(--color-bg-neutral-default);
}

.radio__input:checked::after {
  opacity: 1;
}

.radio:hover .radio__input:not(:disabled) {
  background-color: var(--color-bg-alt);
}

.radio:hover .radio__input:not(:disabled):checked {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
}

/* Focus: 28x28 ring around the circle only. */
.radio__input:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

.radio__input[aria-invalid="true"],
.radio:hover .radio__input[aria-invalid="true"]:not(:disabled) {
  border-color: var(--color-border-danger-default);
}

.radio__label {
  grid-row: 1;
  grid-column: 2;
  cursor: pointer;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-1);
}

.radio__help {
  grid-row: 2;
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-3);
}

.radio__input[aria-invalid="true"] ~ .radio__help {
  font-weight: var(--fw-medium);
  color: var(--color-text-danger-default);
}

/* Disabled: no opacity. The dot uses Text/Disabled/Inverse. */
.radio__input:disabled {
  background-color: var(--color-bg-disabled-default);
  border-color: var(--color-border-disabled-default);
  cursor: not-allowed;
}

.radio__input:disabled::after {
  background-color: var(--color-text-disabled-inverse);
}

.radio__input:disabled ~ .radio__label {
  cursor: not-allowed;
}

.radio__input:disabled ~ .radio__label,
.radio__input:disabled ~ .radio__help {
  color: var(--color-text-disabled-default);
}

@media (forced-colors: active) {
  .radio__input {
    forced-color-adjust: none;
    background-color: Canvas;
    border-color: CanvasText;
  }
  .radio__input:checked {
    background-color: Canvas;
    border-color: Highlight;
  }
  .radio__input::after {
    background-color: Highlight;
  }
  .radio__input:disabled {
    border-color: GrayText;
  }
  .radio__input:disabled::after {
    background-color: GrayText;
  }
}

/* ===== css/components/result-card.css ===== */
/* Hope DS: css/components/result-card.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

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

.result-card__title {
  font-family:    var(--font-display);
  font-size:      var(--fs-h3);
  font-weight:    var(--fw-bold);
  color:          var(--color-text-1);
  line-height:    var(--lh-140);
}
.result-card__body {
  font-family: var(--font-body);
  font-size:   var(--fs-body-sm);
  line-height: var(--lh-170);
  color:       var(--color-text-2);
}

/* ===== css/components/select.css ===== */
/* Hope DS: css/components/select.css
   Figma: Core, Select (the closed trigger). The box, the states and the label are in field.css.
   Native <select>: the options panel is the browser's own (Figma draws it with the Menu component, not coded).
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   SELECT
   Value Empty: the placeholder option is chosen. Give the first option an empty value, and mark the select
   required (:invalid) or rely on :has(). Value Filled: the control's own color. The 16px CaretDown is the
   .field__icon after the select (field.css), so its color follows the Icon/Color tokens.
   ---------------------------------------------------------- */
.select {
  min-width: 0;
  text-overflow: ellipsis;
  cursor: pointer;
}

.select:invalid,
.select:has(option[value=""]:checked) {
  color: var(--color-text-3);
}

.select:disabled:invalid,
.select:disabled:has(option[value=""]:checked) {
  color: var(--color-text-disabled-inverse);
}

/* The panel lists real values: keep them in the filled color. */
.select option {
  color: var(--color-text-1);
}

/* ===== css/components/separator.css ===== */
/* Hope DS: css/components/separator.css
   Figma: Core, Separator (one variant). A 1px horizontal rule in Border/Default/Default.
   Decorative: use <hr class="separator" aria-hidden="true">. No vertical variant exists in Figma.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   SEPARATOR
   ---------------------------------------------------------- */
.separator {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: var(--border-width-normal) solid var(--color-border);
}

/* ===== css/components/skeleton.css ===== */
/* Hope DS: css/components/skeleton.css
   Figma: Core, Skeleton (Shape Text|Title|Avatar|Block). A placeholder that imitates the shape of the content.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/skeleton.html):
     <div aria-busy="true">
       <span class="skeleton skeleton--title" aria-hidden="true"></span>
       <span class="skeleton skeleton--text" aria-hidden="true"></span>
     </div>
   The container is marked aria-busy and the pieces are decorative. Use it for a load that takes more than about 300ms;
   below that show nothing. The width is fluid (Figma shows 240 for Text and Block, 160 for Title); set it on the piece
   or its container. */

/* ----------------------------------------------------------
   SKELETON
   Fill Border/Default/Default, no stroke. The pulse is documented in Figma, not drawn: a soft opacity pulse in
   ease-in-out. Figma names no duration, so it is two periods of the deliberate duration (a gap in the docs data); the
   global reduced-motion rule in tokens.css stops it.
   ---------------------------------------------------------- */
.skeleton {
  display: block;
  width: 100%;
  background-color: var(--color-border);
  animation: skeleton-pulse calc(var(--duration-deliberate) * 2) var(--ease-in-out) infinite;
}

.skeleton--text {
  height: var(--space-3);
  border-radius: var(--radius-sm);
}

.skeleton--title {
  height: var(--space-5);
  border-radius: var(--radius-sm);
}

.skeleton--avatar {
  width: var(--space-10);
  height: var(--space-10);
  border-radius: var(--radius-pill);
}

.skeleton--block {
  height: 120px;  /* Figma Block: 120, no spacing token */
  border-radius: var(--radius-md);
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Forced colors replace backgrounds with the canvas: the pieces keep a visible fill. */
@media (forced-colors: active) {
  .skeleton {
    forced-color-adjust: none;
    background-color: GrayText;
  }
}

/* ===== css/components/skill-card.css ===== */
/* Hope DS: css/components/skill-card.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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-default);
  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: var(--fw-bold);
  color: var(--color-text-1);
  line-height: var(--lh-140);
}
.skill-card__body {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-170);
  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: var(--lh-170);

  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: var(--fw-bold);
  color: var(--color-text-2);
  line-height: var(--lh-140);
  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: var(--lh-170);
  margin: 0;
}

/* ===== css/components/spinner.css ===== */
/* Hope DS: css/components/spinner.css
   Figma: Core, Spinner (one size, 24 by 24). A wait with no known duration; with a known percentage use the Progress.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/spinner.html):
     <div class="spinner" role="status">
       <span class="spinner__ring" aria-hidden="true"></span>
       <span class="visually-hidden">Loading</span>
     </div>
   The ring is decorative. The visually hidden text is the accessible name and is supplied by the author, in the language
   of the page (Figma uses "Carregando"). The spinner is a status: it only says "busy" and has no value, so it is not an
   indeterminate <progress>. */

/* ----------------------------------------------------------
   SPINNER
   Figma draws a ring (2.4px thick) with an arc of about 99 degrees from 12 o'clock. Hope's own CSS, not Material's.
   Animation (Figma Core, decided in v2.12.0): a continuous turn per second, LINEAR. ease-in-out is only for pulses.
   Under prefers-reduced-motion the rotation becomes an opacity pulse in ease-in-out.
   ---------------------------------------------------------- */
.spinner {
  display: inline-flex;
  width: var(--space-6);
  height: var(--space-6);
}

.spinner__ring {
  --spinner-thickness: 2.4px;  /* Figma Stroke/thick (2.4), no CSS token yet */
  display: block;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, var(--color-bg-neutral-default) 0deg 99deg, var(--color-border) 99deg 360deg);
  border-radius: 50%;
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--spinner-thickness)), var(--color-bg-neutral-default) calc(100% - var(--spinner-thickness)));
  animation: spinner-rotate 1s linear infinite;
}

@keyframes spinner-rotate {
  to { transform: rotate(360deg); }
}

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

/* The global reduced-motion rule in tokens.css stops every animation with !important; the pulse is the documented
   replacement, so it must win over it. */
@media (prefers-reduced-motion: reduce) {
  .spinner__ring {
    animation-name: spinner-pulse !important;
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: var(--ease-in-out) !important;
  }
}

/* Forced colors: the ring and the arc keep visible system colors. */
@media (forced-colors: active) {
  .spinner__ring {
    forced-color-adjust: none;
    background: conic-gradient(from 0deg, Highlight 0deg 99deg, GrayText 99deg 360deg);
  }
}

/* ===== css/components/switch.css ===== */
/* Hope DS: css/components/switch.css
   Figma: Core, Switch (Checked Off|On, State Default|Hover|Focus|Disabled). There is no Error: a switch is not validated.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/switch.html): same shape as the checkbox, with role="switch":
     <div class="switch">
       <input type="checkbox" role="switch" class="switch__input" id="ID" aria-describedby="ID-help">
       <label class="switch__label" for="ID">Label</label>
       <p class="switch__help" id="ID-help">Helper text</p>
     </div>
   The helper sits outside the label, so the accessible name is the label only and the helper is the description.
   Real checkbox with appearance: none. On = :checked, Disabled = the disabled attribute. Hover is drawn when the
   pointer is over the track, the label or the helper (Figma defines it on the track only; an inference). */

/* ----------------------------------------------------------
   SWITCH
   40x24 track (border-box) with the 1.5px stroke included in layout (strokesIncludedInLayout true): the thumb is 4px
   from the stroke, so 5.5px from the outer edge horizontally, and centered vertically (4px from the top).
   Figma defines no motion: the thumb and colors use the same transition tokens as Button hover, and the global
   reduced-motion rule in tokens.css removes them.
   ---------------------------------------------------------- */
.switch {
  display: grid;
  grid-template-columns: var(--space-10) 1fr;
  align-items: start;
  column-gap: var(--space-3);
  row-gap: var(--space-1);
  font-family: var(--font-body);
}

.switch__input {
  position: relative;
  /* The track (24px) is taller than the label line (20.8px): it spans both rows, so the helper keeps its 4px gap under the label. */
  grid-row: 1 / span 2;
  width: var(--space-10);
  height: var(--space-6);
  margin: 0;
  background-color: var(--color-bg);
  border: var(--border-width-medium) solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  appearance: none;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

/* Thumb: left is measured from the padding box, which already starts after the 1.5px border, so 4px here is 5.5px
   from the outer edge. The top is 4px from the outer edge (centered), so the border is discounted there. */
.switch__input::after {
  content: "";
  position: absolute;
  top: calc(var(--space-1) - var(--border-width-medium));
  left: var(--space-1);
  width: var(--space-4);
  height: var(--space-4);
  background-color: var(--color-text-3);
  border-radius: var(--radius-pill);
  transition: translate var(--duration-normal) var(--ease-out), background-color var(--duration-normal) var(--ease-out);
}

.switch__input:checked {
  background-color: var(--color-bg-neutral-default);
  border-color: var(--color-bg-neutral-default);
}

.switch__input:checked::after {
  translate: calc(var(--space-10) - 2 * var(--border-width-medium) - 2 * var(--space-1) - var(--space-4)) 0;  /* 40 - 3 - 8 - 16 = 13 */
  background-color: var(--color-text-neutral-default);
}

.switch:hover .switch__input:not(:disabled) {
  background-color: var(--color-bg-alt);
}

.switch:hover .switch__input:not(:disabled):checked {
  background-color: var(--color-bg-neutral-hover);
  border-color: var(--color-bg-neutral-hover);
}

/* Focus: 48x32 ring around the track (40 + 4 + 4 by 24 + 4 + 4). */
.switch__input:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

.switch__label {
  grid-row: 1;
  grid-column: 2;
  cursor: pointer;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-1);
}

.switch__help {
  grid-row: 2;
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-160);
  color: var(--color-text-3);
}

/* Disabled: no opacity. */
.switch__input:disabled {
  background-color: var(--color-bg-disabled-default);
  border-color: var(--color-border-disabled-default);
  cursor: not-allowed;
}

.switch__input:disabled::after {
  background-color: var(--color-text-disabled-inverse);
}

.switch__input:disabled ~ .switch__label {
  cursor: not-allowed;
}

.switch__input:disabled ~ .switch__label,
.switch__input:disabled ~ .switch__help {
  color: var(--color-text-disabled-default);
}

@media (forced-colors: active) {
  .switch__input {
    forced-color-adjust: none;
    background-color: Canvas;
    border-color: CanvasText;
  }
  .switch__input::after {
    background-color: CanvasText;
  }
  .switch__input:checked {
    background-color: Highlight;
    border-color: Highlight;
  }
  .switch__input:checked::after {
    background-color: HighlightText;
  }
  .switch__input:disabled {
    background-color: Canvas;
    border-color: GrayText;
  }
  .switch__input:disabled::after {
    background-color: GrayText;
  }
}

/* ===== css/components/table.css ===== */
/* Hope DS: css/components/table.css
   Figma: Core, page "Table" (Table State Default|Focus, Table Header Cell Align Left|Right,
   Table Cell Type Data|Row header, Align Left|Right).
   Edit this file, then run: npm run css:build

   Markup contract (see docs/components/table.html):
     <div class="data-table" role="region" aria-labelledby="CAPTION_ID" tabindex="0">
       <table class="data-table__grid">
         <caption class="data-table__caption" id="CAPTION_ID">...</caption>
         <thead><tr><th scope="col" class="data-table__head-cell">...</th></tr></thead>
         <tbody><tr><th scope="row" class="data-table__row-header">...</th><td class="data-table__cell">...</td></tr></tbody>
       </table>
     </div>
   No rowspan or colspan. The wrapper is always focusable so keyboard users can scroll it.
   The block is named data-table, not table, because Tailwind ships a .table utility (display: table). */

/* ----------------------------------------------------------
   TABLE
   The wrapper owns the border, the radius and the horizontal scroll; the table is separate-border
   so nothing on it can square the wrapper corners.
   ---------------------------------------------------------- */
.data-table {
  max-width: 100%;
  overflow-x: auto;
  background-color: var(--color-bg);
  border: var(--border-width-normal) solid var(--color-border);
  border-radius: var(--radius-md);
}

/* Focus: 2px ring with a 2px gap. The outline follows the wrapper radius (12 + 2 + 2 = 16, Radius/radius-lg). */
.data-table:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

.data-table__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
  color: var(--color-text-1);
}

/* Optional, visible by default. Never hide it with display or visibility: use --hidden. */
.data-table__caption {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  font-weight: var(--fw-regular);
  color: var(--color-text-2);
  border-bottom: var(--border-width-normal) solid var(--color-border);
}

/* Visually hidden, still in the accessibility tree. */
.data-table__caption--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.data-table__head-cell,
.data-table__row-header,
.data-table__cell {
  padding: var(--space-3) var(--space-4);
  text-align: start;
  vertical-align: top;
  border-bottom: var(--border-width-normal) solid var(--color-border);
}

.data-table__head-cell {
  background-color: var(--color-bg-alt);
  font-weight: var(--fw-medium);
  color: var(--color-text-1);
}

.data-table__row-header {
  font-weight: var(--fw-medium);
  color: var(--color-text-1);
}

.data-table__cell {
  font-weight: var(--fw-regular);
  color: var(--color-text-1);
}

/* No separator under the last row. */
.data-table__grid tbody tr:last-child > * {
  border-bottom: 0;
}

/* Numeric columns: put the modifier on the header cell and on every cell of the column. */
.data-table__head-cell--end,
.data-table__row-header--end,
.data-table__cell--end {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

/* ===== css/components/tabs.css ===== */
/* Hope DS: css/components/tabs.css
   Figma: Core, Tab (Selected false|true, State Default|Hover|Focus|Disabled), set 2412:20. Edit this file, then run:
   npm run css:build. The behavior (selection, roving tabindex, arrow keys) is in js/tabs.js.

   Markup contract (docs/components/tabs.html):
     <div class="tabs">
       <div class="tabs__list" role="tablist" aria-label="Sections">
         <button type="button" class="tab" role="tab" id="t1" aria-selected="true" aria-controls="p1" tabindex="0">Visão geral</button>
         <button type="button" class="tab" role="tab" id="t2" aria-selected="false" aria-controls="p2" tabindex="-1">Atividade</button>
         <button type="button" class="tab" role="tab" id="t3" aria-selected="false" aria-disabled="true" aria-controls="p3" tabindex="-1">Arquivados</button>
       </div>
       <div class="tabs__panel" role="tabpanel" id="p1" aria-labelledby="t1">...</div>
       <div class="tabs__panel" role="tabpanel" id="p2" aria-labelledby="t2" hidden>...</div>
     </div>
   Without JavaScript the first panel stays visible and the others stay hidden: the markup carries that state. */

/* The block: carries the font for the list and the panels. */
.tabs {
  font-family: var(--font-body);
}

/* ----------------------------------------------------------
   TAB LIST
   A 1px line (Border/Default/Default) under the whole list. In Figma the list is the 40px tabs plus this line below
   them (41 high), so the selected tab's line sits on top of the baseline and does not cover it.
   ---------------------------------------------------------- */
.tabs__list {
  display: flex;
  align-items: flex-start;
  border-bottom: var(--border-width-normal) solid var(--color-border);
}

/* ----------------------------------------------------------
   TAB
   Figma strokesIncludedInLayout is true on the item: the 1.5px bottom line is part of the 40px height, so nothing is
   discounted. Every tab carries a transparent 1.5px bottom border, so a selected and an unselected tab have the same
   height and the label does not move. Padding 0 16, gap 0, centered.
   ---------------------------------------------------------- */
.tab {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 40px;  /* Figma: 40, no spacing token */
  margin: 0;
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-160);
  white-space: nowrap;
  color: var(--color-text-2);
  background: none;
  border: 0;
  border-bottom: var(--border-width-medium) solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out);
}

/* Hover (not selected): text Text/Default/Default, no background. A selected tab looks the same on hover. */
.tab:hover:not([aria-disabled="true"]) {
  color: var(--color-text-1);
}

/* Selected: the same text style as the others (Body/Medium/body-sm medium, decided 24/11/2026, so the label does not change
   width), text Text/Default/Default, bottom line Background/Neutral/Default. The selection is marked by the 1.5px bottom line and
   the text color. */
.tab[aria-selected="true"] {
  color: var(--color-text-1);
  border-bottom-color: var(--color-bg-neutral-default);
}

/* Focus: ring 2px with 2px gap, square (88 by 48 around an 80 by 40 item). */
.tab:focus-visible {
  /* reset.css sets border-radius: var(--radius-xs) on a:focus-visible and button:focus-visible, which beats the base
     rule of this file: the radius is repeated here so the shape does not change on focus. */
  border-radius: 0;
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Disabled: aria-disabled keeps the tab readable by assistive technology; the arrow keys skip it. Text and, when
   selected, the line use Text/Disabled/Default. */
.tab[aria-disabled="true"] {
  color: var(--color-text-disabled-default);
  cursor: not-allowed;
}

.tab[aria-disabled="true"][aria-selected="true"] {
  border-bottom-color: var(--color-text-disabled-default);
}

/* ----------------------------------------------------------
   PANEL
   Gets tabindex="0" only when it has no focusable content (js/tabs.js). The attribute hidden hides the others.
   ---------------------------------------------------------- */
.tabs__panel[hidden] {
  display: none;
}

.tabs__panel:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Forced colors replace the transparent border with a system color: set every border on purpose. */
@media (forced-colors: active) {
  .tabs__list {
    border-bottom-color: CanvasText;
  }
  .tab {
    forced-color-adjust: none;
    color: ButtonText;
    border-bottom-color: Canvas;
  }
  .tab[aria-selected="true"] {
    border-bottom-color: Highlight;
  }
  .tab[aria-disabled="true"] {
    color: GrayText;
  }
  .tab[aria-disabled="true"][aria-selected="true"] {
    border-bottom-color: GrayText;
  }
}

/* ===== css/components/tag.css ===== */
/* Hope DS: css/components/tag.css
   Figma: Core, Tag (State Default|Hover|Focus|Disabled, "Show dismiss", component set 2413:839). Edit this file, then run:
   npm run css:build. The behavior (Delete or Backspace removes, click removes) is in js/tag.js.

   Markup contract (docs/components/tag.html):
     <button type="button" class="tag" data-tag-removable aria-label="Remove filter Design">
       <span class="tag__label">Design</span>
       <svg class="icon tag__dismiss" viewBox="0 0 256 256" fill="currentColor" aria-hidden="true"><path d="..."/></svg>
     </button>
   The whole Tag is the button; the X is a visual cue inside it, not a second button. The accessible name is the visible label
   plus the action ("Remove filter Design"). A Tag that is not interactive is a Badge: do not use .tag for it. */

/* ----------------------------------------------------------
   TAG
   Figma strokesIncludedInLayout is true: the 1px border is part of the 28px height, so box-sizing is border-box and the
   padding stays 0 12 (width = 12 + content + 12 + 2 of border; 67 for the label "Tag" with the dismiss icon). Pill radius,
   gap 4, label Body/Medium/body-sm medium.
   ---------------------------------------------------------- */
.tag {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: var(--space-1);
  height: 28px;  /* Figma: 28, no spacing token */
  margin: 0;
  padding: 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-160);
  white-space: nowrap;
  color: var(--color-text-1);
  background-color: var(--color-bg-alt);
  /* Figma Border/Utilities/Input in Default, Hover and Focus (D-45): the Tag is interactive, so its edge follows the field
     border (3:1 against the page) instead of Border/Default/Default (1.29:1). Disabled keeps its own border token below. */
  border: var(--border-width-normal) solid var(--color-border-input);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--duration-normal) var(--ease-out);
}

/* Label: one line, the Tag hugs it. */
.tag__label {
  white-space: nowrap;
}

/* Dismiss: X 14px in the Icon/Color Secondary mode. Two classes: icon.css loads after this file and its .icon sets 1em. */
.tag .tag__dismiss {
  flex: none;
  width: 14px;  /* Figma: 14, no spacing token */
  height: 14px;
  color: var(--icon-color-secondary);
}

/* Hover: fill Border/Default/Default. */
.tag:hover:not(:disabled) {
  background-color: var(--color-border);
}

/* Focus: ring around the whole Tag, 75 by 36 around a 67 by 28 tag (4px outside each side), following the pill (radius 18). */
.tag:focus-visible {
  border-radius: var(--radius-pill);  /* reset.css sets radius-xs on button:focus-visible */
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
}

/* Disabled: fill, border, text and icon from the Disabled tokens, no opacity. */
.tag:disabled {
  color: var(--color-text-disabled-default);
  cursor: not-allowed;
  background-color: var(--color-bg-disabled-default);
  border-color: var(--color-border-disabled-default);
}

.tag:disabled .tag__dismiss {
  color: var(--icon-color-disabled);
}

@media (forced-colors: active) {
  .tag {
    forced-color-adjust: none;
    color: ButtonText;
    border-color: ButtonText;
  }
  .tag:disabled {
    color: GrayText;
    border-color: GrayText;
  }
}

/* ===== css/components/testimonial-card.css ===== */
/* Hope DS: css/components/testimonial-card.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   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: var(--lh-175);
  color: var(--color-text-2);
}

.testimonial-card__quote strong {
  color: var(--color-text-1);
  font-weight: var(--fw-semibold);
}
.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: var(--fw-semibold);
}

.testimonial-card__profile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-brand-default);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-text-brand-default) 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-hover);
  text-decoration-color: var(--color-text-brand-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);
}

/* ===== css/components/text-highlight.css ===== */
/* Hope DS: css/components/text-highlight.css
   Split from css/components.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

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

/* ===== css/components/textarea.css ===== */
/* Hope DS: css/components/textarea.css
   Figma: Core, Textarea. The box, the states and the label are in field.css (shared with Input and Select).
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   TEXTAREA
   Figma: the field is 96px high, padding included (box-sizing is border-box). Resize is not defined in Figma:
   vertical only, so the width of the field never changes (inference, recorded as a gap).
   ---------------------------------------------------------- */
.textarea {
  min-height: var(--space-24);
  padding-block: var(--space-3);  /* top aligned text: 12 + 1 stroke from the top edge, as in Figma */
  resize: vertical;
}

/* ===== css/components/toast.css ===== */
/* Hope DS: css/components/toast.css
   Figma: Core, Toast (Type Success|Warning|Error|Info). Message, optional description, action and dismiss.
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/toast.html):
     <div class="toast toast--success" role="status">
       <span class="toast__icon" aria-hidden="true"><svg class="icon" viewBox="0 0 256 256" fill="currentColor">...</svg></span>
       <div class="toast__content">
         <p class="toast__message">Message</p>
         <p class="toast__description">Short supporting text.</p>
       </div>
       <a class="toast__action" href="#">Undo</a>                (or a <button type="button">)
       <button type="button" class="toast__dismiss" aria-label="Dismiss"><svg class="icon" ...>...</svg></button>
     </div>
   Error uses role="alert", Warning, Info and Success role="status". The type is signaled by the icon glyph and its color.
   A neutral message uses Info (Figma removed the Default type).
   Not coded here (see the gaps in the docs data): the positioning region, stacking, auto-dismiss and motion. */

/* ----------------------------------------------------------
   TOAST
   Border and fill are the same for every type. As in the Alert, the border is not discounted from the padding:
   strokesIncludedInLayout is true on the Figma node (frame 69 high, 24 + 43 + 2).
   ---------------------------------------------------------- */
.toast {
  --toast-icon: var(--icon-color-info);
  --toast-dismiss: var(--icon-color-default);
  position: relative;
  z-index: var(--z-notification);  /* Figma Z-index/z-notification (500) */
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg);
  border: var(--border-width-normal) solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);  /* Figma Shadow/lg: 0 8px 32px at 10% */
  font-family: var(--font-body);
  line-height: var(--lh-160);
}

.toast--success {
  --toast-icon: var(--icon-color-positive);
  --toast-dismiss: var(--icon-color-default);
}

.toast--warning {
  --toast-icon: var(--icon-color-warning);
  --toast-dismiss: var(--icon-color-default);
}

.toast--error {
  --toast-icon: var(--icon-color-danger);
  --toast-dismiss: var(--icon-color-default);
}

.toast--info {
  --toast-icon: var(--icon-color-info);
  --toast-dismiss: var(--icon-color-default);
}

.toast__icon {
  display: flex;
  flex: none;
  width: var(--space-5);
  height: var(--space-5);
  color: var(--toast-icon);
}

.toast__icon .icon {
  width: 100%;
  height: 100%;
}

.toast__content {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  min-width: 0;
  overflow-wrap: break-word;
}

.toast__message {
  margin: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-1);
}

.toast__description {
  margin: 0;
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-regular);
  color: var(--color-text-2);
}

.toast__action {
  flex: none;
  padding: 0;
  font: inherit;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text-1);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

.toast__action:hover {
  color: var(--color-text-1);
}

.toast__action:focus-visible,
.toast__dismiss:focus-visible {
  outline: var(--focus-ring-width) solid var(--color-border-focus-ring);
  outline-offset: var(--focus-ring-gap);
  border-radius: var(--radius-xs);
}

.toast__dismiss {
  position: relative;
  display: flex;
  flex: none;
  width: var(--space-4);
  height: var(--space-4);
  padding: 0;
  color: var(--toast-dismiss);
  background: none;
  border: 0;
  cursor: pointer;
}

.toast__dismiss .icon {
  width: 100%;
  height: 100%;
}

/* The visual stays 16x16 (Figma). A transparent pseudo-element grows the hit area to 24x24 (WCAG 2.2 SC 2.5.8) without
   changing the layout: it grows 4px each way, and the action is 12px away. */
.toast__dismiss::after {
  content: "";
  position: absolute;
  inset: calc(var(--space-1) * -1);
}

@media (forced-colors: active) {
  .toast {
    border-color: CanvasText;
  }
}

/* ===== css/components/tooltip.css ===== */
/* Hope DS: css/components/tooltip.css
   Figma: Core, Tooltip (Placement Top|Bottom|Left|Right). Text only; no link, button or long content (that is a Popover).
   Edit this file, then run: npm run css:build

   Markup contract (docs/components/tooltip.html):
     <button type="button" data-tooltip-trigger aria-describedby="tip-id">Trigger</button>
     <div class="tooltip tooltip--top" role="tooltip" id="tip-id" data-placement="top" hidden>
       <span class="tooltip__bubble">Tooltip text</span>
       <span class="tooltip__arrow" aria-hidden="true"></span>
     </div>
   The placement says where the tooltip sits relative to its trigger: Top means the bubble is above the trigger and the
   arrow points down at it. The component is the bubble plus the arrow (84 by 40 for the sample text, 90 by 34 for the
   sides). The behavior is js/tooltip.js: it shows 300 ms after mouse hover or keyboard focus on the trigger, hides at once when
   hover and focus have both left, stays while the pointer is on the bubble (WCAG 1.4.13: hoverable, persistent, and Escape dismisses
   it), and never shows on touch. Positioning is js/position.js: a tooltip with data-placement="top|bottom|left|right" (default top,
   centered) is placed against its trigger 8px away (--space-2), flipped near the viewport edge, shifted to stay inside, and the
   tooltip--* class follows the side in use. When the bubble is shifted the arrow keeps pointing at the center of the trigger:
   js/position.js sets --tooltip-arrow-offset and the arrow below translates by it. A tooltip with data-anchor="<trigger id>" is the
   always visible specimen of the docs. A tooltip never holds the only way to reach essential information, because it does not appear
   on touch. */

/* ----------------------------------------------------------
   TOOLTIP
   No border in Figma. The arrow is part of the layout with a 0 gap, so it touches the bubble.
   ---------------------------------------------------------- */
.tooltip {
  position: relative;
  z-index: var(--z-tooltip);  /* Figma Z-index/z-tooltip (400) */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-body);
}

/* Placed against a trigger: out of flow, as wide as its text, at the left and top that js/position.js sets. */
.tooltip[data-anchor],
.tooltip[data-placement] {
  position: absolute;
  width: max-content;
}

.tooltip[hidden] {
  display: none;
}

/* Hoverable bridge (WCAG 1.4.13): the 8px between the trigger and the tooltip belong to the tooltip, so the pointer can cross from
   the trigger to the bubble without the tooltip losing hover. It is invisible and sits on the side that faces the trigger. */
.tooltip[data-placement]::before {
  content: "";
  position: absolute;
}

.tooltip--top[data-placement]::before {
  top: 100%;
  right: 0;
  left: 0;
  height: var(--space-2);
}

.tooltip--bottom[data-placement]::before {
  right: 0;
  bottom: 100%;
  left: 0;
  height: var(--space-2);
}

.tooltip--left[data-placement]::before {
  top: 0;
  bottom: 0;
  left: 100%;
  width: var(--space-2);
}

.tooltip--right[data-placement]::before {
  top: 0;
  right: 100%;
  bottom: 0;
  width: var(--space-2);
}

.tooltip--top { flex-direction: column; }
.tooltip--bottom { flex-direction: column-reverse; }
.tooltip--left { flex-direction: row; }
.tooltip--right { flex-direction: row-reverse; }

.tooltip__bubble {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-medium);
  line-height: var(--lh-160);
  white-space: nowrap;
  color: var(--color-text-neutral-default);
  background-color: var(--color-bg-neutral-default);
  border-radius: var(--radius-sm);
}

/* Arrow: 12 by 6 (Top, Bottom) or 6 by 12 (Left, Right), the same fill as the bubble. */
.tooltip__arrow {
  flex: none;
  width: var(--space-3);
  height: calc(var(--space-3) / 2);
  background-color: var(--color-bg-neutral-default);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tooltip--bottom .tooltip__arrow {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* The arrow follows the center of the trigger when the bubble was shifted: js/position.js sets --tooltip-arrow-offset (0 when the
   bubble is centered on the trigger). Horizontal for Top and Bottom, vertical for Left and Right. */
.tooltip--top .tooltip__arrow,
.tooltip--bottom .tooltip__arrow {
  transform: translateX(var(--tooltip-arrow-offset, 0px));
}

.tooltip--left .tooltip__arrow,
.tooltip--right .tooltip__arrow {
  transform: translateY(var(--tooltip-arrow-offset, 0px));
}

.tooltip--left .tooltip__arrow,
.tooltip--right .tooltip__arrow {
  width: calc(var(--space-3) / 2);
  height: var(--space-3);
}

.tooltip--left .tooltip__arrow {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.tooltip--right .tooltip__arrow {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

/* Forced colors replace backgrounds with the system canvas: the bubble and the arrow keep a visible fill. */
@media (forced-colors: active) {
  .tooltip__bubble,
  .tooltip__arrow {
    forced-color-adjust: none;
    background-color: CanvasText;
  }
  .tooltip__bubble {
    color: Canvas;
  }
}

/* ===== css/site/container.css ===== */
/* Hope DS: css/site/container.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CONTAINER
   Capped content width with an enforced minimum gutter. The
   parent section stays full width (its own background/border
   is never capped here), and this element only centres and
   sizes the INNER content.

   Desktop: width is min(--content-max-width, 100% - 2 * 80px),
   so the gutter is exactly --space-20 (80px) on each side for
   any viewport up to the point the cap takes over, then the
   leftover space becomes extra margin beyond that 80px floor.
   It never shrinks below 80px on a desktop width.
   ---------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 768px) {
  .container {
    width: min(var(--content-max-width), calc(100% - 2 * var(--space-20)));
    max-width: none;
    padding: 0;
  }
}

/* ===== css/site/header.css ===== */
/* Hope DS: css/site/header.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   SCROLL OFFSET — compensates for fixed floating header
   ---------------------------------------------------------- */
html {
  scroll-padding-top: var(--space-24);
}

/* ----------------------------------------------------------
   HEADER / NAV — full-bleed glass bar, inner content capped at
   --content-max-width (same shared cap as every section .container)
   ---------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: var(--z-sticky);

  /* Glassmorphism — light mode. Bg/border on the unified Material recipe. */
  background: var(--color-material-bg);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--color-material-border);
  box-shadow: 0 1px 1.5px rgba(13, 13, 15, 0.06);

  transition:
    background   var(--duration-slower) var(--ease-out),
    border-color var(--duration-slower) var(--ease-out),
    box-shadow   var(--duration-slower) var(--ease-out);
}

/* Glassmorphism — dark mode */
[data-theme="dark"] .site-header {
  background: var(--color-material-bg);
  border-color: var(--color-material-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-4);
}
/* Without this, .nav (a flex item of .site-header with no explicit
   width) shrinks to fit its own content and the margin: 0 auto above
   then centers that shrunk box in the header, instead of the logo and
   controls spreading to the header's true left/right edges. width:
   100% forces it to fill the header so its own justify-content:
   space-between actually reaches both edges. Desktop already gets an
   explicit width from the media query below, so it is unaffected. */
@media (max-width: 767px) {
  .nav {
    width: 100%;
    margin: 0;
  }
}
@media (min-width: 768px) {
  /* Same capped-width-plus-minimum-gutter formula as .container, so the
     header's inner content lines up with every section's content edge. */
  .nav {
    width: min(var(--content-max-width), calc(100% - 2 * var(--space-20)));
    max-width: none;
    padding-inline: 0;
  }
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.nav__logo:hover { opacity: 0.7; }
/* Figma Portfolio Components, Header (6:1016), node "logo-light-mode 1": 130 by 36. The Brandbook (chapter 06) sets 120 px as the
   minimum width of the full logo. A literal, not a token: it is the size of one asset, not a step of the spacing scale. */
.nav__logo img {
  height: 36px !important;
  width: 130px !important;
}

/* Logo visibility — light/dark swap */
.nav__logo-light { display: block !important; }
.nav__logo-dark  { display: none  !important; }
[data-theme="dark"] .nav__logo-light { display: none  !important; }
[data-theme="dark"] .nav__logo-dark  { display: block !important; }

/* Right-side controls wrapper */
.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

/* Nav links — desktop only */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  margin-right: var(--space-2);
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
}

.nav__link {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-2);
  padding: var(--space-1) 0;
  transition: color var(--duration-normal) var(--ease-out);
}
.nav__link:hover   { color: var(--color-text-1); }
.nav__link--active { color: var(--color-text-1); font-weight: var(--fw-semibold); }

/* Theme toggle — all breakpoints */
.nav__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--color-text-2);
  transition:
    color            var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}
/* Dark mode paused — hide the live toggle only (id-scoped so the
   design-system.html component showcase, which has no #themeToggle,
   still documents what the control looks like). Underlying dark-mode
   CSS is untouched. */
#themeToggle {
  display: none;
}
.nav__theme-toggle:hover {
  color: var(--color-text-1);
  background-color: rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .nav__theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.10);
}
.nav__theme-toggle svg { width: 17px; height: 17px; }

/* Hamburger — mobile only */
.nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--color-text-2);
  transition:
    color            var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}
.nav__hamburger:hover {
  color: var(--color-text-1);
  background-color: rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .nav__hamburger:hover {
  background-color: rgba(255, 255, 255, 0.10);
}
.nav__hamburger svg { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .nav__hamburger { display: none; }
}

/* LinkedIn icon button — circular, desktop only. On mobile it is
   replaced by a "LinkedIn" text link inside the hamburger menu (see
   .nav__mobile-menu), so it does not compete with the hamburger for
   space in the mobile header bar. */
.nav__linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  color: var(--color-text-2);
  transition:
    color            var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}
.nav__linkedin:hover {
  color: var(--color-text-1);
  background-color: rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .nav__linkedin:hover {
  background-color: rgba(255, 255, 255, 0.10);
}
.nav__linkedin svg { width: 17px; height: 17px; }
@media (max-width: 767px) {
  .nav__linkedin { display: none; }
}

/* Mobile menu — absolute glass panel below the pill */
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  position: absolute;
  top: calc(100% + var(--space-2));
  left: var(--space-4);
  right: var(--space-4);

  /* Own compositor layer — bypasses parent backdrop-filter stacking
     restriction on iOS Safari / Chrome mobile. */
  isolation: isolate;
  transform: translate3d(0, 0, 0);

  /* Glass panel — milkier tint keeps text readable while blur settles */
  background: var(--color-cloud);
  -webkit-backdrop-filter: blur(50px) saturate(1.6);
          backdrop-filter: blur(50px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);

  transition:
    background   var(--duration-slower) var(--ease-out),
    border-color var(--duration-slower) var(--ease-out);
}
[data-theme="dark"] .nav__mobile-menu {
  background: var(--color-abyss);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
          backdrop-filter: blur(20px) saturate(1.6);
  border-color: rgba(74, 74, 96, 0.35);
}
.nav__mobile-menu.is-open { display: flex; }
@media (min-width: 768px) {
  .nav__mobile-menu { display: none !important; }
}

.nav__mobile-link {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-text-2);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  border-radius: var(--radius-sm);
  transition:
    color            var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}
.nav__mobile-link:hover {
  color: var(--color-text-1);
  background-color: rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .nav__mobile-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.nav__mobile-link--active {
  color: var(--color-text-1);
  font-weight: var(--fw-semibold);
}

/* ===== css/site/sections.css ===== */
/* Hope DS: css/site/sections.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   SECTIONS
   ---------------------------------------------------------- */
.section {
  padding: var(--space-20) 0;
}
.section + .section {
  border-top: var(--border-thin);
}

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

/* #work carries its top breathing room on .section__header itself (see
   below) instead of on the section wrapper. */
#work {
  padding-top: 0;
}

/* CASE STUDIES / Featured Projects — top breathing room.
   --space-12 (48px), reduced by user decision from the Figma frame's own
   --space-20 (80px), one step further down the Hope DS scale than the
   prior --space-16 (64px) pass. Kept on the header itself (not on #work)
   for consistency with the rest of this section's spacing. */
#work .section__header {
  padding-top: var(--space-12);

  /* Single source of the gap to the first case card below, --space-20
     (80px). Overrides the base .section__header's margin-bottom
     (--space-12, 48px): that base value was combining with the first
     case card's own header-clearance padding-top (see .cases-grid >
     .case-card:first-child below), producing a much larger, viewport-
     height-dependent gap instead of one clear, fixed value. */
  margin-bottom: var(--space-20);
}

/* ── Featured Projects — sub-header (desktop only) ─────────────────────
   Sticky positioning was tried here (pinning the heading while cards
   scrolled past beneath it) and rolled back along with the scroll-snap
   and internal-scroll experiments for this section. The heading now
   scrolls in normal document flow with the rest of the page, like any
   other section heading.

   position: relative is kept, not removed, so the full-bleed background
   band below (::before) still anchors to this element instead of
   escalating to a further, unpositioned ancestor. It no longer carries
   any sticky-specific offset or stacking order.

   The background itself is still full-bleed. Breaks out of the capped
   .container the same way .cs-figure--full-bleed does: the pseudo spans
   100vw regardless of how narrow or wide the header's own box is, so it
   always touches both browser edges. --color-bg matches the page
   background (same token body uses), not a hardcoded white. */
@media (min-width: 1024px) {
  #work .section__header {
    position: relative;
    padding-bottom: var(--space-4);
  }

  #work .section__header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    margin-left: -50vw;
    background: var(--color-bg);
    z-index: -1;
  }
}
.section__overline {
  color: var(--color-text-3);
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-1);
}

/* ===== css/site/hero.css ===== */
/* Hope DS: css/site/hero.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   HERO
   The centered headline/paragraph/buttons group and the logo carousel
   both live inside this one full-viewport block now, instead of the
   carousel being a separate section further down the page. .hero itself
   no longer centers its content directly, .hero > .container does that
   job internally so the centered group and the bottom-anchored carousel
   can be positioned independently within the same viewport height.
   ---------------------------------------------------------- */
.hero {
  padding: var(--space-20) 0;
  padding-top: calc(var(--space-20) + var(--space-16));

  display: flex;
  flex-direction: column;
  text-align: left;

  position: relative;
  width: 100%;

  /* dvh avoids clipping by the mobile browser toolbar. min-height, not
     height: if the centered group plus the logo carousel ever need more
     room than one viewport at a given height (a short browser window,
     landscape phone), the section grows past 100dvh instead of clipping
     or cramming content. */
  min-height: 100dvh;

  background: var(--color-bg);

  /* Hairline divider between the Hero block and the section that
     follows (Case Studies). This used to come from the general
     .section + .section rule below, which only fires when a .section
     is immediately preceded by another .section: #work got it for
     free because #companies (a .section) used to sit right before it.
     Now that the logo carousel lives inside .hero (no longer its own
     #companies section), #work has nothing before it, so that rule
     stopped matching and the divider disappeared. Setting it directly
     here, after the logo carousel since it is the last thing in this
     block, does not depend on what section happens to follow. Same
     token the rule below already used, --border-thin, not a new value. */
  border-bottom: var(--border-thin);
}

.hero > .container {
  position: relative;
  z-index: var(--z-raised);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* The existing headline/paragraph/buttons group. flex:1 makes it fill
   whatever vertical space is left after the logo carousel below takes
   its own natural height, and centers its own content within that
   space, the same visual centering .hero used to do directly.
   Scoped to .hero--home only: About's .hero__layout also carries the
   reveal-group class (for the same scroll-reveal animation hook), and
   this rule's display:flex was overriding .hero__layout's own
   display:grid, collapsing the About page's two-column layout into a
   single centered column. */
.hero--home .reveal-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

/* Logo carousel, anchored to the bottom of the Hero block. flex: 0 0
   auto keeps it at its own natural height instead of stretching, and
   margin-top gives it breathing room from the centered group above
   without being part of that group's own vertical centering. */
.hero .logo-strip {
  flex: 0 0 auto;
  margin-top: var(--space-16);
}

.hero__overline {
  display: inline-block;
  color: var(--color-text-2);
  margin-bottom: var(--space-5);
}

/* ── Headline row — avatar and headline merged into one centered row,
   per the simplified Figma Hero (node 43:3914). Replaces the separate
   floating greeting bubble and the standalone headline block. ───────── */
.hero__headline-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
/* Mobile: avatar stacks above the headline as two centered rows,
   instead of sitting inline to its left. Desktop keeps the row
   layout untouched. */
@media (max-width: 767px) {
  .hero__headline-row {
    flex-direction: column;
  }
}

/* Avatar — fixed 115x115, per Figma */
.hero__avatar {
  width:         115px;
  height:        115px;
  border-radius: 50%;
  object-fit:    cover;
  display:       block;
  flex-shrink:   0;
}

/* The line break is a hard <br> in the markup (matches the pattern
   already used for the About headline and Hero body), not a natural
   wrap. Without it, the browser's own wrap point sizes this box using
   its single-line preferred width clamped to max-width, which can be
   much wider than either actual rendered line, leaving slack on the
   right of a left-aligned line. That slack pulled the avatar + headline
   visual mass off the center axis shared with the paragraph and buttons
   below. With a hard break, the box hugs the wider of the two actual
   lines, and text-align: center keeps the shorter line centered under
   it, so the visible glyphs stay symmetric around the box's own center. */
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-110);
  letter-spacing: var(--ls-tighter);
  color: var(--color-text-1);
  max-width: 800px;
}
/* Scoped to Home: this class is shared with About's headline, which
   must stay left-aligned per its own Figma spec. */
.hero--home .hero__headline {
  text-align: center;
}
.hero__headline mark {
  background: none;
  color: var(--color-accent);
}

/* Mobile: the hard <br> above forces "who" and "absorbs" onto separate
   lines on any width, desktop included. That is the intended two-line
   split on desktop, but combined with mobile's much narrower column it
   adds a third forced break on top of the natural wrap, splitting
   "who" and "absorbs" apart in a spot that reads awkwardly. Hiding the
   break here lets the whole headline wrap naturally on mobile, and
   .hero__nowrap-pair (below) keeps "who" and "absorbs" specifically
   from ever landing on separate lines once that natural wrap takes
   over. Desktop keeps the existing hard break, untouched. */
@media (max-width: 767px) {
  .hero__headline-break {
    display: none;
  }
  .hero__nowrap-pair {
    white-space: nowrap;
  }
}

/* Two separate lines by design (Figma node 43:3914), not a natural text
   wrap: "...across Brazil and the US." and "I turn ambiguous briefs..."
   are two <p> tags in the markup so the break holds at any width instead
   of depending on where the browser happens to wrap the text.
   No text-align here: left is the base .hero default, and About's body
   paragraphs should stay left-aligned too. Home centers its own copy
   via .hero--home .hero__body below. */
.hero__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
  color: var(--color-text-1);
  max-width: 560px;
  transition: opacity var(--duration-fast) var(--ease-out);
}
.hero__body-group {
  margin-bottom: var(--space-10);
}
/* Mobile: the two sentences are separate <p> tags so the line break
   between them holds at desktop widths, but on mobile that same forced
   break plus the narrow column produces an awkward three-line wrap with
   an orphaned word. display: inline joins them into one flowing block
   of text (the whitespace between the tags in the markup still gives a
   normal space between sentences), wrapping naturally at this width.
   Scoped to Home only, About's three-paragraph body is untouched. */
@media (max-width: 767px) {
  .hero--home .hero__body-group .hero__body {
    display: inline;
  }
}

/* ── Home hero — centered layout, no background image ────────────────
   Scoped modifier so .hero--about (which stays left-aligned, two-column)
   is untouched. */
.hero--home {
  text-align: center;
}
.hero--home .hero__body {
  text-align: center;
}
.hero--home .hero__actions {
  justify-content: center;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 767px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    /* The buttons' own width: 100% (below, and in components.css) only
       stretches them to fill this element's own box. That box was
       itself shrink-wrapped to the buttons' combined content width by
       align-items: center on the ancestor .reveal-group (the same
       shrink-wrap behavior that also affects the headline row and body
       group, fine for those, but not what we want here), so the
       buttons never actually reached the container's full width.
       width: 100% here breaks it out of that shrink-wrap. */
    width: 100%;
    gap: var(--space-3);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* About page — text + portrait side by side */
.hero--about {
  padding: var(--space-20) 0;
  align-items: stretch;
}

/* Same gap as the description-to-buttons spacing below (--space-10),
   applied above the description too so both gaps match. */
.hero--about .hero__headline {
  margin-bottom: var(--space-10);
}

/* Vertically centers the hero__layout row within the full viewport
   height .hero already provides (min-height: 100dvh, on the shared
   base .hero rule above). Same full-viewport-fill technique the Home
   hero uses, just centered directly on this container instead of on an
   inner flex:1 group, since About has no logo carousel anchored below
   it that needs separate positioning. Horizontal alignment (left) is
   untouched, this only affects the vertical axis. */
.hero--about > .container {
  justify-content: center;
}

/* Overrides the base .hero__body max-width (560px, a readable line
   length meant for Home's narrower centered column). About's content
   column is fluid width, filling the space up to the portrait, so the
   paragraphs should reflow to that same width instead of staying
   capped at the old fixed-column reading width. */
.hero--about .hero__body {
  margin-bottom: 0;
  max-width: none;
}

/* Paragraph break between the first and second body paragraphs only,
   per the updated Figma. --space-6 (24px) is close to one line's worth
   of height at this text's line-height, reading as an empty line. The
   second and third paragraphs stay flush, as before. */
.hero--about .hero__body:first-of-type {
  margin-bottom: var(--space-6);
}

/* Restore vertical breathing room between body text and action buttons */
.hero--about .hero__actions {
  margin-top: var(--space-10);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  width: 100%;
}

/* Fluid content column, fixed 340px portrait column, per the updated
   Figma (node 152:1139, Hero About). The content column (1fr) grows to
   fill whatever space is left after the fixed portrait and the 48px
   gap, instead of staying locked at a fixed width itself. */
@media (min-width: 1200px) {
  .hero__layout {
    grid-template-columns: 1fr 340px;
    gap: var(--space-12);
  }
}

.hero__content {
  min-width: 0;
}

.hero__portrait {
  margin: 0;
  width: 100%;
  max-width: 340px;
  justify-self: center;
}

@media (min-width: 1200px) {
  .hero__portrait {
    justify-self: end;
  }
}

/* aspect-ratio 340/318 (not a square 1:1) matches the Figma portrait's
   fixed 340x318 box. Kept as a ratio rather than a hardcoded height so
   it still scales correctly on mobile, where the column is fluid. */
.hero__portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 318;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  border: var(--border-normal);
  box-shadow: var(--shadow-lg);
}

/* ===== css/site/logo-strip-spacing.css ===== */
/* Hope DS: css/site/logo-strip-spacing.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   LOGO STRIP — Section-specific spacing overrides
   Base component styles live in components.css. The logo carousel now
   lives inside the Hero (see .hero .logo-strip above); #companies,
   .companies__row and .companies__label were the wrapper for its old
   standalone section and are no longer used anywhere.
   ---------------------------------------------------------- */

/* ===== css/site/content-grids.css ===== */
/* Hope DS: css/site/content-grids.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CONTENT GRIDS
   ---------------------------------------------------------- */

/* Generic layout wrappers — column count only, no padding, no max-width */
.layout-1col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: stretch;
  width: 100%;
}

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
  width: 100%;
}

.layout-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
  width: 100%;
}

@media (max-width: 767px) {
  .layout-2col,
  .layout-3col {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .layout-3col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cases — always 1 column; horizontal card layout handles visual/content split.
   gap is --space-32 (128px) per the Figma spec, the vertical distance
   between consecutive case cards. */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
}


/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 640px)  { .skills-grid { grid-template-columns: repeat(2, 1fr); } }

/* Challenges */
.challenges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .challenges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* Testimonials — infinite horizontal ticker */
.testimonials-ticker {
  position: relative; /* clips absolutely positioned descendants (.visually-hidden) when the track is not animated */
  display: flex;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.testimonials-track {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-6);
  padding-right: var(--space-6);
  animation: testimonials-scroll 80s linear infinite;
}

.testimonials-ticker:hover .testimonials-track {
  animation-play-state: running;
}

.testimonials-ticker .testimonial-card {
  width: 380px;
  flex-shrink: 0;
  margin-bottom: 0;
  align-self: flex-start;
}

@keyframes testimonials-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}

.card__title {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* ===== css/site/about-snippet.css ===== */
/* Hope DS: css/site/about-snippet.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   ABOUT SNIPPET
   ---------------------------------------------------------- */
.about-snippet {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 768px) {
  .about-snippet {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}
.about-snippet__blocks {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.about-block__label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  color: var(--color-text-3);
  margin-bottom: var(--space-2);
}
.about-block__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
  color: var(--color-text-2);
}

/* ===== css/site/footer.css ===== */
/* Hope DS: css/site/footer.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   FOOTER
   Figma Footer Style=Dark: Background/Neutral/Default surface, Text/Neutral/Default
   text, Button Inverse. Only shared tokens, no local overrides.
   ---------------------------------------------------------- */
.site-footer {
  /* TODO dark mode: footer surface flips with Neutral tokens, decide when dark mode is created */
  background-color: var(--color-bg-neutral-default);
  color: var(--color-text-neutral-default);
  padding: var(--space-20) 0 var(--space-10);
  margin-top: var(--space-20);
  border-top: var(--border-width-accent) solid var(--color-border-accent-default);
}

.footer__connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 40rem;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-neutral-default);
}

.footer__lede {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
  color: var(--color-text-neutral-default);
  max-width: 42ch;
}

.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

/* Bottom bar */
.footer__bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-strong);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-8);
  }
}

.footer__motto {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35em;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-160);
  color: var(--color-text-neutral-default);
}

.footer__heart {
  display: inline-flex;
  align-items: center;
  color: var(--color-celebrate);
}

.footer__heart .icon {
  width: 1.1em;
  height: 1.1em;
}

.footer__copy {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--color-text-neutral-default);
  white-space: nowrap;
}

/* ===== css/site/about-bridge.css ===== */
/* Hope DS: css/site/about-bridge.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   ABOUT BRIDGE
   ---------------------------------------------------------- */
#references {
  padding-bottom: var(--space-12);
}

.about-bridge {
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.about-bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      var(--color-text-1) 0px,
      var(--color-text-1) 1px,
      transparent 1px,
      transparent 40px
    ),
    repeating-linear-gradient(
      90deg,
      var(--color-text-1) 0px,
      var(--color-text-1) 1px,
      transparent 1px,
      transparent 40px
    );
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
          mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
  opacity: 0.04;
  pointer-events: none;
  z-index: var(--z-base);
}

.about-bridge__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  position: relative;
  z-index: var(--z-raised);
}

.about-bridge__eyebrow {
  margin-bottom: 0;
}

.about-bridge__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-border);
  display: block;
}

.about-bridge__headline {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-1);
}

.about-bridge__body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text-2);
  line-height: var(--lh-175);
  max-width: 500px;
}

.about-bridge__cta {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.about-bridge__cta .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-out);
}

.about-bridge__cta:hover .icon {
  transform: translateX(4px);
}

/* ===== css/site/case-hero.css ===== */
/* Hope DS: css/site/case-hero.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Hero
   Solid surface, floating header clearance at top, showcase
   image anchors the bottom of the text block.
   ---------------------------------------------------------- */
.case-hero {
  background: var(--color-bg);
  color: var(--color-text-1);
  padding-top: calc(var(--space-24) + var(--space-8));
  padding-bottom: var(--space-12);
}

.case-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  min-width: 0; /* prevents flex children from overflowing their track */
}

/* Showcase image — spans full container width below the text block */
.case-hero__showcase-media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.case-hero__showcase-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.case-hero__overline {
  display: inline-block;
  color: var(--color-text-3);
  margin-bottom: var(--space-4);
}

.case-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
  color: var(--color-text-1);
  margin-bottom: var(--space-4);
}

.case-hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-175);
  color: var(--color-text-2);
  margin-bottom: var(--space-8);
}

.case-hero__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.case-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-5);
  padding-top: var(--space-6);
  border-top: var(--border-thin);
}

.case-hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0;
  border: none;
}

.case-hero__meta dt {
  color: var(--color-text-3);
}

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

.case-hero__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-thin);
  background-color: var(--color-bg-alt);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ===== css/site/case-body.css ===== */
/* Hope DS: css/site/case-body.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Body layout
   ---------------------------------------------------------- */
.case-body {
  padding: var(--space-16) 0 var(--space-20);
}

.case-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
  width: 100%;
}

@media (min-width: 1024px) {
  /* 2-column: stable 240px sidebar · content fills remaining 1fr.
     max-width caps the grid at sidebar + gap + content-max so the
     margin-inline: auto centres the whole sidebar+content block inside
     the container, giving equal left and right gutters. */
  .case-layout {
    grid-template-columns: 240px 1fr;
    column-gap: var(--space-12);
    /*max-width: calc(240px + var(--space-12) + 68ch);*/
    margin-inline: auto;
    width: 100%;
  }
}

/* ===== css/site/case-phase-break.css ===== */
/* Hope DS: css/site/case-phase-break.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Editorial Phase Break
   Thin structural separator between narrative phases.
   ---------------------------------------------------------- */
.case-phase-break {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-16) 0 var(--space-2);
  margin-bottom: var(--space-2);
}

.case-phase-break__label {
  color: var(--color-text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.case-phase-break__rule {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ===== css/site/case-callout.css ===== */
/* Hope DS: css/site/case-callout.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Editorial Callout Quote
   Full-width accent quote for key insight moments.
   ---------------------------------------------------------- */
.case-callout {
  padding: var(--space-10) 0;
  margin: var(--space-8) 0;
}

.case-callout__text {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-120);
  letter-spacing: var(--ls-tight);
  color: var(--color-accent);
  max-width: 820px;
}

.case-callout__attribution {
  display: block;
  margin-top: var(--space-5);
  color: var(--color-text-3);
}

/* ===== css/site/case-toc.css ===== */
/* Hope DS: css/site/case-toc.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Sidebar TOC
   Floats directly over the page background — no card box.
   Active capsule pill provides the only surface treatment.
   ---------------------------------------------------------- */
.case-toc {
  display: none;
}

@media (min-width: 1024px) {
  .case-sidebar {
    position: sticky;
    top: var(--space-24); /* clears the floating glass nav */
  }

  .case-toc {
    display: block;
  }
}

/* "INDEX" group header — mono label, same as DS sidebar group labels */
.case-toc__label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  color: var(--color-text-3);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-4);
}

.case-toc__list {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.case-toc__item {
  counter-increment: toc-counter;
}

/* Link row — flex, centered, matching DS sidebar link geometry */
.case-toc__link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-140);
  color: var(--color-text-2);
  transition:
    color            var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out);
}

/* Sequential number — same size as link text, muted mono weight */
.case-toc__link::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-3);
  flex-shrink: 0;
  transition: color var(--duration-normal) var(--ease-out);
}

/* Hover — text shifts to full contrast, no border indicators */
.case-toc__link:hover {
  color: var(--color-text-1);
  background-color: rgba(28, 95, 168, 0.05);
}
.case-toc__link:hover::before {
  color: var(--color-accent);
}

[data-theme="dark"] .case-toc__link:hover {
  background-color: rgba(245, 200, 66, 0.07);
}

/* Active — capsule pill tint, high-contrast text, no left bar */
.case-toc__link.is-active {
  color: var(--color-text-1);
  font-weight: var(--fw-semibold);
  background-color: rgba(28, 95, 168, 0.08);
}
/* Uses --color-accent (Anchor light / Solar dark). Dark mode is currently
   hidden from users (toggle removed), so this isn't a live contradiction
   of the portfolio's black=action/blue=highlight/Solar=logo-only rule —
   but if dark mode is ever re-enabled, this would show Solar on a
   non-logo element. Revisit this token choice before re-enabling, don't
   let it slide back in unreviewed. */
.case-toc__link.is-active::before {
  color: var(--color-accent);
  font-weight: var(--fw-bold);
}

[data-theme="dark"] .case-toc__link.is-active {
  background-color: rgba(245, 200, 66, 0.10);
}

/* ===== css/site/case-content.css ===== */
/* Hope DS: css/site/case-content.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Content column
   ---------------------------------------------------------- */
.case-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 68ch;
  margin-inline: auto;
  width: 100%;
}

/* ===== css/site/case-teams.css ===== */
/* Hope DS: css/site/case-teams.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Involved teams component
   ---------------------------------------------------------- */
.team-section {
  margin-top: var(--space-6);
}

/* Scoped to out-rank .case-section__body p (0,1,1), which would force body size and color */
.case-section__body .team-section__title {
  color: var(--color-text-3);
  margin-bottom: var(--space-6);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: var(--space-10);
  align-items: center;
  align-content: center;
  width: 100%;
}



.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  min-width: 72px;
  width: fit-content;
}

.team-card svg {
  width: 24px;
  height: 24px;
  color: var(--color-text-2);
  flex-shrink: 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.team-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-2);
  line-height: var(--lh-140);
}

/* "My squad" emphasis — icon + label in brand accent */
.team-card--mine svg {
  color: var(--color-accent);
}

.team-card--mine .team-card__name {
  color: var(--color-text-1);
  font-weight: var(--fw-semibold);
}

/* ===== css/site/case-figure-bleed.css ===== */
/* Hope DS: css/site/case-figure-bleed.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   CASE STUDY — Full-bleed figure breakout
   Snaps the figure to 100vw regardless of parent column width.
   Use for service blueprints, large process maps, hero mockups.

   Uses negative margin-left rather than position/left/transform so the
   breakout math stays correct even inside the sidebar+content grid.
   The "left: 50% + translateX(-50%)" trick centres relative to the
   content COLUMN, not the viewport — when a sidebar is present the
   column centre is right-of-viewport-centre, causing rightward overflow.

   Mobile  (<768px)  : undo the 24 px (--space-6) container padding.
   Tablet  (768–1023): case-content is centred via margin-inline:auto, so
                       content left = 50vw − 34ch.  margin-left = 34ch − 50vw.
   Desktop (≥1024px) : .container now uses a capped-width-plus-minimum-
                       gutter formula (see .container), so its left edge
                       sits at a constant 80px from the viewport for any
                       width up to the 1280px cap (1440px viewport), not
                       a fixed pixel box. Working through the chain
                       (container edge 80, sidebar 240, gap 48, then the
                       68ch case-content re-centring inside the remaining
                       1fr track) the viewport-width terms cancel out and
                       the constant lands back at 128:
                       content left = 50vw − 128px.
                       So margin-left = 128px − 50vw (always negative ≥ 1024px).
   ---------------------------------------------------------- */
.cs-figure--full-bleed {
  width: 100vw;
  margin-left: calc(-1 * var(--space-6));
  border-left: none;
  border-right: none;
  border-radius: 0;
  max-width: none;
}
@media (min-width: 768px) {
  .cs-figure--full-bleed {
    /* case-content has margin-inline:auto, so it is centred inside the grid
       track at any viewport where 68ch < (viewport - 2×padding).
       Content left edge from viewport = 50vw − 34ch (half-viewport minus
       half the content column).  margin-left = 34ch − 50vw puts the figure
       flush with the viewport left edge on any width in this range. */
    margin-left: calc(34ch - 50vw);
  }
}
@media (min-width: 1024px) {
  .cs-figure--full-bleed {
    margin-left: calc(128px - 50vw);
  }
}

/* ===== css/site/about-experience.css ===== */
/* Hope DS: css/site/about-experience.css
   Split from css/layout.css on 2026-11-20 (D-18). No selector, declaration or rule order changed.
   Edit this file, then run: npm run css:build */

/* ----------------------------------------------------------
   ABOUT — Experience pipeline list
   ---------------------------------------------------------- */
.experience-list {
  display: flex;
  flex-direction: column;
}

.experience-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: var(--border-thin);
}

.experience-item:first-child {
  border-top: var(--border-thin);
}

/* Logo box */
.experience-item__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-thin);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-alt);
  overflow: hidden;
  transition:
    background-color var(--duration-slower) var(--ease-out),
    border-color     var(--duration-slower) var(--ease-out);
}

.experience-item__logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
}

[data-theme="dark"] .experience-item__logo img {
  filter: brightness(0) invert(1);
  opacity: 0.45;
}

/* Light/dark image pairs (used in dotz case study) */
.img--light { display: block; }
.img--dark  { display: none !important; }
[data-theme="dark"] .img--light { display: none  !important; }
[data-theme="dark"] .img--dark  { display: block !important; }

/* Text monogram fallback for companies without a logo file */
.experience-item__logo-mono {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--color-text-3);
  user-select: none;
}

/* Company + role info */
.experience-item__info {
  flex: 1;
  min-width: 0;
}

.experience-item__company {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text-1);
  line-height: var(--lh-140);
}

.experience-item__role {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-2);
  margin-top: var(--space-1);
}

.experience-item__highlight {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--color-text-3);
  line-height: var(--lh-140);
  margin-top: var(--space-1);
}

/* Date range — far right, monospaced */
.experience-item__dates {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--color-text-3);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}

/* ===== css/site/animations.css ===== */
/* ============================================================
   HOPE DESIGN SYSTEM — animations.css
   Scroll + load reveals (inspired by GSAP scroll patterns)
   Requires: tokens.css
   ============================================================ */

/* ----------------------------------------------------------
   GLOBAL THEME TRANSITION
   Restricts to paint-only properties (no layout, no transform)
   so the browser can handle theme switches on the compositor
   thread without triggering reflow.
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  transition:
    background-color  var(--duration-slow) var(--ease-in-out),
    color             var(--duration-slow) var(--ease-in-out),
    border-color      var(--duration-slow) var(--ease-in-out),
    box-shadow        var(--duration-slow) var(--ease-in-out);
}

@media (prefers-reduced-motion: no-preference) {
  /* Scroll-triggered & load-triggered base */
  .reveal {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.97);
    transition:
      opacity   0.85s var(--ease-out),
      transform 0.85s var(--ease-out);
    will-change: opacity, transform;
  }

  .reveal--from-top {
    transform: translate3d(0, -28px, 0) scale(1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  /* Staggered load group (hero, etc.) */
  .reveal-group .reveal-item {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition:
      opacity   0.9s var(--ease-out),
      transform 0.9s var(--ease-out);
  }

  .reveal-group.is-visible .reveal-item:nth-child(1) { transition-delay: 120ms; }
  .reveal-group.is-visible .reveal-item:nth-child(2) { transition-delay: 220ms; }
  .reveal-group.is-visible .reveal-item:nth-child(3) { transition-delay: 320ms; }
  .reveal-group.is-visible .reveal-item:nth-child(4) { transition-delay: 420ms; }
  .reveal-group.is-visible .reveal-item:nth-child(5) { transition-delay: 520ms; }

  .reveal-group.is-visible .reveal-item {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Snap all animations and transitions for users who prefer reduced motion */
  *,
  *::before,
  *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
    scroll-behavior:           auto   !important;
  }
}
