/* ============================================================
   DataVista BI — Design System
   Premium executive consulting × data product
   ============================================================ */

:root {
  /* Color tokens */
  --green: #22C55E;
  --green-bright: #34d572;
  --green-deep: #16a34a;
  --green-soft: rgba(34, 197, 94, 0.12);
  --charcoal: #1F2937;
  --ink: #111827;
  --ink-900: #0b1220;
  --white: #FFFFFF;
  --slate: #64748B;
  --slate-light: #94a3b8;
  --light: #F8FAFC;
  --light-2: #F1F5F9;
  --hairline: #E2E8F0;
  --hairline-dark: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
  --shadow-md: 0 10px 30px -12px rgba(16, 24, 40, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 40, 0.35);
  --shadow-green: 0 18px 40px -16px rgba(34, 197, 94, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { color: var(--slate); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--green);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--green-bright); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark p { color: var(--slate-light); }
.section.tint { background: var(--light); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin: 18px 0 16px; }
.lead { font-size: 1.15rem; color: var(--slate); }
.section.dark .lead { color: var(--slate-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.97rem;
  padding: 15px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--ink); box-shadow: var(--shadow-green); }
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--charcoal); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--white); border-color: var(--hairline-dark); }
.btn-ghost.on-dark:hover { border-color: var(--green); color: var(--green-bright); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 13px; padding: 10px 12px 10px 4px; }
.brand .brand-logo { height: 50px; width: auto; display: block; }
.site-footer .brand .brand-logo { height: 46px; }
@media (max-width: 760px) { .brand .brand-logo { height: 40px; } }
.brand .mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
  display: grid; place-items: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-green);
}
.brand .mark::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.5); }
.brand .mark svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark { font-family: var(--font-body); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--ink); }
.brand .wordmark .v { color: var(--green-deep); }
.brand .wordmark em { font-style: normal; font-weight: 800; color: var(--green-deep); margin-left: 5px; font-size: 0.92em; }
.brand .brand-tag { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--slate); margin-top: 5px; }
.brand.on-dark .wordmark { color: #fff; }
.brand.on-dark .wordmark .v, .brand.on-dark .wordmark em { color: var(--green-bright); }
.brand.on-dark .brand-tag { color: var(--slate-light); }
/* Ample top-left breathing room for the logo */
.site-header .container { padding-left: 40px; }
@media (max-width: 760px) { .site-header .container { padding-left: 20px; } .nav { height: 74px; } .brand .brand-tag { display: none; } .brand .wordmark { font-size: 1.2rem; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a {
  font-size: 0.95rem; font-weight: 600; color: var(--charcoal);
  padding: 9px 14px; border-radius: 8px; transition: all 0.2s; position: relative;
}
.nav-links > li > a:hover { color: var(--green-deep); background: var(--green-soft); }
.nav-links a.active { color: var(--green-deep); }
.nav-cta { margin-left: 10px; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "▾"; font-size: 0.7em; margin-left: 5px; opacity: 0.6; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--hairline); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 10px; width: 320px;
  opacity: 0; visibility: hidden; transition: all 0.25s var(--ease);
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; flex-direction: column; padding: 11px 13px; border-radius: 9px; transition: background 0.2s; }
.dropdown a:hover { background: var(--light); }
.dropdown a strong { font-size: 0.92rem; color: var(--ink); font-weight: 700; }
.dropdown a span { font-size: 0.78rem; color: var(--slate); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: all 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; top: -25%; right: -10%; width: 60%; height: 130%;
  background: radial-gradient(circle, rgba(34,197,94,0.22), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 .accent { color: var(--green-bright); font-style: italic; }
.hero .lead { color: var(--slate-light); max-width: 56ch; margin: 26px 0 36px; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 46px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--slate-light); font-size: 0.86rem; font-family: var(--font-mono); letter-spacing: 0.04em; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* KPI band */
.kpi-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; position: relative; z-index: 2; }
.kpi {
  border: 1px solid var(--hairline-dark); border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.kpi .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; color: var(--green-bright); line-height: 1; }
.kpi .label { font-size: 0.84rem; color: var(--slate-light); margin-top: 8px; }

/* ---------- Service grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid #000; border-radius: var(--radius);
  padding: 30px; transition: all 0.35s var(--ease); position: relative; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 8px 18px rgba(0,0,0,0.16);
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px); border: 2px solid #84cc16;
  box-shadow: 0 6px 12px rgba(0,0,0,0.28), 0 20px 40px rgba(0,0,0,0.34);
}
.card:hover::after { transform: scaleX(1); }
.card .ico {
  width: 52px; height: 52px; border-radius: 13px; background: var(--green-soft);
  display: grid; place-items: center; margin-bottom: 20px; color: var(--green-deep);
}
.card .ico svg { width: 26px; height: 26px; }
/* Portfolio thumbnail in place of icon — 2x icon size, centered, black border */
.card .ico.ico-thumb {
  width: 166px; height: 104px; border-radius: 12px; background: var(--ink);
  border: 1px solid #000; overflow: hidden; padding: 0; margin: 0 auto 20px;
}
.card .ico.ico-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Service detail page — 2x2 portfolio showcase */
.svc-portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 900px; margin: 40px auto 0; }
.svc-shot {
  display: block; border: 1px solid #000; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); transition: all 0.35s var(--ease);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 8px 18px rgba(0,0,0,0.16);
}
.svc-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.4s var(--ease); }
.svc-shot:hover {
  transform: translateY(-6px); border: 2px solid #84cc16;
  box-shadow: 0 6px 12px rgba(0,0,0,0.28), 0 20px 40px rgba(0,0,0,0.34);
}
.svc-shot:hover img { transform: scale(1.04); }
@media (max-width: 640px) { .svc-portfolio { grid-template-columns: 1fr; } }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { font-size: 0.97rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--green-deep); font-weight: 700; font-size: 0.9rem; }
.card .more .arrow { transition: transform 0.3s var(--ease); }
.card:hover .more .arrow { transform: translateX(4px); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { border: 1px solid var(--hairline-dark); border-radius: var(--radius); padding: 26px; background: rgba(255,255,255,0.03); }
.pillar .step { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-bright); letter-spacing: 0.1em; }
.pillar h3 { color: var(--white); margin: 12px 0 8px; font-size: 1.3rem; }
.pillar p { color: var(--slate-light); font-size: 0.95rem; }

/* Benefit / feature list */
.feature-list { display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--green-soft);
  color: var(--green-deep); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; margin-top: 2px;
}
.feature-list strong { display: block; color: var(--ink); font-size: 1.02rem; }
.feature-list span { color: var(--slate); font-size: 0.95rem; }
.section.dark .feature-list strong { color: var(--white); }
.section.dark .feature-list span { color: var(--slate-light); }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

/* Mock dashboard panel */
.panel {
  background: linear-gradient(180deg, #fff, #f8fafc); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; position: relative; overflow: hidden;
}
.panel .panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel .panel-top .title { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--slate); text-transform: uppercase; }
.panel .dots { display: flex; gap: 5px; }
.panel .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); display: block; }
.panel .dots i:first-child { background: var(--green); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-kpi { background: var(--white); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px;
  font: inherit; text-align: left; width: 100%; cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.mini-kpi:hover { border-color: var(--green); transform: translateY(-2px); }
.mini-kpi:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.mini-kpi.active { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green), 0 6px 14px rgba(22,163,74,0.16); }
.mini-kpi.active .k { color: var(--green-deep); }
.mini-kpi .v { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.mini-kpi .k { font-size: 0.68rem; color: var(--slate); font-family: var(--font-mono); letter-spacing: 0.05em; }
.mini-kpi .up { color: var(--green-deep); }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(180deg, var(--green), var(--green-deep)); border-radius: 6px 6px 0 0; opacity: 0.92; transition: height 0.8s var(--ease); }
.bars .bar.muted { background: var(--hairline); }
/* Per-metric bar colors */
.bars.set-revenue .bar:not(.muted) { background: linear-gradient(180deg, #22c55e, #15803d); }
.bars.set-margin  .bar:not(.muted) { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.bars.set-plan    .bar:not(.muted) { background: linear-gradient(180deg, #fb923c, #ea580c); }
.bars-caption { margin-top: 14px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }

/* ---------- Portfolio ---------- */
.case {
  border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden;
  background: var(--white); transition: all 0.35s var(--ease);
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-visual { height: 190px; position: relative; overflow: hidden; display: grid; place-items: center; }
.case-visual.v1 { background: linear-gradient(135deg, #1F2937, #0b1220); }
.case-visual.v2 { background: linear-gradient(135deg, #16a34a, #064e3b); }
.case-visual.v3 { background: linear-gradient(135deg, #0f766e, #111827); }
.case-visual.v4 { background: linear-gradient(135deg, #334155, #0b1220); }
.case-visual.v5 { background: linear-gradient(135deg, #15803d, #052e16); }
.case-visual.v6 { background: linear-gradient(135deg, #1e293b, #0b1220); }
.case-visual.v7 { background: linear-gradient(135deg, #0d9488, #0b1220); }
.case-visual.v8 { background: linear-gradient(135deg, #166534, #0b1220); }
.case-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px); background-size: 18px 18px;
}
.case-visual .glyph { position: relative; color: rgba(255,255,255,0.9); }
.case-visual .glyph svg { width: 64px; height: 64px; }
/* Dashboard-style card graphic */
.case-visual .dash { position: relative; z-index: 1; width: 74%; height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35)); transition: transform 0.4s var(--ease); }
.case:hover .case-visual .dash { transform: translateY(-4px) scale(1.03); }
/* Real image card visuals */
.case-visual.has-img { background: var(--ink); }
.case-visual.has-img::before { display: none; }
.case-visual.has-img img {
  position: relative; width: 60%; aspect-ratio: 16 / 10; height: auto;
  object-fit: cover; border-radius: 14px; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.4); transition: transform 0.4s var(--ease);
}
.case:hover .case-visual.has-img img { transform: translateY(-4px) scale(1.04); }
.case-body { padding: 26px; }
.case-body .tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--green-deep); text-transform: uppercase; }
.case-body h3 { margin: 10px 0 8px; }
.case-metrics { display: flex; gap: 22px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.case-metrics div .m { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--green-deep); }
.case-metrics div .l { font-size: 0.74rem; color: var(--slate); font-family: var(--font-mono); }

/* Case study detail */
.case-study { border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); margin-bottom: 28px; background: var(--white); box-shadow: var(--shadow-sm); }
.case-study .cs-head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.case-study .cs-badge { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.cs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.cs-block h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 8px; }
.cs-block p { font-size: 0.98rem; }
.cs-results { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 30px; background: var(--ink); border-radius: var(--radius); padding: 26px 30px; }
.cs-results .r .m { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--green-bright); }
.cs-results .r .l { font-size: 0.8rem; color: var(--slate-light); font-family: var(--font-mono); }

/* Dashboard preview gallery (expandable thumbnails) */
.cs-gallery { grid-column: 1 / -1; margin-top: 6px; }
.cs-gallery h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-deep); margin-bottom: 6px; }
.cs-gallery .hint { font-size: 0.86rem; color: var(--slate); margin-bottom: 16px; }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.thumb {
  position: relative; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden;
  cursor: pointer; padding: 0; background: var(--ink); aspect-ratio: 16 / 10; display: block; width: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.thumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 14px 14px; }
.thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green); }
.thumb .thumb-inner { position: relative; z-index: 1; width: 100%; height: 100%; display: grid; place-items: center; }
.thumb .thumb-inner svg { width: 68%; height: auto; }
/* Real image thumbnails */
.thumb.has-img { background: var(--ink); border: 1px solid #000; }
.thumb.has-img::after { display: none; }
.thumb.has-img .thumb-inner { display: block; }
.thumb.has-img .thumb-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.has-img .thumb-cap { background: rgba(11,18,32,0.72); padding: 3px 8px; border-radius: 6px; backdrop-filter: blur(2px); }
.thumb .thumb-cap { position: absolute; left: 11px; bottom: 9px; z-index: 2; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--slate-light); }
.thumb .expand-ico { position: absolute; top: 9px; right: 9px; z-index: 2; width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.12); display: grid; place-items: center; color: #fff; opacity: 0; transition: opacity 0.25s; }
.thumb:hover .expand-ico { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 24px; background: rgba(11, 18, 32, 0.82); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; animation: lbfade 0.25s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-panel { position: relative; width: 100%; max-width: 920px; background: var(--ink); border: 1px solid var(--hairline-dark); border-radius: 20px; padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.lightbox-panel .lb-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-bright); }
.lightbox-panel h3 { color: #fff; margin: 8px 0 18px; }
.lightbox-screen { aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid var(--hairline-dark); background: linear-gradient(135deg, #1F2937, #0b1220); display: grid; place-items: center; position: relative; overflow: hidden; }
.lightbox-screen::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 20px 20px; }
.lightbox-screen svg { width: 52%; height: auto; position: relative; z-index: 1; }
.lightbox-screen img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.lightbox-cap { margin-top: 16px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate-light); line-height: 1.6; }
.lightbox-close { position: absolute; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--hairline-dark); background: rgba(255,255,255,0.06); color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; transition: all 0.2s; }
.lightbox-close:hover { background: var(--green); color: var(--ink); border-color: var(--green); }
@media (max-width: 760px) { .thumb-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; color: var(--ink); }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; font-size: 1.2rem; transition: all 0.3s; }
.faq-item.open .pm { background: var(--green); color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 24px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(70px, 9vw, 120px) 0 clamp(54px, 7vw, 90px); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 24px 24px; mask-image: radial-gradient(ellipse 70% 80% at 80% 10%, #000 20%, transparent 70%); }
.page-hero::after { content: ""; position: absolute; bottom: -40%; left: -10%; width: 50%; height: 120%; background: radial-gradient(circle, rgba(34,197,94,0.18), transparent 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 18ch; margin: 16px 0 18px; }
.page-hero .lead { color: var(--slate-light); max-width: 60ch; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-light); letter-spacing: 0.06em; }
.breadcrumb a:hover { color: var(--green-bright); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--green-deep), #0f5132); color: #fff; border-radius: clamp(18px, 3vw, 28px); padding: clamp(40px, 6vw, 70px); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.5; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 18ch; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.5); }
.cta-band .btn-primary:hover { background: var(--ink); color: #fff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); }
.contact-info .ci-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.contact-info .ci-item .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.contact-info .ci-item .k { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.contact-info .ci-item .v { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.form { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--hairline); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.97rem; color: var(--ink); background: var(--light); transition: all 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px var(--green-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 14px; }
.form-success { display: none; background: var(--green-soft); border: 1px solid var(--green); color: var(--green-deep); padding: 14px 18px; border-radius: 10px; font-weight: 700; margin-bottom: 18px; }
.form-success.show { display: block; }

/* ---------- About ---------- */
.value-card { border: 1px solid #000; border-radius: var(--radius); padding: 28px; background: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.12), 0 8px 18px rgba(0,0,0,0.16);
  transition: border-color 0.35s var(--ease), border-width 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.value-card:hover { transform: translateY(-6px); border: 2px solid #84cc16;
  box-shadow: 0 6px 12px rgba(0,0,0,0.28), 0 20px 40px rgba(0,0,0,0.34); }
.value-card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; margin: 0 auto 16px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 0.8rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--white); color: var(--charcoal); }
.chip.dark { background: rgba(255,255,255,0.04); border-color: var(--hairline-dark); color: var(--slate-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--slate-light); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--hairline-dark); }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 0.93rem; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--green-bright); }
.footer-blurb { font-size: 0.93rem; max-width: 34ch; }
.footer-contact li { font-size: 0.93rem; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.84rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom .tag { font-family: var(--font-mono); letter-spacing: 0.05em; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .kpi-band { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .cs-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 14px 20px 24px; border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > li > a { padding: 14px 8px; border-radius: 8px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; width: auto; padding: 0 0 8px 14px; background: transparent; }
  .has-dropdown > a::after { display: none; }
  .nav-cta { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .case-metrics { gap: 16px; }
}
