/* C4AC Labs microsite — pastel palette + editorial yellow accents */
:root {
  --c-blue: #648bca;
  --c-mint: #b9e185;
  --c-magenta: #e02392;
  --c-lime: #a4f332;
  --c-butter: #fbeb78;
  --c-coral: #df3821;
  --c-sage: #6dae81;
  --c-gold: #f5c452;
  --c-foam: #e5f2e8;
  --c-yellow: #ffff00;
  --c-ink: #1a1a1a;
  --c-ink-soft: #2d2d2d;
  --c-muted: #5c5c5c;
  --bg: #fafbff;
  --bg-card: #ffffff;
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(100, 139, 202, 0.18);
  --radius: 14px;
  --container: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--c-magenta);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--c-yellow);
  color: var(--c-ink);
  z-index: 1000;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tint {
  background: linear-gradient(180deg, var(--c-foam) 0%, #f6faf7 100%);
}

.section--muted {
  background: linear-gradient(180deg, #f3f6fd 0%, var(--bg) 100%);
}

.section--yellow {
  background: linear-gradient(
    135deg,
    var(--c-butter) 0%,
    var(--c-yellow) 45%,
    var(--c-gold) 100%
  );
  color: var(--c-ink);
}

.section--cta {
  background: linear-gradient(120deg, var(--c-blue) 0%, #4a6fad 55%, var(--c-magenta) 100%);
  color: #fff;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  color: var(--c-ink);
}

.headline--light {
  color: #fff;
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.rule {
  width: 4rem;
  height: 3px;
  background: var(--c-magenta);
  margin-bottom: 1.25rem;
}

.rule--dark {
  background: var(--c-ink);
}

.subhead {
  max-width: 42rem;
  margin: 0;
  color: var(--c-muted);
  font-size: 1.1rem;
}

.subhead--on-yellow {
  color: var(--c-ink-soft);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(100, 139, 202, 0.15);
}

.header-inner {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--c-ink);
}

.brand:hover {
  color: var(--c-ink);
}

.brand img {
  height: 2.85rem;
  width: auto;
  max-width: min(12rem, 42vw);
  object-fit: contain;
}

.brand-sep {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
  color: var(--c-magenta);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-ink-soft);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--c-magenta);
}

.nav-pdf-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-ink) !important;
  box-shadow: 0 4px 0 var(--c-gold);
}

.nav-cta--preview {
  background: #fff;
  border: 2px solid var(--c-ink);
  box-shadow: 0 3px 0 var(--c-blue);
}

.nav-cta--preview:hover {
  background: var(--c-foam);
}

.nav-cta:hover {
  transform: translateY(-1px);
  color: var(--c-ink) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--c-foam);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(250, 251, 255, 0.98);
    border-bottom: 1px solid rgba(100, 139, 202, 0.15);
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-pdf-pair {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* Hero */
.hero.section {
  padding-top: clamp(5rem, 12vh, 8.5rem);
  padding-bottom: clamp(5rem, 11vh, 8rem);
  min-height: 90vh;
  box-sizing: border-box;
}

.hero-grid {
  width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-muted);
  margin: 0 0 1rem;
}

.accent-bar {
  width: 3rem;
  height: 4px;
  background: var(--c-yellow);
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--c-magenta);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  color: var(--c-ink);
}

.display--proposal {
  text-transform: none;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  font-weight: 700;
}

.lede {
  font-size: 1.2rem;
  max-width: 36rem;
  margin: 0 0 1.75rem;
  color: var(--c-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fineprint {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--c-ink);
  color: #fff;
  box-shadow: 0 6px 0 var(--c-yellow);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: rgba(100, 139, 202, 0.35);
  color: var(--c-ink);
}

.btn-invert {
  background: #fff;
  color: var(--c-ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.btn-outline-light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-visual {
  position: relative;
  min-height: min(420px, 42vh);
}

.hero-illus {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  transform: rotate(-1.5deg);
}

.hero-illus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.hero-card {
  position: absolute;
  z-index: 2;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(100, 139, 202, 0.2);
}

.hero-card--1 {
  top: -0.5rem;
  right: 0.5rem;
  border-top: 4px solid var(--c-lime);
}

.hero-card--2 {
  bottom: 1rem;
  left: 0;
  border-top: 4px solid var(--c-magenta);
}

.hero-stat {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--c-blue);
}

.hero-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
}

/* About */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.prose {
  margin: 0 0 1rem;
}

.prose.lead {
  font-size: 1.15rem;
}

.prose--on-dark {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

.highlight-box {
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-left: 5px solid var(--c-yellow);
  box-shadow: var(--shadow);
}

.pullquote {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  color: var(--c-ink);
}

/* Pillars */
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.6rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.pillar-illus {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -0.25rem -0.35rem 0.85rem;
  min-height: 7.5rem;
  max-height: 9rem;
}

.pillar-illus img {
  width: 100%;
  max-width: 220px;
  height: auto;
  max-height: 8.5rem;
  object-fit: contain;
  object-position: center bottom;
}

.pillar--blue {
  border-top: 5px solid var(--c-blue);
}

.pillar--green {
  border-top: 5px solid var(--c-sage);
}

.pillar--pink {
  border-top: 5px solid var(--c-magenta);
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--c-ink);
}

.pillar p {
  margin: 0;
  color: var(--c-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-body {
  padding: 1.35rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-coral);
  margin-bottom: 0.5rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--c-ink-soft);
}

/* Case studies — one row, centered; fits viewport without horizontal bleed */
.case-cards-outer {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.25rem clamp(1rem, 4vw, 2rem) 0.85rem;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.case-cards {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  width: 100%;
  max-width: min(88rem, calc(100vw - 2.25rem));
  margin-inline: auto;
  padding-inline: 0;
  box-sizing: border-box;
}

.case-cards .case-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 27rem;
  width: auto;
}

.case-cards .card-thumb {
  aspect-ratio: 2.35 / 1;
  max-height: 182px;
}

.case-cards .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem 1.2rem;
}

.case-cards .case-summary {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: 0.93rem;
  line-height: 1.52;
  flex: 1;
}

.case-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 0.75rem;
  margin-top: 1.5rem;
  padding-top: 0.35rem;
}

.btn.btn-case-pdf {
  margin-top: 0;
  padding: 0.65rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--c-ink);
  color: #fff !important;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--c-yellow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn.btn-case-pdf:hover {
  color: #fff !important;
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--c-gold);
}

.btn.btn-case-preview {
  margin-left: auto;
  padding: 0.6rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  color: var(--c-ink) !important;
  border: 2px solid var(--c-ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--c-blue);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn.btn-case-preview:hover {
  background: var(--c-foam);
  color: var(--c-ink) !important;
  transform: translateY(-2px);
}

@media (max-width: 420px) {
  .case-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn.btn-case-preview {
    margin-left: 0;
  }
}

/* Marquee */
.marquee-wrap {
  position: relative;
  padding: 0 0 1rem;
  overflow: hidden;
}

.marquee-fade {
  position: absolute;
  inset-block: 0;
  width: clamp(2rem, 8vw, 4rem);
  z-index: 2;
  pointer-events: none;
}

.marquee-fade--left {
  left: 0;
  background: linear-gradient(90deg, #f3f6fd 0%, transparent 100%);
}

.marquee-fade--right {
  right: 0;
  background: linear-gradient(270deg, #f3f6fd 0%, transparent 100%);
}

.marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-block: 0.5rem;
}

.marquee-row {
  overflow: hidden;
}

.marquee-animate {
  display: flex;
  width: max-content;
  gap: clamp(2rem, 5vw, 4rem);
  animation-name: marquee-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.marquee-row--reverse .marquee-animate {
  animation-direction: reverse;
}

.marquee-set {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-end;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: fit-content;
}

.marquee-item img {
  height: 3.5rem;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.marquee-fallback {
  display: none;
  min-height: 3.5rem;
  min-width: 3.5rem;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-foam), #fff);
  border: 1px dashed rgba(100, 139, 202, 0.35);
  color: var(--c-blue);
  text-align: center;
  line-height: 1.1;
}

.marquee-item.is-broken .marquee-fallback {
  display: flex;
}

.marquee-item.is-broken img {
  display: none;
}

.marquee-label {
  font-size: 0.72rem;
  color: var(--c-muted);
  white-space: nowrap;
  max-width: 12rem;
  text-align: center;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Team — 3D yellow “lift” cards (editorial / Amnesty-adjacent energy) */
#team .team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 18.25rem));
  justify-content: center;
  gap: 2rem 1.75rem;
  max-width: 80rem;
  margin-inline: auto;
}

@media (max-width: 1100px) {
  #team .team-grid {
    grid-template-columns: repeat(2, minmax(0, 19.5rem));
  }
}

@media (max-width: 640px) {
  #team .team-grid {
    grid-template-columns: minmax(0, 21.5rem);
  }
}

#team .person {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.35rem;
  border: 2px solid var(--c-ink);
  max-width: 18.25rem;
  width: 100%;
  margin: 0 auto;
  /* stepped yellow depth — same language as .btn-primary */
  box-shadow:
    5px 5px 0 var(--c-yellow),
    10px 10px 0 var(--c-butter),
    14px 14px 0 rgba(245, 196, 82, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#team .person:hover {
  transform: translate(-5px, -5px);
  box-shadow:
    7px 7px 0 var(--c-yellow),
    13px 13px 0 var(--c-butter),
    18px 18px 0 rgba(245, 196, 82, 0.5),
    22px 26px 40px rgba(26, 26, 26, 0.12);
}

#team .person:nth-child(1) {
  border-top: 6px solid var(--c-blue);
}

#team .person:nth-child(2) {
  border-top: 6px solid var(--c-magenta);
}

#team .person:nth-child(3) {
  border-top: 6px solid var(--c-sage);
}

#team .person:nth-child(4) {
  border-top: 6px solid var(--c-gold);
}

#team .person-photo {
  width: 100%;
  margin: 0 auto 1.05rem;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--c-ink);
  aspect-ratio: 3 / 4;
  max-height: 17.5rem;
  background: var(--c-foam);
  box-shadow: 3px 3px 0 var(--c-butter);
}

#team .person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#team .person-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  line-height: 1.05;
  color: var(--c-ink);
}

#team .person-role {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-magenta);
  margin: 0;
  line-height: 1.4;
}

/* CTA */
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  background: var(--c-foam);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  margin: 0;
  line-height: 0;
}

.footer-brand img {
  display: block;
  width: auto;
  max-width: min(220px, 100%);
  height: auto;
}

.footer-tag {
  margin: 0.35rem 0 0;
  color: var(--c-muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links a {
  font-weight: 600;
  color: var(--c-ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--c-magenta);
}

.footer-note {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin: 0 0 0.5rem;
}

.footer-amnesty {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  color: var(--c-muted);
}

.footer-bottom p {
  margin: 0;
}
