/* Vector & Value AI — site styles
   Palette: ink navy, cool paper, brass. Type: Newsreader (display/serif) + Schibsted Grotesk (UI/body). */

:root {
  --ink: #0A1628;
  --ink-soft: #2B3747;
  --slate: #5B6675;
  --paper: #F4F4F0;
  --paper-2: #E9EAE4;
  --rule: #CCD0CA;
  --brass: #C18F46;
  --brass-deep: #85601F;
  --brass-light: #D8AD6C;
  --human: #B0492F;
  --ai: #2A67A0;
  --on-dark: rgba(244, 244, 240, 0.74);
  --line-dark: rgba(244, 244, 240, 0.22);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 120px);

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.2rem, 4.2vw, 3.3rem);
  --step-5: clamp(2.7rem, 6.2vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 12px; }
.skip-link:focus { left: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 244, 240, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--rule); }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: 0.95rem; color: var(--slate);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer;
}
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); }

.drawer {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) 32px;
  background: var(--paper);
  visibility: hidden; opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
}
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 72px; flex-shrink: 0; }
.drawer__close { width: 44px; height: 44px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink); cursor: pointer; }
.drawer__links { list-style: none; margin: 24px 0 32px; padding: 0; border-top: 1px solid var(--rule); }
.drawer__links a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1.9rem; color: var(--ink); text-decoration: none;
}
.drawer__links a[aria-current="page"] { color: var(--brass-deep); }

@media (max-width: 900px) {
  .nav { display: none; }
  .nav__toggle { display: flex; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border: 1px solid var(--ink); border-radius: 2px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--brass { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.btn--brass:hover { background: var(--brass-light); border-color: var(--brass-light); }
.btn--on-dark { background: transparent; border-color: rgba(244, 244, 240, 0.5); color: var(--paper); }
.btn--on-dark:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--brass);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--rule); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-5); line-height: 1.02; letter-spacing: -0.028em; max-width: 11ch; }
.hero__sub { margin-top: 28px; max-width: 34ch; font-size: var(--step-1); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.field { position: relative; }
.field canvas { display: block; width: 100%; aspect-ratio: 7 / 6; touch-action: pan-y; }
.field__caption { margin-top: 12px; font-size: 0.9rem; color: var(--slate); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .field { max-width: 560px; }
}

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); }
.page-hero h1 { font-size: var(--step-5); line-height: 1.03; letter-spacing: -0.028em; max-width: 15ch; }
.page-hero p { margin-top: 26px; max-width: 46ch; font-size: var(--step-1); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--paper); }
.section--rule { border-top: 1px solid var(--rule); }

.head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.head h2 { font-size: var(--step-4); max-width: 20ch; }
.head p { max-width: 46ch; color: var(--slate); }
.section--dark .head p { color: var(--on-dark); }
@media (max-width: 800px) { .head { grid-template-columns: 1fr; } }

/* ---------- Ruled columns (pillars, values, areas) ---------- */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.columns > * { padding: 28px 32px 4px 0; }
.columns:not(.columns--2) > * + * { padding-left: 32px; border-left: 1px solid var(--rule); }
.columns--2 > * { padding: 28px 40px 36px 0; border-bottom: 1px solid var(--rule); }
.columns--2 > :nth-child(even) { padding-left: 40px; padding-right: 0; border-left: 1px solid var(--rule); }
.columns h3 { font-size: var(--step-2); }
.columns p { margin-top: 14px; max-width: 38ch; color: var(--slate); }
.columns .link { display: inline-block; margin-top: 22px; }
@media (max-width: 900px) {
  .columns, .columns--2 { grid-template-columns: 1fr; }
  .columns > *, .columns > * + *, .columns--2 > *, .columns--2 > :nth-child(even) {
    padding: 26px 0 30px; border-left: 0; border-bottom: 1px solid var(--rule);
  }
}

/* ---------- Value → Decision → System → Measurement ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: step; }
.path::before { content: ""; position: absolute; left: 0; right: 10px; top: 7px; height: 1px; background: var(--ink); }
.path::after {
  content: ""; position: absolute; right: 0; top: 2px;
  border-left: 11px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.path li { position: relative; padding: 44px 28px 0 0; counter-increment: step; }
.path li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper-2); border: 1.5px solid var(--ink);
}
.path li:last-child::before { background: var(--brass); border-color: var(--brass); }
.path__name { display: block; font-family: var(--serif); font-size: var(--step-3); line-height: 1.1; color: var(--ink); }
.path__name::before { content: counter(step); display: block; margin-bottom: 6px; font-family: var(--sans); font-size: 0.85rem; color: var(--slate); }
.path p { margin-top: 12px; max-width: 28ch; color: var(--slate); font-size: 0.98rem; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; }
  .path::before { left: 7px; right: auto; top: 0; bottom: 10px; width: 1px; height: auto; }
  .path::after { right: auto; top: auto; bottom: 0; left: 2px; border-top: 11px solid var(--ink); border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 0; }
  .path li { padding: 0 0 40px 44px; }
  .path li::before { top: 4px; }
}

/* ---------- Product feature ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--ink); }
.feature + .feature { margin-top: clamp(56px, 7vw, 88px); }
.feature--muted { border-top-color: var(--rule); }
.feature--muted .feature__name { color: var(--slate); }
.feature__name { font-family: var(--serif); font-size: var(--step-4); color: var(--ink); line-height: 1.05; }
.feature__type { display: block; margin-top: 10px; font-weight: 500; color: var(--brass-deep); }
.feature__summary { margin-top: 22px; max-width: 30ch; font-family: var(--serif); font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.feature__body > p { max-width: 62ch; }
.feature__body > p + p { margin-top: 18px; }
.feature__body strong { color: var(--ink); font-weight: 600; }
.feature__body .btn { margin-top: 32px; }
.feature__subhead { margin-top: 36px; font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--ink); }
.caps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.caps li { padding: 14px 0 14px 22px; border-top: 1px solid var(--rule); position: relative; line-height: 1.5; }
.caps li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 1.5px; background: var(--brass); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr; }
}

/* ---------- Research list ---------- */
.papers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.papers li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px 32px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.papers__cat { font-size: 0.92rem; font-weight: 500; color: var(--brass-deep); }
.papers__title { font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: var(--ink); }
.papers__title a { text-decoration: none; }
.papers__title a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.papers__note { grid-column: 2; margin-top: 6px; max-width: 60ch; color: var(--slate); }
.papers__source { font-size: 0.92rem; color: var(--slate); white-space: nowrap; }
.section--dark .papers, .section--dark .papers li { border-color: var(--line-dark); }
.section--dark .papers__cat { color: var(--brass-light); }
.section--dark .papers__title { color: var(--paper); }
.section--dark .papers__note, .section--dark .papers__source { color: var(--on-dark); }
@media (max-width: 800px) {
  .papers li { grid-template-columns: 1fr; }
  .papers__note { grid-column: 1; }
}

.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin-top: 20px; font-size: 0.95rem; color: var(--slate); }
.fineprint a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--brass); }

/* ---------- Audience ---------- */
.audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.audience li { padding: 20px 0 22px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: var(--step-2); line-height: 1.2; color: var(--ink); }
@media (max-width: 900px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: var(--step-4); max-width: 15ch; }
.cta p { margin-top: 16px; max-width: 42ch; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 96px); }
.about__lede { font-family: var(--serif); font-size: var(--step-3); line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; max-width: 18ch; }
.about__body p { max-width: 62ch; }
.about__body p + p { margin-top: 20px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- Consulting cases ---------- */
.cases { border-top: 1px solid var(--ink); }
.case { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.case dt { margin-bottom: 6px; font-size: 0.88rem; color: var(--slate); }
.case dd { margin: 0; color: var(--ink); line-height: 1.5; }
.case .pending { color: var(--brass-deep); }
@media (max-width: 900px) { .case { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .case { grid-template-columns: 1fr; } }

/* ---------- Essays block ---------- */
.essay { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding-top: 32px; border-top: 1px solid var(--ink); }
.essay h3 { font-size: var(--step-3); }
.essay p { margin-top: 14px; max-width: 56ch; color: var(--slate); }
@media (max-width: 800px) { .essay { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(40px, 7vw, 112px); }
.field { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #FFFFFF; border: 1px solid var(--rule); border-radius: 2px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field textarea { min-height: 170px; resize: vertical; }
.form-status { margin-top: 16px; font-size: 0.95rem; color: var(--ink); }
.form-status:empty { display: none; }
.contact__info { border-top: 1px solid var(--ink); }
.contact__info div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact__info h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink); letter-spacing: 0; margin-bottom: 6px; }
.contact__info p { color: var(--slate); }
.contact__info a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 3px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 32px; background: var(--paper-2); border-top: 1px solid var(--rule); font-size: 0.95rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 32px; }
.footer__tag { margin-top: 14px; max-width: 26ch; color: var(--slate); }
.footer h2 { margin-bottom: 12px; font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: 8px; }
.footer ul a { color: var(--slate); text-decoration: none; overflow-wrap: anywhere; }
.footer ul a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); color: var(--slate); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Hero tagline ---------- */
.field__caption {
  margin-top: 18px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: var(--step-1); line-height: 1.4;
  color: var(--ink-soft);
  transition: opacity 0.8s ease;
}
.field--intro .field__caption { opacity: 0; transition: none; }

/* ---------- Product lineup (one line per product) ---------- */
.lineup { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.lineup li {
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto;
  gap: 6px 32px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.lineup__name { font-family: var(--serif); font-size: var(--step-2); color: var(--ink); text-decoration: none; line-height: 1.2; }
.lineup__name:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lineup__line { max-width: 64ch; }
.lineup__status { font-size: 0.9rem; color: var(--slate); white-space: nowrap; }
.lineup__status--live { color: var(--brass-deep); font-weight: 500; }
@media (max-width: 800px) { .lineup li { grid-template-columns: 1fr; } }

/* ---------- Product page extras ---------- */
.feature__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.feature__body .feature__actions .btn { margin-top: 0; }
.deadline { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); }
.deadline__count { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.deadline__days { font-family: var(--serif); font-size: var(--step-4); line-height: 1; color: var(--brass-deep); font-variant-numeric: lining-nums tabular-nums; }
.deadline__days:empty, .deadline__count.is-hidden { display: none; }
.deadline__unit { color: var(--slate); }
.deadline dl { margin: 18px 0 0; }
.deadline dl div { padding: 10px 0; border-top: 1px solid var(--rule); }
.deadline dt { font-weight: 600; color: var(--ink); }
.deadline dd { margin: 2px 0 0; color: var(--slate); }

.field__caption .human { color: var(--human); }
.field__caption .ai { color: var(--ai); }

/* ---------- Pramaan extras ---------- */
.pricing { margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); max-width: 62ch; }
.pricing strong { color: var(--ink); font-weight: 600; }
.subsection { margin-top: clamp(56px, 7vw, 88px); }
.subsection__title { font-size: var(--step-3); margin-bottom: 32px; }
.commodities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.commodities > div { padding-top: 18px; border-top: 1px solid var(--ink); }
.commodities h4 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); color: var(--ink); line-height: 1.2; }
.commodities p { margin-top: 10px; color: var(--slate); font-size: 0.98rem; max-width: 36ch; }
@media (max-width: 900px) { .commodities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
@media (max-width: 560px) { .commodities { grid-template-columns: 1fr; } }

.footer__legal { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a, .footer__cookie { color: var(--slate); text-decoration: none; }
.footer__cookie { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer__legal a:hover, .footer__cookie:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* ---------- ReasonIQ example ---------- */
.example { padding-top: 32px; border-top: 1px solid var(--rule); }
.example__intro p { max-width: 70ch; }
.example .caps { margin-top: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.example__steps { margin-top: 48px; }
@media (max-width: 1000px) { .example .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .example .caps { grid-template-columns: 1fr; } }
