/* =============================================================
   Chimera Design System — colors & type
   ============================================================= */

/* --- Font loading (substitute: Inter via Google Fonts) ------- */
/* When the real Neue Haas Grotesk files land in /fonts,
   uncomment the @font-face block below and remove the @import. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/*
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("/fonts/NeueHaasGroteskDisplay-55Roman.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("/fonts/NeueHaasGroteskDisplay-65Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("/fonts/NeueHaasGroteskDisplay-75Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display Pro";
  src: url("/fonts/NeueHaasGroteskDisplay-95Black.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
*/

:root {
  /* -------- Color — brand -------- */
  --chimera-pink: #FF5FA2;        /* hero accent, section dividers */
  --chimera-pink-hot: #FF2F85;    /* hover / press of pink */
  --chimera-pink-soft: #FFD8E7;   /* tint for fills, rarely used */
  --chimera-grey: #8A8A8A;        /* deck grey — mid-tone neutral from deck */

  /* -------- Color — neutrals ----- */
  --ink: #0B0B0B;                 /* near-black, primary text + surfaces */
  --ink-2: #1A1A1A;               /* secondary surface */
  --bone: #F4F1EB;                /* warm off-white, page ground */
  --bone-2: #E8E3D8;              /* bone shade for dividers on light */
  --paper: #FFFFFF;               /* pure white — only for photo backs */
  --hair: #000000;                /* hairline border color */
  --hair-soft: rgba(11, 11, 11, 0.12);

  /* -------- Semantic fg/bg ------- */
  --bg: var(--bone);
  --bg-inverse: var(--ink);
  --fg1: var(--ink);              /* primary text */
  --fg2: rgba(11, 11, 11, 0.72);  /* secondary text */
  --fg3: rgba(11, 11, 11, 0.48);  /* tertiary / meta */
  --fg-inverse-1: var(--bone);
  --fg-inverse-2: rgba(244, 241, 235, 0.72);
  --fg-inverse-3: rgba(244, 241, 235, 0.48);
  --accent: var(--chimera-pink);
  --accent-hot: var(--chimera-pink-hot);
  --focus: var(--chimera-pink);

  /* Status — deliberately muted; Chimera rarely uses semantic color */
  --success: #0E6B3A;
  --warning: #B45309;
  --danger:  #B0261F;

  /* -------- Type families -------- */
  --font-sans: "Neue Haas Grotesk Display Pro", "Helvetica Neue",
               Inter, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo,
               Consolas, monospace;

  /* -------- Type scale (rem, 16px base) -------- */
  --fs-10: 0.625rem;   /* 10px — fixed furniture, slide crumbs */
  --fs-11: 0.6875rem;  /* 11px — eyebrows */
  --fs-12: 0.75rem;    /* 12px — micro labels */
  --fs-14: 0.875rem;   /* 14px — small body */
  --fs-16: 1rem;       /* 16px — body */
  --fs-18: 1.125rem;   /* 18px — lead */
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;       /* h3 */
  --fs-40: 2.5rem;     /* h2 */
  --fs-56: 3.5rem;     /* h1 small */
  --fs-80: 5rem;       /* display */
  --fs-120: 7.5rem;    /* hero display */

  /* -------- Weights -------- */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  /* -------- Letter-spacing -------- */
  --tracking-tight: -0.02em;     /* big display */
  --tracking-normal: 0;
  --tracking-label: 0.08em;      /* caps labels */
  --tracking-wide: 0.14em;       /* slide furniture */

  /* -------- Line heights -------- */
  --lh-display: 0.95;
  --lh-heading: 1.1;
  --lh-body: 1.5;
  --lh-compact: 1.25;

  /* -------- Spacing scale (8-based) -------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;

  /* -------- Radii — Chimera is sharp -------- */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 4px;     /* max, used only on e-comm product cards */
  --r-pill: 999px;

  /* -------- Borders -------- */
  --bw-hair: 1px;
  --bw-rule: 2px;

  /* -------- Shadows (used sparingly) ------- */
  --shadow-none: 0 0 0 rgba(0,0,0,0);
  --shadow-sticky: 0 1px 0 rgba(0,0,0,0.06);
  --shadow-inset-hair: inset 0 0 0 1px rgba(0,0,0,0.08);

  /* -------- Motion -------- */
  --ease-sharp: cubic-bezier(0.2, 0, 0, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* -------- Layout -------- */
  --container-max: 1440px;
  --slide-w: 1920px;
  --slide-h: 1080px;
  --slide-pad: 96px;
}

/* =============================================================
   Semantic element styles — use directly, or as @extend targets
   ============================================================= */

html, body {
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display / hero */
.cx-display {
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-size: clamp(3.5rem, 8vw, var(--fs-120));
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}

/* H1–H3 */
h1, .cx-h1 {
  font-family: var(--font-sans);
  font-weight: var(--fw-black);
  font-size: var(--fs-80);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  margin: 0;
}
h2, .cx-h2 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-40);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  margin: 0;
}
h3, .cx-h3 {
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: var(--fs-24);
  line-height: var(--lh-heading);
  margin: 0;
}

/* Body / lead */
p, .cx-body {
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  color: var(--fg1);
  margin: 0 0 var(--sp-4) 0;
  text-wrap: pretty;
}
.cx-lead {
  font-size: var(--fs-18);
  line-height: 1.45;
  color: var(--fg1);
}
.cx-small {
  font-size: var(--fs-14);
  line-height: 1.45;
  color: var(--fg2);
}

/* Eyebrow — caps label above headline */
.cx-eyebrow {
  font-size: var(--fs-11);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg2);
}

/* Slide furniture — the fixed deck chrome */
.cx-furniture {
  font-size: var(--fs-10);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg2);
}

/* Slash label — "01/ INTRO TO CHIMERA" */
.cx-slash {
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.cx-slash::after { content: "/"; margin-left: 0.15em; }

/* Mono / numeric */
.cx-mono, code, pre {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

/* Inline services separator list (`a / b / c`) */
.cx-list-slash {
  list-style: none;
  padding: 0; margin: 0;
  display: inline;
  font-weight: var(--fw-medium);
}
.cx-list-slash li { display: inline; }
.cx-list-slash li + li::before {
  content: " / ";
  color: var(--fg3);
  margin: 0 0.15em;
}

/* Link */
a, .cx-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease-sharp);
}
a:hover, .cx-link:hover { color: var(--chimera-pink); }

/* Button — solid */
.cx-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: var(--ink);
  color: var(--bone);
  border: 1px solid var(--ink);
  border-radius: var(--r-0);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-sharp),
              color var(--dur-fast) var(--ease-sharp),
              transform var(--dur-fast) var(--ease-sharp);
}
.cx-btn:hover { background: var(--chimera-pink); border-color: var(--chimera-pink); color: var(--ink); }
.cx-btn:active { transform: translateY(1px); opacity: 0.92; }
.cx-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.cx-btn--ghost {
  background: transparent;
  color: var(--ink);
}
.cx-btn--ghost:hover { background: var(--ink); color: var(--bone); }

/* Input */
.cx-input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--r-0);
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  color: var(--ink);
  outline: none;
}
.cx-input::placeholder { color: var(--fg3); text-transform: uppercase; letter-spacing: var(--tracking-label); font-size: var(--fs-12); }
.cx-input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Card — bordered rectangle, never shadow-floated */
.cx-card {
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: var(--r-0);
  padding: var(--sp-5);
}

/* Divider */
.cx-hr {
  border: 0;
  border-top: 1px solid var(--ink);
  margin: var(--sp-5) 0;
}

/* Chip / filter pill — the one place pills exist */
.cx-chip {
  display: inline-flex; align-items: center;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-size: var(--fs-11);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  background: transparent; color: var(--ink);
}
.cx-chip--active { background: var(--ink); color: var(--bone); }

/* KPI block — used in deck + storefront alike */
.cx-kpi-label { font-size: var(--fs-11); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--fg2); }
.cx-kpi-value { font-size: var(--fs-56); font-weight: var(--fw-black); line-height: 1; letter-spacing: var(--tracking-tight); }
.cx-kpi-delta { font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--chimera-pink); letter-spacing: var(--tracking-label); text-transform: uppercase; }

/* Utility — inverse surface */
.cx-on-ink { background: var(--ink); color: var(--bone); }
.cx-on-ink .cx-eyebrow, .cx-on-ink .cx-furniture { color: var(--fg-inverse-2); }
.cx-on-pink { background: var(--chimera-pink); color: var(--ink); }
