/* ============================================================
   MEDIAPHORM — stark black-on-white, heavy geometric type
   ============================================================ */

:root {
  --ink: #0b0b0b;
  --paper: #ffffff;
  --grey: #565656;
  --grey-on-ink: #a3a3a3;
  --line: #ececec;
  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --pad-x: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

a { color: inherit; }
strong { font-weight: 700; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.centered { text-align: center; }

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

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 1.05rem 2.1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: scale(.97); }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem var(--pad-x);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.wordmark {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.nav-links { display: flex; gap: 1.9rem; }

.nav-links a {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding-block: .3rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: var(--ink);
  transition: right .3s var(--ease);
}

.nav-links a:hover::after { right: 0; }

.btn-nav { padding: .78rem 1.5rem; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { gap: 1rem; }
}

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

.hero { padding: clamp(5rem, 13vh, 9.5rem) 0 clamp(5rem, 12vh, 8.5rem); }

.hero-inner {
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 { max-width: 15ch; margin-bottom: 2.2rem; }

.hero-hi { font-weight: 600; font-size: 1.05rem; margin-bottom: .9rem; }

.hero-sub { color: var(--grey); max-width: 46ch; margin-bottom: .9rem; }

.hero .btn { margin-top: 1.6rem; }

/* ---------- sections & splits ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.split h2 { margin-bottom: 1.6rem; }

.split-case { align-items: center; }

.prose p { margin-bottom: 1.15rem; color: var(--grey); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

.lead {
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .case-flip .stat-panel { order: 2; }
}

/* ---------- stat panels (case-study visuals) ---------- */

.stat-panel {
  background: linear-gradient(150deg, #161616, #000);
  color: var(--paper);
  border-radius: 20px;
  aspect-ratio: 4 / 3.1;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-tag {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--grey-on-ink);
}

.stat-num {
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-panel hr {
  border: 0;
  border-top: 1px solid #2b2b2b;
  margin-bottom: 1rem;
}

.stat-cap {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-on-ink);
}

/* ---------- how we work ---------- */

.section-how { padding-top: clamp(4.5rem, 10vw, 8rem); }

.how-head { max-width: 640px; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.how-head h2 { margin-bottom: 1.4rem; }
.how-head .lead { margin-bottom: 1rem; }
.how-intro { color: var(--grey); }

.steps { list-style: none; display: grid; gap: clamp(3rem, 6vw, 4.5rem); }

.step {
  display: grid;
  grid-template-columns: clamp(90px, 12vw, 150px) 1fr;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.step-num {
  font-size: clamp(2.9rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: -.35rem;
}

.step h3 { margin-bottom: .85rem; }
.step p { color: var(--grey); max-width: 62ch; margin-bottom: 1rem; }
.step p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: .8rem; }
}

/* ---------- brand tiles ---------- */

.section-brands h2 { margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.logo-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.8rem, 1.6vw, 1.25rem);
}

.tile {
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .8rem;
  font-size: .78rem;
  transition: transform .3s var(--ease), background .3s var(--ease);
}

.tile:hover { transform: translateY(-4px); background: #1d1d1d; }

.l-weber     { font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.l-hershey   { font-weight: 700; letter-spacing: .05em; }
.l-bluewater { font-weight: 500; letter-spacing: .1em; }
.l-ghost     { font-weight: 800; letter-spacing: .3em; text-indent: .3em; }
.l-grenadier { font-weight: 700; letter-spacing: .14em; font-size: .68rem; }
.l-hovis     { font-weight: 800; font-size: .95rem; letter-spacing: .1em; }
.l-inmotion  { font-weight: 700; letter-spacing: .12em; font-size: .72rem; }
.l-ineos     { font-weight: 800; letter-spacing: .22em; text-indent: .22em; }
.l-oceans    { font-weight: 600; letter-spacing: .28em; text-indent: .28em; font-size: .72rem; }
.l-amicci    { font-weight: 700; letter-spacing: .16em; font-size: .72rem; }

.l-tlc span:first-child { font-weight: 500; font-size: .6rem; letter-spacing: .34em; text-indent: .34em; }
.l-tlc span:last-child  { font-weight: 800; font-size: .78rem; letter-spacing: .06em; }

.l-voi span:first-child { font-weight: 800; font-size: 1.25rem; letter-spacing: .1em; text-indent: .1em; line-height: 1.1; }
.l-voi span:last-child  { font-weight: 500; font-size: .58rem; letter-spacing: .4em; text-indent: .4em; }

@media (max-width: 1000px) { .logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 680px)  { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px)  { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- partner badges ---------- */

.partners-line {
  text-align: center;
  color: var(--grey);
  font-size: .85rem;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.badges {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.badge {
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: .95rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 172px;
}

.badge-brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.badge-sub { font-size: .6rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }

/* ---------- sell CTA ---------- */

.section-sell { padding-block: clamp(5rem, 12vw, 9rem); }
.section-sell h2 { max-width: 22ch; margin-inline: auto; margin-bottom: 2.2rem; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 3rem;
  font-size: .78rem;
  color: var(--grey);
}

.footer p { margin-bottom: .35rem; }
.footer strong { color: var(--ink); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile, .btn { transition: none; }
}
