/* ==========================================================================
   Attent Media — Design tokens (v4: clean corporate / ad-tech SSP)
   Reference: media.net — white, credible, benefit-led, logo-strip social
   proof. Colors and motif are the brand's own: coral + ink from the logo,
   and the aperture/shutter icon reused as a real interaction (page-load
   iris reveal) and as a framing device, instead of decorative texture.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-tint: #FFF4EF;
  --paper-alt: #FAF9F7;
  --panel: rgba(255, 255, 255, 0.38);
  --panel-tint: rgba(255, 244, 239, 0.38);
  --panel-alt: rgba(250, 249, 247, 0.38);
  --ink: #29281F;
  --ink-soft: #29281F;
  --ink-muted: #56534B;
  --coral: #FD5D2B;
  --coral-dark: #E2501F;
  --coral-tint: #FFF1EA;
  --line: #EAE7E0;
  --line-strong: #D9D5CB;

  --font-display: 'Rubik', 'Heebo', sans-serif;
  --font-body: 'Heebo', 'Rubik', sans-serif;

  --text-outline: none;

  --container: 1180px;
  --radius: 12px;
  --ease: cubic-bezier(.16,.8,.3,1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Fixed ambient video background — the brand's own footage, always visible
   behind every section, even while scrolling. A soft white scrim keeps the
   clean corporate text fully legible on top of it.
   ========================================================================== */

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--paper);
}

.bg-layer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-layer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
  text-shadow: var(--text-outline);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  right: 1rem;
  top: -60px;
  background: var(--coral);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ==========================================================================
   Shared layout helpers
   ========================================================================== */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.section--tint { background: var(--panel-tint); }
.section--alt { background: var(--panel-alt); }
.section--border-t { border-top: 1px solid var(--line); }

.section__inner { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section__inner--center { text-align: center; max-width: 700px; }
.section__inner--narrow { max-width: 900px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--coral-dark);
  margin-bottom: 1.1rem;
  text-shadow: var(--text-outline);
}

.section__title { font-size: clamp(1.7rem, 3.1vw, 2.5rem); max-width: 24ch; margin-bottom: 1.25rem; }
.section__title--center { margin-inline: auto; }
.section__lead { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-muted); max-width: 62ch; margin-bottom: 1.5rem; text-shadow: var(--text-outline); }
.section__lead--center { margin-inline: auto; }

.text-accent { color: var(--coral); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.btn--accent { background: var(--coral); color: #fff; box-shadow: 0 10px 24px -10px rgba(253,93,43,0.55); }
.btn--accent:hover { transform: translateY(-2px); background: var(--coral-dark); box-shadow: 0 14px 28px -10px rgba(253,93,43,0.6); }
.btn--ghost { background: rgba(255,255,255,0.65); border-color: var(--line-strong); color: var(--ink); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn--link {
  padding: 0;
  font-weight: 700;
  color: var(--coral-dark);
  gap: 0.35rem;
  text-shadow: var(--text-outline);
}
.btn--link:hover { gap: 0.55rem; }

/* ==========================================================================
   Nav — audience-segmented, like an SSP/DSP corporate site
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__brand { display: block; }
.nav__logo { height: 84px; width: auto; }

.nav__links {
  display: flex;
  gap: 0.25rem;
  margin-inline-end: auto;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__links a:hover { background: var(--coral-tint); color: var(--coral-dark); }
.nav__links a.is-active { background: var(--coral-tint); color: var(--coral-dark); }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  margin-inline-start: -0.5rem;
}
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  text-align: center;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero__inner { position: relative; z-index: 2; max-width: 840px; margin: 0 auto; }

.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-bottom: 1.4rem; }

.hero__sub {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto 2rem;
  text-shadow: var(--text-outline);
}

.hero__actions { position: relative; z-index: 2; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: clamp(3rem, 7vw, 4.5rem); }

/* The 3 proof points — real stills pulled from the brand's own video,
   standing in for media.net's contextual photography. */
.proof-row {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.proof-card {
  text-align: center;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(28,26,23,0.06);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: 0 10px 26px -22px rgba(41, 40, 31, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -20px rgba(41, 40, 31, 0.22);
}

.proof-card__frame {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: linear-gradient(155deg, var(--coral-tint), var(--paper-alt));
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-card__frame svg { width: 52%; height: 52%; }

.proof-card__label { font-weight: 600; font-size: 1rem; margin-bottom: 0.35rem; }
.proof-card__note { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.5; }

/* ==========================================================================
   Benefit pairs — media.net's bold-microhead + one-line-result rhythm
   ========================================================================== */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}

.benefit-item { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.benefit-item h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.benefit-item p { color: var(--ink-muted); font-size: 1rem; }

.about-story {
  max-width: 760px;
  text-align: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-strong);
}
.about-story__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 1.1rem; }
.about-story__text { color: var(--ink-muted); font-size: 1.05rem; line-height: 1.75; }

/* ==========================================================================
   Audience sections — short bullet list + CTA, like media.net's
   Advertisers/Publishers blocks
   ========================================================================== */

.audience {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.audience--reverse { grid-template-columns: 1.1fr 0.9fr; }
.audience--reverse .audience__visual { order: 2; }
.audience--reverse .audience__text { order: 1; }

.audience__visual {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 34px -24px rgba(41, 40, 31, 0.22);
}
.audience__visual video,
.audience__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.audience__visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(253,93,43,0.2), rgba(41,40,31,0.05));
  mix-blend-mode: multiply;
}
.audience__visual--illustration {
  background: linear-gradient(155deg, var(--coral-tint), var(--paper-alt));
  display: flex;
  align-items: center;
  justify-content: center;
}
.audience__visual--illustration svg { width: 34%; max-width: 130px; height: auto; }
.audience__visual--illustration::after { content: none; }

.audience__text h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 1.25rem; }

.audience__bullets { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.audience__bullets li { display: flex; gap: 0.75rem; align-items: flex-start; }
.audience__bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--coral);
}
.audience__bullets strong { display: block; font-size: 1.02rem; margin-bottom: 0.15rem; }
.audience__bullets span.desc { color: var(--ink-muted); font-size: 0.95rem; }

/* ==========================================================================
   Trust / category strip — our stand-in for a partner-logo row
   ========================================================================== */

.trust-strip__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.trust-strip__label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  font-weight: 500;
}
.trust-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.trust-chip svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */

.contact-form { display: flex; flex-direction: column; gap: 1rem; text-align: right; max-width: 620px; margin: 0 auto; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--coral); }
.contact-form .btn { align-self: center; margin-top: 0.5rem; }
.contact-form__note { text-align: center; color: var(--coral-dark); font-weight: 600; min-height: 1.2em; }

/* ==========================================================================
   Footer — plain corporate, 3 columns
   ========================================================================== */

.footer {
  position: relative;
  background: #33312A;
  color: rgba(255,255,255,0.72);
  padding: 3.5rem 0 2rem;
}
.footer::before {
  content: '';
  position: absolute;
  top: -48px; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(51,49,42,0.7));
  pointer-events: none;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 2rem;
}
.footer__brand img { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { font-size: 0.9rem; max-width: 30ch; color: rgba(255,255,255,0.55); }
.footer__col h4 { color: #fff; font-size: 0.85rem; margin-bottom: 1rem; font-weight: 600; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.92rem; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

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

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .proof-row { grid-template-columns: 1fr; max-width: 260px; margin-inline: auto; gap: 2rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .audience, .audience--reverse { grid-template-columns: 1fr; }
  .audience--reverse .audience__visual,
  .audience--reverse .audience__text { order: initial; }
  .audience__visual { max-width: 280px; margin: 0 auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    right: 0; left: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--line);
  }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Stats — animated count-up bar, honestly framed as year-1 targets
   ========================================================================== */

.stats { padding: clamp(2.5rem, 5vw, 3.5rem) 0; position: relative; }
.stats__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}
.stats__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
  text-shadow: var(--text-outline);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--coral-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: var(--text-outline);
}
.stat__label { font-size: 0.92rem; color: var(--ink-muted); text-shadow: var(--text-outline); }

@media (max-width: 700px) {
  .stats__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Floating CTA — always-reachable contact button, appears after the hero
   ========================================================================== */

.float-cta {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(253,93,43,0.55);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.2s var(--ease);
}
.float-cta.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.float-cta:hover { background: var(--coral-dark); transform: translateY(-2px) scale(1.02); }

@media (max-width: 760px) {
  .float-cta { left: 1rem; right: 1rem; bottom: 1rem; justify-content: center; }
}
