/* ==========================================================================
   AdsRunner 2.0 — shared stylesheet
   Editorial, restrained, light. Red used sparingly as accent only.
   ========================================================================== */

:root{
  --bg: #FAF8F4;
  --bg-alt: #F1EEE8;
  --ink: #1C1B19;
  --ink-soft: #5B5852;
  --hairline: #E3DFD6;
  --red: #EC1C24;
  --white: #FFFFFF;
  --max: 1160px;
  --gutter: clamp(24px, 6vw, 96px);
  --serif-headline: "Fraunces", serif; /* unused, kept sans-only per brief */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  /* The off-canvas mobile nav sits one viewport to the right when closed; clip it so it
     can't add horizontal scroll. `clip` (not `hidden`) — `hidden` would make this a
     scroll container and break the sticky header. */
  overflow-x: clip;
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */

.eyebrow{
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 20px;
}

h1, h2, h3{
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

h1{ font-size: clamp(36px, 5.6vw, 68px); }
h2{ font-size: clamp(28px, 4vw, 46px); }
h3{ font-size: clamp(19px, 2vw, 22px); font-weight: 600; }

p{ margin: 0; }

.lede{
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.7;
}

.body-copy{
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.75;
}

.stat-line{
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.rule{
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

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

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  /* Wider than the 1160px body column: seven nav items plus the CTA do not fit
     alongside the logo within 1160px at any viewport. */
  max-width: 1280px;
}

/* Without this the over-full header makes flexbox shrink the logo, and `width:auto`
   + the global `img{max-width:100%}` squashes the wordmark (144x24 -> 62x24). */
.logo{ display: flex; align-items: center; flex-shrink: 0; }

.logo-img{
  height: 24px;
  width: auto;
  display: block;
}

.footer-logo-img{
  height: 22px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.nav-right{
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-nav a{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.62;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  /* Seven items sit on one row; without this they wrap mid-label between 1181px
     and ~1400px. Measured requirement for the full row is 1160px. */
  white-space: nowrap;
}

.main-nav a:hover{ opacity: 1; }

.main-nav a.active{ opacity: 1; }

.main-nav a.active::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -30px;
  height: 2px;
  background: var(--red);
}

/* mobile-only CTA rendered inside main-nav; keep it looking like a button, not a nav link.
   Hidden on desktop, where .nav-cta outside the nav is the visible CTA — otherwise both
   render and the header shows two "Talk to us" buttons. */
.main-nav a.btn{
  display: none;
  opacity: 1;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}

/* `.main-nav a` (0,1,1) outranks `.btn-primary` (0,1,0), so without this the CTA inside
   the menu renders ink-on-ink — an apparently blank black button. */
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover{ color: var(--white); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary{
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.btn-primary:hover{
  background: var(--red);
  border-color: var(--red);
}

.btn-ghost{
  border-color: var(--hairline);
  color: var(--ink);
}

.btn-ghost:hover{ border-color: var(--ink); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

section{
  padding: clamp(64px, 9vw, 140px) 0;
}

.section-alt{ background: var(--bg-alt); }

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}

.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

/* ---------- Hero ---------- */

.hero{
  padding-top: clamp(80px, 12vw, 160px);
  padding-bottom: clamp(60px, 8vw, 120px);
}

.hero .eyebrow{ margin-bottom: 28px; }

.hero h1{ max-width: 900px; }

.hero h1 .accent{ color: var(--red); }

.hero-sub{
  margin-top: 20px;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ink-soft);
  font-weight: 400;
  max-width: 780px;
}

.hero-copy{
  margin-top: 40px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.8;
}

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

.text-link{
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.text-link:hover{ border-color: var(--red); color: var(--red); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero{
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.page-hero h1{ max-width: 820px; }

.page-hero .lede{ margin-top: 24px; }

/* ---------- Pillars / grid cards ---------- */

.grid-4{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.grid-2{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.pillar{
  background: var(--bg);
  padding: 40px 32px;
}

.pillar .num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.pillar h3{ margin-bottom: 14px; }

.pillar p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.capability-card{
  background: var(--bg);
  padding: 48px 40px;
}

.capability-card .num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.capability-card h3{
  font-size: 24px;
  margin-bottom: 16px;
}

.capability-card p{
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 24px;
}

.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag{
  font-size: 12.5px;
  color: var(--ink-soft);
  border: 1px solid var(--hairline);
  padding: 6px 12px;
  border-radius: 2px;
}

/* ---------- Big statement blocks ---------- */

.statement{
  text-align: left;
}

.statement h2{
  max-width: 820px;
}

.statement-lines{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
}

.statement-lines span{
  display: block;
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}

.statement-lines span.accent{ color: var(--red); }

/* ---------- Leadership (portrait + copy) ---------- */

.leader-grid{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
}

.leader-photo{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
  filter: grayscale(1);
}

/* ---------- Dashboard / product figure ---------- */

.dashboard-figure{
  margin: 0;
  max-width: 920px;
}

.dashboard-image{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
}

.dashboard-figure figcaption{
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Testimonials ---------- */

.testimonial-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.testimonial{
  background: var(--bg-alt);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.testimonial-quote{
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-name{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.testimonial-role{
  font-size: 13px;
  color: var(--ink-soft);
}

/* single attributed quote, used inline as evidence for a specific claim */
.quote-block{
  border-left: 2px solid var(--red);
  padding: 4px 0 4px 28px;
  margin-top: 40px;
  max-width: 640px;
}

.quote-block .testimonial-quote{ margin-bottom: 16px; }

/* ---------- Case studies ---------- */

.case-study{
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}

.case-study:last-child{ border-bottom: 1px solid var(--hairline); }

.case-meta{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 18px;
}

.case-tag{
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.case-num{
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
}

.case-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 28px;
}

.case-grid h4{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 600;
  margin: 0 0 10px;
}

.case-grid p{
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

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

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  max-width: 640px;
}

.field{ display: flex; flex-direction: column; gap: 8px; }
.field.full{ grid-column: 1 / -1; }

.field label{
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.field input,
.field textarea{
  font-family: var(--font);
  font-size: 15px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--red);
}

.field textarea{ resize: vertical; min-height: 90px; }

.submit-row{ margin-top: 8px; }

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

.cta-band{
  text-align: left;
}

.cta-band h2{ max-width: 760px; }
.cta-band .lede{ margin-top: 18px; }
.cta-band .hero-actions{ margin-top: 40px; }

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

.site-footer{
  border-top: 1px solid var(--hairline);
  padding: 64px 0 40px;
}

.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand .logo{ margin-bottom: 10px; }

.footer-tagline{
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-nav{
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h5{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0 0 16px;
  font-weight: 600;
}

.footer-col a{
  display: block;
  font-size: 14px;
  padding: 5px 0;
  color: var(--ink);
  opacity: 0.8;
}
.footer-col a:hover{ opacity: 1; color: var(--red); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom .legal-links{ display: flex; gap: 20px; }
.footer-bottom .legal-links a{ opacity: 0.8; }
.footer-bottom .legal-links a:hover{ opacity: 1; color: var(--red); }

/* ---------- Reveal on scroll ---------- */

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

/* ---------- Responsive ---------- */

@media (max-width: 1220px){
  .main-nav{
    position: fixed;
    /* `.site-header` sets backdrop-filter, which makes it the containing block for its
       position:fixed descendants — so `inset: 84px 0 0 0` sized this panel against the
       85px header (64px tall) instead of the viewport. Size it viewport-relative
       explicitly. dvh second so it wins where supported, for mobile browser chrome. */
    top: 84px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 84px);
    height: calc(100dvh - 84px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px var(--gutter);
    gap: 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    /* Keep the closed menu out of the tab order and away from screen readers. */
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
  }
  .main-nav.open{
    transform: translateX(0);
    transition: transform 0.3s ease, visibility 0s;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav a.active::after{ display: none; }
  .main-nav a{ font-size: 15px; opacity: 0.85; }
  .main-nav a.btn{ display: inline-flex; font-size: 14px; }
  .nav-toggle{ display: block; }
  .nav-right .nav-cta{ display: none; }

  .two-col{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .testimonial-grid{ grid-template-columns: 1fr; }
  .leader-grid{ grid-template-columns: 1fr; }
  .leader-photo{ max-width: 220px; }
  .case-grid{ grid-template-columns: 1fr; gap: 24px; }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-nav{ gap: 28px; }
  .case-meta{ flex-direction: column; align-items: flex-start; gap: 6px; }
}
