/* ----------------------------------------------------------------
   Impact Search — Modernist visual system
   Quiet Swiss: single sans (Inter), flattened warm paper,
   one signal accent, precise grid, restrained motion.
----------------------------------------------------------------- */

:root {
  /* Palette */
  --paper:        #F5F2EC;
  --paper-deep:   #EBE7DE;
  --ink:          #0E0E0C;
  --ink-soft:     #333128;
  --muted:        #8A857C;
  --rule:         #D6D1C4;
  --signal:       #C2410C;   /* used sparingly — hover, link, emphasis */
  --signal-deep:  #9A3408;
  --white:        #FBF9F4;

  /* Legacy aliases so any hand-written inline var() still resolves */
  --cream:        var(--paper);
  --cream-deep:   var(--paper-deep);
  --accent:       var(--signal);
  --accent-deep:  var(--signal-deep);

  /* Type — one family does everything */
  --sans:  "Inter", "Söhne", "Neue Haas Grotesk", -apple-system,
           BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --serif: var(--sans); /* legacy: anything that called for serif now uses sans */

  --maxw: 1440px;
  --pad:  clamp(24px, 5vw, 80px);

  --dur:  520ms;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

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

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

/* -------- Type -------- */
h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(52px, 8.2vw, 128px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
p  { margin: 0; }

/* "em" in headings used to be italic serif; now it picks up the signal blue */
h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: 400;
  color: rgb(52, 138, 240);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.italic { font-style: normal; color: var(--muted); }

.lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* -------- Layout primitives -------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: clamp(72px, 10vw, 160px) 0; }

.divider {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* -------- Navigation -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal);
  display: inline-block;
}
.brand--logo { padding: 4px 0; }
.brand--logo img {
  display: block;
  height: 68px;
  width: auto;
}
@media (max-width: 900px) {
  .brand--logo img { height: 60px; }
}
@media (max-width: 640px) {
  .brand--logo img { height: 52px; }
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity .2s var(--ease), color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { opacity: 1; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle { display: none; }

/* Contact link shown only inside the mobile slide-out menu */
.nav__contact-m { display: none; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.01em;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--signal); border-color: var(--signal); color: var(--white); }

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

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { color: var(--signal); border-color: var(--signal); gap: 12px; }

/* -------- Hero -------- */
.hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(72px, 9vw, 140px);
  position: relative;
}
.hero__meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 48px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
}
.hero__meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.25); opacity: 1; }
}

.hero h1 em {
  font-style: normal;
  font-weight: 400;
  color: rgb(52, 138, 240);
}
.hero__lede {
  max-width: 56ch;
  margin-top: 40px;
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 44px;
  align-items: center;
}

/* -------- Focus areas -------- */
.areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
}
.areas--2col {
  grid-template-columns: repeat(2, 1fr);
}
.areas--2col .area {
  padding: 44px 40px 48px 0;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.areas--2col .area:nth-child(2n) { border-right: none; padding-right: 0; }
.areas--2col .area:nth-child(2n+1) { padding-left: 0; }
.areas--2col .area:nth-child(2n) { padding-left: 40px; }
.areas--2col .area:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
.area {
  padding: 44px 40px 48px 0;
  border-right: 1px solid var(--rule);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: background .4s var(--ease);
}
.area:last-child { border-right: none; padding-right: 0; }
.area:nth-child(n+2) { padding-left: 40px; }
.area__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-weight: 500;
  text-transform: uppercase;
}
.area__title {
  font-family: var(--sans);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.area__title em {
  font-style: normal;
  font-weight: 400;
  color: rgb(52, 138, 240);
}
.area__body {
  color: var(--ink-soft);
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.6;
}

/* -------- Section heading -------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2 em {
  font-style: normal;
  color: rgb(52, 138, 240);
  font-weight: 400;
}
.section-head p { max-width: 48ch; color: var(--ink-soft); }

/* -------- Team -------- */
.team-group { margin-bottom: 88px; }
.team-group:last-child { margin-bottom: 0; }
.team-group__label {
  padding-bottom: 16px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.team-group__label span:last-child { color: var(--muted); font-weight: 400; }

.people {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px 64px;
}
.person { }
.person__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  margin-bottom: 24px;
  overflow: hidden;
  filter: grayscale(100%) contrast(1.02);
  transition: filter .4s var(--ease), transform .6s var(--ease);
}
.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease);
}
.person:hover .person__photo img { transform: scale(1.02); }
.person__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  margin-bottom: 14px;
}
.person__name {
  font-family: var(--sans);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.person__name em {
  font-style: normal;
  font-weight: 400;
  color: rgb(52, 138, 240);
}
.person__bio {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 22px;
  line-height: 1.6;
  font-size: 15px;
}

/* -------- Clients -------- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--rule);
}
.client-cell {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.client-cell img {
  width: 150px;
  height: 60px;
  max-width: 85%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
/* per-logo scale fixes for source files with heavy internal padding */
.client-cell img[alt="Alchemy"],
.client-cell img[alt="Arcee"],
.client-cell img[alt="Aegis"],
.client-cell img[alt="At-Bay"],
.client-cell img[alt="Caffeine"],
.client-cell img[alt="Confluera"],
.client-cell img[alt="Even"],
.client-cell img[alt="Forge"],
.client-cell img[alt="Hover"],
.client-cell img[alt="Jaris"],
.client-cell img[alt="Just Even"],
.client-cell img[alt="Kabam"],
.client-cell img[alt="Kikoff"],
.client-cell img[alt="Light"],
.client-cell img[alt="Magic"],
.client-cell img[alt="Onclusive"],
.client-cell img[alt="People.ai"],
.client-cell img[alt="Slyce"],
.client-cell img[alt="Trashie"] {
  transform: scale(1.45);
  transform-origin: center;
}
.client-cell:hover img {
  filter: brightness(0) invert(1);
  mix-blend-mode: normal;
  opacity: 1;
}
.client-cell--stacked img { margin-bottom: 10px; height: 36px; }
.client-cell:hover { background: var(--ink); color: var(--paper); }
.client-cell small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}
.client-cell--text {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.client-cell:hover small { color: var(--paper-deep); }

@media (max-width: 1180px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------- Testimonials -------- */
.quotes {
  display: grid;
  gap: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.quote {
  padding: 80px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
}
.quote:last-child { border-bottom: 1px solid var(--rule); }
.quote__mark {
  font-family: var(--sans);
  font-size: 80px;
  line-height: 0.6;
  color: var(--signal);
  font-weight: 500;
  letter-spacing: -0.05em;
}
.quote__text {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.quote__who {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote__initials {
  width: 40px; height: 40px;
  border-radius: 4px;
  background: var(--paper-deep);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.quote__name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.quote__title {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* -------- Contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info .info-block {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.contact-info .info-block:last-child { border-bottom: 1px solid var(--rule); }
.contact-info .info-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-info .info-value {
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
a.info-value { transition: color .2s var(--ease); }
a.info-value:hover { color: var(--signal); }

form.cform {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.field {
  background: var(--white);
  padding: 18px 20px;
}
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; background: var(--rule); }
.field--2 .field { border-radius: 0; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  padding: 4px 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); font-style: normal; }
.form-submit { margin-top: 28px; }

/* -------- CTA band -------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 9vw, 140px) 0;
  position: relative;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 0%, rgba(194, 65, 12, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 {
  color: var(--paper);
  max-width: 18ch;
}
.cta-band h2 em {
  font-style: normal;
  color: rgb(52, 138, 240);
  font-weight: 400;
}
.cta-band .btn {
  margin-top: 36px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-band .btn:hover { background: var(--signal); color: var(--white); border-color: var(--signal); }

/* -------- Footer -------- */
.footer {
  padding: 72px 0 40px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 64px;
}
.footer__brand {
  font-family: var(--sans);
  font-size: clamp(40px, 5vw, 80px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.footer__brand img {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}
@media (max-width: 900px) {
  .footer__brand img { max-width: 320px; }
}
.footer__col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.footer__col a { transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--signal); }
.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* -------- Reveal on scroll -------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* -------- Responsive -------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex;
    width: 40px; height: 40px;
    border: 1px solid var(--ink);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
  }
  .nav__toggle span {
    width: 16px; height: 1px; background: var(--ink); position: relative;
  }
  .nav__toggle span::before,
  .nav__toggle span::after {
    content: ""; position: absolute; left: 0; width: 16px; height: 1px; background: var(--ink);
  }
  .nav__toggle span::before { top: -5px; }
  .nav__toggle span::after  { top:  5px; }

  .nav.open .nav__links {
    display: grid;
    align-content: start;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 76px);
    overflow-y: auto;
    background: var(--paper);
    padding: 40px var(--pad);
    gap: 24px;
    font-size: 22px;
    font-family: var(--sans);
    font-weight: 500;
  }
  .nav.open .nav__links .nav__contact-m { display: block; }

  .areas { grid-template-columns: 1fr; }
  .area { border-right: none; border-bottom: 1px solid var(--rule); padding: 40px 0; min-height: 0; }
  .area:last-child { border-bottom: none; }
  .area:nth-child(n+2) { padding-left: 0; }

  .section-head { grid-template-columns: 1fr; gap: 20px; }

  .people { grid-template-columns: 1fr; gap: 48px; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .client-cell { min-height: 108px; }
  .quote { grid-template-columns: 1fr; gap: 20px; padding: 60px 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .field--2 { grid-template-columns: 1fr; gap: 1px; }

  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}
