/* ============================================================
   butipisolution — design system
   Design language measured from viantinc.com (2026-11-20) with
   getComputedStyle: white canvas (#ffffff) with ink #000014,
   crimson navigation/footer (#EE2842 family), bold condensed
   uppercase headings (Flama Condensed), square 0-radius controls,
   2px cards, cyan (#00AEEF) detail rules, red-tinted hero media.
   Values are remapped for WCAG AA where the reference pair failed
   (white on #EE2842 = 4.18:1, so fills use #E0223A = 4.7:1 and
   small red text uses #C41E36 = 5.8:1).
   Fonts are self-hosted latin subsets (Roboto / Roboto Condensed).
   No external CDN, no build step.
   ============================================================ */

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/Roboto-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto Condensed';
  src: url('/fonts/RobotoCondensed-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- preflight (baseline reset) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

/* ---------- tokens (viantinc.com, measured) ---------- */
:root {
  --color-paper: #ffffff;
  --color-paper-2: #f4f4f7;
  --color-paper-3: #eaeaef;
  --color-band: #1a1b1f;             /* dark section ground */
  --color-band-2: #101114;

  --color-ink: #000014;              /* body / heading ink */
  --color-ink-2: #2f3137;            /* paragraph copy */
  --color-ink-3: #6a6c75;
  --color-rule: #e4e4eb;
  --color-rule-2: #cfcfd9;

  --color-accent: #e0223a;           /* crimson fill, white-safe */
  --color-accent-bright: #ee2842;    /* measured reference red, decoration only */
  --color-accent-hover: #c41e36;
  --color-accent-deep: #c41e36;      /* red used as small text on white */
  --color-accent-soft: #fdeef0;
  --color-accent-100: #f8d3d8;
  --color-accent-200: #f2aab4;
  --color-neon: #ffd9de;             /* light accent for dark grounds */

  --color-cyan: #00aeef;             /* reference detail rule */
  --color-cyan-soft: #e8f7fe;

  --color-primary: #000014;
  --color-primary-deep: #00000c;
  --color-primary-soft: #f1f1f5;
  --color-primary-100: #e2e2ea;
  --color-primary-200: #c6c6d2;

  --color-highlight: #e0223a;
  --color-highlight-2: #c41e36;
  --color-lavender: #dcdcf0;
  --color-peach: #f5ded6;
  --color-sky: #cfe4ef;

  --color-alert: #a4232f;
  --color-danger: #a4232f;
  --color-danger-soft: #fdecee;
  --color-ok: #10643a;
  --color-ok-soft: #e6f6ed;

  --brand-a: #e0223a;
  --brand-b: #000014;
  --brand-c: #00aeef;

  --radius-lg: 2px;
  --radius: 2px;
  --radius-sm: 2px;
  --radius-pill: 0px;
  --radius-round: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 20, .06);
  --shadow: 0 14px 34px -26px rgba(0, 0, 20, .45);
  --shadow-lg: 0 22px 56px -30px rgba(0, 0, 20, .42);

  --font-sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Roboto Condensed', 'Arial Narrow', system-ui, Helvetica, Arial, sans-serif;
  --font-label: 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Roboto Condensed', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --ease-out: cubic-bezier(.2, .62, .36, 1);
}

/* ---------- base ---------- */
body {
  font-family: var(--font-sans);
  color: var(--color-ink-2);
  background: var(--color-paper);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 1 auto; }

h1, h2 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.7rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: .98rem; }
p { color: var(--color-ink-2); }
a { color: var(--color-accent-deep); }
a:hover { color: var(--color-ink); }
strong { font-weight: 500; color: var(--color-ink); }
code, pre { font-family: var(--font-mono); }

h1 em, h2 em, h3 em, .serif {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent-deep);
  letter-spacing: .01em;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section--tight { padding: 60px 0; }
.section--soft { background: var(--color-paper-2); }
.section--dark { background: var(--color-band); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p, .section--dark .lead { color: rgba(255, 255, 255, .78); }
.section--dark strong { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--color-accent); }
.section--dark .eyebrow { color: #ffc2cb; }
.eyebrow--blue { color: var(--color-ink-3); }
.eyebrow--onphoto { color: #ffd9de; }
.center { text-align: center; }
.lead { font-size: 1.06rem; color: var(--color-ink-2); line-height: 1.65; font-weight: 300; }
.muted { color: var(--color-ink-3); font-size: .92rem; }
.section__head { position: relative; max-width: 800px; margin: 0 0 48px; }
.section__head.center { text-align: center; margin: 0 auto 48px; }
.section__head p { margin-top: 18px; }
.section__head h2 + p { margin-top: 18px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 18px; }
.mt-6 { margin-top: 28px; }
.mb-6 { margin-bottom: 28px; }

/* ---------- buttons (reference: square, uppercase, medium weight) ---------- */
.btn,
.btn--primary, .btn--ghost, .btn--light, .btn--dark,
.btn--accent, .btn--onband, .btn--outline-band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .78rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn--primary:disabled, .btn--ghost:disabled, .btn--accent:disabled,
.btn--onband:disabled, .btn--outline-band:disabled, .btn--light:disabled, .btn--dark:disabled {
  opacity: .45; cursor: not-allowed;
}

.btn--primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn--primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.btn--primary:active { background: #a7182c; border-color: #a7182c; color: #fff; }

.btn--accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.btn--accent:active { background: #a7182c; border-color: #a7182c; color: #fff; }

.btn--dark { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.btn--dark:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.btn--light { background: #fff; color: var(--color-ink); border-color: var(--color-rule-2); }
.btn--light:hover { border-color: var(--color-ink); color: var(--color-ink); }

.btn--ghost { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: #fff; }

.btn--onband { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.btn--onband:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

.btn--outline-band { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .75); }
.btn--outline-band:hover { background: #fff; color: var(--color-accent-deep); border-color: #fff; }

/* ---------- brand mark (drawn for this site: forward double slash) ---------- */
.brand-mark {
  position: relative; width: 26px; height: 22px; flex: 0 0 auto; display: inline-block;
}
.brand-mark::before,
.brand-mark::after {
  content: ""; position: absolute; top: 2px; width: 5px; height: 18px;
  background: var(--brand-a, var(--color-accent));
  transform: skewX(-22deg);
}
.brand-mark::before { left: 4px; }
.brand-mark::after { left: 13px; opacity: .5; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-sans); font-weight: 500; font-size: 1.14rem; letter-spacing: -.01em; }
.brand__name { color: var(--color-ink); text-transform: lowercase; }
.brand__name em { font-style: normal; font-weight: 300; color: var(--color-ink-3); }

/* ---------- navigation (reference: solid crimson bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--color-accent);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  --brand-a: #ffffff; --brand-b: #ffffff; --brand-c: #ffffff;
}
.nav__bar { max-width: none; }
.nav__bar .wrap { max-width: none; display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 76px; padding: 10px 28px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--font-sans); font-size: .84rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); padding: 10px 0; position: relative;
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: #fff;
}
.nav .brand__name { color: #fff; }
.nav .brand__name em { color: rgba(255, 255, 255, .72); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__actions form { display: inline; }
.nav__actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.nav__actions .btn--ghost:hover { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.nav__actions .btn--primary { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.nav__actions .btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff;
}
.nav__drawer {
  display: none; background: var(--color-accent);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.nav__drawer.is-open { display: block; }
.nav__drawer a {
  display: block; padding: 16px 28px; font-family: var(--font-sans); font-weight: 500;
  font-size: .86rem; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.nav__drawer a.is-active { color: #fff; background: rgba(0, 0, 20, .12); }
.nav__drawer .drawer__cta { padding: 16px 28px; display: grid; gap: 10px; }
.nav__drawer form { display: block; }
.nav__drawer .btn--light { background: #fff; color: var(--color-accent-deep); border: 1px solid #fff; }
.nav__drawer .btn--primary { background: var(--color-ink); color: #fff; border: 1px solid var(--color-ink); }

/* ---------- hero: red-washed photographic band (reference: full-bleed media) ---------- */
.hero { background: var(--color-paper); color: var(--color-ink); padding: 24px 0 0; }
.hero h1 { color: var(--color-ink); }
.hero__title { margin-bottom: 20px; }
.hero__title .hl { color: var(--color-accent-deep); }
.hero__sub { font-size: 1.05rem; max-width: 640px; color: var(--color-ink-2); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

.hero--neon, .hero--photo {
  position: relative; overflow: hidden;
  background: var(--color-accent);
  color: #fff;
  padding: 104px 0 96px;
  isolation: isolate;
  min-height: 600px;
  display: flex; align-items: center;
}
.hero--neon > .wrap, .hero--photo > .wrap { position: relative; z-index: 1; width: 100%; }
.hero--neon .hero__bg, .hero--photo .hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero--neon .hero__scrim, .hero--photo .hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(96deg, rgba(224, 34, 58, .97) 0%, rgba(224, 34, 58, .9) 46%, rgba(224, 34, 58, .5) 82%, rgba(224, 34, 58, .38) 100%);
}
.hero--neon .hero__inner, .hero--photo .hero__inner { position: relative; max-width: 700px; }
.hero--neon h1, .hero--photo h1 { color: #fff; }
.hero--neon .hero__title, .hero--photo .hero__title { display: flex; flex-direction: column; gap: 2px; }
.hero--neon .hl, .hero--photo .hl { color: #ffd9de; }
.hero--neon .hero__sub, .hero--photo .hero__sub { color: rgba(255, 255, 255, .88); }
.hero--neon .eyebrow, .hero--photo .eyebrow { color: #ffd9de; }
.hero--neon .eyebrow::before, .hero--photo .eyebrow::before { background: #fff; }
.hero--neon .chip, .hero--photo .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .42); color: #fff; }
.hero--neon .btn--ghost, .hero--photo .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .72); }
.hero--neon .btn--ghost:hover, .hero--photo .btn--ghost:hover { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.hero--neon .btn--primary, .hero--photo .btn--primary { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.hero--neon .btn--primary:hover, .hero--photo .btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

.hero__scene { display: none; }

/* hero card alias (kept for older markup) */
.hero--card { padding: 24px 0 0; }
.hero--card .hero__panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  min-height: 560px; display: flex; align-items: flex-end; padding: 56px;
  background: var(--color-band); isolation: isolate;
}
.hero--card .hero__panel .hero__inner { position: relative; max-width: 760px; color: #fff; }
.hero--card h1 { color: #fff; }
.hero--card .hero__title .hl { color: var(--color-neon); }
.hero--card .hero__sub { color: rgba(255, 255, 255, .82); }
.hero--card .eyebrow { color: rgba(255, 255, 255, .7); }
.hero--card .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero--card .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero--card .btn--ghost:hover { background: #fff; color: var(--color-ink); border-color: #fff; }

/* statement block below the hero */
.statement { padding: 88px 0 24px; background: var(--color-paper); }
.statement .wrap { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, .66fr); gap: 48px; align-items: start; }
.statement__tag { font-size: .9rem; color: var(--color-ink-3); padding-top: 12px; border-top: 2px solid var(--color-accent); }
.statement__body h2 { max-width: 22ch; }
.statement__body p { margin-top: 24px; max-width: 620px; font-size: 1.06rem; }

/* inner-page hero: photographic red band */
.hero--page { padding: 28px 0 0; }
.hero--page .wrap {
  position: relative; overflow: hidden;
  background: var(--color-accent);
  color: #fff;
  border-radius: 0;
  min-height: 460px;
  padding: 64px 56px;
  display: flex; align-items: center;
  max-width: none;
}
.hero--page .hero__panel-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero--page .hero__panel-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(96deg, rgba(224, 34, 58, .96) 0%, rgba(224, 34, 58, .86) 48%, rgba(224, 34, 58, .4) 100%);
}
.hero--page .hero__inner { position: relative; z-index: 2; max-width: 620px; }
.hero--page h1 { color: #fff; }
.hero--page .hero__sub { color: rgba(255, 255, 255, .9); }
.hero--page .eyebrow { color: #ffd9de; }
.hero--page .eyebrow::before { background: #fff; }
.hero--page .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .72); }
.hero--page .btn--ghost:hover { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.hero--page .btn--primary { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.hero--page .btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.hero--page.hero--short .wrap { min-height: 0; padding: 60px 56px; }
.hero--page.hero--short .hero__inner { max-width: 780px; }

/* legacy aliases kept so older markup still renders on the light ground */
.hero--editorial .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 52px; align-items: center; }
.hero--editorial .hero__inner { max-width: 660px; }
.hero__media { margin: 0; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--color-paper-3); aspect-ratio: 4 / 3.2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero--grad { background: var(--color-paper); color: var(--color-ink); }
.hero--grad .hero__inner { max-width: 800px; }
.hero--grad .hero__title { color: var(--color-ink); }
html, body { max-width: 100%; overflow-x: clip; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--color-paper-2); border: 1px solid var(--color-rule);
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-ink-2);
}
.chip::before { content: ''; width: 6px; height: 6px; background: var(--color-accent); flex: 0 0 auto; }
.hero__meta .chip { background: #fff; }
/* keep photographic-hero chips paired (background + text + border) after the .hero__meta rule */
.hero--neon .hero__meta .chip, .hero--photo .hero__meta .chip { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .42); color: #fff; }
.hero--neon .hero__meta .chip::before, .hero--photo .hero__meta .chip::before { background: #fff; }
.hero--card .hero__meta .chip { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* ---------- cards ---------- */
.card {
  position: relative;
  background: #fff; border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.card::before {
  content: ''; position: absolute; left: -1px; top: -1px; right: -1px; height: 2px;
  background: var(--color-cyan); opacity: 0; transition: opacity .2s var(--ease-out);
}
.card:hover { border-color: var(--color-rule-2); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--color-accent-soft); color: var(--color-accent-deep); margin-bottom: 20px;
  border-radius: var(--radius-sm);
}
.card__icon svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; }
.section--dark .card, .section--dark .panel { background: transparent; border-color: rgba(255, 255, 255, .16); }
.section--dark .card:hover { border-color: var(--color-accent); box-shadow: none; }
.section--dark .card::before { background: var(--color-accent); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255, 255, 255, .76); }
.section--dark .card__icon { background: rgba(238, 40, 66, .18); color: var(--color-neon); }
.section--dark .tag { background: transparent; border-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .84); }
.section--dark .panel__head h2 { color: #fff; }
.section--dark .panel__head .badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .85); }
.section--dark .kv-row { border-bottom-color: rgba(255, 255, 255, .14); }
.section--dark .kv-row__main b { color: #fff; }
.section--dark .kv-row__main span { color: rgba(255, 255, 255, .66); }
.section--dark .badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .85); }
.section--dark .badge--info { background: rgba(238, 40, 66, .2); border-color: rgba(242, 170, 180, .5); color: #ffd9de; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag {
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-ink-2); background: #fff;
  border: 1px solid var(--color-rule); padding: 5px 10px; border-radius: var(--radius-sm);
}
.tag--accent { color: var(--color-accent-deep); background: var(--color-accent-soft); border-color: var(--color-accent-100); }
.section--dark .tag--accent { color: #ffd9de; background: rgba(238, 40, 66, .16); border-color: rgba(242, 170, 180, .42); }
.tag--blue { color: #00688f; background: var(--color-cyan-soft); border-color: #bfe7f9; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 0; }
.split__body h2 { margin-bottom: 18px; }
.checklist { margin-top: 24px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--color-ink-2); font-weight: 300; }
.checklist .tick {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 0;
  background: var(--color-accent-soft); color: var(--color-accent-deep);
  display: grid; place-items: center; margin-top: 2px;
}
.checklist .tick svg { width: 11px; height: 11px; }
.section--dark .checklist li { color: rgba(255, 255, 255, .82); }
.section--dark .checklist .tick { background: var(--color-accent); color: #fff; }

/* ---------- qualitative stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--color-ink); }
.stat { padding: 26px 24px 28px 0; border-right: 1px solid var(--color-rule); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; color: var(--color-ink); letter-spacing: .01em; line-height: 1.1; text-transform: uppercase; }
.stat span { display: block; margin-top: 8px; font-size: .85rem; color: var(--color-ink-3); }
.section--dark .stat-row { border-top-color: rgba(255, 255, 255, .24); }
.section--dark .stat { border-right-color: rgba(255, 255, 255, .16); }
.section--dark .stat b { color: #fff; }
.section--dark .stat span { color: rgba(255, 255, 255, .64); }

/* ---------- quotes ---------- */
.quote { background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); display: flex; flex-direction: column; }
.quote__body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.quote__body p { font-size: .95rem; color: var(--color-ink-2); }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--color-rule); }
.monogram {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 0;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  background: var(--color-accent); color: #fff; font-size: .86rem;
}
.quote__who b { font-weight: 500; font-size: .92rem; color: var(--color-ink); display: block; }
.quote__who span { display: block; font-size: .82rem; color: var(--color-ink-3); }
/* keep the monogram's fill and label paired: the rule above would otherwise paint it grey */
.quote__who .monogram { color: #fff; font-size: .86rem; }

/* ---------- closing statement band (reference: crimson prefooter) ---------- */
.band { position: relative; overflow: hidden; background: var(--color-accent); color: #fff; padding: 76px 0; }
.band .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .88); }
.band .btn--primary { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.band .btn--primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.band .btn--dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .8); }
.band .btn--dark:hover { background: #fff; color: var(--color-accent-deep); border-color: #fff; }
.band .brand-mark { --brand-a: #ffffff; --brand-c: #ffffff; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer (reference: deep crimson surface) ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--color-accent-deep);
  color: #fff; padding-top: 68px;
  --brand-a: #ffffff; --brand-c: #ffffff;
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name em { color: rgba(255, 255, 255, .72); }
.footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 46px; }
.footer__grid h4 {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: #fff; font-size: .92rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__about { color: rgba(255, 255, 255, .78); font-size: .93rem; margin-top: 18px; max-width: 350px; }
.footer__contact li { color: rgba(255, 255, 255, .82); font-size: .9rem; margin-bottom: 12px; }
.footer__contact a { color: rgba(255, 255, 255, .9); }
.footer__contact a:hover { color: #fff; }
.rule-t { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, .24); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 24px 0; }
.footer__bottom p { color: rgba(255, 255, 255, .78); font-size: .85rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: rgba(255, 255, 255, .88); font-size: .85rem; }
.footer__legal a:hover { color: #fff; }
.linklike {
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  color: rgba(255, 255, 255, .88); font-size: .85rem; cursor: pointer;
}
.linklike:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .linklike { color: rgba(255, 255, 255, .88); }
.site-footer .linklike:hover { color: #fff; }

/* ---------- legal / document pages ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal > p.updated { color: var(--color-ink-3); font-size: .85rem; margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--color-rule); }
.legal h2 { font-family: var(--font-display); font-size: 1.34rem; font-weight: 700; letter-spacing: .01em; line-height: 1.2; margin: 42px 0 14px; }
.legal h3 { font-family: var(--font-sans); font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 1.02rem; margin: 26px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 10px 0 16px; display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 18px; color: var(--color-ink-2); }
.legal ul li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; background: var(--color-accent); }
.legal__card { background: var(--color-paper-2); border: 1px solid var(--color-rule); border-left: 3px solid var(--color-accent); border-radius: var(--radius); padding: 26px; margin-top: 38px; }
.legal__card h3 { margin-top: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field label { display: block; font-family: var(--font-sans); font-size: .86rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--color-ink); margin-bottom: 8px; }
.field .hint { font-size: .82rem; color: var(--color-ink-3); margin-top: 7px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--color-rule-2); border-radius: var(--radius-sm);
  background: #fff; font-size: .95rem; outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(224, 34, 58, .16); }
textarea.input { resize: vertical; min-height: 140px; }
.input:disabled { background: var(--color-paper-2); color: var(--color-ink-3); cursor: not-allowed; }
.alert { padding: 13px 16px; font-size: .92rem; border: 1px solid; border-left-width: 4px; border-radius: var(--radius-sm); }
.alert-danger { background: var(--color-danger-soft); border-color: #f0c2c7; color: var(--color-danger); }
.alert-ok { background: var(--color-ok-soft); border-color: #b9ddc9; color: var(--color-ok); }

/* auth */
.auth { background: var(--color-band); padding: 84px 0; position: relative; overflow: hidden; }
.auth::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(238, 40, 66, .22) 0%, rgba(26, 27, 31, 0) 62%);
  pointer-events: none;
}
.auth__card { position: relative; max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg); padding: 40px 38px; }
.auth__head { margin-bottom: 26px; }
.auth__head h1 { font-size: 2.1rem; margin-bottom: 10px; }
.auth__foot { font-size: .9rem; color: var(--color-ink-2); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--color-rule); }

/* contact */
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.info-card { background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-lg); padding: 26px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 1.02rem; font-weight: 700; }
.info-card h3 svg { width: 20px; height: 20px; color: var(--color-accent-deep); }
.info-card p, .info-card li { font-size: .92rem; }

/* ---------- dashboard ---------- */
.dash { display: flex; min-height: calc(100vh - 76px); background: var(--color-paper-2); }
.dash__side {
  width: 252px; flex: 0 0 auto; background: var(--color-band);
  display: flex; flex-direction: column; position: sticky; top: 76px; height: calc(100vh - 76px);
  --brand-a: #ffffff; --brand-c: #ffffff;
}
.side__brand { padding: 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.side__brand .brand__name { color: #fff; }
.side__brand .brand__name em { color: rgba(255, 255, 255, .66); }
.side__nav { flex: 1 1 auto; padding: 16px 12px; display: grid; gap: 2px; align-content: start; overflow-y: auto; }
.side__link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  font-family: var(--font-sans); font-size: .92rem; font-weight: 400; letter-spacing: .01em;
  color: rgba(255, 255, 255, .68);
  border-radius: var(--radius-sm);
}
.side__link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side__link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side__link.is-active { background: rgba(238, 40, 66, .24); color: #fff; box-shadow: inset 2px 0 0 var(--color-accent); }
.side__foot { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px; }
.side__user { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: rgba(255, 255, 255, .6); margin-bottom: 14px; word-break: break-all; }
.side__foot .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .32); }
.side__foot .btn--ghost:hover { background: #fff; color: var(--color-ink); border-color: #fff; }
.dash__main { flex: 1 1 auto; padding: 38px 42px 54px; min-width: 0; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--color-rule-2); }
.dash__head h1 { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; letter-spacing: .01em; }
.dash__head p { font-size: .93rem; margin-top: 8px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { padding: 24px 24px; background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); border-top: 2px solid var(--color-accent); }
.metric__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.metric__top span { font-family: var(--font-sans); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--color-ink-3); }
.metric__top svg { width: 18px; height: 18px; color: var(--color-accent-deep); }
.metric b { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--color-ink); letter-spacing: .01em; }
.metric small { display: block; color: var(--color-ink-3); font-size: .8rem; margin-top: 4px; }

.panel { background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); padding: 26px; }
.panel + .panel { margin-top: 24px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.panel__head h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }

.kv-list { display: grid; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 2px; border-bottom: 1px solid var(--color-rule); }
.kv-row:last-child { border-bottom: 0; }
.kv-row__main { min-width: 0; }
.kv-row__main b { font-size: .95rem; font-weight: 500; color: var(--color-ink); }
.kv-row__main span { display: block; font-size: .85rem; color: var(--color-ink-3); }
.kv-row__side { text-align: right; flex: 0 0 auto; font-size: .87rem; color: var(--color-ink-2); }
.kv-row__side strong { display: block; font-weight: 500; color: var(--color-ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans);
  font-size: .7rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-sm);
  background: var(--color-paper-2); color: var(--color-ink-2); border: 1px solid var(--color-rule);
}
.badge--on { background: var(--color-ok-soft); color: var(--color-ok); border-color: #b9ddc9; }
.badge--pause { background: #fdf1e4; color: #85500a; border-color: #f2ddbd; }
.badge--draft { background: var(--color-paper-2); color: var(--color-ink-3); }
.badge--info { background: var(--color-accent-soft); color: var(--color-accent-deep); border-color: var(--color-accent-100); }

.bar { height: 6px; background: var(--color-rule-2); overflow: hidden; margin-top: 10px; border-radius: 0; }
.bar i { display: block; height: 100%; background: var(--color-accent); border-radius: 0; }
.bar--accent i { background: var(--color-accent); }

.empty { padding: 44px 20px; color: var(--color-ink-3); text-align: center; }
.empty b { display: block; color: var(--color-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; letter-spacing: .01em; text-transform: uppercase; }

/* ---------- 404 ---------- */
.notfound { padding: 112px 0; text-align: center; }
.notfound b.big { display: block; font-family: var(--font-display); font-weight: 700; font-size: 7.5rem; color: var(--color-accent); line-height: .95; letter-spacing: -.01em; }

/* ---------- cookie consent (floating card, bottom-left) ---------- */
.ck-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  width: 100%; max-width: 400px; pointer-events: none;
}
.ck-bar[hidden] { display: none; }
.ck-card {
  pointer-events: auto;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.ck-card p { font-size: .85rem; color: var(--color-ink); line-height: 1.55; }
.ck-card a { color: var(--color-accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.ck-actions { display: grid; gap: 8px; margin-top: 16px; }
.ck-actions .btn { width: 100%; min-height: 42px; font-size: .76rem; }
.ck-actions .ck-accept { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.ck-actions .ck-accept:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: #fff; }
.ck-actions .ck-secondary { background: #fff; color: var(--color-ink); border-color: var(--color-rule-2); }
.ck-actions .ck-secondary:hover { border-color: var(--color-ink); color: var(--color-ink); }

.ck-prefs {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0, 0, 20, .76);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ck-prefs[hidden] { display: none; }
.ck-panel {
  background: #fff; border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto; padding: 32px;
  border-top: 3px solid var(--color-accent);
}
.ck-panel h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; letter-spacing: .01em; }
.ck-panel > p { font-size: .9rem; margin-bottom: 20px; }
.ck-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid var(--color-rule); }
.ck-opt h3 { font-size: .98rem; font-weight: 500; font-family: var(--font-sans); text-transform: none; letter-spacing: 0; }
.ck-opt p { font-size: .85rem; margin-top: 4px; }
.ck-opt .locked { font-family: var(--font-sans); font-size: .75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--color-ink-3); white-space: nowrap; }
.ck-save { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.switch { position: relative; flex: 0 0 auto; width: 44px; height: 24px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; background: #d3d3dd; border-radius: 999px; transition: background .16s ease; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .16s ease; }
.switch input:checked + span { background: var(--color-accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(224, 34, 58, .28); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .hero--neon, .hero--photo { min-height: 0; padding: 72px 0 68px; }
  .hero--page .wrap { padding: 48px 32px; min-height: 400px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .statement .wrap { grid-template-columns: 1fr; gap: 20px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash__side { width: 220px; }
  .dash__main { padding: 30px 26px 44px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 68px 0; }
  .hero--neon, .hero--photo { padding: 56px 0 52px; }
  .hero--page .wrap { padding: 36px 24px; }
  .nav__bar .wrap { min-height: 64px; padding: 8px 18px; }
  .nav__actions .btn--ghost { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--rev .split__media { order: 0; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; padding-right: 12px; }
  .band__inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .metric-grid { grid-template-columns: 1fr; }
  .dash { flex-direction: column; }
  .dash__side { width: 100%; position: static; height: auto; }
  .side__nav { grid-template-columns: 1fr 1fr; display: grid; }
  .hero--page.hero--short .wrap { padding: 36px 24px; }
  .notfound b.big { font-size: 5rem; }
}
