/* Adsconsultant, MB — adsconsultant.co
   One stylesheet, self-hosted fonts, zero third-party requests. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --stone: #f3f3f1;
  --line: #e4e4e0;
  --muted: #66676c;
  --ink: #0d0e10;
  --ink-2: #1a1b1e;
  --ink-line: #2a2b2f;
  --ink-muted: #a1a2a7;
  --signal: #3346ff;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2b2c31; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: #c9c9c4; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-head.is-scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: #3a3b40; }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 104px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none;
  background-image:
    linear-gradient(to right, #ecece8 1px, transparent 1px),
    linear-gradient(to bottom, #ecece8 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 34%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 34%, #000 30%, transparent 78%);
}
.hero-copy { position: relative; text-align: center; max-width: 1120px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: #3a3b40;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(51, 70, 255, .14); }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(44px, 7.6vw, 96px);
  font-weight: 800; line-height: .98; letter-spacing: -0.045em;
}
.hero h1 .line { display: block; }
.hero h1 .line-serif {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.02em; color: #8b8c90; margin-top: .04em;
  font-size: .96em;
}
.hero-lead {
  max-width: 640px; margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: #4b4c51;
}
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* routing diagram */
.flow {
  position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1060px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 36px);
}
.flow svg { width: 100%; height: auto; }
.flow-tall { display: none; margin: 0 auto; max-width: 380px; }
.flow text { font-family: var(--sans); }
.f-chip > rect { fill: #fff; stroke: var(--line); }
.f-chip text { font-size: 16px; font-weight: 650; fill: var(--ink); letter-spacing: -0.01em; }
.f-chip .f-ico { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-chip .f-ico-bg { fill: var(--stone); stroke: none; }
.f-side { font-size: 12.5px; font-weight: 500; fill: var(--muted); letter-spacing: 0; }
.f-path { fill: none; stroke: #d6d6d1; stroke-width: 1.5; }
.f-core > rect { fill: var(--ink); }
.f-core .f-core-name { font-size: 19px; font-weight: 800; fill: #fff; letter-spacing: -0.03em; }
.f-core .f-core-sub { font-size: 13px; font-weight: 500; fill: var(--ink-muted); }
.f-pulse { fill: var(--signal); }
@media (prefers-reduced-motion: reduce) { .f-pulse { display: none; } }

/* markets strip */
.markets { margin-top: clamp(48px, 7vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.markets-row { display: flex; align-items: center; gap: 28px 40px; padding: 26px 0; flex-wrap: wrap; justify-content: center; }
.markets-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.markets ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.markets li { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #9a9b9f; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(80px, 11vw, 132px) 0; }
.section-stone { background: var(--stone); }
.section-flush { padding-top: 0; }
.section-end { padding-bottom: clamp(40px, 5vw, 64px); }
.intro { max-width: 680px; margin: 0 auto clamp(48px, 7vw, 80px); text-align: center; }
.h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.intro p { margin-top: 18px; font-size: clamp(17px, 1.5vw, 19px); color: #4b4c51; }

/* ---------- disciplines ---------- */
.disc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(40px, 5vw, 56px) 0; }
.disc + .disc { border-top: 1px solid var(--line); }
.disc:nth-of-type(even) .disc-text { order: 2; }
.disc-tag { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.disc-tag svg { width: 26px; height: 26px; }
.disc h3 { margin-top: 16px; font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
.disc-text > p { margin-top: 16px; color: #4b4c51; max-width: 52ch; }
.checks { margin-top: 24px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}

/* visual panels */
.panel {
  position: relative; border-radius: var(--r-lg); min-height: 360px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4vw, 44px);
}
.panel-dark { background: var(--ink); color: #fff; }
.panel-light { background: var(--stone); border: 1px solid var(--line); }
.panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.panel-dark { --grid: rgba(255, 255, 255, .06); }
.panel-light { --grid: rgba(13, 14, 16, .045); }
.panel > * { position: relative; }

/* 1 · campaign list */
.camp { width: 100%; max-width: 400px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 8px; }
.camp-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 12px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.camp-row { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-top: 1px solid var(--ink-line); }
.camp-ico { width: 38px; height: 38px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; }
.camp-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.camp-name { font-weight: 650; font-size: 16px; line-height: 1.3; }
.camp-name small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-muted); }
.camp-state { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #d8d9dd; }
.camp-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(51, 70, 255, .28); }

/* 2 · affiliate path */
.path-card { width: 100%; max-width: 440px; display: grid; gap: 14px; }
.path-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.path-step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 8px; text-align: center; font-size: 14px; font-weight: 650; position: relative;
}
.path-step:last-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.path-step span { display: block; margin: 0 auto 8px; width: 8px; height: 8px; border-radius: 50%; background: #c9c9c4; }
.path-step:last-child span { background: var(--signal); }
.path-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.term { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.term dt { font-size: 13px; color: var(--muted); font-weight: 500; }
.term dd { margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }

/* 3 · page variants */
.variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 420px; align-items: end; }
.variant { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 8px; }
.variant i { display: block; height: 7px; border-radius: 4px; background: #34353a; }
.variant i.img { height: 58px; border-radius: 7px; background: #2a2b30; }
.variant i.short { width: 60%; }
.variant i.btn-bar { height: 16px; border-radius: 8px; background: #45464c; margin-top: 4px; }
.variant b { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.variant.win { background: #fff; border-color: #fff; transform: translateY(-18px); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.variant.win i { background: #e7e7e3; }
.variant.win i.img { background: #d9d9d4; }
.variant.win i.btn-bar { background: var(--signal); }
.variant.win b { color: var(--ink); }
.variant-note { grid-column: 1 / -1; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-muted); margin-top: 6px; }

/* 4 · phone */
.phone {
  width: 220px; min-height: 380px; background: #fff; border: 1px solid #d6d6d1; border-radius: 34px;
  padding: 14px; box-shadow: 0 24px 50px rgba(13, 14, 16, .12); display: flex; flex-direction: column;
}
.phone-notch { width: 70px; height: 18px; border-radius: 10px; background: var(--ink); margin: 0 auto 18px; }
.phone-bar { height: 4px; border-radius: 2px; background: var(--stone); overflow: hidden; }
.phone-bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--ink); }
.phone-q { margin-top: 20px; font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.phone-opts { margin-top: 16px; display: grid; gap: 8px; }
.phone-opts span { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12.5px; font-weight: 600; }
.phone-opts span.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.phone-go { margin-top: auto; background: var(--ink); color: #fff; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 650; padding: 10px; }

/* 5 · brand board */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 400px; }
.board > div { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 18px; min-height: 130px; }
.board .b-mark { display: grid; place-items: center; background: #fff; }
.board .b-mark svg { width: 64px; height: 64px; }
.board .b-type { display: flex; flex-direction: column; justify-content: space-between; }
.board .b-type strong { font-size: 54px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.board .b-type em { font-family: var(--serif); font-size: 22px; color: var(--ink-muted); }
.board .b-sw { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 0; padding: 10px; }
.board .b-sw span { height: 44px; border-radius: 9px; }
.board .b-sw small { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

/* ---------- operating model (dark) ---------- */
.model {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  border-radius: calc(var(--r-lg) + 4px); padding: clamp(40px, 7vw, 88px);
}
.model-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px clamp(36px, 6vw, 80px); align-items: end; }
.model::before {
  content: ""; position: absolute; width: 720px; height: 720px; left: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 62%);
}
.model > * { position: relative; }
.model .h2 { color: #fff; }
.model-lead { color: var(--ink-muted); font-size: 18px; max-width: 46ch; }
.model-list { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; }
.model-list li { padding-top: 24px; border-top: 1px solid var(--ink-line); }
.model-list svg { width: 24px; height: 24px; margin-bottom: 18px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.model-list strong { display: block; font-weight: 650; font-size: 17px; }
.model-list span { display: block; color: var(--ink-muted); font-size: 15px; margin-top: 4px; max-width: 34ch; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px 24px 30px; }
.step-n { font-family: var(--serif); font-style: italic; font-size: 44px; line-height: 1; color: #a3a4a8; }
.step h3 { margin-top: 26px; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 15.5px; color: #55565b; }

/* ---------- company ---------- */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.company-text p { margin-top: 20px; color: #4b4c51; max-width: 50ch; }
.facts { border: 1px solid var(--line); border-radius: var(--r-md); }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px 22px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 15px; color: var(--muted); }
.facts dd { font-size: 16px; font-weight: 600; }
.facts a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b8b8b3; }
.facts a:hover { text-decoration-color: currentColor; }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden; text-align: center;
  background: var(--stone); border: 1px solid var(--line); border-radius: calc(var(--r-lg) + 4px);
  padding: clamp(56px, 8vw, 96px) var(--gutter);
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(13, 14, 16, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 14, 16, .045) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 55% 80% at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 80% at 50% 50%, #000 20%, transparent 75%);
}
.contact > * { position: relative; }
.contact .h2 { max-width: 760px; margin: 0 auto; }
.contact p { max-width: 520px; margin: 18px auto 0; color: #4b4c51; font-size: 18px; }
.contact .btn { margin-top: 32px; }

/* ---------- footer ---------- */
.site-foot { padding: 56px 0 48px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.foot-nav { display: flex; gap: 10px 28px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; font-size: 15px; color: #4b4c51; }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { padding-top: 24px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; }
.foot-legal p + p { margin-top: 2px; }
.foot-legal div { text-align: right; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.nf p { margin: 16px auto 32px; color: #4b4c51; max-width: 40ch; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .model-head { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .flow-wide { display: none; }
  .flow-tall { display: block; }
  .disc { grid-template-columns: 1fr; }
  .disc:nth-of-type(even) .disc-text { order: 0; }
  .panel { min-height: 300px; }
  .company { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: 1fr; }
  .markets-row { gap: 14px; }
  .pill { font-size: 13px; padding: 6px 12px 6px 10px; gap: 8px; }
  .markets ul { gap: 6px 20px; }
  .markets li { font-size: 16px; }
  .flow { padding: 14px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .path-steps { grid-template-columns: 1fr 1fr; }
  .foot-legal { flex-direction: column; }
  .foot-legal div { text-align: left; }
}
