/* =====================================================================
   Be Virtual — core stylesheet
   Hand-written vanilla CSS. Carbon-derived structure — the 8px spacing
   rhythm, the type scale, the colour roles — with square corners
   everywhere and a 2px focus ring.

   Sections 1-13 are the structural system. Section 14 layers the
   futuristic treatment on top: notched corners, luminous rules, glow
   states and gradient surfaces. It comes last so it wins on equal
   specificity, and it is the one place to look when adjusting the look.

   Contents
     1. Tokens
     2. Reset and base elements
     3. Layout primitives
     4. Header / navigation
     5. Footer
     6. Buttons
     7. Forms
     8. Tags, notifications, tiles
     9. Tables
    10. Pagination, tabs, breadcrumbs
    11. Modal, dropdown, tooltip
    12. Artwork
    13. Utilities
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. TOKENS
   --------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --ui-background: #ffffff;
  --ui-01: #f4f4f4;
  --ui-02: #ffffff;
  --ui-03: #e0e0e0;
  --ui-04: #8d8d8d;
  --ui-05: #161616;
  --ui-inverse: #393939;

  /* Text */
  --text-01: #161616;
  --text-02: #525252;
  --text-03: #a8a8a8;
  --text-04: #ffffff;
  --text-error: #da1e28;

  /* Interactive */
  --interactive: #0f62fe;
  --interactive-hover: #0353e9;
  --interactive-active: #002d9c;
  --link: #0f62fe;
  --link-visited: #8a3ffc;

  /* Support */
  --support-error: #da1e28;
  --support-success: #24a148;
  --support-warning: #f1c21b;
  --support-info: #0043ce;
  --support-error-bg: #fff1f1;
  --support-success-bg: #defbe6;
  --support-warning-bg: #fcf4d6;
  --support-info-bg: #edf5ff;

  /* Fields */
  --field-01: #f4f4f4;
  --field-02: #ffffff;
  --field-border: #8d8d8d;
  --field-disabled: #f4f4f4;

  /* Focus */
  --focus: #0f62fe;
  --focus-inset: #ffffff;

  /* Overlay */
  --overlay: rgba(22, 22, 22, 0.5);

  /* Fixed dark surfaces.
     The masthead, hero, footer, auth panel and callback block are dark in
     BOTH themes, so they must not use the role tokens above — those invert
     under prefers-color-scheme and would turn the surface light while its
     text stayed light. These six never change value. */
  --ink-bg: #161616;
  --ink-bg-2: #262626;
  --ink-bg-3: #333333;
  --ink-line: #393939;
  --ink-text: #f4f4f4;
  --ink-text-2: #c6c6c6;
  --ink-text-3: #8d8d8d;

  /* Secondary button, which sits on light and dark pages alike */
  --secondary-bg: #393939;
  --secondary-hover: #4c4c4c;

  /* Spacing scale (Carbon spacing 01-13) */
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;
  --sp-13: 160px;

  /* Type */
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* The scale is deliberately restrained. A workspace company asking a
     stranger to register a company at its address is selling
     trustworthiness, and shouting in 60px type is not how that reads.
     Headings step down, weights stay light, and the space between
     things does the work that size used to. */
  --type-caption: 0.6875rem;  /* 11 */
  --type-label: 0.6875rem;
  --type-helper: 0.75rem;     /* 12 */
  --type-body-s: 0.8125rem;   /* 13 */
  --type-body: 0.9375rem;     /* 15 */
  --type-body-l: 1.0625rem;   /* 17 */
  --type-h6: 0.8125rem;
  --type-h5: 0.9375rem;
  --type-h4: 1.125rem;        /* 18 */
  --type-h3: 1.4375rem;       /* 23 */
  --type-h2: 1.875rem;        /* 30 */
  --type-h1: 2.5rem;          /* 40 */
  --type-display: 3rem;       /* 48 */

  /* Line heights, kept as tokens so body copy stays readable as the
     sizes come down. */
  --leading-tight: 1.25;
  --leading-snug: 1.45;
  --leading-body: 1.7;
  --leading-loose: 1.8;

  /* Motion */
  --dur-fast: 70ms;
  --dur-base: 110ms;
  --dur-slow: 240ms;
  --ease: cubic-bezier(0.2, 0, 0.38, 0.9);
  --ease-out: cubic-bezier(0, 0, 0.38, 0.9);

  /* Corners stay square. The angular language comes from notches, cut
     with clip-path, not from radius. */
  --notch: 12px;
  --notch-sm: 8px;

  /* Accent light. The futuristic treatment is built from glow and
     luminous hairlines rather than soft drop shadows. */
  --glow-cyan: #00d5d5;
  --glow-blue: #4589ff;
  --glow-violet: #a56eff;

  --lift-1: 0 2px 0 0 rgba(15, 98, 254, 0.9);
  --lift-2: 0 8px 24px -12px rgba(15, 98, 254, 0.55);
  --glow-soft: 0 0 0 1px rgba(15, 98, 254, 0.28), 0 0 24px -6px rgba(15, 98, 254, 0.35);
  --glow-strong: 0 0 0 1px rgba(15, 98, 254, 0.55), 0 0 32px -4px rgba(15, 98, 254, 0.55);
  --glow-cyan-soft: 0 0 0 1px rgba(0, 213, 213, 0.3), 0 0 28px -8px rgba(0, 213, 213, 0.45);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.16);

  /* Structure */
  --container: 1312px;
  --container-narrow: 928px;
  --header-h: 48px;
  --sidebar-w: 256px;
  --sidebar-w-collapsed: 48px;
  --border: 1px solid var(--ui-03);
  --border-strong: 1px solid var(--ui-04);

  /* Artwork */
  --art-ink: #393939;
  --art-accent: #0f62fe;
  --art-tint: #f4f4f4;
  --art-paper: #ffffff;
  --art-line: #8d8d8d;
  --art-grid: #e0e0e0;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ui-background: #161616;
    --ui-01: #262626;
    --ui-02: #262626;
    --ui-03: #393939;
    --ui-04: #6f6f6f;
    --ui-05: #f4f4f4;
    --ui-inverse: #f4f4f4;

    --text-01: #f4f4f4;
    --text-02: #c6c6c6;
    --text-03: #6f6f6f;
    --text-04: #161616;
    --text-error: #ff8389;

    --interactive: #4589ff;
    --interactive-hover: #78a9ff;
    --interactive-active: #a6c8ff;
    --link: #78a9ff;
    --link-visited: #be95ff;

    --support-error: #fa4d56;
    --support-success: #42be65;
    --support-warning: #f1c21b;
    --support-info: #4589ff;
    --support-error-bg: #3d1013;
    --support-success-bg: #10301a;
    --support-warning-bg: #362b12;
    --support-info-bg: #0d2544;

    --hairline: rgba(255, 255, 255, 0.10);
    --hairline-strong: rgba(255, 255, 255, 0.20);

    --field-01: #393939;
    --field-02: #393939;
    --field-border: #6f6f6f;
    --field-disabled: #262626;

    --focus: #ffffff;
    --focus-inset: #161616;
    --overlay: rgba(0, 0, 0, 0.65);

    --secondary-bg: #6f6f6f;
    --secondary-hover: #5e5e5e;

    --art-ink: #c6c6c6;
    --art-accent: #4589ff;
    --art-tint: #262626;
    --art-paper: #161616;
    --art-line: #6f6f6f;
    --art-grid: #393939;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ui-background: #161616;
  --ui-01: #262626;
  --ui-02: #262626;
  --ui-03: #393939;
  --ui-04: #6f6f6f;
  --ui-05: #f4f4f4;
  --ui-inverse: #f4f4f4;
  --text-01: #f4f4f4;
  --text-02: #c6c6c6;
  --text-03: #6f6f6f;
  --text-04: #161616;
  --text-error: #ff8389;
  --interactive: #4589ff;
  --interactive-hover: #78a9ff;
  --interactive-active: #a6c8ff;
  --link: #78a9ff;
  --link-visited: #be95ff;
  --support-error: #fa4d56;
  --support-success: #42be65;
  --support-warning: #f1c21b;
  --support-info: #4589ff;
  --support-error-bg: #3d1013;
  --support-success-bg: #10301a;
  --support-warning-bg: #362b12;
  --support-info-bg: #0d2544;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.20);
  --field-01: #393939;
  --field-02: #393939;
  --field-border: #6f6f6f;
  --field-disabled: #262626;
  --focus: #ffffff;
  --focus-inset: #161616;
  --overlay: rgba(0, 0, 0, 0.65);
  --secondary-bg: #6f6f6f;
  --secondary-hover: #5e5e5e;
  --art-ink: #c6c6c6;
  --art-accent: #4589ff;
  --art-tint: #262626;
  --art-paper: #161616;
  --art-line: #6f6f6f;
  --art-grid: #393939;
  color-scheme: dark;
}

/* ---------------------------------------------------------------------
   2. RESET AND BASE
   --------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  letter-spacing: 0.01em;
  color: var(--text-01);
  background: var(--ui-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 400;
  color: var(--text-01);
  letter-spacing: 0;
}

h1 { font-size: var(--type-h1); line-height: 1.15; letter-spacing: -0.6px; font-weight: 300; }
h2 { font-size: var(--type-h2); line-height: 1.2;  letter-spacing: -0.4px; font-weight: 300; }
h3 { font-size: var(--type-h3); line-height: 1.3;  letter-spacing: -0.2px; font-weight: 400; }
h4 { font-size: var(--type-h4); line-height: 1.4;  font-weight: 500; }
h5 { font-size: var(--type-h5); line-height: 1.5;  font-weight: 500; }
h6 { font-size: var(--type-h6); line-height: 1.45; font-weight: 500; letter-spacing: 0.14px; }

p { margin: 0 0 var(--sp-5); max-width: 74ch; }
p:last-child { margin-bottom: 0; }

/* Long-form copy: a touch more air between the lines, and a measure that
   stops a sentence running the full width of a desktop screen. */
.prose { max-width: 68ch; }
.prose p { line-height: var(--leading-loose); margin-bottom: var(--sp-6); }
.prose h2 { margin-top: var(--sp-10); }
.prose h3 { margin-top: var(--sp-8); }
.prose > :first-child { margin-top: 0; }

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
a:hover { color: var(--interactive-hover); border-bottom-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

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

hr {
  border: 0;
  border-top: var(--border);
  margin: var(--sp-6) 0;
}

ul, ol { margin: 0 0 var(--sp-5); padding-left: var(--sp-6); }
li { margin-bottom: var(--sp-2); }

code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; }
code { background: var(--ui-01); padding: 1px 4px; }
pre { background: var(--ui-01); padding: var(--sp-4); overflow-x: auto; border-left: 3px solid var(--ui-04); }

blockquote {
  margin: 0 0 var(--sp-5);
  padding-left: var(--sp-5);
  border-left: 3px solid var(--interactive);
  color: var(--text-02);
}

::selection { background: var(--interactive); color: #ffffff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--interactive);
  color: #fff;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container--narrow { max-width: var(--container-narrow); }

.page { flex: 1 0 auto; }

.section { padding: var(--sp-10) 0; }
.section--tight { padding: var(--sp-7) 0; }
.section--alt { background: var(--ui-01); }
.section--ink { background: var(--ink-bg); color: var(--ink-text); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--ink-text); }
.section--ink p { color: rgba(255, 255, 255, 0.85); }

.section-head { margin-bottom: var(--sp-8); max-width: 720px; }
.section-head .eyebrow { margin-bottom: var(--sp-3); }
.section-head p { color: var(--text-02); font-size: var(--type-body); margin-top: var(--sp-4); }

.eyebrow {
  display: inline-block;
  font-size: var(--type-label);
  letter-spacing: 0.32px;
  text-transform: uppercase;
  color: var(--text-02);
  border-left: 3px solid var(--interactive);
  padding-left: var(--sp-3);
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 1px;
  background: var(--ui-03);
  border: var(--border);
}
.grid > * { background: var(--ui-background); }

.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.cols-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.cols-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-8); }

.stack > * + * { margin-top: var(--sp-5); }
.stack-sm > * + * { margin-top: var(--sp-3); }
.stack-lg > * + * { margin-top: var(--sp-7); }

.row { display: flex; gap: var(--sp-4); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.row--top { align-items: flex-start; }
.row--tight { gap: var(--sp-3); }

@media (max-width: 1056px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-8) 0; }
  h1 { font-size: var(--type-h2); }
  h2 { font-size: var(--type-h3); }
  h3 { font-size: var(--type-h4); }
}
@media (max-width: 560px) {
  .cols-4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   4. HEADER
   --------------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--ink-bg);
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-text);
}

.masthead__inner {
  height: 100%;
  max-width: none;
  display: flex;
  align-items: stretch;
  padding: 0;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0 var(--sp-5);
  color: #f4f4f4;
  font-size: var(--type-body-s);
  border-bottom: 0;
  white-space: nowrap;
}
.masthead__brand:hover { color: #ffffff; border-bottom: 0; background: var(--ink-bg-2); }
.masthead__brand strong { font-weight: 600; }
.masthead__brand .brand-mark {
  width: 20px; height: 20px;
  background: var(--interactive);
  display: inline-block;
  position: relative;
  flex: none;
}
.masthead__brand .brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto auto;
  width: 8px; height: 8px;
  background: #ffffff;
}

.masthead__nav {
  display: flex;
  align-items: stretch;
  margin-left: var(--sp-5);
}
.masthead__nav a {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  color: var(--ink-text-2);
  font-size: var(--type-body-s);
  border-bottom: 3px solid transparent;
  border-top: 3px solid transparent;
}
.masthead__nav a:hover { background: var(--ink-bg-2); color: #ffffff; }
.masthead__nav a.is-active { color: #ffffff; border-bottom-color: var(--interactive); }

.masthead__actions { margin-left: auto; display: flex; align-items: stretch; }
.masthead__action {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5);
  color: var(--ink-text-2);
  border-bottom: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}
.masthead__action:hover { background: var(--ink-bg-2); color: #ffffff; border-bottom: 0; }
.masthead__action--primary { background: var(--interactive); color: #ffffff; }
.masthead__action--primary:hover { background: var(--interactive-hover); color: #ffffff; }

.masthead__toggle { display: none; }

.cart-count {
  display: inline-block;
  min-width: 16px;
  padding: 0 3px;
  background: var(--interactive);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

@media (max-width: 1056px) {
  .masthead__nav,
  .masthead__actions .masthead__action--desktop { display: none; }
  .masthead__toggle { display: flex; }
  .masthead__nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ink-bg);
    border-bottom: 1px solid var(--ink-line);
    margin-left: 0;
  }
  .masthead__nav.is-open a {
    height: 48px;
    border-bottom: 1px solid var(--ink-line);
    border-top: 0;
    border-left: 3px solid transparent;
  }
  .masthead__nav.is-open a.is-active { border-left-color: var(--interactive); border-bottom-color: var(--ink-line); }
}

/* ---------------------------------------------------------------------
   5. FOOTER
   --------------------------------------------------------------------- */
.footer {
  background: var(--ink-bg);
  color: var(--ink-text-2);
  padding: var(--sp-10) 0 var(--sp-6);
  margin-top: auto;
}
.footer a { color: var(--ink-text-2); border-bottom: 1px solid transparent; }
.footer a:hover { color: #ffffff; border-bottom-color: #ffffff; }
.footer h4 {
  color: #ffffff;
  font-size: var(--type-body-s);
  font-weight: 600;
  margin-bottom: var(--sp-5);
  letter-spacing: 0.16px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--sp-8);
}
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: var(--sp-3); }
.footer__bottom {
  margin-top: var(--sp-9);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--ink-line);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
  font-size: var(--type-caption);
  color: var(--ink-text-3);
}
.footer__about { color: var(--ink-text-3); max-width: 40ch; }
.footer__powered {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--ink-line);
  font-size: var(--type-caption);
  letter-spacing: 0.32px;
  color: var(--ink-text-3);
}
.footer__powered a { color: var(--ink-text-3); border-bottom: 1px solid transparent; }
.footer__powered a:hover { color: var(--ink-text); border-bottom-color: currentColor; }

@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-7);
  min-height: 48px;
  padding: 14px var(--sp-5);
  font-family: inherit;
  font-size: var(--type-body-s);
  line-height: 1.29;
  letter-spacing: 0.16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--interactive);
  color: #ffffff;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
  max-width: 320px;
  text-decoration: none;
}
.btn:hover { background: var(--interactive-hover); color: #ffffff; border-bottom-color: transparent; }
.btn:active { background: var(--interactive-active); }
.btn:disabled,
.btn.is-disabled {
  background: var(--ui-03);
  color: var(--text-03);
  cursor: not-allowed;
  pointer-events: none;
}
.btn .icon { flex: none; }

.btn--secondary { background: var(--secondary-bg); color: #ffffff; }
.btn--secondary:hover { background: var(--secondary-hover); color: #ffffff; }

.btn--tertiary {
  background: transparent;
  color: var(--interactive);
  border-color: var(--interactive);
}
.btn--tertiary:hover { background: var(--interactive); color: #ffffff; }

.btn--ghost { background: transparent; color: var(--interactive); }
.btn--ghost:hover { background: var(--ui-01); color: var(--interactive-hover); }

.btn--danger { background: var(--support-error); }
.btn--danger:hover { background: #ba1b23; }

.btn--danger-ghost { background: transparent; color: var(--support-error); }
.btn--danger-ghost:hover { background: var(--support-error); color: #ffffff; }

.btn--sm { min-height: 32px; padding: 6px var(--sp-4); gap: var(--sp-5); }
.btn--lg { min-height: 64px; padding: 20px var(--sp-5); }
.btn--block { display: flex; width: 100%; max-width: none; }
.btn--compact { justify-content: center; gap: var(--sp-3); }
.btn--icon {
  justify-content: center;
  gap: 0;
  width: 48px;
  min-width: 48px;
  padding: 0;
  max-width: none;
}
.btn--icon.btn--sm { width: 32px; min-width: 32px; }

.btn-set { display: flex; flex-wrap: wrap; gap: 1px; }
.btn-set .btn { flex: 1 1 auto; max-width: none; }

.btn-row { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }

/* Social sign-in buttons */
.btn--social {
  background: var(--ui-02);
  color: var(--text-01);
  border-color: var(--ui-04);
  justify-content: center;
  gap: var(--sp-3);
  max-width: none;
  width: 100%;
  font-weight: 400;
}
.btn--social:hover { background: var(--ui-01); color: var(--text-01); border-color: var(--text-01); }
.btn--social .social-mark { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------------
   7. FORMS
   --------------------------------------------------------------------- */
.field { margin-bottom: var(--sp-6); }

.label {
  display: block;
  font-size: var(--type-label);
  line-height: 1.33;
  letter-spacing: 0.32px;
  color: var(--text-02);
  margin-bottom: var(--sp-2);
  font-weight: 400;
}
.label .req { color: var(--support-error); margin-left: 2px; }

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-5);
  font-family: inherit;
  font-size: var(--type-body-s);
  line-height: 1.29;
  letter-spacing: 0.16px;
  color: var(--text-01);
  background: var(--field-01);
  border: 0;
  border-bottom: 1px solid var(--field-border);
  transition: outline var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  appearance: none;
}
.textarea { height: auto; min-height: 120px; padding: var(--sp-4) var(--sp-5); resize: vertical; line-height: 1.43; }

.input::placeholder, .textarea::placeholder { color: var(--text-03); }
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--field-disabled);
  color: var(--text-03);
  border-bottom-color: transparent;
  cursor: not-allowed;
}

.select {
  padding-right: var(--sp-9);
  background-image: linear-gradient(45deg, transparent 49%, currentColor 50%), linear-gradient(-45deg, transparent 49%, currentColor 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  outline: 2px solid var(--support-error);
  outline-offset: -2px;
}

.helper { display: block; font-size: var(--type-helper); color: var(--text-02); margin-top: var(--sp-2); }
.error-text {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--type-helper);
  color: var(--text-error);
  margin-top: var(--sp-2);
}
.error-text .icon { flex: none; margin-top: 1px; }

.field-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 560px) { .field-group { grid-template-columns: 1fr; } }

.input-affix { position: relative; }
.input-affix .input { padding-right: 48px; }
.input-affix__btn {
  position: absolute;
  right: 0; top: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--text-02); cursor: pointer;
}
.input-affix__btn:hover { color: var(--text-01); background: var(--ui-03); }

/* Checkbox and radio */
.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: var(--type-body-s);
  color: var(--text-01);
  padding: var(--sp-2) 0;
  min-height: 24px;
}
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__box {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 2px;
  border: 1px solid var(--text-01);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.choice__box::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.choice input:checked + .choice__box { background: var(--text-01); border-color: var(--text-01); }
.choice input:checked + .choice__box::after { opacity: 1; }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--focus); outline-offset: 1px; }
.choice input:disabled + .choice__box { border-color: var(--text-03); }
.choice--radio .choice__box { border-radius: 50%; }
.choice--radio .choice__box::after {
  width: 8px; height: 8px; border: 0; background: var(--text-01);
  border-radius: 50%; transform: none;
}
.choice--radio input:checked + .choice__box { background: transparent; }

/* Segmented control */
.segmented { display: inline-flex; border: 1px solid var(--ui-04); }
.segmented input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmented label {
  padding: 10px var(--sp-5);
  font-size: var(--type-body-s);
  cursor: pointer;
  border-right: 1px solid var(--ui-04);
  color: var(--text-02);
  background: var(--ui-background);
  transition: background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.segmented label:last-of-type { border-right: 0; }
.segmented input:checked + label { background: var(--ui-05); color: var(--text-04); }
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: -2px; }

/* Fieldset */
.fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-7); }
.fieldset > legend {
  padding: 0;
  font-size: var(--type-h5);
  font-weight: 600;
  margin-bottom: var(--sp-5);
  color: var(--text-01);
}

.form-actions {
  display: flex;
  gap: 1px;
  margin-top: var(--sp-7);
  flex-wrap: wrap;
}
.form-actions .btn { flex: 1 1 200px; max-width: none; }

/* OTP entry */
.otp-input {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
  text-align: center;
  padding-left: 0.5em;
  height: 64px;
}

/* ---------------------------------------------------------------------
   8. TAGS, NOTIFICATIONS, TILES
   --------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 20px;
  padding: 0 var(--sp-3);
  font-size: var(--type-caption);
  line-height: 1;
  letter-spacing: 0.32px;
  background: var(--ui-01);
  color: var(--text-01);
  border: 1px solid transparent;
  white-space: nowrap;
}
.tag--lg { height: 24px; font-size: var(--type-body-s); }
.tag.is-success { background: var(--support-success-bg); color: var(--support-success); border-color: var(--support-success); }
.tag.is-warning { background: var(--support-warning-bg); color: #8e6a00; border-color: var(--support-warning); }
.tag.is-error   { background: var(--support-error-bg); color: var(--support-error); border-color: var(--support-error); }
.tag.is-info    { background: var(--support-info-bg); color: var(--support-info); border-color: var(--support-info); }
.tag.is-muted   { background: var(--ui-01); color: var(--text-02); border-color: var(--ui-03); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag.is-warning { color: var(--support-warning); }
}
:root[data-theme="dark"] .tag.is-warning { color: var(--support-warning); }

.notification {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--support-info);
  background: var(--support-info-bg);
  color: var(--text-01);
  margin-bottom: var(--sp-5);
  font-size: var(--type-body-s);
  align-items: flex-start;
}
.notification .icon { flex: none; margin-top: 2px; color: var(--support-info); }
.notification__body { flex: 1; }
.notification__title { font-weight: 600; display: block; margin-bottom: 2px; }
.notification__close {
  background: none; border: 0; cursor: pointer; color: inherit;
  padding: 0; margin-left: auto; flex: none; line-height: 0;
}
.notification--success { border-left-color: var(--support-success); background: var(--support-success-bg); }
.notification--success .icon { color: var(--support-success); }
.notification--warning { border-left-color: var(--support-warning); background: var(--support-warning-bg); }
.notification--warning .icon { color: #8e6a00; }
.notification--error { border-left-color: var(--support-error); background: var(--support-error-bg); }
.notification--error .icon { color: var(--support-error); }

.tile {
  background: var(--ui-02);
  border: var(--border);
  padding: var(--sp-6);
  position: relative;
  transition: border-color var(--dur-base) var(--ease);
}
.tile--clickable { display: block; color: inherit; border-bottom: var(--border); }
.tile--clickable:hover { border-color: var(--interactive); color: inherit; }
.tile--selected { border-color: var(--interactive); outline: 1px solid var(--interactive); }
.tile__label {
  font-size: var(--type-label);
  letter-spacing: 0.32px;
  text-transform: uppercase;
  color: var(--text-02);
  margin-bottom: var(--sp-2);
  display: block;
}
.tile__value { font-size: var(--type-h3); line-height: 1.2; display: block; }
.tile__meta { font-size: var(--type-caption); color: var(--text-02); margin-top: var(--sp-3); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--ui-03);
  border: var(--border);
}
.stat-grid > .tile { border: 0; }

/* ---------------------------------------------------------------------
   9. TABLES
   --------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: var(--border); background: var(--ui-02); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body-s);
  min-width: 640px;
}
.table thead th {
  background: var(--ui-01);
  text-align: left;
  font-weight: 600;
  font-size: var(--type-body-s);
  letter-spacing: 0.16px;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ui-03);
  white-space: nowrap;
  color: var(--text-01);
}
.table tbody td {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--ui-03);
  vertical-align: middle;
  color: var(--text-01);
}
.table tbody tr:hover { background: var(--ui-01); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table__title { font-weight: 600; display: block; }
.table__sub { color: var(--text-02); font-size: var(--type-caption); display: block; margin-top: 2px; }
.table--compact tbody td, .table--compact thead th { padding: var(--sp-3) var(--sp-4); }

.table-toolbar {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--sp-4);
  background: var(--ui-01);
  border: var(--border);
  border-bottom: 0;
}
.table-toolbar .input, .table-toolbar .select { height: 40px; }
.table-toolbar__spacer { margin-left: auto; }

.empty-state {
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
  color: var(--text-02);
}
.empty-state .art { max-width: 260px; margin: 0 auto var(--sp-6); }
.empty-state h4 { margin-bottom: var(--sp-3); color: var(--text-01); }

/* ---------------------------------------------------------------------
   10. PAGINATION, TABS, BREADCRUMB
   --------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: var(--border);
  border-top: 0;
  background: var(--ui-01);
  font-size: var(--type-body-s);
  flex-wrap: wrap;
}
.pagination__spacer { margin-left: auto; }
.pagination__links { display: flex; gap: 1px; }
.pagination__links a,
.pagination__links span {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ui-02);
  color: var(--text-01);
  border-bottom: 0;
  padding: 0 var(--sp-3);
}
.pagination__links a:hover { background: var(--ui-03); }
.pagination__links .is-current { background: var(--ui-05); color: var(--text-04); }
.pagination__links .is-disabled { color: var(--text-03); pointer-events: none; }

.tabs { display: flex; border-bottom: 1px solid var(--ui-03); overflow-x: auto; }
.tabs a {
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-02);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: var(--type-body-s);
}
.tabs a:hover { color: var(--text-01); border-bottom-color: var(--ui-04); }
.tabs a.is-active { color: var(--text-01); border-bottom-color: var(--interactive); font-weight: 600; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  font-size: var(--type-body-s);
  color: var(--text-02);
  margin-bottom: var(--sp-5);
  padding: 0;
  list-style: none;
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: var(--sp-3); }
.breadcrumb li::after { content: "/"; color: var(--text-03); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb a { color: var(--link); }

/* ---------------------------------------------------------------------
   11. MODAL, DROPDOWN, ACCORDION
   --------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5);
}
.modal.is-open { display: flex; }
.modal__panel {
  background: var(--ui-02);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ui-03);
}
.modal__head {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-5);
}
.modal__body { padding: var(--sp-6); overflow-y: auto; flex: 1; }
.modal__foot { display: flex; gap: 1px; border-top: var(--border); }
.modal__foot .btn { flex: 1; max-width: none; }
.modal__close { background: none; border: 0; cursor: pointer; color: var(--text-01); padding: var(--sp-2); line-height: 0; }
.modal__close:hover { background: var(--ui-01); }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--ui-02);
  border: var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 300;
  display: none;
}
.dropdown__menu.is-open { display: block; }
.dropdown__menu a,
.dropdown__menu button {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  color: var(--text-01);
  background: none;
  border: 0;
  border-bottom: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dropdown__menu a:hover,
.dropdown__menu button:hover { background: var(--ui-01); color: var(--text-01); }
.dropdown__divider { height: 1px; background: var(--ui-03); }

.accordion { border-top: var(--border); }
.accordion__item { border-bottom: var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--type-body);
  color: var(--text-01);
  cursor: pointer;
  text-align: left;
}
.accordion__trigger:hover { color: var(--interactive); }
.accordion__trigger .icon { flex: none; transition: transform var(--dur-base) var(--ease); }
.accordion__item.is-open .accordion__trigger .icon { transform: rotate(180deg); }
.accordion__panel { display: none; padding: 0 0 var(--sp-5); color: var(--text-02); max-width: 80ch; }
.accordion__item.is-open .accordion__panel { display: block; }

/* Progress / steps */
.steps { display: flex; list-style: none; margin: 0 0 var(--sp-8); padding: 0; gap: 0; flex-wrap: wrap; }
.steps li {
  flex: 1 1 160px;
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  border-top: 2px solid var(--ui-03);
  color: var(--text-02);
  font-size: var(--type-body-s);
}
.steps li.is-done { border-top-color: var(--interactive); color: var(--text-01); }
.steps li.is-current { border-top-color: var(--interactive); color: var(--text-01); font-weight: 600; }
.steps__num { display: block; font-size: var(--type-caption); color: var(--text-03); margin-bottom: 2px; }

/* Loading */
.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--ui-03);
  border-top-color: var(--interactive);
  animation: bv-spin 700ms linear infinite;
  display: inline-block;
}
@keyframes bv-spin { to { transform: rotate(360deg); } }

.is-loading { position: relative; pointer-events: none; opacity: 0.6; }

/* ---------------------------------------------------------------------
   12. ARTWORK
   --------------------------------------------------------------------- */
.art { width: 100%; height: auto; display: block; background: var(--art-paper); }
.art .a-plate { fill: var(--art-paper); }
.art .a-accent-bar { fill: var(--art-accent); }
.art .a-tint { fill: var(--art-tint); }
.art .a-paper { fill: var(--art-paper); }
.art .a-ink { fill: var(--art-ink); }
.art .a-accent { fill: var(--art-accent); }
.art .a-line { fill: none; stroke: var(--art-line); stroke-width: 1.5; }
.art .a-line-fill { fill: var(--art-tint); stroke: var(--art-line); stroke-width: 1.5; }
.art .a-line-fill-none { fill: none; stroke: var(--art-line); stroke-width: 2; }
.art .a-line-open { fill: none; stroke: var(--art-line); stroke-width: 2; }
.art .a-paper-line { stroke: var(--art-paper); stroke-width: 3; }
.art .a-accent-line { fill: none; stroke: var(--art-accent); stroke-width: 2; }
.art .a-rule { stroke: var(--art-line); stroke-width: 2; opacity: 0.55; }
.art .a-grid { stroke: var(--art-grid); stroke-width: 1; }
.art .a-grid-fill { fill: var(--art-grid); }
.art .a-wall { stroke: var(--art-ink); stroke-width: 3; }
.art .a-perf { stroke: var(--art-line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.art .a-connector { stroke: var(--art-grid); stroke-width: 1.5; }

.art--thumb { max-width: 96px; }
.art--card { aspect-ratio: 3 / 2; }
.art--hero { max-width: 560px; }

.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ---------------------------------------------------------------------
   13. UTILITIES
   --------------------------------------------------------------------- */
.u-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.u-muted { color: var(--text-02); }
.u-faint { color: var(--text-03); }
.u-small { font-size: var(--type-caption); }
.u-body { font-size: var(--type-body); }
.u-bold { font-weight: 600; }
.u-upper { text-transform: uppercase; letter-spacing: 0.32px; }
.u-right { text-align: right; }
.u-center { text-align: center; }
.u-nowrap { white-space: nowrap; }
.u-break { word-break: break-word; overflow-wrap: anywhere; }
.u-block { display: block; }
.u-flex { display: flex; }
.u-hidden { display: none !important; }
.u-full { width: 100%; }
.u-mt-0 { margin-top: 0 !important; }
.u-mt-3 { margin-top: var(--sp-3); }
.u-mt-5 { margin-top: var(--sp-5); }
.u-mt-6 { margin-top: var(--sp-6); }
.u-mt-7 { margin-top: var(--sp-7); }
.u-mb-0 { margin-bottom: 0 !important; }
.u-mb-3 { margin-bottom: var(--sp-3); }
.u-mb-5 { margin-bottom: var(--sp-5); }
.u-mb-6 { margin-bottom: var(--sp-6); }
.u-mb-7 { margin-bottom: var(--sp-7); }
.u-gap-3 { gap: var(--sp-3); }
.u-maxw { max-width: 70ch; }

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

.divider { height: 1px; background: var(--ui-03); margin: var(--sp-6) 0; }

.kv { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: var(--sp-3) var(--sp-5); font-size: var(--type-body-s); }
.kv dt { color: var(--text-02); margin: 0; }
.kv dd { margin: 0; color: var(--text-01); }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: var(--sp-1) var(--sp-3); } .kv dd { margin-bottom: var(--sp-3); } }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-3);
  color: var(--text-02);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 10px; height: 6px;
  border-left: 2px solid var(--interactive);
  border-bottom: 2px solid var(--interactive);
  transform: rotate(-45deg);
}

@media print {
  .masthead, .footer, .btn, .no-print, .app-sidebar { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .container { max-width: none; padding: 0; }
  a { color: #000; border: 0; }
}


/* =====================================================================
   14. FUTURE SURFACES

   The futuristic layer. Corners stay square — the angular language comes
   from clipped notches, luminous hairlines and glow, not from radius.

   It sits last on purpose: every rule is a single class at the same
   specificity as the flat rule it replaces, so ordering, not
   !important, is what makes it win.
   ===================================================================== */

/* --- Notched corners --------------------------------------------------- */
/* A single cut corner reads as a HUD panel and stays unmistakably square. */
.notch    { clip-path: polygon(var(--notch) 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%, 0 var(--notch)); }
.notch-tr { clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.notch-br { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%); }

/* --- Buttons ----------------------------------------------------------- */
.btn {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch-sm)), calc(100% - var(--notch-sm)) 100%, 0 100%);
  transition:
    background var(--dur-base) var(--ease),
    color var(--dur-base) var(--ease),
    border-color var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}
.btn:hover { box-shadow: var(--lift-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.btn--tertiary,
.btn--ghost,
.btn--danger-ghost { box-shadow: none; }
.btn--ghost:hover,
.btn--danger-ghost:hover { box-shadow: none; transform: none; }
.btn--tertiary:hover { box-shadow: var(--glow-soft); }

.btn--sm { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%); }
.btn--icon,
.btn--social { clip-path: none; }

/* --- Luminous rules ---------------------------------------------------- */
/* A gradient hairline that fades at both ends, used to separate bands. */
.rule-glow {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--interactive), transparent);
  opacity: 0.5;
}

/* --- Section grounds --------------------------------------------------- */
/* A faint engineering grid, drawn with gradients rather than an image. */
.grid-bg {
  position: relative;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, transparent 30%, var(--ink-bg) 78%);
}

.section--ink {
  position: relative;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(15, 98, 254, 0.20), transparent 70%),
    radial-gradient(700px 380px at 92% 8%, rgba(0, 213, 213, 0.12), transparent 68%),
    var(--ink-bg);
}

/* --- Eyebrow ----------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* --- Cards and tiles --------------------------------------------------- */
.card {
  position: relative;
  transition: border-color var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}

.tile { position: relative; }
.tile--clickable { transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease); }
.tile--clickable:hover { box-shadow: var(--glow-soft); transform: translateY(-2px); border-color: var(--interactive); }

/* --- Fields ------------------------------------------------------------ */
.input:focus,
.select:focus,
.textarea:focus { box-shadow: var(--glow-soft); }

/* --- Artwork ----------------------------------------------------------- */
/* Artwork was dominating the page. These caps keep it as an accent. */
.art--hero  { max-width: 420px; }
.art--card  { max-width: 260px; }
.art--thumb { max-width: 120px; }

/* --- Motion ------------------------------------------------------------ */
@keyframes bv-pulse {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}
@keyframes bv-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: bv-rise var(--dur-slow) var(--ease-out) both; }
.rise-2 { animation-delay: 80ms; }
.rise-3 { animation-delay: 160ms; }
.rise-4 { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}

/* --- Cart in the masthead ---------------------------------------------- */
.masthead__cart { position: relative; }
.masthead__cart.has-items { color: #ffffff; }
.masthead__cart.has-items .icon { color: var(--glow-cyan); }
.cart-count {
  box-shadow: 0 0 10px 0 rgba(15, 98, 254, 0.8);
}
@media (max-width: 672px) {
  .masthead__cart-label { display: none; }
}

/* Half-selected: the header box in a table where only some rows are
   ticked. A dash, not a tick — a box that reads "checked" while half the
   list is not is how somebody deletes the wrong thing. */
.choice input:indeterminate + .choice__box {
  background: var(--text-01);
  border-color: var(--text-01);
}
.choice input:indeterminate + .choice__box::after {
  opacity: 1;
  width: 9px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid #ffffff;
  transform: none;
}
