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

:root {
  --pink: #ff3b7f;
  --mint: #6fe0be;
  --yellow: #ffe45c;
  --blue: #9fc7ff;
  --beige: #efebe0;
  --lilac: #c9a9ff;
  --lime: #b8e986;

  --ink: #000000;
  --paper: #ffffff;
  --gray-text: #adadad;
  --divider: #e6ded7;
  --divider-warm: #f0e0d7;
  --button-gray: #f8f7f7;
  --pink-text: #160000;

  --serif: 'Spectral', serif;
  --sans: 'Space Grotesk', sans-serif;
  --step-font: 'Hanken Grotesk', sans-serif;
  --list-font: 'Schibsted Grotesk', sans-serif;
}

/* Smooth scrolling is handled by Lenis (script.js); anchor jumps fall
   back to instant native scroll if Lenis fails to load. */

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

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

/* ============ BACKGROUND LAYERS (fixed on scroll) ============ */

.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  background: var(--c);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.18;
  animation: drift var(--dur) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(140px, -90px) scale(1.15); }
  40%  { transform: translate(-90px, 60px) scale(0.88); }
  60%  { transform: translate(110px, 130px) scale(1.1); }
  80%  { transform: translate(-130px, -60px) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

.bg-letters {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-letters svg {
  display: block;
  width: 100%;
  height: 100%;
}

.glyph {
  font-family: var(--serif), Georgia, serif;
  font-weight: 700;
  fill: none;
  stroke: rgba(0, 0, 0, 0.38);
  stroke-width: 1.8px;
  paint-order: stroke;
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .glyph { animation: none !important; opacity: 0.35; stroke-dashoffset: 0 !important; }
}

/* ============ SITE / LAYOUT ============ */

.site { position: relative; z-index: 1; }

/* ============ SCROLL-IN ANIMATIONS ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition-property: opacity, transform;
  transition-duration: 0.6s, 0.6s;
  transition-timing-function: cubic-bezier(.22,.61,.36,1), cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/*
 * .btn and .inno-card double as reveal targets (fade-in-up, staggered
 * via --reveal-delay) AND as hover-interactive elements (scale). Both
 * needs are declared with explicit longhand transition-* properties
 * on the SAME rule — mixing this with a plain `transition:` shorthand
 * on a later, equal-specificity rule would silently reset
 * transition-delay to 0 and kill the stagger.
 */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 18px;
  padding: 18px 26px;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition-property: opacity, transform;
  transition-duration: 0.6s, 0.6s;
  transition-timing-function: cubic-bezier(.22,.61,.36,1), cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

.btn:hover, .btn:active {
  transition-duration: 0.2s, 0.2s;
  transition-delay: 0ms, 0ms;
}

.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.97); }

.btn-pink { background: var(--pink); color: var(--ink); box-shadow: 6px 6px 0 0 var(--ink); }
.btn-black { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 0 var(--pink); }
.btn-ghost { background: var(--button-gray); color: var(--ink); box-shadow: 6px 6px 0 0 var(--ink); }
.btn-black-shadow { background: var(--ink); color: #fff; box-shadow: 6px 6px 0 0 var(--pink); }
.btn-pink-solid { background: var(--pink); color: var(--pink-text); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--ink);
}

.eyebrow-yellow { background: var(--yellow); }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.15;
  letter-spacing: -3px;
}

/* ============ HEADER ============ */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 121px;
  gap: 48px;
}

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -2px;
}

.logo-small { font-size: 32px; }

.pink { color: var(--pink); }

.main-nav {
  display: flex;
  gap: 40px;
  margin-left: auto;
  font-size: 18px;
}

.main-nav a:hover { color: var(--pink); }

/* ============ HERO ============ */

.hero {
  display: grid;
  grid-template-columns: 1fr 505px;
  gap: 80px;
  padding-top: 82px;
  padding-bottom: 90px;
  align-items: start;
}

.hero-main { max-width: 700px; }

.headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 72px;
  line-height: 1.2;
  letter-spacing: -3.6px;
  margin-top: 24px;
}

.headline em {
  font-style: italic;
  font-family: var(--serif);
}

.headline .highlight {
  display: inline-block;
  background: var(--pink);
  line-height: 1;
  padding: 8px 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lede {
  font-size: 24px;
  line-height: 1.5;
  margin-top: 32px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.categories-panel {
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 0 var(--ink);
}

.categories-head {
  background: var(--mint);
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding: 22px 30px;
}

.categories-list { list-style: none; }

.categories-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-bottom: 1px solid var(--ink);
  font-size: 18px;
}

.categories-list li:last-child { border-bottom: none; }

.dot {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--c);
  border: 1px solid var(--ink);
}

.cat-name {
  font-family: var(--list-font);
  color: #14142b;
  flex: 1;
}

.cat-count {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--gray-text);
}

/* ============ COUNTER BAR ============ */

.counter-bar {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.counter-inner {
  display: flex;
  justify-content: space-around;
  padding-top: 34px;
  padding-bottom: 34px;
  text-align: center;
  flex-wrap: wrap;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 60px;
  color: var(--pink);
}

.stat-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

/* ============ WHY SECTION ============ */

.why {
  display: grid;
  grid-template-columns: 1fr 625px;
  gap: 80px;
  padding-top: 100px;
  padding-bottom: 100px;
  align-items: start;
}

.body-text {
  font-size: 24px;
  line-height: 1.5;
  margin-top: 24px;
}

.why-main .section-title { margin-top: 20px; }
.why-main .btn { margin-top: 40px; }

.why-panel {
  background: var(--paper);
  border: 1px solid var(--ink);
}

.why-row {
  display: flex;
  gap: 24px;
  padding: 28px 30px;
  border-bottom: 1px solid var(--ink);
}

.why-row:last-child { border-bottom: none; }

.why-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 32px;
  color: var(--pink);
  flex-shrink: 0;
  width: 40px;
}

.why-row h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -1.6px;
  margin-bottom: 12px;
}

.why-row p { font-size: 18px; line-height: 1.5; }

/* ============ INNOVATIONS / CARDS ============ */

.section-divider {
  border-top: 1px solid var(--ink);
}

.innovations { padding-top: 100px; padding-bottom: 100px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.inno-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 0 var(--ink);
  display: flex;
  min-height: 320px;
  transition-property: opacity, transform;
  transition-duration: 0.6s, 0.6s;
  transition-timing-function: cubic-bezier(.22,.61,.36,1), cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms);
}

.inno-card:hover {
  transition-duration: 0.2s, 0.2s;
  transition-delay: 0ms, 0ms;
  transform: scale(1.02);
}

.card-eyebrow {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--bar);
  border-right: 1px solid var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  text-align: center;
  padding: 16px 10px;
  flex-shrink: 0;
  width: 36px;
}

.card-body { padding: 36px 30px; display: flex; flex-direction: column; gap: 12px; height: 100%; }

.card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -1.6px;
}

.card-desc { font-size: 18px; line-height: 1.5; }

.card-org {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
}

.card-country {
  display: block;
  font-weight: 400;
  color: var(--gray-text);
}

/* ============ HOW SECTION ============ */

.how { padding-bottom: 100px; }

.how-box {
  background: var(--paper);
  border: 1px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}

.how-step {
  padding: 40px;
  border-right: 1px solid var(--ink);
}

.how-step:last-child { border-right: none; }

.how-num {
  font-family: var(--step-font);
  font-weight: 700;
  font-size: 60px;
  color: var(--pink);
  display: block;
}

.how-step h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -1.6px;
  margin: 16px 0 12px;
}

.how-step p { font-size: 18px; line-height: 1.5; }

/* ============ JOIN SECTION ============ */

.join { background: var(--ink); color: #fff; }

.join-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-top: 90px;
  padding-bottom: 90px;
  flex-wrap: wrap;
}

.join-text h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 60px;
  line-height: 1.2;
  letter-spacing: -3px;
  max-width: 830px;
}

.join-text p {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 24px;
  max-width: 790px;
}

/* ============ FOOTER ============ */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 60px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 18px;
  line-height: 1.5;
  max-width: 500px;
  margin-top: 20px;
}

.footer-nav {
  display: flex;
  gap: 30px;
  font-size: 18px;
  align-self: flex-start;
  flex-wrap: wrap;
}

/* ============ PAGE HEADER (innovations / join / about) ============ */

.page-header { padding-top: 70px; }

.page-header .eyebrow { margin-bottom: 20px; }

.page-header h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -3.6px;
  line-height: 1.2;
}

.page-header .sub, .intro-text {
  margin-top: 22px;
  font-size: 24px;
  line-height: 1.5;
  max-width: 62ch;
  color: #333;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 40px;
}

.back-link:hover { color: var(--pink); }

/* ============ FILTERS / SEARCH (innovations) ============ */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 40px 0 8px;
}

.fchip {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.fchip:hover { background: var(--button-gray); }

.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.fchip .c { opacity: 0.6; margin-left: 6px; font-weight: 400; }

.search-input {
  margin-left: auto;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  min-width: 240px;
  background: var(--paper);
}

.search-input:focus { outline: 2px solid var(--pink); outline-offset: 0; }

.results-count {
  font-family: var(--sans);
  color: var(--gray-text);
  font-size: 14px;
  margin: 18px 0 36px;
}

.empty-state {
  padding: 80px 0;
  text-align: center;
  color: var(--gray-text);
  font-size: 18px;
}

/* ============ INNOVATION DETAIL ============ */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
  padding: 50px 0 100px;
}

.tag-cat {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--ink);
  background: var(--bar, var(--yellow));
  margin-bottom: 22px;
}

.detail-main h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -3.6px;
  line-height: 1.2;
}

.detail-who {
  margin-top: 18px;
  font-size: 18px;
  color: var(--gray-text);
}

.detail-block { margin-top: 36px; }

.detail-block h4 {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 6px 14px;
  margin-bottom: 14px;
}

.detail-block p { font-size: 18px; line-height: 1.5; }

.evidence-list {
  border-left: 3px solid var(--bar, var(--ink));
  padding-left: 22px;
  margin-top: 4px;
  list-style: none;
}

.evidence-list li {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 12px;
}

.src-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray-text);
  font-style: italic;
}

.detail-aside {
  position: sticky;
  top: 140px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 26px;
}

.detail-aside .btn { color: var(--ink); }

.detail-aside dt {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--gray-text);
}

.detail-aside dd {
  margin: 4px 0 18px;
  font-size: 18px;
}

.detail-aside dd:last-child { margin-bottom: 0; }

.detail-aside a { color: var(--pink); word-break: break-word; }

.detail-related { margin-top: 80px; }

/* ============ JOIN PAGE ============ */

.join-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 50px;
}

.join-panel {
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  padding: 32px;
  background: var(--paper);
}

.join-panel h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -2px;
}

.join-panel .kicker {
  color: var(--ink);
  font-size: 18px;
  margin: 6px 0 24px;
}

.tick-list { list-style: none; display: grid; gap: 18px; }

.tick-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }

.tick-list svg { color: var(--pink); margin-top: 8px; flex-shrink: 0; }

.tick-list b { font-family: var(--serif); font-weight: 700; display: block; font-size: 24px; letter-spacing: -1px; color: var(--ink); }

.tick-list .d { color: var(--ink); font-size: 18px; display: block; margin-top: 3px; line-height: 1.5; }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--ink); margin-top: 30px; background: var(--paper); }

.data-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--paper); }

.data-table th, .data-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 18px;
  vertical-align: top;
}

.data-table th {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  font-size: 14px;
  color: var(--ink);
  background: var(--mint);
  border-bottom: 1px solid var(--ink);
}

.data-table tr:last-child td { border-bottom: none; }

.form-grid { display: grid; gap: 20px; max-width: 540px; margin-top: 30px; }

.form-field label {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 18px;
  background: var(--paper);
}

.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--pink); outline-offset: 0; }

.note-box {
  border: 1px solid var(--ink);
  background: var(--button-gray);
  padding: 20px 22px;
  font-size: 18px;
  line-height: 1.5;
}

.form-msg {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
}

/* ============ ABOUT / WHY PAGE ============ */

.prose { max-width: 72ch; display: grid; gap: 24px; margin-top: 44px; }

.prose p { font-size: 18px; line-height: 1.65; }

.prose h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.5px;
  margin-top: 6px;
}

.prose ul { padding-left: 22px; display: grid; gap: 9px; font-size: 18px; line-height: 1.5; }

.prose.prose-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; max-width: none; }

.prose-col { display: grid; gap: 24px; align-content: start; }

.prose-col-intro p { font-size: 24px; line-height: 1.5; }

/* ============ RESPONSIVE ============ */

@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero { grid-template-columns: 1fr; }
  .categories-panel { max-width: 505px; }
  .why { grid-template-columns: 1fr; }
  .why-panel { max-width: 625px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .how-box { grid-template-columns: 1fr; }
  .how-step { border-right: none; border-bottom: 1px solid var(--ink); }
  .how-step:last-child { border-bottom: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .prose.prose-columns { grid-template-columns: 1fr; }
  .join-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .header-inner { gap: 20px; height: auto; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
  .main-nav { display: none; }
  .headline, .page-header h1, .detail-main h1 { font-size: 44px; letter-spacing: -2px; }
  .lede { font-size: 19px; }
  .section-title { font-size: 38px; letter-spacing: -1.5px; }
  .body-text { font-size: 19px; }
  .card-grid { grid-template-columns: 1fr; }
  .counter-inner { padding-top: 24px; padding-bottom: 24px; }
  .join-text h2 { font-size: 38px; }
  .footer-inner { flex-direction: column; gap: 30px; }
  .search-input { margin-left: 0; min-width: 0; width: 100%; }
}
