/* Behind a Campaign — first site. Look recorded on STYLE.md. */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-normal-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-italic-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/DMMono-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("fonts/DMMono-normal-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f3ee;
  --sheet: #ffffff;
  --fog: #e9e8e2;
  --ink: #0e0e0e;
  --ink-2: #4a4a47;
  --mute: #706f69;
  --line: #d8d7d0;
  --line-ink: rgba(255, 255, 255, 0.18);
  --mute-ink: rgba(255, 255, 255, 0.62);

  --sans: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 3vw, 40px);
  --nav-h: 64px;
  --r: 4px;
  --pill: 40px;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  min-width: 320px;
  overflow-x: clip;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

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

.label {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- nav ---------- */

/* Homepage: the menu rides on the black hero and leaves with it — no sticky bar
   (Blake 2026-09-18). The article page keeps the light sticky bar below. */
.hero-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--nav-h);
  gap: 24px;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 24px;
}
.brand {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-list {
  display: flex;
  gap: 32px;
}
.nav-list a {
  font-size: 15px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover,
.nav-list a:focus-visible { color: var(--ink); border-bottom-color: var(--ink); outline: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 7px 16px;
  font-size: 14px;
  cursor: pointer;
}

/* the same menu, read on black */
.hero-nav .nav-list a { color: var(--mute-ink); }
.hero-nav .nav-list a:hover,
.hero-nav .nav-list a:focus-visible { color: #fff; border-bottom-color: #fff; }
.hero-nav .nav-toggle { color: #fff; border-color: var(--line-ink); }

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 2;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { display: block; font-size: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child a { border-bottom-color: transparent; }

  .hero-nav .nav-list {
    background: var(--ink);
    border-bottom: 0;
    border-top: 1px solid var(--line-ink);
    padding-inline: 0;
  }
  .hero-nav .nav-list a { border-bottom-color: var(--line-ink); }
}

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: #fff;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.hero .wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: clamp(32px, 6vh, 64px) clamp(28px, 5vh, 56px);
}
.hero .label { color: var(--mute-ink); }
.hero-name {
  font-weight: 500;
  font-size: clamp(56px, 14.5vw, 216px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-top: clamp(40px, 10vh, 120px);
}
.hero-name span { display: block; }
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(40px, 8vh, 96px);
  padding-top: 24px;
  border-top: 1px solid var(--line-ink);
}
.hero-line {
  font-size: clamp(17px, 1.4vw, 21px);
  color: var(--mute-ink);
  max-width: 34ch;
}


/* ---------- sections ---------- */

.section {
  border-top: 1px solid var(--line);
}
.rail { padding-block: clamp(56px, 8vw, 120px); }
@media (min-width: 1100px) {
  .rail {
    border-inline: 1px solid var(--line);
    padding-inline: 36px;
  }
}
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.section-title {
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* who we are */

.who {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 64px;
}
.who > div > .label { margin-bottom: 14px; }
.who-line {
  font-weight: 500;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.who-for {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}
.who-body {
  margin-top: 16px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}
@media (min-width: 900px) {
  .who { grid-template-columns: 6fr 6fr; }
}

/* who for: one line per kind of team */
.audiences { margin-top: 28px; display: grid; gap: 20px; }
.audience { padding-top: 16px; border-top: 1px solid var(--line); }
.audience-name { font-weight: 500; font-size: clamp(17px, 1.3vw, 19px); }
.audience-line,
.step-line {
  margin-top: 6px;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}

/* how we work, what you get: three blocks side by side from 900px */
.steps { display: grid; grid-template-columns: 1fr; gap: 32px 48px; }
.step { padding-top: 20px; border-top: 1px solid var(--ink); }
.step-num { font-family: var(--mono, monospace); font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.step-name { font-weight: 500; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.015em; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* where to start: two buttons, centred */
.start-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* the brands row: a row of circles, each a brand's own mark in its own colour, like an app icon */
.brands > .label { margin-bottom: 14px; }
.hero .brands { margin-top: clamp(28px, 5vh, 56px); }
.mark-row { display: flex; align-items: center; gap: 6px; }
.mark {
  --d: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--mark-bg, var(--sheet));
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(14, 14, 14, 0.08);
  flex: none;
  overflow: hidden;
}
.mark img {
  width: var(--mark-w, 60%);
  height: 60%;
  object-fit: contain;
}
/* a mark that is itself a circle fills its circle */
.mark--whole img { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .mark-row { gap: 12px; }
  .mark { --d: 88px; }
}

/* the fields, each with its report beside it: a pile that grows as the page scrolls.
   From 1000px wide and 760px tall: SEO docks at the top of the screen with its report; scroll;
   Influencer docks under it; scroll; AI influencers; scroll; Paid ads; then the four leave together.
   Layout only, no animation. Each row sticks inside a box that ends at the same moment as the others
   (pile-c for SEO, pile-b for Influencer, pile-a for AI influencers, .beats for Paid ads),
   so the pile scrolls off as one. Narrower or shorter screens get plain rows, one after another:
   below that size a quarter of the screen cannot hold a row without cutting it off. */

.rail--open { padding-block-end: 0 !important; }
.beats {
  /* the homepage has no sticky bar (the menu rides the hero), so the pile docks at the very top */
  --nav-h: 0px;
  --word: clamp(44px, 7.6vw, 112px);
  --beat-h: clamp(180px, calc((100svh - var(--nav-h)) / 4 - 4px), 250px);
  --beat-h: round(down, clamp(180px, calc((100svh - var(--nav-h)) / 4 - 4px), 250px), 1px);
  --beat-gap: clamp(140px, 34svh, 300px);
  --beat-gap: round(clamp(140px, 34svh, 300px), 1px);
  --beat-pad: 20px;
  --doc-off: 12px;
  --doc-h: 200px;
  --fold: 22px;
  border-top: 1px solid var(--line);
}
.beat {
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.pile-c > .beat { border-top: 0; }
.beat-gap { display: none; }
.beat-in {
  padding-block: var(--beat-pad) 28px !important;
  display: grid;
  grid-template-columns: calc(var(--doc-h) / 1.3 + var(--doc-off)) 1fr;
  gap: 24px clamp(20px, 3vw, 48px);
}
.beat-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.beat-name {
  font-weight: 500;
  font-size: var(--word);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.beat-doc { align-self: start; }
.beat-report {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.beat-report > .label { margin-bottom: 8px; }
.report-title {
  font-weight: 500;
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.report-figure {
  font-weight: 500;
  font-size: clamp(32px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: auto;
  padding-top: 14px;
}
.report-figure small {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}
.report-action { margin-top: 14px; min-height: 40px; max-width: 380px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--pill);
  padding: 12px 22px 11px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible { background: #2a2a28; border-color: #2a2a28; outline: none; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { background: var(--ink); color: #fff; }
.beat .btn { padding: 9px 18px 8px; font-size: 14px; }


.sent {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  gap: 12px;
  font-weight: 500;
}
.sent::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

/* the document object: a stack of sheets with a fold */

.doc {
  position: relative;
  height: var(--doc-h);
  width: calc(var(--doc-h) / 1.3);
  margin: 0 var(--doc-off) var(--doc-off) 0;
}
.doc::before, .doc::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.doc::before { transform: translate(var(--doc-off), var(--doc-off)); }
.doc::after { transform: translate(calc(var(--doc-off) / 2), calc(var(--doc-off) / 2)); }
.sheet {
  position: relative;
  z-index: 1;
  height: 100%;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 0, calc(100% - var(--fold) + 1px) 0, 100% calc(var(--fold) - 1px), 100% 100%, 0 100%);
}
.sheet-top, .sheet-foot { display: flex; justify-content: space-between; gap: 12px; }
.sheet-top { padding-right: calc(var(--fold) - 6px); }
.sheet-top .label:last-child { display: none; } /* the sheet is narrow; "Report" is said beside it */
.sheet .label { font-size: 10px; }
/* the drawn lines shrink with a small sheet rather than push its words out */
.rules {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding-block: 14px;
}
.rules i { display: block; height: 1px; background: var(--line); }
.rules i:nth-child(1) { width: 62%; }
.rules i:nth-child(2) { width: 84%; }
.rules i:nth-child(3) { width: 48%; }
.rules i:nth-child(4) { width: 90%; }
.rules i:nth-child(5) { width: 70%; }
.rules i:nth-child(6) { width: 36%; }
.fold {
  position: absolute;
  top: -1px; right: -1px;
  width: var(--fold); height: var(--fold);
  background: linear-gradient(to bottom left, transparent 50%, var(--fog) 50%);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

@media (min-width: 900px) {
  .beat .wrap { flex: 1; display: flex; }
  .beat-in {
    flex: 1;
    min-height: 0;
    grid-template-columns: 1fr calc(var(--doc-h) / 1.3 + var(--doc-off)) 1fr;
    padding-block: var(--beat-pad) !important;
  }
  .beat-field { grid-column: auto; }
}
/* the pile: only where four rows fit on the screen with nothing cut off */
@media (min-width: 1000px) and (min-height: 760px) {
  /* a quarter of the screen per row: a tighter row, the word and the document sized to the row,
     Download beside the figure. Outside the pile the document keeps its 200px. */
  .beats {
    --beat-pad: 16px;
    --word: min(clamp(44px, 7.6vw, 112px), calc((var(--beat-h) - var(--beat-pad) * 2 - 26px) / 2));
    --doc-h: calc(var(--beat-h) - var(--beat-pad) * 2 - var(--doc-off) - 2px);
  }
  .beat-report { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 24px; }
  .beat-report > .label, .report-title { grid-column: 1 / -1; }
  .beat-report > .label { margin-bottom: 6px; }
  .report-title { max-width: 30ch; }
  .report-figure { align-self: end; padding-top: 4px; }
  .report-action { align-self: end; margin-top: 0; min-height: 0; }
  .pile-a { height: calc(var(--beat-h) * 3 + var(--beat-gap) * 3); }
  .pile-b { height: calc(var(--beat-h) * 2 + var(--beat-gap) * 3); margin-bottom: calc(var(--beat-gap) * -2); }
  .pile-c { height: calc(var(--beat-h) + var(--beat-gap) * 3); margin-bottom: calc(var(--beat-gap) * -3); }
  .beat-gap { display: block; height: var(--beat-gap); }
  .beat {
    position: sticky;
    height: var(--beat-h);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .pile-c > .beat { top: var(--nav-h); }
  .pile-b > .beat { top: calc(var(--nav-h) + var(--beat-h)); }
  .pile-a > .beat { top: calc(var(--nav-h) + var(--beat-h) * 2); }
  .beats > .beat { top: calc(var(--nav-h) + var(--beat-h) * 3); }
}
@media (min-width: 1100px) and (min-height: 760px) {
  /* the rails run on through the room between docked rows */
  .beat-gap::before {
    content: "";
    display: block;
    height: 100%;
    width: min(100% - var(--gutter) * 2, var(--max) - var(--gutter) * 2);
    margin-inline: auto;
    border-inline: 1px solid var(--line);
  }
}

/* contact: heading centred, the form on a white sheet like the reports, underline fields */

.section-head--centre { text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--centre .section-title { margin-inline: auto; max-width: 18ch; }
.contact { max-width: 760px; margin-inline: auto; }
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 40px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(28px, 4vw, 56px);
}
.field-row { display: grid; gap: 10px; }
.field-row input,
.field-row textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 6px 0 12px;
  font-size: 18px;
  line-height: 1.3;
}
.field-row textarea { min-height: 96px; resize: vertical; }
.field-row input:focus,
.field-row textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-height: 48px; margin-top: 4px; }
.form-foot .btn { padding: 14px 28px 13px; }
.form-error { font-size: 15px; font-weight: 500; color: var(--ink); }

/* the forms' honeypot: off-screen for people, still filled in by bots */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .form { grid-template-columns: 1fr 1fr; }
  .field-row--wide, .form-foot, .form-error { grid-column: 1 / -1; }
}
