/* Full Signal Media — design tokens (v1 palette carried over from the original Paper file) */
:root {
  --color-bg: #FFFFFF;
  --color-ink: #404755;
  --color-ink-muted: rgb(64 71 85 / 66%);
  --color-primary: #5091B7;
  --color-blue-100: #EBF4FA;
  --color-blue-200: #D8E8F5;
  --color-blue-300: #C4DDF0;
  --color-terracotta: #C6735A;
  --color-terracotta-100: #F4E3DE;
  --color-title: #373639;
  --color-border-subtle: rgb(64 71 85 / 14%);
  --color-border-strong: rgb(64 71 85 / 28%);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --pad-x: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* Shared */
.eyebrow {
  font-size: 14px; line-height: 18px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--color-ink-muted);
}
.eyebrow-light { color: rgb(255 255 255 / 72%); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 18px;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-bg); padding: 12px 24px; font-size: 14px; }
.btn-light { background: var(--color-bg); color: var(--color-title); padding: 14px 30px; }
.btn-ghost { border: 1.5px solid rgb(255 255 255 / 45%); color: #fff; padding: 14px 28px; }
.btn-lg { padding: 16px 36px; font-size: 16px; line-height: 20px; color: var(--color-ink); }

.section-header { display: flex; flex-direction: column; gap: 16px; }
.section-header h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 44px; line-height: 54px; letter-spacing: -0.01em;
  color: var(--color-primary); max-width: 620px;
}
.section-lead { font-size: 16px; line-height: 26px; color: var(--color-ink-muted); }
.section-lead-thin { font-weight: 300; font-size: 18px; line-height: 30px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad-x); background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
}
.nav-logo { height: 40px; width: auto; display: block; }
.wordmark {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.01em; color: var(--color-title); white-space: nowrap;
}
.nav-wordmark { font-size: 24px; line-height: 28px; }
.footer-wordmark { font-size: 21px; line-height: 24px; }
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 14px; line-height: 18px; font-weight: 500; color: var(--color-ink); }

/* Hero */
.hero {
  position: relative; display: flex; align-items: center;
  height: 580px; overflow: clip;
}
.hero-media, .hero-tint, .hero-scrim { position: absolute; inset: 0; }
.hero-media { background: url("assets/hero.jpg") center / cover no-repeat; }
.hero-tint { background: #5091B72E; }
.hero-scrim {
  background: linear-gradient(90deg,
    rgb(55 54 57 / 60%) 0%,
    rgb(55 54 57 / 32%) 45%,
    rgb(55 54 57 / 2%) 75%);
}
.hero-copy {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  width: 720px; padding: 0 var(--pad-x); gap: 24px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 56px; line-height: 64px; letter-spacing: -0.02em;
  color: #fff; max-width: 620px;
}
.hero-subhead { max-width: 560px; font-size: 18px; line-height: 30px; color: rgb(255 255 255 / 88%); }
.hero-ctas { display: flex; align-items: center; gap: 16px; padding-top: 8px; }

/* Rotating ICP phrase */
.rotator {
  display: block; position: relative; overflow: hidden;
  /* Extra 0.14em below the line box keeps Playfair descenders (g, y)
     from clipping; the negative margin cancels it out of the layout. */
  height: calc(1.15em + 0.14em); height: calc(1lh + 0.14em);
  margin-bottom: -0.14em;
  /* The longest phrase ("recruitment campaigns") needs ~600px at 56px;
     let this line run wider than the headline's 560px text column. */
  width: calc(100% + 80px);
}
.rotator-phrase {
  position: absolute; inset: 0; white-space: nowrap;
  opacity: 0; transform: translateY(100%);
  transition: transform 500ms cubic-bezier(0.33, 1, 0.68, 1), opacity 400ms ease;
}
.rotator-phrase.is-active { opacity: 1; transform: translateY(0); }
.rotator-phrase.is-leaving { opacity: 0; transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .rotator-phrase { transition: none; }
}

/* Hero alt variant (alt.html): the whole photo slides right by --hero-shift,
   unchanged otherwise (same cover crop as the original); the exposed strip
   on the left is filled with the photo's own wall color. */
/* The photo's wall-to-room boundary sits at ~36.7% of the viewport in the
   original full-bleed crop. This shift keeps that boundary pinned ~700px
   from the left (just past the text) at any window width: it shrinks as
   the window grows and goes negative on very wide screens. */
.hero--alt { --hero-shift: clamp(0px, calc(700px - 36.7vw), 260px); }
.hero--alt .hero-wall {
  position: absolute; inset: 0;
  /* Sampled from the photo's left-edge wall */
  background: #9A9793;
}
.hero--alt .hero-media {
  background-position: calc(50% + var(--hero-shift)) center;
}
.hero--alt .hero-blend {
  /* Short wall-to-wall blend over the photo's own wall — the visible
     wall-to-room transition stays the photo's natural, crisp one. */
  position: absolute; top: 0; bottom: 0; left: 0;
  width: max(60px, calc(var(--hero-shift) + 100px));
  background: linear-gradient(90deg, #9A9793 0%, #9A9793 70%, rgb(154 151 147 / 0%) 100%);
}
@media (max-width: 1023px) {
  .hero--alt .hero-media { background-position: center; }
  .hero--alt .hero-blend, .hero--alt .hero-wall { display: none; }
}
/* Past ~1900px the shift hits zero; from there scale the photo up instead
   of sliding it, keeping the room boundary pinned and the right edge flush. */
@media (min-width: 1908px) {
  .hero--alt .hero-media {
    background-size: calc(100% + 36.7vw - 700px) auto;
    background-position: right center;
  }
}

/* Logo band */
.logo-band {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: 48px var(--pad-x) 64px; background: var(--color-blue-100);
}
.logo-row {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; flex-wrap: wrap; gap: 24px;
}
.logo-row img { opacity: 0.72; object-fit: contain; flex-shrink: 0; }

/* Why us */
.why {
  display: flex; flex-direction: column; gap: 56px;
  padding: 96px var(--pad-x); background: var(--color-bg);
}
.why-columns { display: flex; gap: 64px; }
.why-col { display: flex; flex-direction: column; flex: 1 1 0; gap: 14px; }
.why-image { width: 100%; height: 150px; border-radius: 12px; background-position: center; background-size: cover; }
.why-col h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 22px; color: var(--color-title); }
.why-col p { font-size: 14px; line-height: 24px; color: var(--color-ink-muted); }

/* Capabilities */
.capabilities {
  display: flex; flex-direction: column; gap: 48px;
  padding: 88px var(--pad-x); background: var(--color-blue-100);
}
.capabilities .section-header { margin-bottom: -24px; }
.capabilities .section-header h2 { max-width: none; }
.card-row { display: flex; gap: 24px; }
.card {
  display: flex; flex-direction: column; flex: 1 1 0; gap: 16px;
  padding: 32px; border-radius: 16px; background: var(--color-bg);
}
.card-image { width: 100%; height: 120px; border-radius: 12px; background-position: center; background-size: cover; }
.card h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 22px; color: var(--color-title); }
.card p { font-size: 14px; line-height: 24px; color: var(--color-ink-muted); }
.card-stat { justify-content: flex-end; gap: 8px; background: var(--color-title); }
.card-stat .stat-number { font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 60px; color: #fff; }
.card-stat p { color: rgb(255 255 255 / 72%); }

/* CTA band */
.cta-band {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 96px var(--pad-x); background: var(--color-title); text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 52px; line-height: 62px; letter-spacing: -0.01em;
  color: #fff; max-width: 820px;
}
.cta-band p { font-size: 16px; line-height: 26px; color: rgb(255 255 255 / 72%); max-width: 560px; }

/* Footer */
.footer {
  display: flex; flex-direction: column; gap: 40px;
  padding: 64px var(--pad-x) 48px; background: var(--color-bg);
  border-top: 1px solid var(--color-border-subtle);
}
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; width: 320px; }
.footer-logo { height: 32px; width: auto; display: block; align-self: flex-start; }
.footer-brand p { font-size: 14px; line-height: 24px; color: var(--color-ink-muted); }
.footer-cols { display: flex; gap: 80px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 12px; line-height: 16px;
  font-weight: 600; letter-spacing: 0.1em; color: var(--color-ink);
}
.footer-col a { font-size: 14px; line-height: 18px; color: var(--color-ink-muted); }
.footer-bottom {
  display: flex; justify-content: space-between; padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
  font-size: 12px; line-height: 16px; color: var(--color-ink-muted);
}

/* Responsive */
@media (max-width: 1023px) {
  :root { --pad-x: 40px; }
  .why-columns, .card-row { flex-direction: column; }
  .footer-cols { gap: 48px; }
}
@media (max-width: 639px) {
  :root { --pad-x: 24px; }
  .nav-links { display: none; }
  .hero { height: auto; }
  .hero-copy { width: 100%; padding-top: 72px; padding-bottom: 72px; }
  .hero-title { font-size: 36px; line-height: 44px; }
  .hero-ctas { flex-wrap: wrap; }
  .section-header h2 { font-size: 32px; line-height: 40px; }
  .cta-band h2 { font-size: 36px; line-height: 44px; }
  .logo-row { justify-content: center; }
  .footer-top, .footer-bottom { flex-direction: column; gap: 24px; }
}
