/* ============================================================
   krelnoviasolution — design system
   Design language studied from the magnite.com marketing site
   (2026-10-15, live getComputedStyle): black/white editorial
   alternation on a #222222 brand-black ground, brand blue
   #3042f9 as the single accent, 0px radius throughout, a light
   serif display face (GT Alpina → Newsreader) over a grotesque
   body face (FT Regola Neue → Schibsted Grotesk), and a
   two-tier sticky nav (utility strip + white main bar).
   Self-hosted fonts, no external CDN, no build step.
   ============================================================ */

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/Newsreader-Variable.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/SchibstedGrotesk-Variable.woff2') format('woff2-variations');
  font-weight: 400 900;
  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 (magnite.com, measured) ---------- */
:root {
  --color-paper: #ffffff;
  --color-paper-2: #f2f2f2;          /* light band */
  --color-paper-3: #e6e6e6;          /* utility strip */
  --color-band: #222222;             /* brand black — dark bands, nav CTA, footer */
  --color-band-2: #2e2e2e;

  --color-ink: #111111;              /* headings */
  --color-ink-2: #3a3a3a;            /* body copy */
  --color-ink-3: #6d6d6d;            /* muted / meta */
  --color-rule: #e6e6e6;
  --color-rule-2: #d9d9d9;

  --color-accent: #3042f9;           /* the one accent: fill and text (6.4:1 on white) */
  --color-accent-deep: #1f2dc4;      /* hover / pressed */
  --color-accent-soft: #eef0ff;
  --color-accent-100: #d6daff;
  --color-accent-200: #b3bcff;

  /* kept for the platform's shared class contract */
  --color-primary: var(--color-accent);
  --color-primary-deep: var(--color-accent-deep);
  --color-primary-soft: var(--color-accent-soft);
  --color-primary-100: var(--color-accent-100);
  --color-primary-200: var(--color-accent-200);

  --color-highlight: #f6d16b;        /* the reference's search-highlight yellow, sparingly */
  --color-alert: #f26478;            /* the reference's pink, semantic only */
  --color-danger: #b3202f;
  --color-danger-soft: #fdecee;
  --color-ok: #1c6b3f;
  --color-ok-soft: #eaf6ef;

  --brand-a: #111111;                /* the mark's two lower bars */
  --brand-b: var(--color-accent);    /* the mark's lead bar */

  --radius-lg: 0;
  --radius: 2.5px;
  --radius-sm: 0;
  --radius-pill: 0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .12);
  --shadow: 0 4px 8px rgba(0, 0, 0, .1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, .12);

  --font-sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'Schibsted Grotesk', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1320px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-ink); line-height: 1.06; letter-spacing: -.022em; font-weight: 400; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -.012em; }
h4 { font-size: 1.05rem; }
p { color: var(--color-ink-2); }
a { color: var(--color-accent); }
a:hover { color: var(--color-accent-deep); }
strong { font-weight: 700; color: var(--color-ink); }
code, pre { font-family: var(--font-mono); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.eyebrow--blue { color: var(--color-accent); }
.eyebrow--onphoto { color: var(--color-accent-200); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--color-ink-2); }
.muted { color: var(--color-ink-3); font-size: .92rem; }
.section__head { max-width: 760px; margin: 0 0 56px; }
.section__head.center { text-align: center; margin: 0 auto 56px; }
.section__head p { margin-top: 14px; }
.section__head h2 + p { margin-top: 16px; }

.grid { display: grid; gap: 24px; }
.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 (skins share the base group so any skin stands alone) ---------- */
.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: 50px;
  padding: 0 22px;
  border-radius: 0;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.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 {
  opacity: .5; cursor: not-allowed;
}

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

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

.btn--dark { background: var(--color-ink); color: #fff; }
.btn--dark:hover { background: 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-color: var(--color-rule-2); }
.btn--ghost:hover { border-color: var(--color-ink); color: var(--color-ink); }

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

.btn--outline-band { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-band:hover { background: #fff; color: var(--color-ink); border-color: #fff; }

/* ---------- brand mark (drawn for this site: three ascending "pacing" bars) ---------- */
.brand-mark {
  position: relative; width: 26px; height: 26px; flex: 0 0 auto; display: inline-block;
  background-image: linear-gradient(var(--brand-b), var(--brand-b));
  background-repeat: no-repeat;
  background-size: 6px 26px;
  background-position: 20px 100%;
}
.brand-mark::before {
  content: ''; position: absolute; left: 0; bottom: 0; width: 6px; height: 11px; background: var(--brand-a);
}
.brand-mark::after {
  content: ''; position: absolute; left: 10px; bottom: 0; width: 6px; height: 18px; background: var(--brand-a);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-sans); font-weight: 700; font-size: 1.16rem; letter-spacing: -.03em; }
.brand__name { color: var(--color-ink); }
.brand__name em { font-style: normal; color: var(--color-accent); }

/* ---------- navigation: two tiers (utility strip + white bar) ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--color-rule);
}
.nav__util { background: var(--color-paper-3); border-bottom: 1px solid var(--color-rule-2); }
.nav__util .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; }
.nav__util-left { display: flex; align-items: center; gap: 22px; }
.nav__util a, .nav__util span {
  font-size: .78rem; color: #4d4d4d; letter-spacing: .01em;
}
.nav__util a:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.nav__util-right { display: flex; align-items: center; gap: 20px; }
.nav__util-right form { display: inline; }
.nav__util .linklike { color: #4d4d4d; font-size: .78rem; letter-spacing: .01em; }
.nav__util .linklike:hover { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

.nav__bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: .95rem; font-weight: 600; color: var(--color-ink);
  padding: 6px 0; position: relative; letter-spacing: -.005em;
}
.nav__links a:hover { color: var(--color-accent); }
.nav__links a.is-active { color: var(--color-accent); }
.nav__links a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--color-accent);
}
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__actions form { display: inline; }
.nav__toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--color-ink);
}
.nav__drawer { display: none; border-top: 1px solid var(--color-rule); background: #fff; }
.nav__drawer.is-open { display: block; }
.nav__drawer a {
  display: block; padding: 15px 28px; font-weight: 600; font-size: .95rem;
  color: var(--color-ink); border-bottom: 1px solid var(--color-rule);
}
.nav__drawer a.is-active { color: var(--color-accent); }
.nav__drawer .drawer__cta { padding: 16px 28px; display: grid; gap: 10px; }
.nav__drawer form { display: block; }

/* ---------- hero (light band — legal / document pages) ---------- */
.hero { background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule); padding: 64px 0; }
.hero__title { margin-bottom: 16px; }
.hero__title .hl { color: var(--color-accent); }
.hero__sub { font-size: 1.12rem; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid var(--color-rule-2); padding-top: 20px; }

/* split hero — the reference motif: dark #222 ground, copy left, media right */
.hero--split { background: var(--color-band); color: #fff; padding: 0; }
.hero--split .hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 64px; align-items: center; padding: 88px 0 92px;
}
.hero--split .hero__title { color: #fff; max-width: 15ch; }
.hero--split .hero__title .hl { color: var(--color-accent-200); }
.hero--split .hero__sub { color: rgba(255, 255, 255, .82); max-width: 520px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: 0;
}
.hero__media--tall img { max-height: 620px; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 0;
  background: #fff; border: 1px solid var(--color-rule-2);
  font-size: .76rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-ink-2);
}
.chip::before { content: ''; width: 6px; height: 6px; background: var(--color-accent); }
.hero__meta .chip { background: transparent; border: 0; border-right: 1px solid var(--color-rule-2); color: var(--color-ink-2); padding: 4px 16px 4px 0; margin-right: 16px; }
.hero__meta .chip:last-child { border-right: 0; }
.hero--split .chip { background: transparent; border-color: rgba(255, 255, 255, .28); color: rgba(255, 255, 255, .86); }
.hero--split .hero__meta { border-top-color: rgba(255, 255, 255, .22); }
.hero--split .hero__meta .chip { border-right-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .82); }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--color-rule);
  padding: 30px 28px 32px;
  transition: border-color .16s ease;
}
.card:hover { border-color: var(--color-accent); }
.card__icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--color-paper-2); color: var(--color-accent); margin-bottom: 22px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }
.section--dark .card, .section--dark .panel { background: transparent; border-color: rgba(255, 255, 255, .24); }
.section--dark .card:hover { border-color: var(--color-accent-200); }
.section--dark .card h3 { color: #fff; }
.section--dark .card p { color: rgba(255, 255, 255, .8); }
.section--dark .card__icon { background: rgba(255, 255, 255, .1); color: #fff; }
.section--dark .tag { background: transparent; border-color: rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .84); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--color-ink-3); background: var(--color-paper-2);
  border: 1px solid var(--color-rule); padding: 4px 9px; border-radius: 0;
}
.tag--accent { color: var(--color-accent); background: var(--color-accent-soft); border-color: var(--color-accent-100); }
.tag--blue { color: var(--color-ink-3); background: var(--color-paper-2); border-color: var(--color-rule); }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media img { width: 100%; height: auto; border-radius: 0; border: 1px solid var(--color-rule); }
.section--dark .split__media img { border-color: rgba(255, 255, 255, .2); }
.split__body h2 { margin-bottom: 16px; }
.checklist { margin-top: 24px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: var(--color-ink-2); }
.checklist .tick {
  flex: 0 0 auto; width: 20px; height: 20px;
  background: var(--color-accent-soft); color: var(--color-accent);
  display: grid; place-items: center; margin-top: 2px;
}
.checklist .tick svg { width: 12px; height: 12px; }
.section--dark .checklist li { color: rgba(255, 255, 255, .84); }
.section--dark .checklist .tick { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- qualitative stat row ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); }
.stat { padding: 28px 26px 30px 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: 400; font-size: 1.4rem; color: var(--color-ink); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 6px; font-size: .84rem; 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, .2); }
.section--dark .stat b { color: #fff; }
.section--dark .stat span { color: rgba(255, 255, 255, .68); }

/* ---------- quotes ---------- */
.quote { background: #fff; border: 1px solid var(--color-rule); display: flex; flex-direction: column; }
.quote__body { padding: 30px 28px; display: flex; flex-direction: column; flex: 1 1 auto; }
.quote__body p { font-size: .98rem; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--color-rule); }
.monogram {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center;
  font-weight: 700; background: var(--color-accent-soft); color: var(--color-accent); font-size: .85rem;
}
.quote__who b { font-weight: 700; font-size: .92rem; color: var(--color-ink); display: block; }
.quote__who span { display: block; font-size: .82rem; color: var(--color-ink-3); }

/* ---------- closing statement band ---------- */
.band { background: var(--color-band); color: #fff; padding: 84px 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .8); }
.band .brand-mark { --brand-a: #ffffff; --brand-b: var(--color-accent-200); }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer (brand black, matching the reference) ---------- */
.site-footer { background: var(--color-band); color: #fff; padding-top: 72px; --brand-a: #ffffff; --brand-b: var(--color-accent-200); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name em { color: var(--color-accent-200); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__grid h4 {
  font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58); margin-bottom: 18px;
}
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { color: rgba(255, 255, 255, .84); font-size: .93rem; }
.footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__about { color: rgba(255, 255, 255, .78); font-size: .94rem; margin-top: 18px; max-width: 340px; }
.footer__contact li { color: rgba(255, 255, 255, .8); font-size: .92rem; margin-bottom: 12px; }
.footer__contact a { color: rgba(255, 255, 255, .8); }
.footer__contact a:hover { color: #fff; }
.rule-t { border-top: 1px solid rgba(255, 255, 255, .18); }
.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, .72); font-size: .86rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: rgba(255, 255, 255, .8); font-size: .86rem; }
.footer__legal a:hover { color: #fff; }
.linklike {
  background: none; border: 0; padding: 0; margin: 0; font: inherit;
  color: rgba(255, 255, 255, .8); font-size: .86rem; cursor: pointer;
}
.linklike:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- legal / document pages ---------- */
.legal { max-width: 880px; margin: 0 auto; }
.legal > p.updated { color: var(--color-ink-3); font-size: .86rem; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--color-rule); }
.legal h2 { font-size: 1.5rem; margin: 42px 0 12px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.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: 11px; width: 5px; height: 5px; background: var(--color-accent); }
.legal__card { background: var(--color-paper-2); border: 1px solid var(--color-rule); padding: 26px; margin-top: 40px; }
.legal__card h3 { margin-top: 0; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field label { display: block; font-size: .875rem; font-weight: 600; 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 14px;
  border: 1px solid var(--color-rule-2); border-radius: 0;
  background: #fff; font-size: .97rem; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(48, 66, 249, .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: 3px; border-radius: 0; }
.alert-danger { background: var(--color-danger-soft); border-color: #f3c4cb; color: var(--color-danger); }
.alert-ok { background: var(--color-ok-soft); border-color: #bde3cc; color: var(--color-ok); }

/* auth */
.auth { background: var(--color-paper-2); padding: 80px 0; }
.auth__card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid var(--color-rule); padding: 42px 40px; }
.auth__head { margin-bottom: 28px; }
.auth__head h1 { font-size: 2rem; margin-bottom: 8px; }
.auth__foot { font-size: .92rem; color: var(--color-ink-2); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--color-rule); }

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

/* ---------- dashboard ---------- */
.dash { display: flex; min-height: calc(100vh - 120px); background: var(--color-paper-2); }
.dash__side {
  width: 250px; flex: 0 0 auto; background: var(--color-band);
  display: flex; flex-direction: column; position: sticky; top: 120px; height: calc(100vh - 120px);
  --brand-a: #ffffff; --brand-b: var(--color-accent-200);
}
.side__brand { padding: 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.side__brand .brand__name { color: #fff; }
.side__brand .brand__name em { color: var(--color-accent-200); }
.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 12px;
  font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .72);
  border-left: 2px solid transparent;
}
.side__link svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__link.is-active { background: rgba(255, 255, 255, .1); color: #fff; border-left-color: var(--color-accent-200); }
.side__foot { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px; }
.side__user { display: flex; align-items: center; gap: 9px; font-size: .82rem; 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, .38); }
.side__foot .btn--ghost:hover { background: #fff; color: var(--color-ink); border-color: #fff; }
.dash__main { flex: 1 1 auto; padding: 40px 44px 56px; min-width: 0; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--color-rule); }
.dash__head h1 { font-size: 1.9rem; }
.dash__head p { font-size: .94rem; margin-top: 6px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--color-rule); }
.metric { padding: 22px 24px; border-right: 1px solid var(--color-rule); }
.metric:last-child { border-right: 0; }
.metric__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.metric__top span { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink-3); }
.metric__top svg { width: 18px; height: 18px; color: var(--color-accent); }
.metric b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; color: var(--color-ink); letter-spacing: -.02em; }
.metric small { display: block; color: var(--color-ink-3); font-size: .8rem; margin-top: 4px; }

.panel { background: #fff; border: 1px solid var(--color-rule); 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-size: 1.2rem; }

.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: .96rem; font-weight: 600; 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: .88rem; color: var(--color-ink-2); }
.kv-row__side strong { display: block; font-weight: 700; color: var(--color-ink); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 0;
  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: #bde3cc; }
.badge--pause { background: #fdf3e6; color: #8a4b06; border-color: #f6ddb8; }
.badge--draft { background: var(--color-paper-2); color: var(--color-ink-3); }
.badge--info { background: var(--color-accent-soft); color: var(--color-accent); border-color: var(--color-accent-100); }

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

.empty { padding: 48px 20px; color: var(--color-ink-3); text-align: center; }
.empty b { display: block; color: var(--color-ink); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 6px; }

/* ---------- cookie consent (reference: floating card, bottom-left) ---------- */
.ck-bar {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  width: 100%; max-width: 375px; pointer-events: none;
}
.ck-bar[hidden] { display: none; }
.ck-card {
  pointer-events: auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: rgba(0, 0, 0, .2) 0 0 18px 0;
  padding: 20px;
}
.ck-card p { font-size: .84rem; color: #212121; line-height: 1.55; }
.ck-card a { color: var(--color-accent); 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: .84rem; border-radius: 2px; }
.ck-actions .ck-accept { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.ck-actions .ck-accept:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #fff; }
.ck-actions .ck-secondary { background: #fff; color: #212121; border-color: var(--color-rule-2); }
.ck-actions .ck-secondary:hover { border-color: #212121; color: #212121; }

.ck-prefs {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ck-prefs[hidden] { display: none; }
.ck-panel {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto; padding: 30px;
}
.ck-panel h2 { font-size: 1.4rem; margin-bottom: 8px; }
.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: 1rem; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.ck-opt p { font-size: .86rem; margin-top: 4px; }
.ck-opt .locked { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-ink-3); white-space: nowrap; }
.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: #cdcdcd; 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(48, 66, 249, .3); }
.ck-panel .ck-save { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.notfound { padding: 120px 0; text-align: center; }
.notfound b.big { display: block; font-family: var(--font-display); font-weight: 400; font-size: 6rem; color: var(--color-accent); line-height: 1; letter-spacing: -.04em; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; gap: 44px; padding: 68px 0 72px; }
  .hero--split .hero__title { max-width: none; }
  .hero__media img, .hero__media--tall img { max-height: 420px; }
  .split, .contact__grid { grid-template-columns: 1fr; gap: 38px; }
  .split--rev .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid--4, .stat-row, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .metric:nth-child(2n) { border-right: 0; }
  .band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__util-left span:nth-child(2) { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .dash { flex-direction: column; }
  .dash__side { position: static; width: 100%; height: auto; }
  .side__nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .dash__main { padding: 26px 20px 40px; }
  .ck-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .hero__meta .chip { margin-bottom: 8px; }
}
@media (max-width: 560px) {
  .grid--2, .grid--4, .stat-row, .metric-grid, .footer__grid { grid-template-columns: 1fr; }
  .stat, .metric { border-right: 0; padding-right: 0; }
  .auth__card { padding: 30px 22px; }
}
