/* Social Brands — site styles.
   Designed desktop-first. Breakpoints: 1100px (nav collapses, grids halve) and 760px (single column). */

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6da;
  --card: #faf8f3;
  --ink: #14191f;
  --ink-2: #39414b;
  --muted: #69707a;
  --rule: #d9d2c4;
  --rule-strong: #bdb5a5;
  /* From the Social Brands logo: SOCIAL red-orange, BRANDS blue. */
  --red: #eb3c2b;
  --red-deep: #bf3620;
  --blue: #07466b;
  --accent: var(--red);
  --accent-deep: var(--red-deep);
  --accent-tint: #f9e3dd;
  --accent-bright: #ff8a6e;
  --night: #0a3350;
  --night-2: #0d3d5e;
  --night-rule: #1f4b68;
  --on-night: #eef0ee;
  --on-night-muted: #a8bccb;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Paper grain over everything, never in the way. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

::selection { background: var(--blue); color: #fff; }

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.display {
  font-size: clamp(3.3rem, 7.6vw, 7.9rem);
  font-weight: 370;
  line-height: .95;
  letter-spacing: -.038em;
}
.display em { font-style: italic; color: var(--accent); }

.h1 { font-size: clamp(2.9rem, 5.6vw, 5.7rem); line-height: .98; letter-spacing: -.032em; font-weight: 380; }
.h1 em, .h2 em { font-style: italic; color: var(--accent); }
.h2 { font-size: clamp(2.1rem, 3.7vw, 3.6rem); letter-spacing: -.028em; font-weight: 390; }
.h3 { font-size: clamp(1.45rem, 1.9vw, 1.85rem); line-height: 1.14; letter-spacing: -.012em; font-weight: 440; }

.lede {
  font-size: clamp(1.14rem, 1.45vw, 1.36rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 40ch;
  text-wrap: pretty;
}

.label {
  font: 600 .74rem/1.3 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.clause {
  font: italic 400 1.12rem/1 var(--serif);
  color: var(--accent-deep);
  letter-spacing: 0;
}

.muted { color: var(--muted); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-ink { background: var(--blue); color: #fff; }
.btn-ink:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow, .btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 .95rem/1.2 var(--sans);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, .9);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo { height: 50px; width: auto; }
.site-footer .brand-logo { height: 72px; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 6px 0;
  font: 500 .93rem/1 var(--sans);
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-cta { padding: 12px 20px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-bar {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-bar:nth-child(1) { top: 17px; }
.menu-bar:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 24px 0 48px;
}
.mobile-nav a {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font: 400 1.9rem/1.1 var(--serif);
  letter-spacing: -.02em;
  text-decoration: none;
}
.mobile-nav a[aria-current="page"] { color: var(--accent); }
body.menu-open { overflow: hidden; }

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 10vw, 144px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--rule { border-top: 1px solid var(--rule); }
.section--paper2 { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .label { margin-bottom: 18px; }
.section-head .h2 { max-width: 20ch; }
.section-head .lede { max-width: 44ch; justify-self: end; }
.section-head--stack { grid-template-columns: minmax(0, 1fr); }
.section-head--stack .lede { justify-self: start; margin-top: 20px; }

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

.hero { padding: clamp(48px, 7vw, 104px) 0 0; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px;
  align-items: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 3vw, 40px);
}
.kicker::before {
  content: "";
  width: 36px;
  height: 1.5px;
  background: var(--accent);
}

.hero .display { max-width: none; }
.hero .lede { margin-top: clamp(28px, 3vw, 40px); max-width: 44ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 40px;
}

.hero-line { display: block; }
.js .hero-line {
  opacity: 0;
  transform: translateY(.35em);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}
.js .hero-fade {
  opacity: 0;
  animation: fade 1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 200ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.hero-aside { justify-self: end; width: 100%; max-width: 380px; }

.seal { width: 100%; aspect-ratio: 1; }
.seal-ring {
  transform-box: view-box;
  transform-origin: 200px 200px;
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.seal-caption {
  margin-top: 20px;
  text-align: center;
  font: italic 400 1.05rem/1.4 var(--serif);
  color: var(--muted);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.fact { padding: 28px 28px 30px; border-left: 1px solid var(--rule); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num {
  font: 360 clamp(2.6rem, 3.9vw, 3.8rem)/1 var(--serif);
  letter-spacing: -.03em;
}
.fact-cap { margin-top: 10px; font-size: .92rem; color: var(--muted); line-height: 1.4; }

/* ---------- Service index ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px 36px;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  transition: background .35s var(--ease);
}
.service:first-child { padding-left: 0; }
.service:last-child { border-right: 0; }
.service::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width .5s var(--ease);
}
.service:hover { background: var(--card); }
.service:hover::before { width: 100%; }
.service:first-child:hover { padding-left: 0; }
.service h3 { font-size: clamp(1.6rem, 2.1vw, 2.05rem); }
.service p { color: var(--ink-2); font-size: .98rem; flex-grow: 1; }
.service-list { list-style: none; border-top: 1px solid var(--rule); }
.service-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--ink-2);
}
.service-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  font-weight: 600;
  font-size: .94rem;
  color: var(--accent-deep);
}

/* ---------- Night band ---------- */

.band-night { background: var(--night); color: var(--on-night); }
.band-night .label { color: var(--on-night-muted); }
.band-night .lede { color: var(--on-night-muted); }
.band-night .h2 em { color: var(--accent-bright); }

.compound-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 80px;
  align-items: start;
}
.compound-statement .label { margin-bottom: 22px; }
.compound-statement .lede { margin-top: 28px; }
.compound-curve { margin-top: 48px; width: 100%; height: auto; overflow: visible; }
.compound-curve .curve {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease) .2s;
}
.compound-curve .curve-dot { opacity: 0; transition: opacity .6s var(--ease) 2.3s; }
.compound-curve.is-in .curve { stroke-dashoffset: 0; }
.compound-curve.is-in .curve-dot { opacity: 1; }
html:not(.js) .compound-curve .curve { stroke-dashoffset: 0; }
html:not(.js) .compound-curve .curve-dot { opacity: 1; }

.compound-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--night-rule);
}
.compound-item {
  padding: 32px 32px 36px 0;
  border-bottom: 1px solid var(--night-rule);
}
.compound-item:nth-child(even) { padding: 32px 0 36px 32px; border-left: 1px solid var(--night-rule); }
.compound-item .n { font: italic 400 1.05rem/1 var(--serif); color: var(--accent-bright); }
.compound-item h3 { margin: 16px 0 12px; font-size: clamp(1.4rem, 1.8vw, 1.7rem); }
.compound-item p { color: var(--on-night-muted); font-size: .98rem; }

/* ---------- Paths (where to start) ---------- */

.paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.path {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.path:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(21, 22, 26, .45);
}
.path .clause { font-size: 1.3rem; }
.path h3 { font-size: clamp(1.5rem, 1.9vw, 1.85rem); }
.path p { color: var(--ink-2); }
.path .service-more { margin-top: auto; }

/* ---------- Built by operators ---------- */

.operators {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 80px;
  align-items: start;
}
.operators-num {
  font: 300 clamp(9rem, 17vw, 16rem)/.8 var(--serif);
  letter-spacing: -.06em;
  color: var(--accent);
}
.operators-copy .label { margin-bottom: 20px; }
.operators-copy .h2 { max-width: 18ch; }
.operators-copy .lede { margin-top: 24px; }

.proofs { margin-top: 48px; border-top: 1px solid var(--ink); }
.proof {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.proof h3 { font-size: 1.3rem; line-height: 1.2; }
.proof p { color: var(--ink-2); }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}
.step { position: relative; padding: 0 28px 0 0; }
.step::before {
  content: "";
  display: block;
  height: 1px;
  margin: 22px 0 28px 56px;
  background: var(--rule-strong);
}
.step:last-child::before { background: linear-gradient(90deg, var(--rule-strong), transparent); }
.step-n {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: italic 400 1.1rem/1 var(--serif);
  background: var(--paper);
}
.step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: .98rem; }
.section--paper2 .step-n { background: var(--paper-2); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--red); color: #fff; }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 80px;
  align-items: end;
  padding: clamp(72px, 9vw, 128px) 0;
}
.cta-inner .h1 { color: #fff; }
.cta-inner .h1 em { color: #fff; }
.cta-contact { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-contact a:not(.btn) {
  font: 400 clamp(1.3rem, 1.9vw, 1.75rem)/1.2 var(--serif);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .6);
  padding-bottom: 2px;
}
.cta-contact a:not(.btn):hover { border-bottom-color: #fff; }
.cta-contact .btn { margin-top: 18px; }

/* ---------- Inner page hero ---------- */

.page-hero {
  padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--rule);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px 80px;
  align-items: end;
}
.page-hero .clause { display: block; margin-bottom: 28px; font-size: 1.25rem; }
.page-hero .h1 { max-width: 13ch; }
.page-hero .lede { margin-top: 32px; max-width: 48ch; }

.aside-panel {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--card);
}
.aside-panel .label { margin-bottom: 16px; }
.aside-list { margin: 0; }
.aside-list div { padding: 12px 0; border-top: 1px solid var(--rule); }
.aside-list div:first-child { border-top: 0; padding-top: 0; }
.aside-list dt { font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.aside-list dd { margin: 6px 0 0; font-size: .98rem; color: var(--ink); line-height: 1.45; }
.aside-list a { text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.aside-list a:hover { border-bottom-color: var(--accent-deep); color: var(--accent-deep); }

/* ---------- Clauses (numbered items) ---------- */

.clauses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.clause-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px 16px;
  padding: 36px 48px 40px 0;
  border-bottom: 1px solid var(--rule);
}
.clause-item:nth-child(even) { padding: 36px 0 40px 48px; border-left: 1px solid var(--rule); }
.clause-item .clause { padding-top: 6px; }
.clause-item h3 { font-size: clamp(1.45rem, 1.9vw, 1.8rem); }
.clause-item p { grid-column: 2; color: var(--ink-2); }
.clauses--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clauses--three .clause-item,
.clauses--three .clause-item:nth-child(even) { padding: 36px 32px 40px 0; border-left: 0; }
.clauses--three .clause-item + .clause-item { padding-left: 32px; border-left: 1px solid var(--rule); }
.clauses--three .clause-item:nth-child(3n + 1) { padding-left: 0; border-left: 0; }

/* ---------- Deliverables & callouts ---------- */

.deliverables {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 20px 40px;
  align-items: center;
  margin-top: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.deliverables ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.deliverables li {
  padding: 8px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: .9rem;
  line-height: 1.2;
}

.callout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px 40px;
  align-items: baseline;
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--accent-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.callout .label { color: var(--accent-deep); }
.callout p:not(.label) {
  font: 400 clamp(1.2rem, 1.6vw, 1.5rem)/1.4 var(--serif);
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.callout strong { font-weight: 600; }

/* ---------- Split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 80px;
  align-items: start;
}
.split .label { margin-bottom: 20px; }
.split .lede { margin-top: 24px; }

.checks { list-style: none; border-top: 1px solid var(--ink); }
.checks li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.02rem;
}
.checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent-deep) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'><path d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 18px no-repeat;
}
ol.checks { counter-reset: check; }
ol.checks li::before {
  counter-increment: check;
  content: counter(check);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 0;
  background: none;
  border: 1px solid var(--ink);
  font: italic 400 .95rem/1 var(--serif);
}

/* ---------- Cards, modules, questions ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.card .clause { display: block; margin-bottom: 20px; }
.card h3 { font-size: 1.55rem; margin-bottom: 14px; }
.card p { color: var(--ink-2); }

.platform {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 80px;
  padding-top: clamp(56px, 6vw, 88px);
  margin-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--rule);
}
.platform-head .label { margin-bottom: 18px; }
.platform-head .h2 { margin-bottom: 20px; }
.platform-head p:not(.label) { color: var(--ink-2); }

.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.module {
  padding: 26px 26px 30px 0;
  border-bottom: 1px solid var(--rule);
}
.module:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--rule); }
.module h3 { font: 600 1.02rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 10px; }
.module p { font-size: .93rem; color: var(--ink-2); }
.modules--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modules--two .module:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
.modules--two .module:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--rule); }

.questions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.question {
  padding: 26px 28px;
  border-radius: 6px;
  background: var(--night);
  color: var(--on-night);
}
.question q {
  display: block;
  margin-bottom: 12px;
  font: italic 400 1.35rem/1.25 var(--serif);
  quotes: "\201C" "\201D";
}
.question p { font-size: .92rem; color: var(--on-night-muted); }

.platform-note {
  margin-top: 32px;
  font: italic 400 1.15rem/1.5 var(--serif);
  color: var(--ink-2);
}

/* ---------- Consulting packages ---------- */

.packages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.package {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px 22px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: border-color .3s var(--ease), transform .35s var(--ease);
}
.package:hover { border-top-color: var(--accent); transform: translateY(-3px); }
.package .label { color: var(--accent-deep); }
.package h3 { font-size: 1.4rem; line-height: 1.12; }
.package p { font-size: .9rem; color: var(--ink-2); }
.package-tag {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font: 600 .72rem/1.3 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.suite-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 24px;
  padding: 22px 28px;
  border: 1px dashed var(--rule-strong);
  border-radius: 6px;
}
.suite-note p { font: 400 1.2rem/1.4 var(--serif); }

.package-block { scroll-margin-top: calc(var(--header-h) + 24px); }
.package-block + .package-block { margin-top: clamp(80px, 9vw, 128px); }

.package-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 80px;
  align-items: end;
  margin-bottom: 40px;
}
.package-head .label { color: var(--accent-deep); margin-bottom: 18px; }
.package-head .lede { max-width: 48ch; }

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.phase { padding: 32px 36px 40px 0; }
.phase + .phase { padding-left: 36px; border-left: 1px solid var(--rule); }
.phase-tag {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.phase:nth-child(2) .phase-tag { background: var(--accent-deep); }
.phase:nth-child(3) .phase-tag { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.phase h3 { margin: 20px 0 12px; font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.phase > p { color: var(--ink-2); }
.phase-list { list-style: none; margin-top: 22px; border-top: 1px solid var(--rule); }
.phase-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2); }
.phase-list strong { color: var(--ink); }
.phase-get { margin-top: 22px; }
.phase-get .label { margin-bottom: 10px; }
.phase-get p:not(.label) { font-size: .9rem; color: var(--muted); line-height: 1.55; }
.phase-note { margin-top: 18px; font: italic 400 1.02rem/1.45 var(--serif); color: var(--accent-deep); }

.areas {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.areas--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.area { padding: 28px 26px 32px 0; }
.area + .area { padding-left: 26px; border-left: 1px solid var(--rule); }
.area h3 { font: 600 1.05rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 12px; }
.area p { font-size: .94rem; color: var(--ink-2); }

/* ---------- About ---------- */

.lines { border-top: 1px solid var(--ink); }
.line {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr) 40px;
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.line:hover { background: var(--card); padding-left: 16px; padding-right: 16px; }
.line h3 { font-size: clamp(1.5rem, 2vw, 1.9rem); }
.line p { color: var(--ink-2); }
.line .arrow { color: var(--accent); font-size: 1.2rem; justify-self: end; }

.glance { margin: 0; border-top: 1px solid var(--ink); }
.glance div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.glance dt { font: 600 .76rem/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.glance dd { margin: 0; font: 400 1.2rem/1.4 var(--serif); }
.glance a { text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.glance a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 48px 96px;
  align-items: start;
}
.contact-rows { border-top: 1px solid var(--ink); }
.contact-row { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.contact-row .label { margin-bottom: 10px; }
.contact-big {
  font: 400 clamp(1.7rem, 2.8vw, 2.6rem)/1.15 var(--serif);
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact-big { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease), color .2s; }
a.contact-big:hover { color: var(--accent); background-size: 100% 1.5px; }
.contact-side h2 { margin-bottom: 24px; }
.contact-side .btn { margin-top: 32px; }

/* ---------- Prose (privacy) ---------- */

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr);
  gap: 48px;
}
.prose { max-width: 66ch; }
.prose h2 { font-size: 1.6rem; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.prose a { color: var(--accent-deep); }

/* ---------- Next link ---------- */

.next-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.next-link .h2 { transition: color .25s; }
.next-link:hover .h2 { color: var(--accent); }
.next-link .arrow { font-size: 2rem; color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--on-night); padding-top: clamp(64px, 7vw, 96px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p { margin-top: 20px; max-width: 34ch; color: var(--on-night-muted); font-size: .95rem; }
.footer-brand .footer-meta { margin-top: 12px; color: var(--on-night); font-size: .88rem; }
.site-footer .label { color: var(--on-night-muted); margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.footer-links a { text-decoration: none; color: var(--on-night); border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-links a:hover { border-bottom-color: var(--accent-bright); }
.footer-links li { color: var(--on-night-muted); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--night-rule);
  font-size: .82rem;
  color: var(--on-night-muted);
}

/* ---------- 404 ---------- */

.notfound { padding: clamp(96px, 14vw, 200px) 0; }
.notfound .h1 { max-width: 14ch; }
.notfound .hero-actions { margin-top: 36px; }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-line, .js .hero-fade { opacity: 1; transform: none; animation: none; transition: none; }
  .seal-ring { animation: none; }
  .compound-curve .curve { transition: none; stroke-dashoffset: 0; }
  .compound-curve .curve-dot { transition: none; opacity: 1; }
}

/* ---------- ≤1100px ---------- */

@media (max-width: 1100px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .hero-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3) { padding-left: 0; }
  .service:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }
  .compound-grid, .operators, .split, .platform, .contact-grid, .cta-inner, .package-head { grid-template-columns: minmax(0, 1fr); }
  .operators-num { font-size: clamp(8rem, 22vw, 12rem); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 0; }
  .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .areas, .areas--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area, .area + .area { padding: 26px 24px 30px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .area:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phase, .phase + .phase { padding: 32px 0 36px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .prose-grid { grid-template-columns: minmax(0, 1fr); }
  .prose-grid > :last-child { display: none; }
}

/* ---------- ≤760px ---------- */

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --header-h: 64px; }
  .brand-logo { height: 42px; }

  .hero-grid, .page-hero-grid, .section-head { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { justify-self: start; max-width: 220px; }
  .section-head .lede { justify-self: start; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 22px 16px 24px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fact:nth-child(-n + 2) { border-bottom: 1px solid var(--rule); }

  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service, .service:nth-child(3) { padding: 28px 0 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .service:hover { background: transparent; }

  .compound-items { grid-template-columns: minmax(0, 1fr); }
  .compound-item, .compound-item:nth-child(even) { padding: 26px 0 28px; border-left: 0; }

  .paths, .cards, .questions { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }

  .clauses, .clauses--three { grid-template-columns: minmax(0, 1fr); }
  .clause-item, .clause-item:nth-child(even),
  .clauses--three .clause-item, .clauses--three .clause-item + .clause-item {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 28px 0 30px;
    border-left: 0;
  }

  .deliverables, .callout { grid-template-columns: minmax(0, 1fr); }
  .callout { padding: 26px 24px; }
  .modules, .modules--two { grid-template-columns: minmax(0, 1fr); }
  .module, .module:not(:nth-child(3n + 1)), .modules--two .module:nth-child(even) { padding: 22px 0 24px; border-left: 0; }
  .packages { grid-template-columns: minmax(0, 1fr); }
  .areas, .areas--five { grid-template-columns: minmax(0, 1fr); }
  .area, .area + .area, .area:nth-child(even) { padding: 24px 0 26px; border-left: 0; }

  .line { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; }
  .line p { grid-column: 2; }
  .line .arrow { display: none; }
  .glance div { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
