/* Power Commerce design system v2 (Design House), copied 2026-11-12 from
   ~/_DEV/design-house/powercommerce (tokens/*.css + components.css). Edit the source there and re-copy;
   fonts load from a <link> in the page head, so the @import in tokens/fonts.css is left out. */
/* ---- tokens/colors.css ---- */
/* Power Commerce v2 — colour tokens.
   Five brand colours, pulled from powercommerce.com for the 2026 homepage refresh.
   Contrast (WCAG) is noted where a pairing carries text. */
:root {
  /* Brand */
  --pc-ink: #1F1F1F;       /* type on light; the Grid ground */
  --pc-paper: #F5F6F8;     /* the Editorial ground; type on dark */
  --pc-coral: #FF6B6B;     /* the accent. Fill on light (ink text on it, 5.9:1); type on dark (5.9:1). Never text on paper (2.4:1). */
  --pc-lavender: #997DD6;  /* second accent on dark (4.9:1 on ink). Never text on paper (2.9:1). */
  --pc-purple: #5F46A7;    /* accent type on light (6.2:1 on paper); hover state; feature fills (paper text on it, 6.2:1) */

  /* Ink ramp — surfaces on the dark ground */
  --ink-900: #1F1F1F;
  --ink-800: #27272A;      /* raised tile on dark */
  --ink-700: #3A3A3E;      /* done / pressed state on dark */

  /* Warm neutrals */
  --stone-600: #5C5C60;    /* secondary text on light — 5.8:1 on paper */
  --stone-400: #9A9CA2;    /* placeholders only */
  --stone-300: #A6A8AE;    /* secondary text on dark — 6.7:1 on ink */
  --paper-300: #ECEEF1;    /* canvas behind a paper page */
  --paper-200: #E8EAEE;    /* empty media tile, image slot */
  --white: #FFFFFF;        /* cards and inputs on paper */

  /* Spectrum — purple to coral, for charts, bars and progress */
  --spectrum-1: #5F46A7;
  --spectrum-2: #7A61BF;
  --spectrum-3: #997DD6;
  --spectrum-4: #C48A9E;
  --spectrum-5: #E27A81;
  --spectrum-6: #FF6B6B;

  --gradient-brand: linear-gradient(135deg, #FF6B6B, #997DD6 55%, #5F46A7);  /* 1px frame around the dark CTA */
  --gradient-feature: linear-gradient(135deg, #5F46A7, #997DD6);              /* the feature bento tile */
  --gradient-progress: linear-gradient(90deg, #FF6B6B, #997DD6);
  --glow-lavender: radial-gradient(circle, rgba(153,125,214,.38), rgba(153,125,214,0) 62%);
}

/* Semantic layer. Editorial (light) is the default; Grid (dark) is opt-in per page or per section. */
:root,
[data-theme="editorial"] {
  --bg: var(--pc-paper);
  --bg-raised: var(--white);
  --bg-sunken: var(--paper-200);
  --bg-inverse: var(--pc-ink);
  --text: var(--pc-ink);
  --text-2: var(--stone-600);
  --text-placeholder: var(--stone-400);
  --text-inverse: var(--pc-paper);
  --line: rgba(31, 31, 31, .12);
  --line-strong: rgba(31, 31, 31, .2);
  --accent-fill: var(--pc-coral);
  --on-accent: var(--pc-ink);
  --accent-text: var(--pc-purple);
  --accent-2: var(--pc-purple);
  --hover: var(--pc-purple);
  --focus: var(--pc-purple);
  --btn-bg: var(--pc-ink);
  --btn-fg: var(--pc-paper);
  --btn-bg-hover: var(--pc-purple);
  --btn-fg-hover: var(--pc-paper);
  --chip-active-bg: var(--pc-ink);
  --chip-active-fg: var(--pc-paper);
  --chip-done-bg: var(--white);
  --chip-done-fg: var(--pc-ink);
  color-scheme: light;
}

[data-theme="grid"] {
  --bg: var(--pc-ink);
  --bg-raised: var(--ink-800);
  --bg-sunken: var(--pc-ink);
  --bg-inverse: var(--pc-paper);
  --text: var(--pc-paper);
  --text-2: var(--stone-300);
  --text-placeholder: #7C7874;
  --text-inverse: var(--pc-ink);
  --line: rgba(245, 246, 248, .1);
  --line-strong: rgba(245, 246, 248, .2);
  --accent-fill: var(--pc-coral);
  --on-accent: var(--pc-ink);
  --accent-text: var(--pc-coral);
  --accent-2: var(--pc-lavender);
  --hover: var(--pc-coral);
  --focus: var(--pc-lavender);
  --btn-bg: var(--pc-coral);
  --btn-fg: var(--pc-ink);
  --btn-bg-hover: var(--pc-paper);
  --btn-fg-hover: var(--pc-ink);
  --chip-active-bg: var(--pc-coral);
  --chip-active-fg: var(--pc-ink);
  --chip-done-bg: var(--ink-700);
  --chip-done-fg: var(--pc-paper);
  color-scheme: dark;
}

/* ---- tokens/typography.css ---- */
/* Power Commerce v2 — typography tokens.
   Sizes are fluid; the max of each clamp is the 1440px desktop value from the refresh. */
:root {
  --font-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-label: var(--font-sans);

  /* Scale */
  --text-hero: clamp(48px, 7.8vw, 112px);    /* statement hero */
  --text-display: clamp(40px, 5vw, 72px);    /* closing CTA band */
  --text-h2: clamp(34px, 4.45vw, 64px);      /* section statements */
  --text-h3: clamp(22px, 2.1vw, 30px);       /* index rows, card titles */
  --text-stat: clamp(64px, 8.9vw, 128px);    /* serif numerals, case-study lead */
  --text-stat-md: clamp(56px, 6.1vw, 88px);  /* stat tiles */
  --text-lede: clamp(18px, 1.4vw, 20px);
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-label: 12px;                         /* eyebrows, ALL CAPS */
  --text-mono: 11px;                          /* data labels */

  /* Line height */
  --leading-hero: .94;
  --leading-heading: 1;
  --leading-snug: 1.15;
  --leading-body: 1.5;

  /* Tracking */
  --tracking-hero: -.045em;
  --tracking-heading: -.035em;
  --tracking-title: -.02em;
  --tracking-label: .14em;
  --tracking-mono: .08em;

  /* Weight */
  --weight-display: 500;   /* Editorial headlines are medium, not bold */
  --weight-strong: 600;
  --weight-body: 400;
}

/* Grid mode: bold headlines, mono eyebrows. */
[data-theme="grid"] {
  --weight-display: 700;
  --font-label: var(--font-mono);
  --tracking-label: .08em;
}

/* ---- tokens/spacing.css ---- */
/* Power Commerce v2 — spacing & layout tokens. 4px base; desktop reference width 1440. */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 96px;
  --space-12: 112px;

  --page-max: 1440px;                          /* full-bleed canvas */
  --gutter: clamp(16px, 4.45vw, 64px);         /* page side padding: 64 at 1440, 16 on phones */
  --section-y: clamp(64px, 7.8vw, 112px);      /* Editorial section rhythm */
  --section-y-grid: clamp(56px, 6.7vw, 96px);  /* Grid section rhythm */
  --gap: clamp(20px, 2.2vw, 32px);             /* Editorial column gap */
  --gap-tile: 12px;                            /* Grid bento gap */
}

/* ---- tokens/effects.css ---- */
/* Power Commerce v2 — radius, elevation, motion.
   Separation comes from hairlines (--line), not shadows. */
:root {
  --radius-media: 6px;    /* photos, stat tiles, inputs (Editorial) */
  --radius-panel: 8px;    /* form panel, inputs (Grid) */
  --radius-tile: 12px;    /* bento tiles (Grid) */
  --radius-frame: 16px;   /* gradient-framed CTA */
  --radius-pill: 999px;   /* buttons, chips, eyebrow badges */

  --shadow-hairline: 0 1px 3px rgba(0, 0, 0, .06);  /* the only shadow; floating cards only */

  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --dur-fast: .2s;        /* colour changes on hover */
  --dur: .25s;            /* tile lift, border colour */
  --dur-slow: .6s;        /* image zoom on hover */
  --dur-rise: .7s;        /* entrance */
  --lift: translateY(-3px);
}

@keyframes pc-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes pc-bar { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pc-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pc-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes pc-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.7); } }
@keyframes pc-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---- components.css ---- */
/* Power Commerce v2 — plain-HTML component classes.
   Everything reads the semantic tokens, so each class works in both modes:
   put data-theme="grid" on any ancestor to switch a page or a single section to dark.
   React versions of the same components live in components/. */

/* ---------- Base ---------- */
.pc-page {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* :where() keeps these resets at zero specificity, so any component class (.pc-btn, .pc-link…) wins. */
:where(.pc-page), :where(.pc-page) *, :where(.pc-page) *::before, :where(.pc-page) *::after { box-sizing: border-box; }
:where(.pc-page) img { max-width: 100%; }
:where(.pc-page) a { color: inherit; }
.pc-page :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }  /* .pc-btn's inline-flex would otherwise beat the hidden attribute */
.pc-wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
[data-theme] { background: var(--bg); color: var(--text); }

/* ---------- Type ---------- */
.pc-eyebrow {
  margin: 0;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-2);
}
[data-theme="grid"] .pc-eyebrow { font-weight: 400; }
.pc-hero {
  margin: 0;
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  font-weight: var(--weight-display);
  text-wrap: balance;
}
.pc-h2 {
  margin: 0;
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-display);
  text-wrap: balance;
}
.pc-h3 {
  margin: 0;
  font-size: var(--text-h3);
  line-height: 1.1;
  letter-spacing: var(--tracking-title);
  font-weight: var(--weight-display);
}
.pc-lede { margin: 0; font-size: var(--text-lede); line-height: 1.45; text-wrap: pretty; max-width: 620px; }
.pc-body { margin: 0; font-size: var(--text-body-lg); line-height: var(--leading-body); color: var(--text-2); text-wrap: pretty; max-width: 620px; }
.pc-muted { color: var(--text-2); }
.pc-mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--text-2);
}

/* The serif italic accent word. One per headline. */
.pc-em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-text); }
/* The coral highlighter — the hero's one accent word on light. */
.pc-em--mark {
  color: var(--on-accent);
  background: var(--accent-fill);
  padding: 0 .14em 0 .1em;
  border-radius: .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons & links ---------- */
.pc-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 16px; font-weight: var(--weight-strong); line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pc-btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.pc-btn--sm { padding: 12px 20px; font-size: 15px; }
.pc-btn--accent { background: var(--accent-fill); color: var(--on-accent); }
.pc-btn--accent:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.pc-btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; }
.pc-btn--ghost:hover { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.pc-btn[disabled] { opacity: .4; cursor: not-allowed; }
.pc-btn .pc-arrow { transition: transform var(--dur-fast); }
.pc-btn:hover .pc-arrow { transform: translateX(3px); }

.pc-link {
  color: var(--text); font-weight: 500;
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-color: var(--line-strong);
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
.pc-link:hover { color: var(--hover); text-decoration-color: currentColor; }

/* Pill badge — Grid hero eyebrow with a live dot */
.pc-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-mono); font-size: var(--text-label); letter-spacing: var(--tracking-mono);
  text-transform: uppercase; color: var(--text-2);
}
.pc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); flex: none; animation: pc-pulse 1.6s ease-in-out infinite; }

/* ---------- Chips (wizard steps, filters, choices) ---------- */
.pc-chip {
  font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2;
  padding: 7px 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.pc-chip:hover { color: var(--text); border-color: var(--text); }
.pc-chip.is-active, .pc-chip[aria-pressed="true"], .pc-chip[aria-current="step"] { background: var(--chip-active-bg); color: var(--chip-active-fg); border-color: transparent; }
.pc-chip.is-done { background: var(--chip-done-bg); color: var(--chip-done-fg); }
.pc-chip--lg { font-size: 15px; padding: 12px 18px; }
[data-theme="grid"] .pc-chip:not(.pc-chip--lg) { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Forms ---------- */
.pc-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: var(--weight-strong); }
[data-theme="grid"] .pc-field { font-size: 12px; font-weight: 500; color: var(--text-2); }
.pc-input, .pc-textarea, .pc-select {
  width: 100%;
  font: inherit; font-size: 16px; font-weight: 400;
  padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-media);
  background: var(--bg-raised); color: var(--text);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
[data-theme="grid"] .pc-input, [data-theme="grid"] .pc-textarea, [data-theme="grid"] .pc-select { border-color: var(--line); border-radius: var(--radius-panel); }
.pc-input::placeholder, .pc-textarea::placeholder { color: var(--text-placeholder); }
.pc-input:focus, .pc-textarea:focus, .pc-select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.pc-textarea { resize: vertical; min-height: 140px; }
.pc-input[aria-invalid="true"] { border-color: #C9483F; }
.pc-error { font-size: 13px; font-weight: 500; color: #B23B33; }
[data-theme="grid"] .pc-error { color: var(--pc-coral); }
.pc-progress { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pc-progress > span { display: block; height: 100%; background: var(--accent-fill); transition: width .4s var(--ease-out); }
[data-theme="grid"] .pc-progress { height: 4px; }
[data-theme="grid"] .pc-progress > span { background: var(--gradient-progress); }

/* ---------- Stats ---------- */
.pc-stat { font-family: var(--font-serif); font-size: var(--text-stat); line-height: .85; letter-spacing: -.04em; font-weight: 400; }
.pc-stat small { font-size: .55em; }
[data-theme="grid"] .pc-stat { font-family: var(--font-sans); font-weight: 700; line-height: 1; }
.pc-stat-tile { border-radius: var(--radius-media); padding: 24px 24px 20px; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.pc-stat-tile .pc-stat { font-size: var(--text-stat-md); line-height: .9; letter-spacing: -.03em; }
.pc-stat-tile p { margin: 14px 0 0; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--text-2); }
.pc-stat-tile--accent { background: var(--accent-fill); color: var(--on-accent); box-shadow: none; }
.pc-stat-tile--accent p { color: var(--on-accent); }

/* ---------- Tiles (Grid bento) ---------- */
.pc-tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  min-height: 164px; padding: 24px;
  border-radius: var(--radius-tile);
  background: var(--bg-raised); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; overflow: hidden;
  transition: transform var(--dur), box-shadow var(--dur);
}
a.pc-tile:hover { transform: var(--lift); box-shadow: inset 0 0 0 1px var(--hover); }
.pc-tile--feature { background: var(--gradient-feature); color: var(--pc-paper); box-shadow: none; }
.pc-tile--coral { background: var(--pc-coral); color: var(--pc-ink); box-shadow: none; }
.pc-tile--purple { background: var(--pc-purple); color: var(--pc-paper); box-shadow: none; }
.pc-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-tile); }

/* ---------- Editorial structures ---------- */
/* Section head: numbered label on the left third, statement on the right two thirds. */
.pc-section-head { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap); align-items: end; }
.pc-rule { height: 1px; border: 0; margin: 0; background: var(--line); }

/* Hairline grid: 1px gaps on a line-coloured ground — logo walls, swatch walls. */
.pc-hairgrid { display: grid; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.pc-hairgrid > * { background: var(--bg); }

/* Numbered index row — the Editorial list of services. */
.pc-index { border-top: 1px solid var(--line); }
.pc-index-row {
  display: grid; grid-template-columns: 120px 1fr 1fr 48px; gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: color var(--dur-fast);
}
.pc-index-row:hover { color: var(--hover); }
.pc-index-row .n { font-family: var(--font-serif); font-size: 22px; color: var(--text-2); }
.pc-index-row .t { font-size: var(--text-h3); font-weight: 500; letter-spacing: var(--tracking-title); line-height: 1.1; }
.pc-index-row .d { font-size: 17px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
.pc-index-row .a { font-size: 26px; text-align: right; }

/* Media frame with hover zoom */
.pc-media { border-radius: var(--radius-media); overflow: hidden; background: var(--bg-sunken); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow); }
a:hover .pc-media img, .pc-media:hover img { transform: scale(1.02); }

/* Marquee: put the item list twice inside .pc-marquee__track */
.pc-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.pc-marquee__track { display: flex; width: max-content; animation: pc-marquee var(--marquee-dur, 40s) linear infinite; }
.pc-marquee--rev .pc-marquee__track { animation-name: pc-marquee-rev; }
.pc-marquee:hover .pc-marquee__track { animation-play-state: paused; }

/* Client logos: ink at 85% on light, inverted at 70% on dark. */
.pc-client-logo { height: 28px; max-width: 140px; object-fit: contain; opacity: .85; }
[data-theme="grid"] .pc-client-logo { filter: invert(1); opacity: .7; }

/* Entrance */
.pc-rise { animation: pc-rise var(--dur-rise) var(--rise-delay, 0s) both var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pc-section-head { grid-template-columns: 1fr; gap: 16px; }
  .pc-bento { grid-template-columns: repeat(2, 1fr); }
  .pc-index-row { grid-template-columns: 48px 1fr 28px; gap: 12px 16px; padding: 22px 0; }
  .pc-index-row .d { grid-column: 2 / 3; grid-row: 2; font-size: 15px; }
  .pc-index-row .a { grid-row: 1; grid-column: 3; font-size: 20px; }
}
@media (max-width: 560px) {
  .pc-bento { grid-template-columns: 1fr; }
  /* One column: a 2×2 feature tile would otherwise force a second column and sideways scroll. */
  .pc-bento > * { grid-column: auto !important; grid-row: auto !important; }
  .pc-btn { padding: 14px 20px; font-size: 15px; }
}
