/* ============================================================
   InquiryLab — Design System
   ============================================================ */

:root {
  /* Brand */
  --green: #00905F;
  --green-deep: #00714B;
  --green-dark: #0B3D2C;
  --green-ink: #062A1E;
  --mint: #D4EDE0;
  --sage: #B7D7A8;
  --rose: #E8C7C7;
  --rose-ink: #7A3A3A;
  --navy: #3567A5;
  --navy-deep: #274E80;

  /* Neutrals */
  --ink: #17211C;
  --ink-soft: #3D4742;
  --muted: #6E7A74;
  --canvas: #F6F3ED;
  --cream: #FBF9F4;
  --paper: #FFFFFF;
  --line: #E5E0D6;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --radius: 20px;
  --radius-lg: 28px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --container: 1180px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(23, 33, 28, 0.05), 0 2px 8px rgba(23, 33, 28, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 33, 28, 0.06), 0 12px 32px rgba(23, 33, 28, 0.10);
  --shadow-lg: 0 4px 12px rgba(23, 33, 28, 0.08), 0 24px 64px rgba(23, 33, 28, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--green); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-family: var(--font-body); font-weight: 650; font-size: 1.05rem; color: var(--ink); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.eyebrow--light { color: rgba(255,255,255,0.9); }
.eyebrow--light::before { background: rgba(255,255,255,0.65); }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.eyebrow--light.eyebrow--center::after { background: rgba(255,255,255,0.65); }

.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 480; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--section-y); position: relative; }
.section--canvas { background: var(--canvas); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--green-ink); color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 + .lead { margin-top: 1.15rem; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 144, 95, 0.28);
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 144, 95, 0.35); }

.btn-white { background: #fff; color: var(--green-deep); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,0.24); }

.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); transform: translateY(-2px); }

.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-2px); }

.btn-ghost-green { color: var(--green-deep); font-weight: 650; padding: 0.85rem 0.5rem; }
.btn-ghost-green:hover .arr { transform: translateX(5px); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: padding 0.35s var(--ease);
}
.nav.scrolled {
  background: rgba(251, 249, 244, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(23,33,28,0.07), 0 8px 32px rgba(23,33,28,0.06);
}
.nav.scrolled .nav-inner { padding-block: 0.65rem; }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .logo-white { display: none; }

/* over hero (transparent nav): white logo + white links */
.nav.on-hero:not(.scrolled):not(.open) .logo-green { display: none; }
.nav.on-hero:not(.scrolled):not(.open) .logo-white { display: block; }
.nav.on-hero:not(.scrolled):not(.open) .nav-links a { color: rgba(255,255,255,0.88); }
.nav.on-hero:not(.scrolled):not(.open) .nav-links a:hover,
.nav.on-hero:not(.scrolled):not(.open) .nav-links a.active { color: #fff; }
.nav.on-hero:not(.scrolled):not(.open) .hamburger span { background: #fff; }

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); font-weight: 650; }

.nav-cta { flex-shrink: 0; padding: 0.7rem 1.4rem; font-size: 0.9rem; }

/* language switcher — compact flag dropdown */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-current {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem 0.28rem 0.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: border-color 0.2s, background 0.2s;
}
.lang-current:hover { border-color: var(--green); }
.lang-current::after {
  content: "";
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  padding: 2.5px;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
  transition: transform 0.25s var(--ease);
}
.lang-switch.open .lang-current::after { transform: rotate(-135deg) translateY(-2px); }
.flag {
  width: 22px; height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(23,33,28,0.12);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang-current .flag { display: none; }
.lang-switch[data-lang="en"] .lang-current .flag-en,
.lang-switch[data-lang="pt"] .lang-current .flag-pt,
.lang-switch[data-lang="es"] .lang-current .flag-es { display: block; }
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 120;
}
.lang-switch.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: var(--canvas); color: var(--ink); }
.lang-menu button.active { background: var(--mint); color: var(--green-deep); }
.nav.on-hero:not(.scrolled):not(.open) .lang-current { border-color: rgba(255,255,255,0.35); color: #fff; }
.nav.on-hero:not(.scrolled):not(.open) .lang-current:hover { border-color: rgba(255,255,255,0.8); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  border-radius: 10px;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav.open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .hamburger span:nth-child(2) { opacity: 0; }
.nav.open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero--short { min-height: 78svh; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 12s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6,28,20,0.42) 0%, rgba(6,28,20,0.18) 38%, rgba(6,28,20,0.62) 78%, rgba(6,28,20,0.82) 100%);
}
.hero .container { width: 100%; position: relative; z-index: 1; }

/* particle canvas — constellation of ideas over the hero photo */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3.5rem, 8vh, 6rem);
  max-width: 820px;
}
.hero-content h1 { color: #fff; }
.hero-content .lead { color: rgba(255,255,255,0.88); margin-top: 1.4rem; }
.hero-content .eyebrow { margin-bottom: 1.4rem; }
.hero-content .btn-group { margin-top: 2.4rem; }

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; gap: 0.5rem;
}

/* staggered hero entrance */
.hero-content > * {
  opacity: 0;
  transform: translateY(26px);
  animation: riseIn 0.9s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.34s; }
.hero-content > *:nth-child(4) { animation-delay: 0.46s; }
.hero-content > *:nth-child(5) { animation-delay: 0.58s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* hero bottom stat ribbon */
.hero-ribbon {
  border-top: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.hero-ribbon-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-block: 1.4rem;
}
.hero-ribbon .item { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-ribbon .big { font-family: var(--font-display); font-size: 1.5rem; font-weight: 580; color: #fff; line-height: 1.1; }
.hero-ribbon .small { font-size: 0.8rem; color: rgba(255,255,255,0.72); max-width: 26ch; line-height: 1.45; }

/* hero slideshow — crossfade + slow Ken Burns on the active slide */
.hero-slider .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  animation: none;
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.hero-slider .hero-slide.active {
  opacity: 1;
  transform: scale(1);
  transition: opacity 1.4s var(--ease), transform 8s linear;
}
.hero-dots {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}
.hero-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: background 0.3s, transform 0.3s;
}
.hero-dots button:hover { background: rgba(255,255,255,0.75); }
.hero-dots button.active { background: #fff; transform: scale(1.35); }
@media (max-width: 860px) { .hero-dots { display: none; } }

.scroll-cue {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: 7.5rem;
  width: 46px; height: 72px;
  border: 1.5px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  display: flex; justify-content: center;
  padding-top: 12px;
}
.scroll-cue::after {
  content: "";
  width: 4px; height: 10px;
  background: #fff;
  border-radius: 4px;
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(26px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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

/* step / process cards */
.step-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem 2.2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.step-card::before {
  content: "";
  position: absolute;
  inset-inline: 0; top: 0;
  height: 5px;
  background: var(--accent, var(--green));
  border-radius: 0 0 4px 4px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent, var(--green));
  margin-bottom: 1.1rem;
}
.step-card h4 { margin-bottom: 0.55rem; }
.step-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* feature tiles (icon + text) */
.feature-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.feature-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--mint); }
.feature-tile .icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
}
.feature-tile .icon svg { width: 22px; height: 22px; }
.feature-tile h4 { font-size: 0.98rem; margin-bottom: 0.3rem; }
.feature-tile p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* stat cards */
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-card .value {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.4rem);
  font-weight: 560;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-card .value sup { font-size: 0.5em; }
.stat-card .label { font-weight: 650; font-size: 0.98rem; margin-top: 0.7rem; color: var(--ink); }
.stat-card .sub { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.5; }

/* quote cards */
.quote-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-card .mark {
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.6;
  color: var(--green);
  opacity: 0.25;
  margin-bottom: 1rem;
  user-select: none;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 480;
  line-height: 1.5;
  color: var(--ink);
  border: none;
  text-wrap: pretty;
}
.quote-card figcaption {
  margin-top: auto;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 0.6rem;
}
.quote-card figcaption::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}

/* pill cloud */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill svg { width: 15px; height: 15px; color: var(--green); transition: color 0.3s; }
.pill:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}
.pill:hover svg { color: #fff; }

/* photo band */
.photo-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.photo-band figure {
  overflow: hidden;
  height: clamp(220px, 30vw, 380px);
  position: relative;
}
.photo-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.photo-band figure:hover img { transform: scale(1.05); }

/* split (text + image) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/4.4; }
.split-img::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(23,33,28,0.08);
  pointer-events: none;
}

/* big statement list (approach) */
.discipline-list p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 520;
  line-height: 1.32;
  color: var(--line);
  transition: color 0.5s var(--ease);
}
.discipline-list p.lit { color: var(--ink); }
.discipline-list p.lit em { color: var(--green); font-style: normal; }

/* checklist */
.check-list { display: flex; flex-direction: column; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.98rem; line-height: 1.6; color: var(--ink-soft); }
.check-list .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green-deep);
  display: grid; place-items: center;
}
.check-list .tick svg { width: 12px; height: 12px; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .cover { aspect-ratio: 16/9; overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .cover img { transform: scale(1.05); }
.post-card .body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.post-card .cat {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--mint);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.post-card h3 { font-size: 1.3rem; margin-top: 0.9rem; line-height: 1.25; }
.post-card .excerpt { font-size: 0.92rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.6; }
.post-card .meta { margin-top: auto; padding-top: 1.2rem; font-size: 0.8rem; color: var(--muted); display: flex; gap: 0.5rem; align-items: center; }
.post-card .meta::before { content: ""; width: 18px; height: 2px; background: var(--green); border-radius: 2px; }

.post-hero { min-height: 62svh; }
.post-meta-line { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; font-size: 0.88rem; color: rgba(255,255,255,0.8); }
.post-meta-line .cat { background: rgba(255,255,255,0.16); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px; }

.prose { max-width: 720px; margin-inline: auto; font-size: 1.06rem; line-height: 1.85; color: var(--ink-soft); }
.prose h2 { margin: 2.4em 0 0.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose h3 { margin: 2em 0 0.5em; }
.prose p { margin: 1.1em 0; }
.prose ul, .prose ol { margin: 1.1em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; }
.prose a { color: var(--green-deep); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.4em 0 0.4em 1.4em;
  border-left: 3px solid var(--green);
  font-family: var(--font-display);
  font-size: 1.25em;
  line-height: 1.5;
  color: var(--ink);
}
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose strong { color: var(--ink); }

.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--green-deep); font-size: 0.92rem; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .post-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: radial-gradient(120% 160% at 85% -20%, #01AE74 0%, var(--green) 38%, var(--green-deep) 100%);
  color: #fff;
  overflow: hidden;
  padding-top: clamp(4.5rem, 9vw, 7.5rem);
  /* extra room at the bottom so the footer wave never overlaps the CTAs */
  padding-bottom: calc(clamp(4.5rem, 9vw, 7.5rem) + clamp(50px, 8vw, 110px));
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  top: -300px; right: -160px;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  bottom: -240px; left: -120px;
}
.cta-band .container { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.cta-band h2 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.cta-band .lead { color: rgba(255,255,255,0.85); margin-inline: auto; margin-top: 1.3rem; }
.cta-band .btn-group { justify-content: center; margin-top: 2.6rem; }
.cta-band .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 1.2rem; }
.cta-band .eyebrow::before, .cta-band .eyebrow::after { background: rgba(255,255,255,0.5); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-ink);
  color: rgba(255,255,255,0.75);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  position: relative;
}

/* Footer wave — multi-layer infinite parallax */
.footer-wave {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: clamp(70px, 10vw, 140px);
  transform: translateY(-99%);
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}
.footer-wave svg {
  width: 100%; height: 100%;
  min-height: 50px;
  display: block;
}
.footer-wave .wave-parallax > use {
  animation: waveMove 24s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}
.footer-wave .wave-parallax > use:nth-child(1) { animation-duration: 8s;  animation-delay: -2s; }
.footer-wave .wave-parallax > use:nth-child(2) { animation-duration: 11s; animation-delay: -3s; }
.footer-wave .wave-parallax > use:nth-child(3) { animation-duration: 14s; animation-delay: -4s; }
.footer-wave .wave-parallax > use:nth-child(4) { animation-duration: 21s; animation-delay: -5s; }
@keyframes waveMove {
  0%   { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 36px; width: auto; }
.footer-tagline { margin-top: 1rem; font-size: 0.9rem; max-width: 32ch; line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 5.5rem); flex-wrap: wrap; }
.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Ticker (AI-resistant skills) ---------- */
.ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker {
  display: flex;
  gap: 0.65rem;
  width: max-content;
  animation: tickerMove 30s linear infinite;
}
.ticker:hover { animation-play-state: paused; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.75rem; } .mt-6 { margin-top: 3.5rem; }
.center { text-align: center; }

.badge-soft {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--mint);
  color: var(--green-deep);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 100;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: var(--cream);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    margin: 0;
  }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.5rem; font-family: var(--font-display); font-weight: 540; color: var(--ink); }
  .nav-cta { margin-left: auto; }
  .hamburger { display: flex; }
  .nav.open { background: var(--cream); }

  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-img { order: -1; }
  .split-img img { aspect-ratio: 16/10; }
  .photo-band { grid-template-columns: 1fr; }
  .photo-band figure { height: clamp(200px, 42vw, 300px); }
  .hero-ribbon-inner { grid-template-columns: 1fr; gap: 0.9rem; }
  .hero-ribbon .item { flex-direction: row; align-items: baseline; gap: 0.7rem; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .btn-group .btn { width: 100%; }
  /* long button labels must wrap instead of widening the layout viewport */
  .btn { white-space: normal; text-align: center; line-height: 1.3; }
  .hero { min-height: 92svh; }
  /* free up bar space for the language switcher; Start Free CTAs live on the page */
  .nav-cta { display: none; }
  .lang-switch { margin-left: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-content > * { opacity: 1; transform: none; }
}

/* ---------- Blog portal (news-style) ---------- */
.chip-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2.2rem; }
.chip {
  font: inherit; cursor: pointer; border: 1.5px solid var(--line); background: var(--paper);
  color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; padding: 0.45rem 1.05rem;
  border-radius: 999px; transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green-deep); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip .n { opacity: 0.65; font-weight: 500; margin-left: 0.3rem; font-size: 0.78rem; }

.featured-card {
  display: grid; grid-template-columns: 1.25fr 1fr; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  margin-bottom: 2.6rem; color: inherit;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.featured-card .cover { min-height: 320px; overflow: hidden; }
.featured-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.featured-card:hover .cover img { transform: scale(1.04); }
.featured-card .body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.featured-card .kicker-line { display: flex; align-items: center; gap: 0.7rem; }
.featured-card .flag-featured {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--green); padding: 0.28rem 0.7rem; border-radius: 999px;
}
.featured-card h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2; margin-top: 1rem; }
.featured-card .excerpt { color: var(--muted); margin-top: 0.9rem; line-height: 1.7; }
.featured-card .meta { margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .featured-card { grid-template-columns: 1fr; } .featured-card .cover { min-height: 220px; } }

.cat-section { margin-bottom: 3rem; }
.cat-section-head {
  display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.3rem;
  border-bottom: 2px solid var(--green); padding-bottom: 0.55rem;
}
.cat-section-head h3 { font-size: 1.35rem; }
.cat-section-head .desc { font-size: 0.85rem; color: var(--muted); }
.cat-section-head .more { margin-left: auto; font-size: 0.85rem; font-weight: 650; color: var(--green-deep); white-space: nowrap; }
.cat-section-head .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- The InquiryLab Journal (SSR news portal) ---------- */
.journal { background: var(--canvas); }
.j-masthead { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(4.6rem,8vw,5.6rem) 0 1.2rem; text-align: center; }
.j-brand { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.j-brand em { font-style: italic; color: var(--green); }
.j-tag { color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }

.j-topicbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; overflow-x: auto; }
.j-topicbar .container { display: flex; gap: 0.2rem; padding-block: 0; }
.j-topicbar a {
  --tc: var(--green);
  white-space: nowrap; font-size: 0.85rem; font-weight: 650; color: var(--ink-soft);
  padding: 0.75rem 0.9rem; border-bottom: 3px solid transparent; transition: color 0.15s;
}
.j-topicbar a:hover { color: var(--tc); }
.j-topicbar a.active { color: var(--tc); border-bottom-color: var(--tc); }

/* front page top block */
.j-top { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; padding-block: 1.8rem; }
@media (max-width: 900px) { .j-top { grid-template-columns: 1fr; } }
.j-manchete { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); color: inherit; transition: box-shadow 0.3s var(--ease); }
.j-manchete:hover { box-shadow: var(--shadow-md); }
.j-manchete .cover { aspect-ratio: 16/8.5; overflow: hidden; }
.j-manchete .cover img { width: 100%; height: 100%; object-fit: cover; }
.j-manchete .body { padding: 1.4rem 1.6rem 1.6rem; }
.j-manchete h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin-top: 0.55rem; }
.j-manchete h1:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.j-manchete .excerpt { color: var(--ink-soft); margin-top: 0.7rem; line-height: 1.65; }
.j-manchete .meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.9rem; }
.j-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tc, var(--green)); }

.j-top-side { display: flex; flex-direction: column; gap: 1rem; }
.j-destaque { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--tc, var(--green)); border-radius: var(--radius); padding: 1rem 1.2rem; color: inherit; transition: box-shadow 0.25s var(--ease); }
.j-destaque:hover { box-shadow: var(--shadow-sm); }
.j-destaque h2 { font-size: 1.12rem; line-height: 1.3; margin-top: 0.35rem; }
.j-destaque h2:hover { text-decoration: underline; text-underline-offset: 3px; }
.j-destaque .excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.55; }

.j-latest { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.j-latest h3 { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.j-latest ul { display: flex; flex-direction: column; }
.j-latest li { border-bottom: 1px solid var(--line); padding: 0.55rem 0; }
.j-latest li:last-child { border-bottom: none; }
.j-latest a { color: var(--ink); font-size: 0.9rem; font-weight: 550; line-height: 1.35; display: block; }
.j-latest a:hover { color: var(--green-deep); }
.j-latest .lc { display: inline; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tc, var(--green)); margin-right: 0.4rem; }

/* category sections */
.j-section { padding-block: 1.6rem 2.2rem; border-top: 1px solid var(--line); }
.j-section-head { display: flex; align-items: baseline; gap: 0.9rem; border-bottom: 3px solid var(--sc, var(--green)); padding-bottom: 0.5rem; margin-bottom: 1.2rem; }
.j-section-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--sc, var(--green)); }
.j-section-title a { color: inherit; }
.j-section-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.j-section-desc { font-size: 0.82rem; color: var(--muted); }
.j-more { margin-left: auto; white-space: nowrap; font-size: 0.85rem; font-weight: 650; color: var(--sc, var(--green)); }
.j-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.j-section-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.4rem; }
@media (max-width: 800px) { .j-section-grid { grid-template-columns: 1fr; } }
.j-lead-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: box-shadow 0.25s var(--ease); }
.j-lead-card:hover { box-shadow: var(--shadow-sm); }
.j-lead-card .cover { min-height: 100%; }
.j-lead-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.j-lead-card .body { padding: 1rem 1.1rem 1rem 0; }
.j-lead-card h3 { font-size: 1.15rem; line-height: 1.3; }
.j-lead-card h3:hover { text-decoration: underline; text-underline-offset: 3px; }
.j-lead-card .excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.86rem; color: var(--muted); margin-top: 0.45rem; line-height: 1.55; }
.j-lead-card .meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 560px) { .j-lead-card { grid-template-columns: 1fr; } .j-lead-card .body { padding: 0 1.1rem 1rem; } }

.j-side-list { display: flex; flex-direction: column; gap: 0.55rem; }
.j-side-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; color: inherit; }
.j-side-item:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.j-side-item h4 { font-size: 0.98rem; line-height: 1.35; }
.j-side-item .meta { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.j-headline { display: block; font-size: 0.92rem; font-weight: 550; color: var(--ink-soft); padding: 0.35rem 0 0.35rem 0.9rem; border-left: 3px solid var(--sc, var(--green)); line-height: 1.35; }
.j-headline:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.j-topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .j-topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .j-topic-grid { grid-template-columns: 1fr; } }
