/* ================================================
   CarbTrust — Premium Layer
   Advanced components, imagery, motion
   ================================================ */

:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-dark: rgba(15, 26, 46, 0.72);
}

/* Grid children default to min-width:auto and can overflow their track */
.hero-inner > *,
.split-feature > *,
.method-layout > *,
.two-col > *,
.contact-grid > *,
.bento > *,
.audience > * {
  min-width: 0;
}

/* ================================================
   Cinematic Hero with background image
   ================================================ */

.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-20);
  overflow: hidden;
  background: var(--navy-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: kenburns 24s ease-out infinite alternate;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(15, 26, 46, 0.96) 0%,
      rgba(15, 26, 46, 0.88) 35%,
      rgba(15, 26, 46, 0.55) 65%,
      rgba(15, 26, 46, 0.35) 100%),
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(46, 181, 240, 0.18) 0%, transparent 65%);
}

@keyframes kenburns {
  0% { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.18) translate(-1.5%, -1.5%); }
}

.hero-cinematic .container { position: relative; z-index: 2; }

.hero-cinematic .hero-inner {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-cinematic h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
}

.hero-cinematic .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1875rem;
  max-width: 540px;
}

.hero-cinematic .eyebrow {
  color: var(--blue-400);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 8px;
  background: rgba(46, 181, 240, 0.12);
  border: 1px solid rgba(46, 181, 240, 0.28);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-400);
  box-shadow: 0 0 0 0 rgba(46, 181, 240, 0.7);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(46, 181, 240, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(46, 181, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 181, 240, 0); }
}

.hero-cinematic .hero-meta {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.hero-cinematic .hero-meta-item .num { color: var(--white); }
.hero-cinematic .hero-meta-item .label { color: rgba(255, 255, 255, 0.55); }

.hero-cinematic .btn-primary {
  background: var(--white);
  color: var(--navy-900);
}

.hero-cinematic .btn-primary:hover {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: 0 12px 32px rgba(46, 181, 240, 0.4);
}

.hero-cinematic .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.06);
}

.hero-cinematic .btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

/* Glass panel in hero — still used by Suppliers / Buyers / Platform */
.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.hero-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel-title {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-500);
  padding: 4px 10px;
  background: rgba(127, 176, 105, 0.14);
  border-radius: var(--radius-full);
}

.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse-dot 2s infinite;
}

.ledger-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  opacity: 0;
  animation: slide-in 0.6s var(--ease-out-expo) forwards;
}

.ledger-row:last-child { border-bottom: none; }
.ledger-row:nth-child(2) { animation-delay: 0.15s; }
.ledger-row:nth-child(3) { animation-delay: 0.3s; }
.ledger-row:nth-child(4) { animation-delay: 0.45s; }
.ledger-row:nth-child(5) { animation-delay: 0.6s; }

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.ledger-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--blue-400);
}

.ledger-icon.green { color: var(--green-500); }

.ledger-body { flex: 1; min-width: 0; }

.ledger-name {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ledger-meta {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.ledger-amount {
  color: var(--green-500);
  font-size: 0.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ================================================
   Marquee ticker
   ================================================ */

.marquee {
  overflow: hidden;
  padding: var(--space-8) 0;
  background: var(--off-white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--off-white), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--off-white), transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-16);
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: -0.015em;
  white-space: nowrap;
  /* Logo walls read as one system when the marks are desaturated and
     equal-weight; colour arrives only on hover. */
  filter: grayscale(1);
  opacity: 0.85;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.marquee-item:hover {
  color: var(--navy-900);
  opacity: 1;
  filter: grayscale(0);
}

.partner-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.35s var(--ease-spring);
}

.marquee-item:hover .partner-mark {
  transform: scale(1.08);
  color: var(--blue-600);
}

/* ================================================
   Section label with rule
   ================================================ */

.label-rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.label-rule .eyebrow { margin-bottom: 0; }

.label-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gray-200), transparent);
}

.section-header .label-rule {
  justify-content: center;
}

.section-header .label-rule::after { display: none; }

/* ================================================
   Bento grid
   ================================================ */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: var(--space-5);
}

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.3s var(--ease);
  isolation: isolate;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.bento-card.span-2 { grid-column: span 2; }
.bento-card.row-2 { grid-row: span 2; }

.bento-card.dark {
  background: var(--navy-900);
  border-color: transparent;
}

.bento-card.dark h3,
.bento-card.dark .bento-stat { color: var(--white); }
.bento-card.dark p { color: rgba(255, 255, 255, 0.62); }

.bento-card.image {
  min-height: 340px;
  padding: 0;
  justify-content: flex-end;
}

.bento-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
}

.bento-card:hover .bento-img img { transform: scale(1.07); }

.bento-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(15, 26, 46, 0.94) 0%,
    rgba(15, 26, 46, 0.6) 40%,
    rgba(15, 26, 46, 0.15) 100%);
}

.bento-overlay {
  position: relative;
  z-index: 1;
  padding: var(--space-8);
}

.bento-overlay h3,
.bento-overlay .bento-stat { color: var(--white); }
.bento-overlay p { color: rgba(255, 255, 255, 0.72); }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  background: linear-gradient(135deg, var(--blue-50), var(--green-50));
  color: var(--blue-600);
  transition: transform 0.4s var(--ease-spring);
}

.bento-card:hover .bento-icon { transform: scale(1.08) rotate(-4deg); }

.bento-card.dark .bento-icon {
  background: rgba(255, 255, 255, 0.09);
  color: var(--blue-400);
}

.bento-card h3 {
  font-size: 1.3125rem;
  margin: var(--space-6) 0 var(--space-3);
}

.bento-card p { font-size: 0.9375rem; }

.bento-stat {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================================================
   Tabs (methods)
   ================================================ */

.tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.tab {
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-500);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  transition: all 0.25s var(--ease);
}

.tab:hover {
  color: var(--navy-900);
  border-color: var(--gray-300);
}

.tab.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: fade-up 0.5s var(--ease-out-expo);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.method-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.method-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-xl);
}

.method-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  padding: 8px 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.method-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  margin: var(--space-8) 0;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

/* ================================================
   Case study cards
   ================================================ */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.case-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  isolation: isolate;
}

.case-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1s var(--ease-out-expo);
}

.case-card:hover img { transform: scale(1.08); }

.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(15, 26, 46, 0.95) 0%,
    rgba(15, 26, 46, 0.7) 35%,
    rgba(15, 26, 46, 0.15) 70%,
    rgba(15, 26, 46, 0.05) 100%);
  transition: opacity 0.5s var(--ease);
}

.case-body {
  position: relative;
  padding: var(--space-8);
  width: 100%;
}

.case-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.case-body h3 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.case-location {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
}

.case-reveal {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease-out-expo), opacity 0.4s var(--ease), margin-top 0.55s var(--ease-out-expo);
}

.case-card:hover .case-reveal {
  max-height: 220px;
  opacity: 1;
}

.case-reveal p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.case-metrics {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.case-metric .val {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.case-metric .key {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ================================================
   Feature showcase (image + sticky text)
   ================================================ */

.showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg,
    rgba(15, 26, 46, 0.95) 0%,
    rgba(15, 26, 46, 0.85) 42%,
    rgba(15, 26, 46, 0.35) 100%);
}

.showcase-content {
  padding: var(--space-16);
  max-width: 620px;
}

.showcase-content h2 {
  color: var(--white);
  margin-bottom: var(--space-5);
}

.showcase-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  margin-bottom: var(--space-8);
}

.showcase .eyebrow { color: var(--blue-400); }

.showcase-list li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
}

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

.showcase-list .num {
  color: var(--blue-400);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ================================================
   Timeline
   ================================================ */

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: var(--space-12);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--blue-500) 0%,
    var(--green-500) 50%,
    var(--gray-200) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-12) + 8px);
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-500);
  box-shadow: 0 0 0 5px rgba(46, 181, 240, 0.12);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: var(--space-2);
}

.timeline-item h4 {
  margin-bottom: var(--space-2);
  font-size: 1.1875rem;
}

.timeline-item p { font-size: 0.9375rem; }

/* ================================================
   FAQ accordion
   ================================================ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: color 0.2s var(--ease);
}

.faq-q:hover { color: var(--blue-500); }

.faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  position: relative;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  transition: all 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--navy-900);
  transition: all 0.3s var(--ease-in-out-quart);
}

.faq-icon::before {
  width: 11px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1.5px;
  height: 11px;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon {
  background: var(--navy-900);
  border-color: var(--navy-900);
  transform: rotate(135deg);
}

.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--white); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-in-out-quart);
}

.faq-item.open .faq-a { max-height: 400px; }

.faq-a p {
  padding-bottom: var(--space-6);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 90%;
}

/* ================================================
   Big quote
   ================================================ */

.big-quote {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.big-quote::before {
  content: '"';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9rem;
  line-height: 1;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.16;
  pointer-events: none;
}

.big-quote blockquote {
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: var(--space-8);
  position: relative;
}

.big-quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.big-quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.big-quote-author .name {
  font-weight: 700;
  color: var(--navy-900);
  text-align: left;
}

.big-quote-author .role {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: left;
}

/* ================================================
   CTA with image
   ================================================ */

.cta-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-20) var(--space-16);
  text-align: center;
  isolation: isolate;
}

.cta-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  animation: kenburns 30s ease-out infinite alternate;
}

.cta-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(15, 26, 46, 0.92), rgba(15, 26, 46, 0.88)),
    radial-gradient(ellipse at 30% 30%, rgba(46, 181, 240, 0.24), transparent 60%);
}

.cta-image h2 {
  color: var(--white);
  max-width: 700px;
  margin: 0 auto var(--space-5);
}

.cta-image p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto var(--space-10);
}

.cta-image .btn-primary {
  background: var(--white);
  color: var(--navy-900);
}

.cta-image .btn-primary:hover {
  background: var(--blue-500);
  color: var(--white);
}

.cta-image .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-image .btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
}

/* ================================================
   Split image feature
   ================================================ */

.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-xl);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
}

.split-media:hover img { transform: scale(1.05); }

.floating-stat {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  right: var(--space-6);
  padding: var(--space-5);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.floating-stat-item .v {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.floating-stat-item .k {
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 2px;
}

/* ================================================
   Reveal variants
   ================================================ */

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.stagger.visible > * { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--green-500));
  z-index: 200;
  transition: width 0.1s linear;
}

/* Link with animated underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--blue-600);
  position: relative;
}

.link-arrow::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 0.35s var(--ease-out-expo);
}

.link-arrow:hover::after { width: 100%; }
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ================================================
   Responsive
   ================================================ */

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.row-2 { grid-row: span 1; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .method-layout,
  .split-feature { grid-template-columns: 1fr; gap: var(--space-10); }
  .showcase-content { padding: var(--space-12); }
  .hero-cinematic .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 520px; }
}

@media (max-width: 768px) {
  /* Horizontal slide-ins widen the document on narrow screens — go vertical */
  .reveal-left, .reveal-right { transform: translateY(24px); }

  .hero-cinematic { min-height: auto; padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16); }
  .hero-cinematic h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { aspect-ratio: 4 / 3; }
  .case-reveal { max-height: 220px; opacity: 1; }
  .showcase { min-height: auto; }
  .showcase-content { padding: var(--space-8); }
  .method-specs { grid-template-columns: 1fr; }
  .cta-image { padding: var(--space-12) var(--space-6); }
  .timeline { padding-left: var(--space-10); }
  .marquee::before, .marquee::after { width: 60px; }
  .big-quote::before { font-size: 6rem; top: -18px; }
  .floating-stat { flex-direction: column; gap: var(--space-3); }
  .tabs { gap: 6px; }
  .tab { padding: 9px 16px; font-size: 0.875rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg img, .cta-image img { animation: none; transform: scale(1.05); }
  .marquee-track { animation: none; }
}

/* ================================================
   Editorial page hero (blog / resources)
   ================================================ */

.editorial-hero {
  padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-16);
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(46, 181, 240, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(127, 176, 105, 0.07) 0%, transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.editorial-hero h1 {
  max-width: 860px;
  margin-bottom: var(--space-5);
}

.editorial-hero .lead {
  max-width: 620px;
  font-size: 1.1875rem;
}

/* ================================================
   Featured post
   ================================================ */

.featured-post {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  transition: box-shadow 0.45s var(--ease-out-expo), border-color 0.3s var(--ease);
}

.featured-post > * { min-width: 0; }

.featured-post:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.featured-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
}

.featured-post:hover .featured-media img { transform: scale(1.05); }

.featured-flag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 6px 14px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  margin: var(--space-4) 0 var(--space-4);
  letter-spacing: -0.025em;
}

.featured-body p {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

/* ================================================
   Post meta (byline row)
   ================================================ */

.post-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.post-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--green-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.post-meta .author {
  font-weight: 600;
  color: var(--navy-900);
}

.post-meta .sep {
  color: var(--gray-300);
}

/* ================================================
   Filter bar
   ================================================ */

.filter-bar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-10);
}

.filter-count {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: var(--space-8);
}

/* ================================================
   Post grid
   ================================================ */

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), border-color 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.post-card.is-hidden {
  display: none;
}

.post-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex-shrink: 0;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.post-card:hover .post-thumb img { transform: scale(1.06); }

.post-cat {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 5px 11px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  font-size: 0.6563rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.post-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-body h3 {
  font-size: 1.1875rem;
  line-height: 1.32;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.post-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-5);
  flex: 1;
}

.post-body .post-meta {
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* ================================================
   Resource cards
   ================================================ */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.resource-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo), border-color 0.3s var(--ease);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.resource-card.is-hidden { display: none; }

.resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-50), var(--green-50));
  color: var(--blue-600);
  transition: transform 0.35s var(--ease-spring);
}

.resource-card:hover .resource-icon { transform: scale(1.07) rotate(-4deg); }

.resource-body { flex: 1; min-width: 0; }

.resource-type {
  display: inline-block;
  font-size: 0.6563rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-2);
}

.resource-body h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  letter-spacing: -0.015em;
}

.resource-body p {
  font-size: 0.9063rem;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.resource-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ================================================
   Document list (methodology docs)
   ================================================ */

.doc-list {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.doc-row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s var(--ease);
}

.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--gray-50); }

.doc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.doc-info { flex: 1; min-width: 0; }

.doc-title {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.9375rem;
  margin-bottom: 2px;
}

.doc-sub {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.doc-version {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================================================
   Newsletter band
   ================================================ */

.newsletter {
  padding: var(--space-12);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(46, 181, 240, 0.2), transparent 60%),
    radial-gradient(ellipse at 85% 80%, rgba(127, 176, 105, 0.16), transparent 60%),
    var(--navy-900);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: var(--space-10);
  align-items: center;
}

.newsletter > * { min-width: 0; }

.newsletter h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: var(--space-3);
}

.newsletter p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--blue-400);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 0 0 3px rgba(46, 181, 240, 0.18);
}

.newsletter-form .btn-primary {
  background: var(--white);
  color: var(--navy-900);
}

.newsletter-form .btn-primary:hover {
  background: var(--blue-500);
  color: var(--white);
}

.newsletter .form-status {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  display: none;
}

.newsletter .form-status.success,
.newsletter .form-status.error { display: block; }
.newsletter .form-status.success { color: var(--green-500); }
.newsletter .form-status.error { color: #fca5a5; }

.newsletter-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8125rem;
  margin-top: var(--space-3);
}

/* ================================================
   Empty state
   ================================================ */

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
  color: var(--gray-500);
  display: none;
}

.empty-state.visible { display: block; }

.empty-state svg {
  margin: 0 auto var(--space-4);
  color: var(--gray-300);
}

/* ================================================
   Responsive — blog & resources
   ================================================ */

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; gap: var(--space-8); }
  .newsletter { grid-template-columns: 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  .editorial-hero { padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-10); }
  .post-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .featured-post { padding: var(--space-5); }
  .newsletter { padding: var(--space-8); }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
  .doc-row { flex-wrap: wrap; gap: var(--space-3); padding: var(--space-4) var(--space-5); }
  .resource-card { flex-direction: column; gap: var(--space-4); }
}

/* Clickable contact details */
.contact-detail-text .value a {
  color: var(--navy-900);
  transition: color 0.2s var(--ease);
}

.contact-detail-text .value a:hover {
  color: var(--blue-500);
}

/* ================================================
   Hero background video
   ================================================ */

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

/* Poster image sits under the video and shows until it plays */
.hero-bg .bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-bg video {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out-expo);
}

.hero-bg video.playing { opacity: 1; }

.hero-bg::after { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg video { transform: scale(1.02); }
}

/* ================================================
   Editorial hero — centred, no widget
   Restraint reads as premium: one idea, generous
   space, and a quiet figure row anchoring the fold.
   ================================================ */

.hero-cinematic .hero-solo {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: var(--space-16);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-8);
  position: relative;
  padding-bottom: var(--space-5);
}

/* A hairline instead of a badge — quieter, more considered */
.hero-kicker::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.hero-cinematic .hero-solo h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: var(--space-8);
  text-wrap: balance;
}

.hero-cinematic .hero-solo .lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
  max-width: 620px;
  margin: 0 auto var(--space-10);
  text-wrap: pretty;
}

.hero-cinematic .hero-solo .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* Figure row pinned to the base of the hero */
.hero-figures {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-8) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to top, rgba(15, 26, 46, 0.55), transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.figure-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin: 0;
}

.figure {
  position: relative;
  padding-left: var(--space-6);
}

.figure::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.figure dt {
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.figure dd {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

@media (max-width: 900px) {
  /* .hero-cinematic is a flex row; a static figure row would sit beside the
     content instead of under it, so stack the axis first. */
  .hero-cinematic { flex-direction: column; justify-content: center; }
  .hero-cinematic > .container { width: 100%; }

  .hero-cinematic .hero-solo { padding-bottom: var(--space-10); }

  .hero-figures {
    position: static;
    width: 100%;
    background: none;
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  .figure-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
}

@media (max-width: 560px) {
  .hero-kicker { letter-spacing: 0.16em; font-size: 0.6875rem; }
  .hero-cinematic .hero-solo .hero-actions { flex-direction: column; }
  .hero-cinematic .hero-solo .hero-actions .btn { width: 100%; }
}

/* ================================================
   Anchor targets
   The nav is fixed, so a raw #jump lands under it.
   ================================================ */

[id] {
  scroll-margin-top: calc(var(--nav-height) + var(--space-6));
}

/* Brief highlight so a deep-linked card is findable on arrival */
.bento-card:target {
  animation: target-flash 2.2s var(--ease) 1;
}

@keyframes target-flash {
  0%, 12%  { box-shadow: 0 0 0 3px rgba(46, 181, 240, 0.55), var(--shadow-lg); }
  100%     { box-shadow: 0 0 0 3px rgba(46, 181, 240, 0), var(--shadow-sm); }
}

@media (prefers-reduced-motion: reduce) {
  .bento-card:target { animation: none; box-shadow: 0 0 0 3px rgba(46, 181, 240, 0.55); }
}

/* ================================================
   Nav dropdowns
   ================================================ */

.nav-links > li { position: relative; }

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease);
}

.nav-trigger:hover,
.nav-item.open > .nav-trigger { color: var(--navy-900); }

.nav-trigger svg {
  transition: transform 0.25s var(--ease);
  opacity: 0.6;
}

.nav-item.open > .nav-trigger svg { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 260px;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease-out-expo), visibility 0.22s;
  z-index: 120;
}

.nav-item.open > .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Invisible bridge so the pointer can cross the gap without closing */
.nav-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-panel.wide {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  /* Sits near the right of the nav, so centring would push it off-screen.
     Anchor its right edge instead and let it open leftwards. */
  left: auto;
  right: 0;
  transform: translateY(-6px);
}

.nav-item.open > .nav-panel.wide { transform: translateY(0); }

.nav-panel-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0 var(--space-3) var(--space-2);
}

.nav-panel a {
  display: block;
  padding: 9px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-panel a:hover {
  background: var(--gray-50);
  color: var(--navy-900);
}

.nav-panel a .sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-400);
  margin-top: 1px;
}

.nav-panel-divider {
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-2) var(--space-3);
}

/* Feature tile inside a wide panel */
.nav-feature {
  display: block;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-900);
  position: relative;
  isolation: isolate;
}

.nav-feature:hover { background: var(--navy-900); }

.nav-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.72;
  transition: opacity 0.3s var(--ease), transform 0.6s var(--ease-out-expo);
}

.nav-feature:hover img { opacity: 0.85; transform: scale(1.04); }

.nav-feature-body {
  padding: var(--space-4);
}

.nav-feature-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
}

.nav-feature-title {
  display: block;
  color: var(--white);
  font-size: 0.9063rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}

/* Mobile: dropdowns become inline groups */
@media (max-width: 940px) {
  .nav-item.has-dropdown { width: 100%; }

  .nav.open .nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-3);
  }

  .nav-panel,
  .nav-panel.wide {
    position: static;
    transform: none;
    min-width: 0;
    display: none;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--gray-200);
    border-radius: 0;
    margin: 0 0 var(--space-2) var(--space-3);
    padding: var(--space-1) 0 var(--space-1) var(--space-2);
    background: none;
  }

  .nav-item.open > .nav-panel { display: block; transform: none; }
  .nav-panel .nav-feature { display: none; }
  .nav-panel-heading { display: none; }
}

/* ================================================
   Method figure
   We have no authentic photography of a pyrolysis
   unit or a DAC plant, and stock stand-ins misled
   (a solar farm labelled "biochar"). A designed
   panel is honest and reads as deliberate.
   ================================================ */

.method-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 70% at 30% 25%, rgba(46, 181, 240, 0.16), transparent 62%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(127, 176, 105, 0.14), transparent 62%),
    var(--navy-900);
}

.method-figure svg {
  width: 42%;
  height: auto;
  color: rgba(255, 255, 255, 0.28);
}

.method-figure .method-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Overview cards that lead to their own page */
.bento-link { text-decoration: none; }

.bento-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-600);
}

.bento-card.dark .bento-more { color: var(--blue-400); }
.bento-more svg { transition: transform 0.25s var(--ease); }
.bento-link:hover .bento-more svg { transform: translateX(4px); }

/* ================================================
   Legal pages — long-form prose
   ================================================ */

.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal-updated {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--gray-600);
  margin-bottom: var(--space-10);
}

.legal h2 {
  font-size: 1.375rem;
  margin: var(--space-12) 0 var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
  letter-spacing: -0.02em;
}

.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.legal h3 {
  font-size: 1.0625rem;
  margin: var(--space-6) 0 var(--space-3);
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

.legal ul { margin: 0 0 var(--space-5) 0; }

.legal ul li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-500);
}

.legal a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--navy-900); }

.legal strong { color: var(--navy-900); font-weight: 600; }

/* Anything the operator must replace before publishing */
.legal-todo {
  display: block;
  padding: var(--space-5);
  margin: var(--space-5) 0;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #78350f;
}

.legal-todo strong { color: #78350f; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-5) 0 var(--space-8);
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.legal-table th {
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gray-50);
}

.legal-table td { color: var(--gray-600); line-height: 1.6; }

@media (max-width: 640px) {
  .legal-table { font-size: 0.875rem; }
  .legal-table th, .legal-table td { padding: var(--space-3); }
}
