/* ============================================================
   Loyaltio — inspired by Adaline.ai
   Warm cream + elegant serif, with sustainability-tinted variant
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Default theme: Warm Cream (Adaline-faithful) */
  --bg: #f1ece4;
  --bg-elev: #ebe5da;
  --bg-soft: #e7e0d2;
  --ink: #1a1a1a;
  --ink-soft: #3d3a35;
  --ink-mute: #6b665d;
  --ink-faint: #9a948a;
  --line: rgba(26, 26, 26, 0.12);
  --line-soft: rgba(26, 26, 26, 0.06);
  --accent: #1a1a1a;
  --accent-ink: #f1ece4;
  --tag-bg: rgba(26, 26, 26, 0.06);

  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-sans: 'Geist', 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;

  --container: 1240px;
  --gutter: 32px;
}

[data-theme="sage"] {
  --bg: #eef0e8;
  --bg-elev: #e6e9dc;
  --bg-soft: #dee2d0;
  --ink: #1c2218;
  --ink-soft: #3a4133;
  --ink-mute: #6a7060;
  --ink-faint: #969a89;
  --line: rgba(28, 34, 24, 0.13);
  --line-soft: rgba(28, 34, 24, 0.06);
  --accent: #2d4a2b;
  --accent-ink: #eef0e8;
  --tag-bg: rgba(45, 74, 43, 0.08);
}

[data-theme="ink"] {
  --bg: #14140f;
  --bg-elev: #1c1c16;
  --bg-soft: #25251e;
  --ink: #f1ece4;
  --ink-soft: #d6cfc2;
  --ink-mute: #9a948a;
  --ink-faint: #6b665d;
  --line: rgba(241, 236, 228, 0.12);
  --line-soft: rgba(241, 236, 228, 0.06);
  --accent: #f1ece4;
  --accent-ink: #14140f;
  --tag-bg: rgba(241, 236, 228, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background 0.6s ease, color 0.6s ease;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============ TYPOGRAPHY ============ */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.02em; }
.mono  { font-family: var(--font-mono);  font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  display: inline-block;
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  height: 22px;
  width: auto;
  display: block;
}
.logo path { fill: var(--ink); transition: fill 0.6s ease; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}
.nav-link:hover { background: var(--tag-bg); color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--bg)); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--tag-bg); }

.btn-text { padding: 8px 0; color: var(--ink-soft); }
.btn-text:hover { color: var(--ink); }

.btn .arrow { width: 14px; height: 14px; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ============ HERO ============ */
.hero { padding: 160px 0 100px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 64px; }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 .italic { font-style: italic; color: var(--ink-mute); }
.hero h1 .word {
  display: inline-block;
  margin-right: 0.25em;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  animation: wordIn 1.1s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-sub {
  margin-top: 28px;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 48ch;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 1s 0.85s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ HERO VISUAL — IMPACT REPORT ============ */
.hero-visual {
  margin-top: 48px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  aspect-ratio: 16 / 9;
  opacity: 0;
  transform: translateY(20px) scale(0.99);
  animation: fadeUp 1.2s 1s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  box-shadow: 0 1px 0 var(--line-soft), 0 30px 80px -40px rgba(0,0,0,0.25);
}

.report {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  font-family: var(--font-sans);
}
.report-side {
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.report-side-h {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.report-side ul { list-style: none; padding: 0; margin: 8px 0 0; }
.report-side li {
  font-size: 0.82rem;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}
.report-side li.active { background: var(--bg); color: var(--ink); font-weight: 500; }
.report-side li .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.4; }
.report-side li.active .dot { opacity: 1; background: var(--accent); }
.report-side-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.report-main {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 18px;
}
.report-head-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.report-head-sub {
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 4px;
}
.report-head-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: right;
}
.report-head-meta strong { color: var(--ink); display: block; font-size: 0.75rem; margin-top: 2px; }

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.kpi { padding: 14px 16px; border-right: 1px solid var(--line-soft); }
.kpi:last-child { border-right: none; }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.kpi-val {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi-val small {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-mute);
}
.kpi-spark {
  margin-top: 6px;
  height: 18px;
  width: 100%;
  display: block;
}
.kpi-spark path.line { fill: none; stroke: var(--ink-soft); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.kpi-spark path.fill { fill: var(--tag-bg); stroke: none; }

.report-chart {
  flex: 1;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg);
  padding: 16px 18px 8px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.report-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.report-chart-head .legend { display: inline-flex; gap: 14px; }
.report-chart-head .legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.report-chart-head .legend i {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
  font-style: normal;
}
.report-chart-svg { flex: 1; width: 100%; }

/* ============ INDUSTRIES ============ */
.trusted {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line-soft);
}
.trusted-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.industries-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  max-width: 980px;
  margin: 0 auto;
}
.industry-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
}

/* ============ SECTION ============ */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line-soft);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.section-head h2 .italic { font-style: italic; color: var(--ink-mute); }
.section-head p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 44ch;
  margin: 0;
}
.section-eyebrow { margin-bottom: 24px; }

/* ============ PILLARS ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.pillar {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: background 0.3s ease;
  position: relative;
  cursor: default;
}
.pillar:hover { background: var(--bg-elev); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 80px;
}
.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pillar-desc {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.pillar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
}

.pillar-icon {
  position: absolute;
  top: 28px; right: 28px;
  width: 34px; height: 34px;
  color: var(--ink-soft);
}

/* ============ APPROACH ============ */
.approach-section { padding-top: 60px; padding-bottom: 60px; }
.approach {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.step {
  background: var(--bg);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
}
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3rem;
  letter-spacing: -0.02em;
  color: var(--ink-faint);
  line-height: 1;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step p { color: var(--ink-mute); font-size: 0.95rem; line-height: 1.55; margin: 0; }

/* ============ METRICS ============ */
.metrics-section { padding: 100px 0; border-top: 1px solid var(--line-soft); }
.metrics-section .section-head { margin-bottom: 48px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric { padding: 40px 32px; border-right: 1px solid var(--line-soft); }
.metric:last-child { border-right: none; }
.metric-val {
  font-family: var(--font-serif);
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
}
.metric-val .unit { font-size: 0.45em; margin-left: 4px; color: var(--ink-mute); }
.metric-label {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-mute);
  line-height: 1.5;
  max-width: 22ch;
}

/* ============ CASES ============ */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case {
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1), background 0.3s;
  min-height: 380px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.case:hover { transform: translateY(-4px); background: var(--bg-soft); }
.case-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.case-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.case-desc { color: var(--ink-mute); font-size: 0.9rem; margin: 0; line-height: 1.55; }
.case-result {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.case-result-val {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}
.case-result-label { font-size: 0.82rem; color: var(--ink-mute); flex: 1; }
.case-arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.case:hover .case-arrow { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.case-visual {
  height: 130px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

/* ============ VALUES ============ */
.testimonial { border-top: 1px solid var(--line-soft); padding: 100px 0; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.t-card { display: flex; flex-direction: column; gap: 24px; }
.t-quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink);
  flex: 1;
  margin: 0;
}
.t-quote::before { content: "\201C"; }
.t-quote::after  { content: "\201D"; }
.t-author { display: flex; align-items: center; gap: 14px; }
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}
.t-name { font-size: 0.9rem; font-weight: 500; }
.t-role { font-size: 0.78rem; color: var(--ink-mute); }

/* ============ CTA ============ */
.cta {
  padding: 140px 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 24px auto 32px;
}
.cta h2 .italic { font-style: italic; color: var(--ink-mute); }
.cta-actions { display: inline-flex; gap: 12px; }

/* ============ FOOTER ============ */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--line-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 80px;
}
.footer-brand { padding-right: 32px; }
.footer-tag {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-mute);
  max-width: 30ch;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a, .footer-col li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--ink-mute);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.footer-base-links { display: flex; gap: 24px; }

/* ============ HUGE WORDMARK ============ */
.wordmark { padding: 60px 0 0; text-align: center; overflow: hidden; user-select: none; }
.wordmark-text {
  font-family: var(--font-serif);
  font-size: clamp(80px, 26vw, 420px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  padding: 40px 0 0;
  text-align: center;
}
.wordmark-text .italic { font-style: italic; color: var(--ink-mute); }
.wordmark-tag {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.2, 0.6, 0.2, 1), transform 1s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

/* ============ TWEAKS PANEL ============ */
.twk-panel {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 2147483646;
  width: 280px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 0.5px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 40px rgba(0,0,0,.18);
  font: 11.5px/1.4 var(--font-sans);
  overflow: hidden;
}
.twk-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 10px 14px;
  user-select: none;
}
.twk-hd b { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.twk-x {
  appearance: none;
  border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  width: 22px; height: 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}
.twk-x:hover { background: var(--tag-bg); color: var(--ink); }
.twk-body {
  padding: 2px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  min-height: 0;
}
.twk-row { display: flex; flex-direction: column; gap: 5px; }
.twk-row-h { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.twk-lbl {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.twk-lbl > span:first-child { font-weight: 500; }
.twk-sect {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  padding: 10px 0 0;
}
.twk-sect:first-child { padding-top: 0; }
.twk-field {
  appearance: none;
  width: 100%;
  height: 26px;
  padding: 0 8px;
  border: 0.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--bg) 60%, white);
  color: inherit;
  font: inherit;
  outline: none;
}
.twk-field:focus {
  border-color: color-mix(in srgb, var(--ink) 35%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, white);
}
select.twk-field {
  padding-right: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='rgba(0,0,0,.5)' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.twk-seg {
  position: relative;
  display: flex;
  padding: 2px;
  border-radius: 8px;
  background: var(--tag-bg);
  user-select: none;
}
.twk-seg button {
  appearance: none;
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  min-height: 22px;
  border-radius: 6px;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.2s;
}
.twk-seg button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--bg) 90%, white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  color: var(--ink);
}
.twk-toggle {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ink) 18%, transparent);
  border: 0;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}
.twk-toggle::after {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  transition: transform 0.18s;
}
.twk-toggle[aria-pressed="true"] { background: var(--accent); }
.twk-toggle[aria-pressed="true"]::after { transform: translateX(12px); }

.twk-fab {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 2147483645;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0.5px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  display: none;
  align-items: center;
  justify-content: center;
}
.twk-fab.visible { display: flex; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { padding: 130px 0 60px; }
  .hero-grid { gap: 40px; }
  .nav-links { display: none; }
  .section { padding: 80px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .approach { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { border-bottom: 1px solid var(--line-soft); }
  .cases { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .report { grid-template-columns: 1fr; }
  .report-side { display: none; }
  .report-kpis { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(2) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .nav-cta .btn-text { display: none; }
}
