
:root {
  --ink: #111112;
  --paper: #f0eee7;
  --cream: #e5e1d7;
  --muted: #a5a39d;
  --line: rgba(17, 17, 18, 0.16);
  --dark-line: rgba(255, 255, 255, 0.14);
  --coral: #ff694a;
  --pink: #f238b7;
  --violet: #7357ff;
  --blue: #53b7ff;
  --lime: #c9ff5c;
  --gold: #ffbc3d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  column-gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  width: 100%;
  height: 88px;
  padding: 0 4.6vw;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  width: max-content;
}

.brand-symbol {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wordmark {
  width: max-content;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.wordmark-dot {
  color: var(--coral);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2.4rem;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a,
footer a {
  transition: color 180ms ease;
}

.main-nav a:hover,
footer a:hover {
  color: var(--coral);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.72rem 1rem;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--lime);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  column-gap: clamp(2.5rem, 5vw, 6.5rem);
  align-items: start;
  min-height: max(100svh, 920px);
  overflow: hidden;
  padding: 10.5rem 4.6vw 4rem;
  color: white;
  background:
    radial-gradient(circle at 84% 32%, rgba(115, 87, 255, 0.16), transparent 28%),
    radial-gradient(circle at 64% 88%, rgba(242, 56, 183, 0.09), transparent 27%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 110%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 850px;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 16px var(--coral);
}

.eyebrow span {
  color: #79797d;
}

.hero h1 {
  margin: 3.6rem 0 3.4rem;
  max-width: 100%;
  font-size: clamp(4.15rem, 6.35vw, 8.2rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.91;
  text-wrap: balance;
}

.gradient-type,
.wordmark {
  color: transparent;
  background: linear-gradient(100deg, var(--coral), var(--pink) 58%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.ampersand {
  color: #5b5b60;
  font-family: Georgia, serif;
  font-style: italic;
}

.hero-bottom {
  display: grid;
  gap: 2rem;
  padding-left: clamp(0rem, 4vw, 4rem);
}

.hero-bottom > p {
  width: 100%;
  max-width: 460px;
  margin: 0;
  color: #aaa9ad;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.55;
}

.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #6e6e72;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link span,
.card-arrow,
.contact-button span {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover span,
.contact-button:hover span {
  transform: translate(3px, -3px);
}

.impact-engine {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 4.9rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.012)),
    rgba(14,14,16,.74);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}

.impact-engine::before {
  content: "";
  position: absolute;
  inset: -40% 25% 20% -30%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,105,74,.12), transparent 62%);
}

.engine-chrome,
.engine-legend {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1rem;
  color: #66666b;
  font-family: var(--font-geist-mono), monospace;
  font-size: .52rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.engine-chrome { border-bottom: 1px solid rgba(255,255,255,.1); }
.engine-legend { border-top: 1px solid rgba(255,255,255,.1); }
.engine-legend span { display: flex; align-items: center; gap: .45rem; }
.engine-legend span::before { content: ""; width: 4px; height: 4px; background: #505056; border-radius: 50%; }

.engine-live {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #8a8a8f;
}

.engine-live i {
  width: 5px;
  height: 5px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--lime);
  animation: live-blink 2s ease-in-out infinite;
}

.engine-canvas {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-height: auto;
  padding: 1.4rem;
}

.engine-column {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
}

.engine-label,
.core-label {
  margin: 0 0 .45rem;
  color: #6b6b70;
  font-family: var(--font-geist-mono), monospace;
  font-size: .49rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.engine-label {
  grid-column: 1 / -1;
}

.engine-chip {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .65rem .75rem;
  color: #a3a3a8;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: .32rem;
  font-family: var(--font-geist-mono), monospace;
  font-size: clamp(.48rem, .62vw, .62rem);
  line-height: 1.25;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.engine-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.28);
}

.engine-chip i {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: #525258;
  border-radius: 1px;
}

.engine-outputs .engine-chip {
  color: #d8d8db;
  background: rgba(255,255,255,.045);
}

.output-one { border-color: rgba(255,105,74,.32); }
.output-two { border-color: rgba(115,87,255,.35); }
.output-three { border-color: rgba(201,255,92,.25); }
.output-one i { background: var(--coral); box-shadow: 0 0 10px rgba(255,105,74,.7); }
.output-two i { background: var(--violet); box-shadow: 0 0 10px rgba(115,87,255,.7); }
.output-three i { background: var(--lime); box-shadow: 0 0 10px rgba(201,255,92,.55); }

.engine-core {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: .2rem 0;
}

.core-glow {
  position: absolute;
  width: 150%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(242,56,183,.16), rgba(115,87,255,.07) 38%, transparent 68%);
  animation: core-breathe 4s ease-in-out infinite;
}

.core-shell {
  position: relative;
  width: 100%;
  min-height: 210px;
  overflow: hidden;
  padding: 1.1rem .9rem .9rem;
  background: linear-gradient(155deg, rgba(33,32,38,.97), rgba(15,15,18,.98));
  border: 1px solid rgba(242,56,183,.42);
  border-radius: .55rem;
  box-shadow:
    0 0 0 1px rgba(115,87,255,.12),
    0 20px 45px rgba(0,0,0,.42),
    inset 0 1px rgba(255,255,255,.05);
}

.core-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.core-scan {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: -20%;
  height: 30%;
  background: linear-gradient(to bottom, transparent, rgba(255,105,74,.12), transparent);
  animation: core-scan 4.8s ease-in-out infinite;
}

.core-label { position: relative; z-index: 4; color: var(--coral); }
.core-shell strong {
  position: relative;
  z-index: 4;
  display: block;
  margin-top: 2rem;
  color: white;
  font-size: clamp(1.25rem, 1.9vw, 2rem);
  font-weight: 550;
  letter-spacing: -.055em;
  line-height: .96;
}

.core-shell strong em {
  color: #9b999f;
  font-family: Georgia, serif;
  font-weight: 400;
}

.core-phases {
  position: absolute;
  z-index: 4;
  left: .9rem;
  right: .9rem;
  bottom: .9rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.core-phases span {
  padding-top: .5rem;
  color: #68686d;
  border-top: 2px solid #34343a;
  font-family: var(--font-geist-mono), monospace;
  font-size: .42rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.core-phases span:nth-child(1) { border-color: var(--coral); }
.core-phases span:nth-child(2) { border-color: var(--pink); }
.core-phases span:nth-child(3) { border-color: var(--violet); }

.engine-lanes {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.engine-lane {
  position: absolute;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1) 12%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.1) 88%, transparent);
}

.lane-one { top: 36%; }
.lane-two { top: 53%; }
.lane-three { top: 70%; }

.engine-packet {
  position: absolute;
  z-index: 5;
  left: 18%;
  width: 6px;
  height: 6px;
  opacity: 0;
  background: var(--coral);
  border-radius: 1px;
  box-shadow: 0 0 14px var(--coral);
  animation: packet-flow 6s linear infinite;
}

.engine-lanes,
.engine-packet {
  display: none;
}

.packet-one { top: calc(36% - 2px); }
.packet-two { top: calc(53% - 2px); animation-delay: -2s; background: var(--pink); box-shadow: 0 0 14px var(--pink); }
.packet-three { top: calc(70% - 2px); animation-delay: -4s; background: var(--violet); box-shadow: 0 0 14px var(--violet); }

.hero-index {
  position: absolute;
  z-index: 3;
  right: 4.6vw;
  bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #5b5b60;
  font-family: var(--font-geist-mono), monospace;
  font-size: .57rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-line { width: 34px; height: 1px; background: #5b5b60; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal .8s cubic-bezier(.22,1,.36,1) forwards;
}

.reveal-two { animation-delay: .12s; }
.reveal-three { animation-delay: .24s; }

.ticker {
  overflow: hidden;
  padding: 1rem 0;
  background: var(--coral);
  border-block: 1px solid rgba(17,17,18,.25);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  /* Slow drift, right to left. app.js sets --ticker-duration to hold a constant
     px/sec once it knows how many copies the viewport needs; 53s is the no-JS
     fallback for the two copies that ship in the markup. */
  animation: marquee var(--ticker-duration, 53s) linear infinite;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  will-change: transform;
}

.ticker-group,
.ticker-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.5rem;
}

.ticker-group { padding-right: 1.5rem; }
.ticker-track i { font-style: normal; font-size: .62rem; }

.section-pad {
  padding: 8.5rem 4.6vw;
}

.section-kicker {
  padding-top: .15rem;
  color: #6d6b67;
}

.section-kicker span {
  color: var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(500px, 2.25fr) minmax(220px, .85fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 6rem;
}

.section-heading h2,
.approach h2,
.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 7.1rem);
  font-weight: 520;
  letter-spacing: -.065em;
  line-height: .92;
}

.section-heading h2 em,
.approach h2 em,
.about h2 em,
.contact h2 em {
  color: #8a8780;
  font-family: Georgia, serif;
  font-weight: 400;
}

.section-heading > p:last-child {
  margin: 0;
  color: #6b6964;
  font-size: .96rem;
  line-height: 1.65;
}

.expertise-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.expertise-card {
  position: relative;
  grid-column: span 2;
  min-height: 390px;
  overflow: hidden;
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: color 260ms ease, background 260ms ease, transform 260ms ease;
}

.expertise-card:nth-child(4),
.expertise-card:nth-child(5) { grid-column: span 3; }

.expertise-card:hover {
  z-index: 2;
  color: white;
  transform: translateY(-6px);
}

.expertise-card.coral:hover { background: var(--coral); color: var(--ink); }
.expertise-card.violet:hover { background: var(--violet); }
.expertise-card.blue:hover { background: var(--blue); color: var(--ink); }
.expertise-card.lime:hover { background: var(--lime); color: var(--ink); }
.expertise-card.gold:hover { background: var(--gold); color: var(--ink); }

.card-meta {
  display: flex;
  justify-content: space-between;
  color: #85827b;
  font-family: var(--font-geist-mono), monospace;
  font-size: .66rem;
}

.expertise-card:hover .card-meta { color: currentColor; }
.card-arrow { font-size: 1rem; }
.expertise-card:hover .card-arrow { transform: translate(3px, -3px); }

.expertise-card h3 {
  max-width: 390px;
  margin: 4.8rem 0 1.4rem;
  font-size: clamp(1.65rem, 2.4vw, 2.45rem);
  font-weight: 560;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.expertise-card p {
  max-width: 390px;
  margin: 0;
  color: #77746e;
  font-size: .9rem;
  line-height: 1.65;
}

.expertise-card:hover p { color: currentColor; opacity: .78; }

.card-spark {
  position: absolute;
  right: 1.7rem;
  bottom: 1.7rem;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  opacity: .38;
}

.card-spark span { display: block; width: 3px; height: 20%; background: currentColor; }
.card-spark span:nth-child(2) { height: 55%; }
.card-spark span:nth-child(3) { height: 32%; }
.card-spark span:nth-child(4) { height: 95%; }
.card-spark span:nth-child(5) { height: 68%; }
.card-spark span:nth-child(6) { height: 40%; }
.card-spark span:nth-child(7) { height: 76%; }

.approach {
  display: grid;
  grid-template-columns: .95fr 1.4fr;
  gap: 8vw;
  color: white;
  background: var(--ink);
}

.approach .section-kicker { margin-bottom: 4.5rem; color: #74747a; }
.approach .section-kicker span { color: white; }
.approach h2 em { color: var(--coral); }
.approach-steps { border-top: 1px solid var(--dark-line); }
.approach-steps article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  padding: 2.7rem 0;
  border-bottom: 1px solid var(--dark-line);
}

.approach-steps article::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--coral);
  transition: width 400ms ease;
}

.approach-steps article:hover::before { width: 100%; }
.approach-steps span { color: var(--coral); font-family: var(--font-geist-mono), monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.approach-steps h3 { margin: 0; font-size: 1.5rem; font-weight: 560; letter-spacing: -.035em; }
.approach-steps p { grid-column: 2; margin: 0; color: #88888d; font-size: .9rem; line-height: 1.65; }

.clients { background: var(--cream); }
.clients-heading { margin-bottom: 4.5rem; }
.client-groups { border-top: 1px solid var(--line); }
.client-group {
  display: grid;
  grid-template-columns: 1fr 3.15fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.client-group > p {
  margin: .4rem 0 0;
  color: #77746e;
  font-family: var(--font-geist-mono), monospace;
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.client-group > div { display: flex; flex-wrap: wrap; gap: .55rem; }
.client-group span {
  padding: .72rem 1rem;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(17,17,18,.13);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease;
}
.client-group span:hover { background: var(--lime); border-color: var(--ink); }

.about {
  padding: 1.1vw;
  background: var(--ink);
}

.about-panel {
  color: var(--ink);
  background: var(--coral);
  border-radius: 1.1rem;
}

.about .section-kicker { color: rgba(17,17,18,.58); }
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 11vw;
  margin: 4.5rem 0 7rem;
}

.about h2 em { color: rgba(17,17,18,.5); }
.about-copy { padding-top: .7rem; }
.about-copy p { margin: 0 0 1.4rem; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.55; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(17,17,18,.24); }
.stats div { padding: 2.5rem 0 0; border-right: 1px solid rgba(17,17,18,.24); }
.stats div:not(:first-child) { padding-left: 2rem; }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(3rem, 5vw, 5.6rem); font-weight: 530; font-variant-numeric: tabular-nums; letter-spacing: -.06em; line-height: 1; }
.stats span { display: block; margin-top: .8rem; font-family: var(--font-geist-mono), monospace; font-size: .63rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }

.contact {
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--ink);
}

.contact .section-kicker { color: #77777c; }
.contact .section-kicker span { color: white; }
.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 9vw;
  align-items: end;
  margin-top: 4.5rem;
}

.contact h2 { font-size: clamp(4rem, 8vw, 9.5rem); }
.contact h2 em { color: var(--coral); }
.contact-details { padding-bottom: 1rem; }
.contact-details > p { margin: 0 0 2.4rem; color: #9c9ca1; font-size: 1.05rem; line-height: 1.6; }
.contact-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.45rem;
  color: var(--ink);
  background: var(--lime);
  border-radius: .25rem;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .02em;
}

.contact-person { display: flex; align-items: center; gap: 1rem; margin-top: 3rem; }
.avatar { display: grid; place-items: center; width: 45px; height: 45px; color: var(--coral); border: 1px solid #55555a; border-radius: 50%; font-family: var(--font-geist-mono), monospace; font-size: .65rem; }
.contact-person p { display: grid; gap: .2rem; margin: 0; font-size: .8rem; }
.contact-person strong { font-size: .88rem; }
.contact-person span,
.contact-person a { color: #77777c; }
.contact-person a:hover { color: white; }
.contact-glow { position: absolute; right: -12vw; bottom: -35vw; width: 62vw; height: 62vw; background: radial-gradient(circle, rgba(115,87,255,.18), transparent 62%); pointer-events: none; }

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 4.6vw;
  color: white;
  background: var(--ink);
  border-top: 1px solid var(--dark-line);
}

footer p,
footer small { color: #6f6f74; font-size: .68rem; }
footer div { display: flex; gap: 1.5rem; font-size: .72rem; }
footer small { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--dark-line); }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes live-blink { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes core-breathe { 0%, 100% { opacity: .65; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes core-scan { 0% { top: -30%; opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { top: 105%; opacity: 0; } }
@keyframes packet-flow { 0% { left: 18%; opacity: 0; } 8% { opacity: 1; } 45% { opacity: 1; } 52% { opacity: .15; } 64% { opacity: 1; } 92% { opacity: 1; } 100% { left: 82%; opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1660px) {
  .hero-index { display: none; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; column-gap: 1.5rem; }
  .main-nav { display: none; }
  .hero { display: block; min-height: auto; padding-bottom: 6rem; }
  .hero-copy { width: 100%; max-width: 900px; }
  .hero h1 { max-width: 900px; }
  .impact-engine { width: 100%; max-width: 900px; margin: 4.5rem auto 0; opacity: 1; transform: none; }
  .hero-index { display: none; }
  .section-heading { grid-template-columns: 1fr 2.4fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .expertise-card { grid-column: span 3; }
  .expertise-card:nth-child(5) { grid-column: span 6; }
  .about-grid { gap: 5vw; }
}

@media (max-width: 760px) {
  .site-header { height: 72px; padding: 0 1.2rem; }
  .brand-lockup { gap: .55rem; }
  .brand-symbol { width: 28px; height: 28px; }
  .wordmark { font-size: .95rem; }
  .nav-cta { padding: .6rem .8rem; font-size: .65rem; }
  .hero { min-height: 810px; padding: 8.4rem 1.2rem 3rem; }
  .hero::before { background-size: 44px 44px; }
  .hero-copy { width: 100%; }
  .eyebrow { align-items: flex-start; }
  .eyebrow span { display: none; }
  .hero h1 { margin: 3.2rem 0 2.5rem; font-size: clamp(3.6rem, 18vw, 5.8rem); }
  .hero-bottom { display: grid; gap: 1.6rem; padding-left: 0; }
  .hero-bottom > p { width: 100%; max-width: 520px; }
  .impact-engine { position: relative; width: 100%; margin-top: 3.5rem; }
  .engine-chrome, .engine-legend { padding: .75rem .8rem; font-size: .44rem; }
  .engine-canvas { gap: .9rem; padding: 1rem .8rem 1.2rem; }
  .engine-column { gap: .45rem; }
  .engine-label { grid-column: 1 / -1; margin-bottom: .1rem; }
  .engine-chip { min-height: 44px; padding: .55rem .45rem; font-size: .46rem; }
  .engine-core { padding: .2rem 0; }
  .core-shell { min-height: 150px; padding: .9rem; }
  .core-shell strong { margin-top: .65rem; font-size: 1.35rem; }
  .ticker { padding: .8rem 0; }
  .section-pad { padding: 6.2rem 1.2rem; }
  .section-heading { display: block; margin-bottom: 3.4rem; }
  .section-heading h2 { margin: 2.7rem 0 1.8rem; font-size: clamp(3.2rem, 14vw, 5rem); }
  .section-heading > p:last-child { max-width: 430px; }
  .expertise-list { display: block; border-left: 0; }
  .expertise-card { min-height: 335px; padding: 1.5rem 0; border-right: 0; }
  .expertise-card:hover { transform: none; padding-inline: 1rem; }
  .expertise-card h3 { margin-top: 3.6rem; font-size: 2.15rem; }
  .approach { display: block; }
  .approach h2 { margin-bottom: 4.5rem; }
  .approach-steps article { grid-template-columns: 1fr; }
  .approach-steps p { grid-column: 1; }
  .clients-heading { margin-bottom: 3rem; }
  .client-group { grid-template-columns: 1fr; gap: 1rem; }
  .about { padding: .55rem; }
  .about-panel { border-radius: .65rem; }
  .about-grid { display: block; margin: 3.5rem 0 5rem; }
  .about h2 { margin-bottom: 2.5rem; }
  .stats { grid-template-columns: 1fr; }
  .stats div,
  .stats div:not(:first-child) { padding: 1.6rem 0; border-right: 0; border-bottom: 1px solid rgba(17,17,18,.24); }
  .stats div:last-child { border-bottom: 0; }
  .contact-grid { display: block; margin-top: 3.5rem; }
  .contact h2 { margin-bottom: 4rem; font-size: clamp(4rem, 18vw, 6.5rem); }
  footer { grid-template-columns: 1fr auto; padding: 2rem 1.2rem; }
  footer p { display: none; }
  footer div { justify-self: end; }
}

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

  /* Exempted from the blanket rule above by choice: the client ticker keeps
     drifting, and app.js keeps easing anchor scrolls, even when the visitor has
     asked for reduced motion. */
  .ticker-track {
    animation-duration: var(--ticker-duration, 53s) !important;
    animation-iteration-count: infinite !important;
  }
}
