/* UniBess landing, LIGHT premium theme, silver + electric blue */
:root {
  /* Cool near-white background (navy ink + single electric-blue accent) */
  --bg: #F4F6F8;
  --bg-2: #E9EEF3;
  --surface: #FFFFFF;
  --surface-2: #EDF1F6;
  --line: rgba(15, 30, 60, 0.09);
  --line-2: rgba(15, 30, 60, 0.16);

  /* Ink (text) */
  --ink: #0A1628;
  --ink-2: #4A5A73;
  --ink-3: #8694A8;

  /* Brand, silver gradient + electric blue (from logo) */
  --silver-1: #C9D2DD;
  --silver-2: #8C97A8;
  --silver-3: #5A6577;
  --blue: #1E9DFF;        /* primary electric blue */
  --blue-2: #0B7FE0;      /* deeper */
  --blue-3: #5BBBFF;      /* lighter */
  --blue-glow: rgba(30, 157, 255, 0.30);
  --teal: #1E9DFF;        /* legacy alias used by some inline SVGs */

  /* Warm accent (human touch, used sparingly) */
  --warm: #F4A93C;
  --warm-2: #E08A1E;
  --warm-glow: rgba(244, 169, 60, 0.38);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
}

[data-theme="dark"] {
  --bg: #0A1322;
  --bg-2: #0E1A2E;
  --surface: #122340;
  --surface-2: #15294D;
  --line: rgba(180, 200, 230, 0.09);
  --line-2: rgba(180, 200, 230, 0.18);
  --ink: #E6EEF8;
  --ink-2: #A8B8CC;
  --ink-3: #6B7A91;
}

[data-theme="warm"] {
  --bg: #FAF7F2;
  --bg-2: #F2EDE3;
  --surface: #FFFFFF;
  --surface-2: #F7F2EA;
  --line: rgba(50, 30, 10, 0.08);
  --line-2: rgba(50, 30, 10, 0.16);
  --ink: #1A1410;
  --ink-2: #574E42;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }

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

/* ---------- Layout primitives ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { position: relative; padding-block: clamp(72px, 9vw, 140px); }
.section-tight { padding-block: clamp(56px, 7vw, 100px); }
.section.tinted { background: var(--bg-2); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 12px var(--blue-glow);
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(46px, 7.2vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.h-display em { font-style: normal; color: var(--blue); }

.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.h-section em { font-style: normal; color: var(--blue); }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- Header / nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(247, 248, 250, 0.78);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, box-shadow .2s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad);
}
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.015em; }
.nav-logo img { object-fit: contain; }
.nav-links { display: flex; gap: 22px; font-size: 13.5px; color: var(--ink-2); }
.nav-links a { transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.on { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px -6px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -8px var(--blue-glow), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn-wa {
  background: #25D366; color: #FFFFFF;
  box-shadow: 0 6px 20px -6px rgba(37,211,102,0.4);
}
.btn-wa:hover { background: #1fbc5b; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 132px;
  padding-bottom: 60px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF3F9 100%);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 80% 20%, rgba(30,157,255,0.10), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(91,187,255,0.08), transparent 60%);
}
.hero-grid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(15,30,60,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,30,60,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.hero-content { position: relative; z-index: 3; width: 100%; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-eyebrow-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 28px;
}
.location-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(15,30,60,0.04);
}
.location-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--blue-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px;
}

.hero-meta {
  margin-top: 52px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-meta-item .num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4vw, 58px); line-height: 1; color: var(--ink); letter-spacing: -0.02em;
}
.hero-meta-item .num em {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-meta-item .label { font-size: 12px; color: var(--ink-3); margin-top: 8px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Hero visual side */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}

/* Trust marquee */
.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
  background: var(--surface);
  overflow: hidden;
}
.trust-inner {
  display: flex; align-items: center; gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}
.trust-item {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.trust-item::after {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-3); margin-left: 56px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 56px;
  box-shadow: 0 20px 50px -20px rgba(15,30,60,0.08);
}
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .services-grid, .services-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid, .services-grid--3 { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  padding: 0;
  position: relative;
  transition: background .25s ease;
  cursor: default;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.service-card:hover { background: var(--surface-2); }
/* image-led card header */
.service-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.service-media::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--card-img);
  background-size: cover; background-position: center;
  transform: scale(1.001);
  transition: transform .55s cubic-bezier(.2,.6,.2,1);
}
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.34) 0%, rgba(10,22,40,0) 46%);
}
.service-card:hover .service-media::before { transform: scale(1.06); }
.service-card .num {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--font-mono); font-size: 11px; color: #fff; letter-spacing: 0.14em;
  background: rgba(10,22,40,0.5); padding: 5px 10px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.service-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.service-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.12;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.service-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); flex-grow: 1; }
.service-card .arrow {
  margin-top: 22px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.service-card:hover .arrow {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  border-color: transparent;
  transform: rotate(-45deg);
}
.service-card:hover .arrow svg path { stroke: #FFFFFF; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  margin-top: 60px;
}
@media (max-width: 960px) { .why-grid { grid-template-columns: 1fr; gap: 40px; } }

.why-pillars { display: flex; flex-direction: column; gap: 0; }
.why-pillar {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  align-items: start;
}
.why-pillar:last-child { border-bottom: 1px solid var(--line); }
.why-pillar .idx { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); padding-top: 6px; }
.why-pillar h4 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 1.15; margin-bottom: 8px; letter-spacing: -0.01em; }
.why-pillar h4 em {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.why-pillar p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* Performance guarantee callout */
.guarantee {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF6EC 100%);
  overflow: hidden;
  box-shadow: 0 20px 50px -22px rgba(15,30,60,0.10);
}
.guarantee::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(244,169,60,0.5), transparent 58%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.guarantee .seal {
  width: 56px; height: 56px;
  margin-bottom: 22px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 26px -10px var(--blue-glow);
}
.guarantee h3 { font-family: var(--font-display); font-size: 36px; line-height: 1; margin-bottom: 14px; letter-spacing: -0.015em; }
.guarantee h3 em {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.guarantee p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 24px; }
.guarantee-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.guarantee-stats .num { font-family: var(--font-display); font-size: 32px; line-height: 1; color: var(--blue-2); }
.guarantee-stats .label { font-size: 11px; color: var(--ink-3); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== Why section — guarantee-led redesign ===== */
.guarantee-feature {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(26px, 4vw, 52px);
  margin-top: 44px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #FFFFFF 0%, #FBF6EC 100%);
  box-shadow: 0 26px 64px -30px rgba(15, 30, 60, 0.18);
  position: relative; overflow: hidden;
}
.guarantee-feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-xl); padding: 1px;
  background: linear-gradient(135deg, rgba(244, 169, 60, 0.55), transparent 55%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.gf-seal { width: 120px; height: 120px; flex: none; }
.gf-seal svg { width: 100%; height: 100%; display: block; }
.gf-seal text { font-family: var(--font-sans); font-size: 8px; font-weight: 600; letter-spacing: 2.1px; fill: var(--blue-2); }
.gf-main { min-width: 0; }
.gf-main h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--ink); }
.gf-main h3 em { font-style: normal; color: var(--blue-2); }
.gf-main > p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.gf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.gf-stats .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.8vw, 38px); line-height: 1; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gf-stats .num i { font-style: normal; font-size: 0.46em; color: var(--ink-3); margin-left: 3px; }
.gf-stats .label { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 860px) {
  .guarantee-feature { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .gf-main > p { margin-inline: auto; }
  .gf-stats { width: 100%; }
}

/* supporting pillars row */
.why-pillars-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; margin-top: 22px;
}
@media (max-width: 820px) { .why-pillars-row { grid-template-columns: 1fr; } }
.why-pillar-card { background: var(--surface); padding: 28px 26px; }
.why-pillar-card .idx { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--blue-2); margin-bottom: 14px; }
.why-pillar-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--ink); }
.why-pillar-card h4 em { font-style: normal; color: var(--blue-2); }
.why-pillar-card p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Process timeline ---------- */
.process {
  position: relative;
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
}
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.process-step {
  padding: 28px 24px 28px 24px;
  border-left: 1px solid var(--line);
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute; left: -5px; top: 32px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--blue);
}
.process-step .step-num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }
.process-step h4 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 8px; line-height: 1.15; letter-spacing: -0.01em; }
.process-step p { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Projects ---------- */
.projects-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 360px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 20px -10px rgba(15,30,60,0.08);
}
.project-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 20px 40px -16px rgba(15,30,60,0.15); }
.project-card.featured { grid-column: span 7; min-height: 460px; }
.project-card.compact { grid-column: span 5; }
.project-card .thumb {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #E8F1FB 0%, #D6E4F2 100%);
  overflow: hidden;
}
@media (max-width: 980px) {
  .project-card.featured, .project-card.compact { grid-column: span 12; }
}
.project-card .meta {
  padding: 24px 26px 26px;
  border-top: 1px solid var(--line);
}
.project-card .tag { font-family: var(--font-mono); font-size: 11px; color: var(--blue-2); letter-spacing: 0.1em; }
.project-card h4 { font-family: var(--font-display); font-size: 26px; margin-top: 10px; line-height: 1.15; letter-spacing: -0.01em; }
.project-card .specs { display: flex; gap: 22px; margin-top: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.project-card .specs span strong { color: var(--ink); font-weight: 500; }

/* ---------- Stats band ---------- */
/* contained light stat cards on the warm paper (not a full-bleed dark band) */
.stats-band {
  max-width: var(--maxw);
  margin: clamp(56px, 7vw, 100px) auto;
  padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.stat-cell {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
/* short warm accent rule above each stat */
.stat-cell::before {
  content: ""; width: 28px; height: 3px; border-radius: 2px;
  background: var(--blue); margin-bottom: 14px;
}
.stat-cell .big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.03em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.stat-cell .big em { font-style: normal; color: var(--blue-2); }
.stat-cell .label { font-size: 15px; font-weight: 600; color: var(--ink); }
.stat-cell .sub { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.45; }

/* stats merged into the photo band (light text on the dark photo) */
.stats-band--inline { max-width: none; margin: clamp(34px, 4vw, 56px) 0 0; padding-inline: 0; }
.photo-band .stat-cell { border-color: rgba(255, 255, 255, 0.22); }
.photo-band .stat-cell .big { color: #fff; }
.photo-band .stat-cell .big em { color: var(--blue-3); }
.photo-band .stat-cell .label { color: #fff; }
.photo-band .stat-cell .sub { color: rgba(228, 238, 250, 0.62); }

/* ---------- Monitoring preview ---------- */
.monitor-shell {
  margin-top: 56px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(15,30,60,0.15);
}
.monitor-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.monitor-chrome .dots { display: flex; gap: 6px; }
.monitor-chrome .dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(15,30,60,0.12); }
.monitor-chrome .label { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.06em; }
.monitor-chrome .live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--blue-2);
}
.monitor-chrome .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: pulse 1.6s infinite; }

.monitor-body {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  background: var(--line);
}
@media (max-width: 900px) { .monitor-body { grid-template-columns: 1fr; } }
.monitor-tile {
  background: var(--surface);
  padding: 24px 26px;
  min-height: 200px;
  display: flex; flex-direction: column;
}
.monitor-tile .t-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.monitor-tile .t-big { font-family: var(--font-display); font-size: 44px; line-height: 1; margin-top: 12px; letter-spacing: -0.015em; color: var(--ink); }
.monitor-tile .t-big em { color: var(--blue-2); }
.monitor-tile .t-big .unit { font-family: var(--font-mono); font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.monitor-tile .t-delta { font-family: var(--font-mono); font-size: 12px; color: var(--blue-2); margin-top: 6px; }
.monitor-tile .t-delta.neg { color: #DC2626; }
.monitor-tile .spark { margin-top: auto; height: 70px; width: 100%; }

/* ---------- Contact ---------- */
.contact-grid {
  margin-top: 56px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 36px;
  box-shadow: 0 20px 50px -20px rgba(15,30,60,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.full { grid-template-columns: 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 14.5px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(30,157,255,0.15);
}
.field textarea { min-height: 110px; resize: vertical; font-family: inherit; }
.form-foot { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.form-foot .small { font-size: 12px; color: var(--ink-3); }

.contact-aside .channel {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 18px; align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.contact-aside .channel:last-child { border-bottom: 1px solid var(--line); }
.contact-aside .channel .ic {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(30,157,255,0.08), rgba(30,157,255,0));
}
.contact-aside .channel h5 { font-size: 13px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 6px; }
.contact-aside .channel p { font-family: var(--font-display); font-size: 22px; line-height: 1.2; }
.contact-aside .channel a { color: var(--ink); transition: color .15s; }
.contact-aside .channel a:hover { color: var(--blue-2); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 64px 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } .footer-grid > div:nth-child(5) { grid-column: span 2; } }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-grid > div:nth-child(5) { grid-column: auto; } }
.footer h6 { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); flex-wrap: wrap; gap: 12px;
}
.footer-brand p { font-size: 14px; color: var(--ink-2); line-height: 1.6; max-width: 38ch; margin-top: 18px; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 24px; bottom: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.12);
  transition: transform .15s ease;
  z-index: 40;
  cursor: pointer;
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid rgba(37, 211, 102, 0.4);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .55s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Mobile polish (≤640) ---------- */
@media (max-width: 640px) {
  /* Hero stats: 3-col is too tight; let it wrap */
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 100%; }
  .hero-meta-item .num { font-size: 28px; }

  /* Hero CTA: full-width buttons stack cleanly */
  .hero-cta-row { gap: 10px; margin-top: 28px; }
  .hero-cta-row > * { flex: 1 1 100%; justify-content: center; }

  /* Trust row wraps & scales */
  .trust-row { gap: 14px 22px; }
  .trust-item { font-size: 11.5px; gap: 8px; }

  /* BC container badge: keep clear of edges on small screens */
  .bc-badge { right: 10px; bottom: 10px; padding: 12px 14px !important; }
  .bc-badge-num { font-size: 24px !important; }

  /* Nav: tighter padding */
  .nav-inner { padding: 10px 18px; }
  .nav-logo { gap: 8px; font-size: 15px; }
  .btn { padding: 10px 18px; font-size: 13.5px; }

  /* Headline sizes don't get crushed */
  .h-display { font-size: clamp(34px, 9vw, 48px); line-height: 1.05; }
  .h-section { font-size: clamp(26px, 7.5vw, 36px); }

  /* Why-pillar idx column gets compressed */
  .why-pillar { grid-template-columns: 50px 1fr !important; gap: 16px !important; padding-block: 22px !important; }
  .why-pillar h4 { font-size: 22px !important; }

  /* Service cards: tighter padding */
  .service-body { padding: 20px 20px 22px !important; }
  .service-card h3 { font-size: 21px !important; }

  /* Process step number circle aligns left on mobile */
  .process-step { padding: 24px !important; }

  /* Project cards */
  .project-card { padding: 22px !important; }
  .project-card h4 { font-size: 22px !important; }
  .project-card .specs { gap: 14px; font-size: 12px; }

  /* Stats band: fit smaller */
  .stat-cell { padding: 22px 18px !important; }
  .stat-cell .big { font-size: 34px !important; }

  /* Monitoring tiles tighter */
  .monitor-tile { padding: 18px !important; }
  .monitor-tile .t-big { font-size: 34px !important; }

  /* Contact form & guarantee */
  .form-card { padding: 24px !important; }
  .guarantee { padding: 32px 22px !important; }
  .guarantee h3 { font-size: 26px !important; }
  .guarantee-stats { gap: 12px; }
  .guarantee-stats .num { font-size: 24px !important; }

  /* Footer grid: single column on tiny screens for breathing room */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* WhatsApp floating button: nudge so it doesn't sit over CTAs */
  .wa-float { right: 16px !important; bottom: 16px !important; width: 52px !important; height: 52px !important; }

  /* Eyebrow row wrap */
  .hero-eyebrow-row { flex-wrap: wrap; gap: 10px; }

  /* Section padding tighter on mobile */
  .section { padding-block: clamp(48px, 12vw, 72px) !important; }
  .section-tight { padding-block: clamp(40px, 10vw, 60px) !important; }
}

/* Extra-tight phones (≤380) */
@media (max-width: 380px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .h-display { font-size: 30px; }
  .h-section { font-size: 24px; }
}

/* ============================================================
   BESS Container hero motion (ported from hero.jsx inline <style>)
   ============================================================ */
.bc-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 460px;
}
.bc-stage {
  position: absolute; inset: 0;
  padding: 0;
  overflow: visible;
}

/* Mobile: make the hero BESS a 4:3 box matching the photo so it isn't
   side-cropped and the component hotspots stay on the parts they point at.
   (Placed after the base .bc-wrap rule so it wins on source order.) */
@media (max-width: 640px) {
  .hero-visual { aspect-ratio: 4 / 3; }
  .bc-wrap { min-height: 0; height: 100%; }
}

.bc-shadow {
  position: absolute;
  left: 12%;
  right: 8%;
  bottom: 6%;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15,30,60,0.18), transparent 70%);
  filter: blur(8px);
  z-index: 0;
  transition: filter 700ms ease, opacity 700ms ease, transform 700ms ease;
}
.bc-wrap:hover .bc-shadow {
  filter: blur(14px);
  opacity: 0.85;
  transform: scaleX(1.06) translateY(6px);
}
.bc-container {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(15,30,60,0.12));
  animation: bc-float 6s ease-in-out infinite;
}
@keyframes bc-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.bc-energy {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.bc-flow-1 { animation: bc-flow 2.4s linear infinite; }
.bc-flow-2 { animation: bc-flow 2.4s linear infinite; animation-delay: 1.2s; }
.bc-wrap:hover .bc-flow-1,
.bc-wrap:hover .bc-flow-2 { animation-duration: 1.1s; }
@keyframes bc-flow {
  from { stroke-dashoffset: 240; }
  to { stroke-dashoffset: 0; }
}

.bc-source {
  position: absolute;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.bc-solar { top: 6%; right: 4%; }
.bc-grid  { bottom: 12%; left: 2%; }

.bc-rack-fill {
  transform-origin: left center;
  animation: bc-rack 5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(30,157,255,0.6));
}
.bc-wrap:hover .bc-rack-fill {
  animation-duration: 1s;
  filter: drop-shadow(0 0 6px rgba(30,157,255,0.9));
}
@keyframes bc-rack {
  0%   { transform: scaleX(0.1); opacity: 0.4; }
  50%  { transform: scaleX(1);   opacity: 1; }
  100% { transform: scaleX(0.1); opacity: 0.4; }
}

.bc-led, .bc-led-big {
  animation: bc-blink 1.4s ease-in-out infinite;
  transition: filter 400ms ease;
}
.bc-wrap:hover .bc-led,
.bc-wrap:hover .bc-led-big {
  animation-duration: 0.7s;
  filter: drop-shadow(0 0 4px rgba(91,187,255,0.9));
}
@keyframes bc-blink {
  0%, 70%, 100% { opacity: 1; }
  75%, 95%      { opacity: 0.3; }
}

.bc-fan { animation: bc-spin 0.8s linear infinite; }
@keyframes bc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.bc-telemetry {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 170px;
  z-index: 4;
  box-shadow: 0 12px 30px -10px rgba(15,30,60,0.18);
}
.bc-tel-head {
  font-size: 9.5px;
  color: var(--blue-2);
  letter-spacing: 0.14em;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
}
.bc-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: bc-blink-fast 1.2s infinite; }
@keyframes bc-blink-fast { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.bc-tel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 3px 0;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.bc-tel-row b      { color: var(--ink); font-weight: 500; }
.bc-tel-row b i    { font-style: normal; color: var(--blue-2); margin-right: 2px; }
.bc-tel-row b.ok   { color: var(--blue-2); font-size: 10.5px; }

.bc-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  z-index: 4;
  box-shadow: 0 14px 30px -8px rgba(30,157,255,0.20);
  transition: transform 600ms cubic-bezier(.22,.9,.32,1), box-shadow 600ms ease;
}
.bc-wrap:hover .bc-badge {
  transform: translateY(-6px) translateX(-4px);
  box-shadow: 0 24px 50px -10px rgba(30,157,255,0.40);
}
.bc-badge::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--blue), var(--blue-2));
  border-radius: 12px 0 0 12px;
}
.bc-badge-num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.bc-badge-num span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-2);
  margin-left: 4px;
}
.bc-badge-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  margin-top: 4px;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 300;
  color: var(--blue-2);
  line-height: 1;
  transition: transform .25s ease, color .15s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(0); }
.faq-item summary:hover { color: var(--blue-2); }
.faq-item p {
  padding: 0 0 22px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 78ch;
}

/* ---------- Primer pages (TNB, financing, cabinet) ---------- */
.tariff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 760px) { .tariff-grid { grid-template-columns: 1fr; } }
.tariff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 30px -16px rgba(15,30,60,0.08);
}
.tariff-card.highlight {
  border-color: rgba(30,157,255,0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%);
}
.tariff-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}
.tariff-table th, .tariff-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.tariff-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.tariff-table td:last-child { text-align: right; }
.tariff-table tr.total td {
  border-bottom: none;
  border-top: 2px solid var(--ink);
  color: var(--blue-2);
  font-family: var(--font-display);
  font-size: 16px;
  padding-top: 16px;
}
.tariff-table .mono, .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.callout-small {
  margin-top: 18px;
  padding: 12px 14px;
  background: rgba(30,157,255,0.07);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  border-left: 3px solid var(--blue);
}

.primer-list {
  list-style: none;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.primer-list li {
  padding-left: 22px;
  position: relative;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}
.primer-list li::before {
  content: "";
  position: absolute; left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* Calculator block */
.calculator {
  margin-top: 24px;
  padding: 28px;
  background: linear-gradient(135deg, #0F1E3C 0%, #1B2D4F 100%);
  border-radius: 18px;
  color: #E6EEF8;
  display: grid;
  gap: 14px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
  align-items: center;
}
@media (max-width: 640px) { .calc-row { grid-template-columns: 1fr; gap: 6px; } }
.calc-row label {
  font-size: 14px;
  color: rgba(230,238,248,0.85);
}
.calc-row input {
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-mono);
  text-align: right;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.calc-row input:focus {
  border-color: var(--blue);
  background: rgba(255,255,255,0.12);
}
.calc-output {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
@media (max-width: 720px) { .calc-output { grid-template-columns: 1fr; } }
.calc-result { padding: 14px 16px; background: rgba(255,255,255,0.04); border-radius: 10px; border: 1px solid rgba(255,255,255,0.10); }
.calc-result.calc-headline { background: rgba(30,157,255,0.15); border-color: rgba(30,157,255,0.45); }
.calc-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(230,238,248,0.65); }
.calc-value { font-family: var(--font-display); font-size: 28px; line-height: 1.1; margin-top: 6px; color: #FFFFFF; font-weight: 600; }
.calc-result.calc-headline .calc-value { color: var(--blue-3); }
.calc-unit { font-family: var(--font-mono); font-size: 13px; color: rgba(230,238,248,0.6); margin-left: 4px; }
.calc-disclaimer { font-size: 12px; line-height: 1.55; color: rgba(230,238,248,0.5); margin-top: 6px; }

/* Cabinet platform spec grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
}
@media (max-width: 880px) { .spec-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-cell {
  background: var(--surface);
  padding: 22px 24px;
}
.spec-cell .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.spec-cell .val { font-family: var(--font-display); font-size: 18px; margin-top: 6px; color: var(--ink); letter-spacing: -0.005em; }
.spec-cell .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

/* Comparison table for financing */
.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 880px) { .finance-grid { grid-template-columns: 1fr; } }
.finance-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.finance-card.lease { border-color: rgba(30,157,255,0.4); background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%); }
.finance-card h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.015em; margin-bottom: 4px; }
.finance-card .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2); margin-bottom: 8px; }
.finance-card ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.finance-card ul li {
  padding-left: 22px; position: relative;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
}
.finance-card ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}
.finance-card .footer-line {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* Case study & partner summary cards */
.summary-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 32px;
}
@media (max-width: 760px) { .summary-band { grid-template-columns: repeat(2,1fr); } }
.summary-cell { background: var(--surface); padding: 26px 24px; }
.summary-cell .big { font-family: var(--font-display); font-size: 30px; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
.summary-cell .big em { font-style: normal; background: linear-gradient(135deg, var(--blue), var(--blue-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.summary-cell .lbl { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.summary-cell .sub { font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* ============================================================
   Premium scroll animation system
   ============================================================ */

html { scroll-behavior: smooth; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(30,157,255,0.50);
  will-change: width;
}

/* Premium easing for existing reveals */
.reveal {
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger > * {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Generic stagger for child grids */
.stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger.in > *:nth-child(1)  { transition-delay: 0.04s; }
.stagger.in > *:nth-child(2)  { transition-delay: 0.11s; }
.stagger.in > *:nth-child(3)  { transition-delay: 0.18s; }
.stagger.in > *:nth-child(4)  { transition-delay: 0.25s; }
.stagger.in > *:nth-child(5)  { transition-delay: 0.32s; }
.stagger.in > *:nth-child(6)  { transition-delay: 0.39s; }
.stagger.in > *:nth-child(7)  { transition-delay: 0.46s; }
.stagger.in > *:nth-child(8)  { transition-delay: 0.53s; }
.stagger.in > *:nth-child(9)  { transition-delay: 0.60s; }
.stagger.in > *:nth-child(10) { transition-delay: 0.67s; }

/* Scale-in reveal variant (used for big visuals / hero illustrations) */
.r-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.r-scale.in { opacity: 1; transform: scale(1); }

/* Parallax helper */
.parallax { will-change: transform; }

/* Counter element style hint */
[data-count] { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress { display: none; }
  .stagger > *, .r-scale { opacity: 1 !important; transform: none !important; }
  .parallax { transform: none !important; }
}

/* ============================================================
   Tightened, premium contact form
   ============================================================ */

.form-fields-tight {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field label .req {
  color: var(--blue-2);
  margin-left: 4px;
  font-weight: 700;
}
.field label .opt {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 10px;
  padding: 3px 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: 1px;
}

.form-fields-tight .field input,
.form-fields-tight .field textarea {
  padding: 15px 16px;
  font-size: 15px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .2s cubic-bezier(0.22, 1, 0.36, 1),
              background .2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow .25s cubic-bezier(0.22, 1, 0.36, 1),
              transform .2s ease;
}
.form-fields-tight .field input:hover,
.form-fields-tight .field textarea:hover {
  border-color: rgba(15,30,60,0.18);
  background: var(--surface);
}
.form-fields-tight .field input:focus,
.form-fields-tight .field textarea:focus {
  border-color: var(--blue);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(30,157,255,0.14);
  outline: none;
}
.form-fields-tight .field textarea { min-height: 130px; }

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
}

.form-foot-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-foot-clean .small {
  font-size: 12.5px;
  color: var(--ink-3);
}

.form-alt {
  margin-top: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.form-alt a {
  color: var(--blue-2);
  font-weight: 500;
  margin-left: 6px;
  transition: color .15s;
}
.form-alt a:hover { color: var(--blue); }
.form-alt .dot { opacity: 0.4; margin: 0 4px; }

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Mobile nav: hamburger + drawer
   ============================================================ */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  margin-left: 10px;
  padding: 0;
  position: relative;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: var(--surface-2); border-color: var(--line-2); }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1),
              opacity .15s cubic-bezier(0.22, 1, 0.36, 1),
              top .25s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
.nav-toggle span {
  top: 50%; margin-left: -9px;
  transform: translateY(-50%);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
  margin-left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav.nav-open .nav-toggle span { background: transparent; }
.nav.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-inner { gap: 6px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(15,30,60,0.12);
    padding: 8px 0;
  }
  .nav.nav-open .nav-links {
    display: flex;
    animation: nav-drop .28s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.nav-open .nav-links a {
    padding: 16px 24px;
    font-size: 16px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
  }
  .nav.nav-open .nav-links a:last-child { border-bottom: none; }
  .nav.nav-open .nav-links a:hover { background: var(--surface-2); color: var(--blue-2); }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .nav-inner { padding: 10px 18px; }
  .nav-inner .btn-primary {
    padding: 9px 14px;
    font-size: 13px;
  }
  .nav-logo span { font-size: 18px !important; }
  .nav-logo img { width: 44px !important; height: 44px !important; }
}

/* ============================================================
   Mobile polish v2
   ============================================================ */
/* Fix: floating WhatsApp mobile rule was targeting wrong class */
@media (max-width: 640px) {
  .fab-whatsapp {
    right: 16px !important;
    bottom: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }
  .fab-whatsapp svg { width: 24px; height: 24px; }
}

/* Hero stats: 3 stats wrap awkwardly in 2 cols. Use a tight 3-col strip on mobile */
@media (max-width: 640px) {
  .hero-meta {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  .hero-meta-item .num { font-size: 22px !important; }
  .hero-meta-item .label { font-size: 10.5px !important; line-height: 1.3; }
}
@media (max-width: 380px) {
  .hero-meta { grid-template-columns: 1fr 1fr 1fr !important; gap: 8px !important; }
  .hero-meta-item .num { font-size: 20px !important; }
}

/* Article hero on smaller screens */
@media (max-width: 640px) {
  .article-hero { padding-top: clamp(96px, 22vw, 130px); padding-bottom: 32px; }
  .article-hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .article-hero .standfirst { font-size: 15.5px; line-height: 1.55; }
  .article-byline { font-size: 12.5px; gap: 10px; margin-top: 24px; padding-top: 18px; }
  .crumbs { font-size: 10.5px; }
}

/* Article body section headings smaller */
@media (max-width: 640px) {
  .article-prose, .article-page .container { padding-inline: 18px; }
  .home-insights-grid { gap: 18px !important; }
  .summary-band .big { font-size: 22px !important; }
  .summary-cell { padding: 18px 16px !important; }
  .spec-cell { padding: 18px 18px !important; }
  .spec-cell .val { font-size: 15.5px !important; }
  .finance-card { padding: 22px !important; }
  .finance-card h3 { font-size: 22px !important; }
  .article-cta { padding: 22px !important; }
  .article-cta h4 { font-size: 18px; }
  .calculator { padding: 20px !important; }
  .calc-value { font-size: 22px !important; }
}

/* Edu-tease wrap padding on mobile */
@media (max-width: 640px) {
  .edu-tease-wrap { padding: 28px !important; }
  .edu-tease-card { padding: 16px 18px !important; }
  .edu-tease-num { width: 32px !important; height: 32px !important; }
}

/* Contact form spacing on mobile */
@media (max-width: 640px) {
  .form-card { padding: 24px !important; }
  .form-fields-tight { gap: 18px !important; }
  .form-fields-tight .field input,
  .form-fields-tight .field textarea { padding: 13px 14px; font-size: 14.5px; }
  .btn-lg { padding: 12px 20px; font-size: 14.5px; }
}

/* FAQ on mobile: tighter padding, smaller summary */
@media (max-width: 640px) {
  .faq-item summary { padding: 18px 0; font-size: 15.5px; gap: 14px; }
  .faq-item summary::after { font-size: 20px; }
  .faq-item p { font-size: 14.5px; padding-bottom: 18px; }
}

/* Tariff cards stack with healthier padding */
@media (max-width: 640px) {
  .tariff-grid { gap: 16px !important; margin-top: 24px !important; }
  .tariff-card { padding: 22px !important; }
}

/* Tap target sizing for mobile drawer items already 48px+, good */

/* ============================================================
   I18N — language switcher + Simplified-Chinese font fallback
   ============================================================ */

/* Latin glyphs keep Manrope/Inter; CJK falls through to Noto Sans SC. */
html[lang^="zh"] {
  --font-display: "Manrope", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Language dropdown: globe + current language; click reveals the others. */
.lang-dd { position: relative; display: inline-block; }
.lang-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.lang-dd-btn:hover { color: var(--ink); border-color: var(--line-2); }
.lang-dd-btn .lang-globe { flex: none; width: 15px; height: 15px; color: var(--ink-3); }
.lang-dd-btn .lang-dd-label { font-weight: 500; }
.lang-dd-btn .lang-caret { flex: none; width: 10px; height: 10px; color: var(--ink-3); transition: transform .2s ease; }
.lang-dd.open .lang-dd-btn { color: var(--ink); border-color: var(--line-2); }
.lang-dd.open .lang-dd-btn .lang-caret { transform: rotate(180deg); }

.lang-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(15, 30, 60, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.lang-dd.open .lang-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.lang-dd-item:hover { background: var(--surface-2); color: var(--ink); }
.lang-dd-item.is-current { color: var(--ink); font-weight: 600; }
.lang-dd-item.is-current svg { color: var(--blue-2); }

@media (max-width: 960px) {
  .lang-dd-btn { padding: 6px 9px; font-size: 12.5px; }
}

/* ============================================================
   HEADER REDESIGN — utility row + organised main bar
   ============================================================ */

/* Slim utility row at the top of the fixed header; collapses on scroll. */
.nav-utility {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  max-height: 46px;
  overflow: hidden;
  transition: max-height .28s ease, opacity .2s ease;
}
.nav-utility-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
}
.util-tagline { color: var(--ink-3); letter-spacing: 0.01em; }
.util-right { display: inline-flex; align-items: center; gap: 12px; }
.util-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); transition: color .15s; }
.util-link svg { opacity: 0.7; flex: none; }
.util-link:hover { color: var(--blue-2); }
.util-link:hover svg { opacity: 1; }
.util-sep { color: var(--ink-3); opacity: 0.5; }

/* When scrolled, fold the utility row away so the bar stays compact. */
.nav.scrolled .nav-utility { max-height: 0; opacity: 0; border-bottom-color: transparent; }

/* Main bar: links hug the logo, actions cluster pins right. */
.nav-links { margin-right: auto; margin-left: 24px; }
.nav-right { display: inline-flex; align-items: center; gap: 14px; }

@media (max-width: 960px) {
  /* Hide the utility row on mobile to keep the bar tight. */
  .nav-utility { display: none; }
  .nav-links { margin: 0; }
  .nav-right { gap: 8px; }
}

/* ============================================================
   FINAL CTA BAND (bottom of home, before footer)
   ============================================================ */
/* ===== Section surfaces — page rhythm ===== */
.section--tint { background: var(--surface-2); position: relative; }
.section--tint::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 45% at 88% 0%, rgba(244, 169, 60, 0.08), transparent 70%);
}
.section--tint > .container { position: relative; z-index: 1; }

/* ===== Promise / pull-quote band — a warm human moment ===== */
.promise { max-width: 940px; margin: 0 auto; text-align: center; position: relative; }
.promise::before {
  content: "\201C";
  font-family: var(--font-display); font-weight: 700;
  font-size: 120px; line-height: 0.7; color: var(--blue);
  display: block; height: 56px;
}
.promise-quote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(23px, 3.3vw, 40px); line-height: 1.24; letter-spacing: -0.02em;
  color: var(--ink);
}
.promise-by {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.promise-by .promise-mark { width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }

/* dark "proof" block — full-width navy section with light text (badges stay white pills) */
.section--dark { position: relative; background: linear-gradient(165deg, #0A1628 0%, #122340 100%); color: #E9F1FB; }
.section--dark .eyebrow { color: var(--blue-3); }
.section--dark .h-section, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lede, .section--dark p { color: rgba(223, 234, 247, 0.82); }

/* dark proof variants for article pages (white stat cards / light text on navy) */
.summary-band--dark { background: linear-gradient(135deg, #0A1628 0%, #122340 100%); border-color: rgba(255, 255, 255, 0.12); }
.summary-band--dark .summary-cell { background: transparent; }
.summary-band--dark .summary-cell .big { color: #fff; }
.summary-band--dark .summary-cell .lbl { color: rgba(230, 238, 248, 0.85); }
.summary-band--dark .summary-cell .sub { color: rgba(230, 238, 248, 0.5); }
.callout.callout--dark { background: linear-gradient(135deg, #0A1628 0%, #122340 100%); border-color: rgba(255, 255, 255, 0.12); }
.callout.callout--dark .icon { background: rgba(91, 187, 255, 0.16); color: var(--blue-3); }
.callout.callout--dark h4 { color: #fff; }
.callout.callout--dark p { color: rgba(228, 238, 250, 0.82) !important; }

/* dark spec panel (Partners engagement modes) */
.spec-grid--dark { background: linear-gradient(135deg, #0A1628 0%, #122340 100%); border-color: rgba(255, 255, 255, 0.12); }
.spec-grid--dark .spec-cell { background: transparent; }
.spec-grid--dark .spec-cell .lbl { color: var(--blue-3); }
.spec-grid--dark .spec-cell .val { color: #fff; }
.spec-grid--dark .spec-cell .sub { color: rgba(230, 238, 248, 0.6); }

/* dark contact-channel panel (Contact aside) */
.contact-aside--dark { background: linear-gradient(160deg, #0A1628 0%, #122340 100%); border-radius: 16px; padding: 6px 28px 26px; }
.contact-aside--dark .channel p { overflow-wrap: anywhere; }   /* long email must wrap, not overflow */
@media (max-width: 560px) { .contact-aside--dark { padding: 4px 18px 20px; } .contact-aside--dark .channel p { font-size: 18px; } }
.contact-aside--dark .channel { border-top-color: rgba(255, 255, 255, 0.10); }
.contact-aside--dark .channel:last-child { border-bottom-color: rgba(255, 255, 255, 0.10); }
.contact-aside--dark .channel h5 { color: rgba(230, 238, 248, 0.55); }
.contact-aside--dark .channel p { color: #fff; }
.contact-aside--dark .channel a { color: #fff; }
.contact-aside--dark .channel a:hover { color: var(--blue-3); }
.contact-aside--dark .channel .ic { background: rgba(91, 187, 255, 0.14); }

/* dark closing CTA — per-page dark accent (matches the home cta-band) */
.article-cta.article-cta--dark { background: linear-gradient(135deg, #0A1628 0%, #122340 100%); border-color: rgba(255, 255, 255, 0.10); color: #fff; }
.article-cta.article-cta--dark h4 { color: #fff; }
.article-cta.article-cta--dark p { color: rgba(228, 238, 250, 0.80) !important; }   /* beat inline ink-2 on dark */
.article-cta.article-cta--dark a:not(.btn) { color: var(--blue-3) !important; }
.article-cta.article-cta--dark .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.30); background: transparent; }
.article-cta.article-cta--dark .btn-ghost:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.55); }

/* ===== Full-width parallax photo band (interstitial) ===== */
.photo-band {
  position: relative;
  padding: clamp(76px, 12vw, 150px) 0;
  color: #fff;
  background-color: #0A1628;
  background-image:
    linear-gradient(115deg, rgba(7, 18, 35, 0.90) 0%, rgba(7, 18, 35, 0.66) 55%, rgba(7, 18, 35, 0.48) 100%),
    var(--band-img, none);
  background-size: cover, cover;
  background-position: center, var(--band-pos, center);
  background-attachment: fixed;
  background-repeat: no-repeat;
}
.photo-band .eyebrow { color: var(--blue-3); }
.photo-band .h-section { color: #fff; max-width: 20ch; margin-top: 16px; }
.photo-band .lede { color: rgba(228, 238, 250, 0.84); margin-top: 18px; max-width: 52ch; }
.photo-band .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.30); margin-top: 30px; }
.photo-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.55); }
@media (max-width: 820px) { .photo-band { background-attachment: scroll; padding: clamp(56px, 16vw, 96px) 0; } }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 20px;
  background-color: #0A1628;
  background-image:
    linear-gradient(135deg, rgba(10, 22, 40, 0.92) 0%, rgba(18, 35, 64, 0.82) 100%),
    var(--cta-img, none);
  background-size: cover, cover;
  background-position: center, center;
  color: #fff;
}
.cta-band .h-section { color: #fff; max-width: 18ch; }
.cta-band .lede { color: rgba(230, 238, 248, 0.78); margin-top: 12px; max-width: 44ch; }
.cta-band-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; flex: none; }
.cta-band .btn-ghost {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.5); }
@media (max-width: 700px) {
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { width: 100%; }
}

/* ============================================================
   IMAGERY SYSTEM — drop-in photo slots (no broken images)
   Layered backgrounds: scrim , optional photo (--img/--hero-img) , branded fallback.
   Missing file = photo layer simply doesn't paint; fallback shows.
   ============================================================ */

/* Dark media hero for sub-pages (article-hero). Light text, works with or without a photo. */
.article-hero.has-media {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  color: #fff;
  background-image:
    linear-gradient(112deg, rgba(7, 18, 35, 0.88) 0%, rgba(8, 33, 74, 0.74) 52%, rgba(11, 110, 210, 0.46) 100%),
    var(--hero-img, none),
    linear-gradient(135deg, #0A1628 0%, #122340 58%, #0B7FE0 165%);
  background-size: cover, cover, cover;
  background-position: center, var(--hero-pos, center), center;   /* photo focal point per page */
  background-repeat: no-repeat;
}
/* Subtle corner glow for depth (no grid). */
.article-hero.has-media::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(120% 80% at 85% -10%, rgba(30, 157, 255, 0.28), transparent 60%);
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}
.article-hero.has-media .crumbs,
.article-hero.has-media .crumbs a { color: rgba(225, 235, 248, 0.72); }
.article-hero.has-media .crumbs a:hover { color: #fff; }
.article-hero.has-media h1 { color: #fff; }
.article-hero.has-media .standfirst { color: rgba(228, 238, 250, 0.88); }
.article-hero.has-media .eyebrow { color: var(--blue-3); }

/* Bold & authentic: oversized article-hero headline */
.article-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.032em; max-width: 18ch; }
.article-hero .standfirst { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 60ch; margin-top: 22px; }

/* Home hero: optional very-subtle photo wash under the existing animation (dark text stays readable). */
/* ===== Cinematic home hero: full-bleed darkened photo, light text ===== */
.hero.has-media { background: #0A1628; }
.hero.has-media .hero-bg {
  background-image:
    linear-gradient(90deg, rgba(7, 18, 35, 0.94) 0%, rgba(7, 18, 35, 0.78) 44%, rgba(8, 20, 38, 0.52) 100%),
    linear-gradient(180deg, rgba(7, 18, 35, 0.25) 0%, rgba(7, 18, 35, 0.55) 100%),
    var(--hero-img, none);
  background-size: cover, cover, cover;
  background-position: center, center, var(--hero-pos, center);
  background-repeat: no-repeat;
}
.hero.has-media .hero-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
.hero.has-media .h-display { color: #fff; }
.hero.has-media .lede { color: rgba(228, 238, 250, 0.86); }
.hero.has-media .hero-meta { border-top-color: rgba(255, 255, 255, 0.16); }
.hero.has-media .hero-meta-item .num { color: #fff; }
.hero.has-media .hero-meta-item .label { color: rgba(210, 222, 238, 0.62); }
.hero.has-media .location-pill {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18);
  color: rgba(232, 240, 250, 0.92); box-shadow: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero.has-media .btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.30); }
.hero.has-media .btn-ghost:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.55); }

/* Full-bleed home hero lead (single column over the photo) */
.hero-lead { max-width: 940px; }

/* Relocated peak-shaving graph section */
.peakcut-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 980px) { .peakcut-grid { grid-template-columns: 1fr; gap: 36px; } }

/* Inline media slot (portraits, facility, map, news thumbnails). */
.media-slot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background-image:
    var(--img, none),
    repeating-linear-gradient(135deg, rgba(15, 30, 60, 0.035) 0 2px, transparent 2px 22px),
    linear-gradient(135deg, #E8EEF6 0%, #D6E0EC 55%, #C7D6E8 100%);
  background-size: cover, auto, cover;
  background-position: var(--img-pos, center), center, center;   /* photo focal point per slot */
  background-repeat: no-repeat;
}
.media-slot.ratio-wide { aspect-ratio: 21 / 9; }
.media-slot.ratio-portrait { aspect-ratio: 4 / 5; }
.media-slot.ratio-square { aspect-ratio: 1 / 1; }
/* faint energy mark, centered, low opacity — reads as a designed panel, not a broken image */
.media-slot::after {
  content: "";
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  opacity: 0.18;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1628' stroke-width='1.4'%3E%3Crect x='3' y='4' width='18' height='14' rx='2'/%3E%3Cpath d='M3 14l5-4 4 3 4-5 5 6'/%3E%3Ccircle cx='9' cy='9' r='1.3'/%3E%3C/svg%3E");
}
.media-slot[style*="--img"]::after { display: none; } /* hide hint once a photo is set */

/* ---- Data-viz / diagram helpers ---- */
.diagram {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 12px 36px -22px rgba(15, 30, 60, 0.22);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .diagram-cap {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  font-family: var(--font-sans);
}

/* ===== Vertical schedule timeline ===== */
.vtl { list-style: none; margin: 8px 0 0; padding: 8px 0; position: relative; }
.vtl::before {
  content: ""; position: absolute; left: 7px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--line-2) 100%);
}
.vtl-step {
  position: relative; display: grid; grid-template-columns: 16px 1fr auto;
  align-items: center; column-gap: 18px; padding: 11px 0;
}
.vtl-dot {
  width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
  background: var(--surface); border: 2px solid var(--blue); z-index: 1;
}
.vtl-step.is-cod .vtl-dot {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 157, 255, 0.15);
}
.vtl-label { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink); line-height: 1.25; }
.vtl-step.is-cod .vtl-label { color: var(--blue-2); }
.vtl-sub {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.vtl-step.is-cod .vtl-sub { color: var(--blue-2); }
@media (max-width: 560px) {
  .vtl-label { font-size: 15px; }
  .vtl-step { column-gap: 14px; }
}

/* Wide schematic diagrams: keep legible on small screens via horizontal scroll */
@media (max-width: 720px) {
  .diagram--flow { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .diagram--flow svg { min-width: 560px; }
}

/* ===== Hero peak-shaving "cut" graph (as an album card) ===== */
.bess-card--graph { background: linear-gradient(180deg, #0c1a30, #0a1424); }
.bess-card--graph .pg-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; gap: 12px; padding: clamp(16px, 4.5%, 28px);
}
.bess-card--graph .pg-svg { flex: 0 1 auto; min-height: 0; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.pg-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(230, 238, 248, 0.7); }
.pg-live { width: 7px; height: 7px; border-radius: 50%; background: #1E9DFF; box-shadow: 0 0 10px #1E9DFF; animation: pg-pulse 1.8s ease-in-out infinite; }
@keyframes pg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pg-badge { font-family: var(--font-display); font-weight: 600; font-size: 12px; color: #06231F; background: var(--blue); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.pg-svg { display: block; width: 100%; height: auto; }
.pg-t { font-family: var(--font-sans); font-size: 11px; font-weight: 600; fill: rgba(230, 238, 248, 0.85); }
.pg-t--target { fill: var(--blue-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; }
.pg-t--peakval { fill: #fff; font-weight: 700; font-size: 14px; }
.pg-t--targetval { fill: #5BBBFF; font-weight: 700; font-size: 12.5px; }
.pg-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.pg-foot { margin-top: 11px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, 0.09); text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em; color: rgba(230, 238, 248, 0.82); }
.pg-li { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: rgba(230, 238, 248, 0.78); }
.pg-k { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.pg-k--demand { background: rgba(230, 238, 248, 0.6); }
.pg-k--bess { background: #1E9DFF; }
.pg-k--saved { width: 11px; height: 11px; border-radius: 3px; background: linear-gradient(180deg, rgba(30, 157, 255, 0.55), rgba(30, 157, 255, 0.1)); }
/* draw-in animation */
@keyframes pg-draw { to { stroke-dashoffset: 0; } }
@keyframes pg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pg-pop  { 0% { opacity: 0; transform: translateY(6px); } 100% { opacity: 1; transform: none; } }
.pg-demand { stroke-dasharray: 780; stroke-dashoffset: 780; animation: pg-draw 1.3s ease 0.25s forwards; }
.pg-target { opacity: 0; animation: pg-fade 0.5s ease 1.0s forwards; }
.pg-shaved { opacity: 0; animation: pg-fade 0.8s ease 1.5s forwards; }
.pg-bess   { stroke-dasharray: 640; stroke-dashoffset: 640; animation: pg-draw 1.2s ease 1.4s forwards; }
.pg-t--peak   { opacity: 0; animation: pg-fade 0.6s ease 1.1s forwards; }
.pg-t--peakval { opacity: 0; animation: pg-fade 0.6s ease 1.25s forwards; }
.pg-t--target { opacity: 0; animation: pg-fade 0.6s ease 1.2s forwards; }
.pg-t--targetval { opacity: 0; animation: pg-fade 0.6s ease 1.6s forwards; }
.pg-foot { opacity: 0; animation: pg-fade 0.6s ease 2.1s forwards; }
.pg-badge { opacity: 0; animation: pg-pop 0.5s ease 2.0s forwards; }
@media (prefers-reduced-motion: reduce) {
  .pg-demand, .pg-bess { stroke-dashoffset: 0; animation: none; }
  .pg-target, .pg-shaved, .pg-t--peak, .pg-t--peakval, .pg-t--target, .pg-t--targetval, .pg-foot, .pg-badge { opacity: 1; animation: none; }
  .pg-live { animation: none; }
}

.diagram-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .diagram-grid.two { grid-template-columns: 1fr 1fr; } }

/* ---- Values / standards / scenarios cards ---- */
.value-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 40px; }
.value-card {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 30, 60, 0.25); border-color: var(--line-2); }
.value-card .v-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(30, 157, 255, 0.10); color: var(--blue-2); margin-bottom: 16px; }
.value-card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.value-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.value-card .v-ic .stepn { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--blue-2); line-height: 1; }

/* ---- image-led application cards (home + solutions) ---- */
.app-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.app-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -26px rgba(15, 30, 60, 0.30); border-color: var(--line-2); }
.app-card-media { aspect-ratio: 16 / 10; background: #0A1628 var(--img) center / cover no-repeat; }
.app-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.app-card-body h3 { font-family: var(--font-display); font-size: 18.5px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.app-card-body p { font-size: 14px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.app-card-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--blue-2); letter-spacing: 0.01em; }
.app-card-go svg { transition: transform .2s ease; }
.app-card:hover .app-card-go svg { transform: translateX(3px); }
@media (max-width: 980px) { .app-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }

/* ---- Solutions hero: CTAs + overlapping credentials card ---- */
.sol-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sol-hero-cta .btn-line { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; font-weight: 600; font-size: 14px; background: transparent; transition: background .2s ease, border-color .2s ease; }
.sol-hero-cta .btn-line:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
main section[id] { scroll-margin-top: 100px; }

.sol-hero-facts { position: relative; z-index: 5; margin-top: -46px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 64px -34px rgba(10, 22, 40, 0.5); overflow: hidden; }
.sol-hero-facts .f { padding: 22px 24px; border-left: 1px solid var(--line); }
.sol-hero-facts .f:first-child { border-left: 0; }
.sol-hero-facts b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1.9vw, 24px); color: var(--ink); letter-spacing: -0.01em; line-height: 1.05; }
.sol-hero-facts span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 760px) { .sol-hero-facts { grid-template-columns: 1fr 1fr; margin-top: -32px; } .sol-hero-facts .f { border-left: 0; border-top: 1px solid var(--line); } .sol-hero-facts .f:nth-child(1), .sol-hero-facts .f:nth-child(2) { border-top: 0; } .sol-hero-facts .f:nth-child(odd) { border-right: 1px solid var(--line); } }

/* ---- Approach: horizontal process rail ---- */
.flow-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 46px; position: relative; }
.flow-rail::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--blue), color-mix(in srgb, var(--blue) 25%, transparent)); opacity: .5; }
.fr-step { position: relative; }
.fr-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); color: var(--blue-2); font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.fr-step b { display: block; margin-top: 16px; font-family: var(--font-display); font-size: 15.5px; letter-spacing: -0.01em; line-height: 1.25; }
.fr-step p { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.fr-cycle { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--blue-2); }
@media (max-width: 900px) { .flow-rail { grid-template-columns: 1fr 1fr; gap: 28px 24px; } .flow-rail::before { display: none; } }
@media (max-width: 540px) { .flow-rail { grid-template-columns: 1fr; } }

/* ---- Use cases: bento ---- */
.uc-bento { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 1fr; gap: 20px; margin-top: 40px; }
.uc-bento > .uc-feature { grid-row: 1 / span 2; }
.uc-bento > :nth-child(4) { grid-column: 2 / span 2; }
.uc-feature .app-card-media { aspect-ratio: auto; flex: 1; min-height: 200px; }
.uc-feature .app-card-body h3 { font-size: 23px; }
@media (max-width: 900px) { .uc-bento { grid-template-columns: 1fr 1fr; } .uc-bento > * { grid-row: auto !important; grid-column: auto !important; } }
@media (max-width: 560px) { .uc-bento { grid-template-columns: 1fr; } }

/* ---- Architecture: framed schematic panel + legend ---- */
.arch-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 24px 56px -38px rgba(10, 22, 40, 0.45); }
.arch-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.arch-bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.arch-bar em { margin-left: 8px; font-style: normal; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.arch-panel .diagram { margin: 0; padding: 20px; }
.arch-legend-row { display: flex; flex-wrap: wrap; gap: 10px 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.arch-legend-row li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--ink-2); }
.arch-legend-row li i { width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.arch-legend-row li b { font-weight: 600; color: var(--ink); }
.arch-legend-row li span { color: var(--ink-3); font-size: 12px; }

/* ---- Deployment: horizontal milestone timeline ---- */
.htl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); margin-top: 46px; list-style: none; padding: 4px 0 10px; overflow-x: auto; scrollbar-width: none; }
.htl::-webkit-scrollbar { display: none; }
.htl-step { position: relative; padding: 30px 16px 0 0; }
.htl-step::before { content: ""; position: absolute; top: 8px; left: 7px; width: 100%; height: 2px; background: var(--line-2); }
.htl-step:last-child::before { display: none; }
.htl-dot { position: absolute; top: 2px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--blue); z-index: 1; }
.htl-step.is-cod .htl-dot { background: var(--blue); border-color: var(--blue); }
.htl-step b { display: block; font-family: var(--font-display); font-size: 13.5px; line-height: 1.25; letter-spacing: -0.01em; }
.htl-sub { display: block; margin-top: 5px; font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); }
.htl-step.is-cod b { color: var(--blue-2); }

/* ---- On the ground: offset gallery ---- */
.build-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 40px; }
.build-gallery .bg-item { position: relative; margin: 0; border-radius: 14px; overflow: hidden; }
.build-gallery .bg-lead { grid-row: 1 / span 2; }
.build-gallery .build-img { height: 100%; min-height: 210px; background-size: cover; background-position: center; }
.build-gallery .bg-lead .build-img { min-height: 432px; }
.build-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: #fff; font-size: 14px; background: linear-gradient(0deg, rgba(6, 16, 30, 0.86), rgba(6, 16, 30, 0) 100%); }
.build-gallery .bg-n { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--blue); }
@media (max-width: 760px) { .build-gallery { grid-template-columns: 1fr; } .build-gallery .bg-lead { grid-row: auto; } .build-gallery .bg-lead .build-img { min-height: 220px; } }

/* ---- Sizing: numbered methodology ---- */
.method-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.method-list li:first-child { border-top: 0; padding-top: 0; }
.method-list .ml-n { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--blue-2); line-height: 1; }
.method-list b { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.method-list p { margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 820px) { .method-split { grid-template-columns: 1fr; gap: 28px; } }

/* ---- Guarantee scorecard ---- */
.scorecard { display: grid; grid-template-columns: 1fr 1.5fr; gap: 44px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 44px; box-shadow: 0 26px 60px -40px rgba(10, 22, 40, 0.45); }
.scorecard-head .lede { max-width: 38ch; }
.scorecard-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sc-m { background: var(--surface); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.sc-m .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sc-m .big em { font-style: normal; color: var(--blue-2); }
.sc-m .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.sc-m .sub { font-size: 11.5px; font-weight: 500; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; line-height: 1.4; }
@media (max-width: 860px) { .scorecard { grid-template-columns: 1fr; gap: 28px; padding: 28px; } }
@media (max-width: 440px) { .scorecard-metrics { grid-template-columns: 1fr; } }

/* ---- News feed: image-led source cards ---- */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card .app-card-body .art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; }
.news-card .app-card-body h3 { font-size: 17px; line-height: 1.28; }
.news-card .app-card-body p { font-size: 13.5px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ---- Invest & Partner: audience selector cards ---- */
.pick-card { justify-content: flex-start; }
.pick-aud { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.pick-card .app-card-go { margin-top: 16px; }
@media (max-width: 760px) { .value-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; } }

/* ---- Standalone 4-up metric strip (same divided panel language as the scorecard) ---- */
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (max-width: 760px) { .metric-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .metric-strip { grid-template-columns: 1fr; } }

/* ---- About: values as an editorial principle list ---- */
.values-split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.value-rows { display: flex; flex-direction: column; }
.vrow { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.vrow:first-child { border-top: 0; padding-top: 0; }
.vrow .v-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(30, 157, 255, 0.10); color: var(--blue-2); }
.vrow h3 { font-family: var(--font-display); font-size: 17px; line-height: 1.2; margin-bottom: 6px; letter-spacing: -0.01em; }
.vrow p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 820px) { .values-split { grid-template-columns: 1fr; gap: 28px; } }

/* ---- linked scenario cards (Solutions · Site scenarios) ---- */
.scn-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.scn-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.scn-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -26px rgba(15, 30, 60, 0.30); border-color: var(--line-2); }
.scn-media { position: relative; aspect-ratio: 16 / 10; background: #0A1628 var(--img) center / cover no-repeat; }
.scn-badge { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(10, 22, 40, 0.72); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 14px; }
.scn-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.scn-body h3 { font-family: var(--font-display); font-size: 18.5px; line-height: 1.2; margin-bottom: 8px; letter-spacing: -0.01em; }
.scn-body > p { font-size: 14px; color: var(--ink-2); line-height: 1.55; flex: 1; }
.scn-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.scn-metric { display: inline-flex; align-items: baseline; gap: 7px; font-size: 13px; color: var(--ink-3); }
.scn-metric b { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--blue-2); letter-spacing: -0.01em; }
.scn-fit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue-2); }
.scn-fit svg { transition: transform .2s ease; }
.scn-card:hover .scn-fit svg { transform: translateX(3px); }
@media (max-width: 900px) { .scn-grid { grid-template-columns: 1fr; } }

/* ---- application explainer pages ---- */
.econ-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; align-items: center; }
.callout.econ-fig { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.econ-fig-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; color: #fff; line-height: 1.05; }
.econ-fig-cap { font-size: 13.5px; line-height: 1.55; color: rgba(228, 238, 250, 0.82) !important; margin: 0; }
@media (max-width: 760px) { .econ-grid { grid-template-columns: 1fr; gap: 22px; } }
.applink { justify-content: space-between; gap: 12px; }
.applink h3 { margin-bottom: 0; }
.applink .app-card-go { margin-top: 14px; }
@media (max-width: 760px) { .value-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; } }

/* use-case hero: eyebrow + industry tags */
.uc-eyebrow { display: inline-block; margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.uc-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.uc-tags span { font-size: 12.5px; font-weight: 600; color: #EAF1FA; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.07); }

/* situation / scenario */
.scenario { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
.scenario-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.01em; color: var(--blue-2); margin: 14px 0 0; }
.snapshot { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 22px 24px; }
.snapshot-h { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.snapshot dl { margin: 0; }
.snapshot dl > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); }
.snapshot dt { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.snapshot dd { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); margin: 0; text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .scenario { grid-template-columns: 1fr; gap: 24px; } }

/* before / after outcome */
.ba-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin-top: 36px; }
.ba-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px; background: var(--surface); }
.ba-h { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.ba-before .ba-h { color: var(--ink-3); }
.ba-after { border-color: rgba(30, 157, 255, 0.42); box-shadow: 0 20px 48px -30px rgba(30, 157, 255, 0.55); }
.ba-after .ba-h { color: var(--blue-2); }
.ba-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ba-card li { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ba-after li { color: var(--ink); }
.ba-arrow { display: flex; align-items: center; justify-content: center; color: var(--blue-2); }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); padding: 2px 0; } }
.ba-save { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-top: 26px; padding: 22px 26px; border-radius: 16px; background: linear-gradient(135deg, rgba(30, 157, 255, 0.12), rgba(30, 157, 255, 0.04)); border: 1px solid rgba(30, 157, 255, 0.38); }
.ba-save strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); letter-spacing: -0.01em; }
.ba-save span { font-size: 13.5px; color: var(--ink-2); flex: 1; min-width: 240px; line-height: 1.5; }

/* fit checklist */
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; }
.checklist li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(30, 157, 255, 0.12); }
.checklist li::after { content: ""; position: absolute; left: 6.5px; top: 6px; width: 7px; height: 4px; border-left: 2px solid var(--blue-2); border-bottom: 2px solid var(--blue-2); transform: rotate(-45deg); }
@media (max-width: 620px) { .checklist { grid-template-columns: 1fr; } }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 13.5px; color: var(--ink); font-weight: 500;
}
.cert-badge svg { color: var(--blue-2); flex: none; }

/* Solutions: construction strip (how we build) */
.build-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .build-strip { grid-template-columns: 1fr; } }
.build-shot { margin: 0; }
.build-img {
  aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #0A1628; background-image: var(--img, none);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.build-shot figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(230, 238, 248, 0.6); }

/* Solutions: lifecycle cycle wheel (radial desktop, vertical list mobile) */
.cycle { position: relative; width: 100%; max-width: 600px; margin: 50px auto 8px; aspect-ratio: 1 / 1; }
.cycle-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: radial-gradient(120% 120% at 50% 28%, #fff, #f3f7fc);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px -22px rgba(15, 30, 60, 0.2);
}
.cycle-hub img { width: 46px; height: auto; }
.cycle-hub span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.35; max-width: 78%; }
.cycle-node { position: absolute; transform: translate(-50%, -50%); width: 166px; text-align: center; }
.cyc-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 5px rgba(30, 157, 255, 0.12);
}
.cycle-node b { display: block; margin-top: 9px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); }
.cyc-d { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
@media (max-width: 820px) {
  .cycle { aspect-ratio: auto; max-width: 460px; margin: 34px auto 0; display: flex; flex-direction: column; gap: 0; }
  .cycle-ring, .cycle-hub { display: none; }
  .cycle-node { position: static !important; transform: none; width: auto; text-align: left; display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cycle-node:last-child { border-bottom: none; }
  .cyc-n { grid-row: 1 / span 2; }
  .cycle-node b { margin-top: 0; }
}

/* Solutions: end-to-end journey (4 phases) */
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
@media (max-width: 920px) { .journey-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .journey-grid { grid-template-columns: 1fr; } }
.journey-card {
  display: flex; flex-direction: column; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.journey-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15, 30, 60, 0.22); border-color: var(--line-2); }
.journey-num { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--blue-2); }
.journey-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; margin: 12px 0 8px; }
.journey-card > p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.journey-list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.journey-list li { position: relative; padding-left: 18px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.journey-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* About story: two-column narrative + pull-quote */
.story-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-brand {
  align-self: stretch; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px; padding: 40px 28px; min-height: 280px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: radial-gradient(120% 85% at 50% 0%, rgba(30, 157, 255, 0.10), transparent 62%), var(--surface);
  box-shadow: 0 18px 44px -28px rgba(15, 30, 60, 0.18);
}
.story-brand-mark { width: clamp(120px, 15vw, 184px); height: auto; }
.story-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.story-brand-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }

/* About mission: centered manifesto (over photo band) */
.mission-center { text-align: center; max-width: 820px; margin-inline: auto; }
.mission-center .eyebrow { justify-content: center; }
.mission-center .h-section { margin-inline: auto; max-width: 22ch; }
.mission-center .lede { margin-inline: auto; max-width: 56ch; }

/* Media-hero support for the blog/insights hero + cover .lede/.h-display text. */
.insights-hero.has-media {
  position: relative;
  isolation: isolate;
  border-bottom: none;
  color: #fff;
  background-image:
    linear-gradient(112deg, rgba(7, 18, 35, 0.88) 0%, rgba(8, 33, 74, 0.74) 52%, rgba(11, 110, 210, 0.46) 100%),
    var(--hero-img, none),
    linear-gradient(135deg, #0A1628 0%, #122340 58%, #0B7FE0 165%);
  background-size: cover, cover, cover;
  background-position: center, var(--hero-pos, center), center;   /* photo focal point per page */
  background-repeat: no-repeat;
}
.insights-hero.has-media::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(120% 80% at 85% -10%, rgba(30, 157, 255, 0.28), transparent 60%);
  background-size: 100% 100%;
  opacity: 0.6; pointer-events: none;
}
.article-hero.has-media .lede,
.insights-hero.has-media .lede { color: rgba(228, 238, 250, 0.88); }
.article-hero.has-media .h-display,
.insights-hero.has-media .h-display,
.insights-hero.has-media h1 { color: #fff; }
.insights-hero.has-media .eyebrow { color: var(--blue-3); }

/* ============================================================
   3D WebGL hero mount + warmth: feature bands + warm accent
   ============================================================ */
:root { --warm: #F4A93C; }

/* 3D BESS canvas sits where the SVG container was; overlays (telemetry z4, badge z4) stay on top. */
.bess3d-mount { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bess3d-mount canvas { width: 100%; height: 100%; display: block; }

/* Photo↔text feature band (reuses .media-slot for the image). */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.feature__text { max-width: 56ch; }
.feature__media { aspect-ratio: 4 / 3; }          /* overrides .media-slot's default ratio */
.feature--flip .feature__media { order: -1; }     /* image on the left */
.feature__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.feature__list li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.feature__list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%231E9DFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7.5 L6 11 L12 3.5'/%3E%3C/svg%3E");
}
.eyebrow.warm { color: var(--blue); }
.eyebrow.warm::before { background: var(--blue) !important; }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature__media { order: -1 !important; }
}

/* 3D cabinet "open to view inside" hint (only when 3D active; fades after first open). */
.bess3d-hint {
  position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%);
  z-index: 5; pointer-events: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(10, 22, 40, 0.72); color: #fff; font-size: 12.5px; font-weight: 500;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .45s ease; animation: hintpulse 2.6s ease-in-out infinite;
}
.bess3d-mount:not(.is-3d) ~ .bess3d-hint { display: none; }
.bess3d-mount.opened ~ .bess3d-hint { opacity: 0; }
@keyframes hintpulse { 0%, 100% { opacity: .9; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bess3d-hint { animation: none; } }

/* ============================================================
   Hero photoreal BESS — stacked "album" deck + "spec readout" hotspots
   ============================================================ */
.bc-stage[data-bess-album] { overflow: visible; }
.bess-deck { position: absolute; inset: 0; }

/* each photo is a card; back cards peek + dim, front card is interactive */
.bess-card {
  position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #0A1628, #122340);
  box-shadow: 0 30px 60px -30px rgba(15, 30, 60, 0.5);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform-origin: 72% 64%;
  --i: 0; --vi: clamp(0, var(--i), 3);
  transform: translate(calc(var(--vi) * 13px), calc(var(--vi) * 15px)) rotate(calc(var(--vi) * 1.5deg)) scale(calc(1 - var(--vi) * 0.045));
  opacity: calc(1 - var(--i) * 0.16);
  z-index: calc(50 - var(--i));
  transition: transform .55s cubic-bezier(.22, .9, .32, 1), opacity .45s ease, filter .45s ease, box-shadow .45s ease;
}
.bess-card:not(.is-front) { filter: brightness(.78) saturate(.92); }
.bess-card:not(.is-front):hover, .bess-card:not(.is-front):focus-visible { filter: brightness(.95); outline: none; }
.bess-card.is-front { cursor: default; opacity: 1; filter: none; animation: b3flipin .52s cubic-bezier(.2, .85, .3, 1); }
/* each card flips in as it comes to the front (transient — ends flat, so the
   resting state has no 3D transform and the hotspots stay hit-testable). */
@keyframes b3flipin {
  from { transform: perspective(1200px) rotateY(-62deg); opacity: 0; }
  55%  { opacity: 1; }
  to   { transform: perspective(1200px) rotateY(0deg); opacity: 1; }
}
/* Non-front cards never capture pointer events; when the cutaway is front the
   front card opts out too, so the composited card can't steal the hotspot
   hovers (it otherwise captures over the overlay despite lower z-index).
   Navigation stays on the dots / swipe / arrow keys / autoplay. */
.bess-card:not(.is-front) { pointer-events: none; }
.bc-stage.cutaway-front .bess-card.is-front { pointer-events: none; }
.bess-card .bess-photo {
  position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat;
  background-image: var(--card-img, none), linear-gradient(135deg, #0A1628, #122340);
  transition: filter .35s ease;
}
.bess-card .bess-photo--cutaway { background-image: url(/assets/img/bess-open.jpg), linear-gradient(135deg, #0A1628, #122340); }

/* caption + dot indicators */
.bess-cap { position: absolute; left: 16px; bottom: 14px; z-index: 60; display: flex; align-items: baseline; gap: 5px; pointer-events: none;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); font-size: 13px; }
.bess-cap-idx { font-family: var(--font-display); font-weight: 700; color: var(--blue-3, #5BBBFF); }
.bess-cap-sep, .bess-cap-tot { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.bess-cap-name { margin-left: 6px; font-weight: 600; }
.bess-dots { position: absolute; right: 16px; bottom: 14px; z-index: 60; display: flex; gap: 7px; }
.bess-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.4); transition: background .25s ease, width .25s ease; }
.bess-dot:hover { background: rgba(255, 255, 255, 0.7); }
.bess-dot.is-active { background: var(--blue, #1E9DFF); width: 20px; border-radius: 4px; }
/* tighter peek on phones so back cards never poke past the edge */
@media (max-width: 640px) {
  .bess-card { transform: translate(calc(var(--vi) * 7px), calc(var(--vi) * 12px)) rotate(calc(var(--vi) * 1.1deg)) scale(calc(1 - var(--vi) * 0.04)); }
}

/* Component hotspots: always-on pulsing dot. On hover a "spec readout" plays —
   ring blooms → leader line draws → panel unfolds → name fades up → details
   wipe in, while the component glows and the rest of the photo dims. */
/* translateZ(0) forces this overlay onto its own composited layer so it sits
   above the cards (which are composited via their transform) for hit-testing —
   otherwise a transformed card captures pointer events despite lower z-index. */
.bess3d-badges { position: absolute; inset: 0; z-index: 55; pointer-events: none; transform: translateZ(0); }
.b3badge {
  position: absolute;          /* 0×0 anchor; dot/line/card center themselves via own offsets.
                                  NO transform here — on a 0-size box it's a visual no-op but
                                  forces a composited layer whose hit region desyncs (broke dots). */
  width: 0; height: 0;
  opacity: 0; visibility: hidden;
  /* opacity-only reveal — NO transform animation (a persistent animated layer
     desyncs the dot's hit region from layout, breaking some hotspots). */
  transition: opacity .4s ease, visibility 0s linear .4s, filter .3s ease;
}
.bess3d-badges .b3badge { pointer-events: auto; }

/* dots show only while the cutaway view is in front and the hero is in view */
.bc-stage.in-view.cutaway-front .b3badge { opacity: 1; visibility: visible; transition: opacity .4s ease, filter .3s ease; }
.bc-stage.in-view.cutaway-front .b3badge:nth-child(2) { transition-delay: .06s; }
.bc-stage.in-view.cutaway-front .b3badge:nth-child(3) { transition-delay: .12s; }
.bc-stage.in-view.cutaway-front .b3badge:nth-child(4) { transition-delay: .18s; }
.bc-stage.in-view.cutaway-front .b3badge:nth-child(5) { transition-delay: .24s; }
.bc-stage.in-view.cutaway-front .b3badge:nth-child(6) { transition-delay: .30s; }

/* lift the active badge above siblings (each badge is its own stacking context) */
.b3badge:hover, .b3badge:focus-visible, .b3badge:focus-within { z-index: 30; }

/* hotspot marker */
.b3dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue, #1E9DFF); cursor: pointer; z-index: 3;
  box-shadow: 0 0 0 4px rgba(30, 157, 255, 0.22), 0 0 14px rgba(30, 157, 255, 0.55);
  animation: b3pulse 2.2s ease-in-out infinite; transition: transform .2s ease;
}
/* generous invisible hit area so pointing *near* a component still responds */
.b3dot::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; }
.b3badge:hover .b3dot, .b3badge:focus-visible .b3dot, .b3badge:focus-within .b3dot { transform: scale(1.35); animation: none; }
@keyframes b3pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 157, 255, 0.22), 0 0 14px rgba(30, 157, 255, 0.5); }
  50%      { box-shadow: 0 0 0 7px rgba(30, 157, 255, 0.08), 0 0 18px rgba(30, 157, 255, 0.8); }
}

/* ring bloom */
.b3ring {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; z-index: 2;
  border: 1.5px solid rgba(120, 200, 255, 0.85);
  opacity: 0; transform: scale(.5); transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.b3badge:hover .b3ring, .b3badge:focus-visible .b3ring, .b3badge:focus-within .b3ring { opacity: 1; transform: scale(2.7); }

/* component spotlight (lights the part while the photo dims) */
.b3glow {
  position: absolute; left: -75px; top: -75px; width: 150px; height: 150px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(90, 180, 255, 0.55) 0%, rgba(70, 160, 255, 0.22) 38%, transparent 70%);
  opacity: 0; transform: scale(.55); transition: opacity .35s ease, transform .5s ease;
}
.b3badge:hover .b3glow, .b3badge:focus-visible .b3glow, .b3badge:focus-within .b3glow { opacity: 1; transform: scale(1); }

/* leader line — draws out on hover */
.b3line {
  position: absolute; left: -1px; width: 2px; height: 0; z-index: 1;
  background: linear-gradient(var(--blue, #1E9DFF), rgba(91, 187, 255, 0.55));
  transition: height .22s ease;
}
.b3badge[data-dir="up"]   .b3line { bottom: 6px; }
.b3badge[data-dir="down"] .b3line { top: 6px; }
.b3badge:hover .b3line, .b3badge:focus-visible .b3line, .b3badge:focus-within .b3line { height: 34px; }

/* callout panel — unfolds after the line, then name + details reveal */
.b3card {
  position: absolute; left: 50%; width: 212px; max-width: 46vw;
  display: flex; flex-direction: column; gap: 5px;
  padding: 11px 13px; border-radius: 11px; text-align: left;
  background: rgba(9, 19, 36, 0.97); color: #dbe7f5;
  border: 1px solid rgba(91, 187, 255, 0.32); box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.65);
  z-index: 12; opacity: 0; visibility: hidden; pointer-events: none;
  transition: clip-path .3s cubic-bezier(.2, .8, .2, 1) .16s, transform .3s ease .16s, opacity .2s ease .16s, visibility 0s .36s;
}
.b3badge[data-dir="down"] .b3card { top: 42px; clip-path: inset(0 0 100% 0 round 11px); transform: translateX(-50%) translateY(-6px); }
.b3badge[data-dir="up"]   .b3card { bottom: 42px; clip-path: inset(100% 0 0 0 round 11px); transform: translateX(-50%) translateY(6px); }
.b3badge:hover .b3card, .b3badge:focus-visible .b3card, .b3badge:focus-within .b3card {
  opacity: 1; visibility: visible; clip-path: inset(0 round 11px); transform: translateX(-50%) translateY(0);
  transition: clip-path .32s cubic-bezier(.2, .8, .2, 1) .16s, transform .32s ease .16s, opacity .2s ease .16s;
}
.b3card b { font-size: 12.5px; font-weight: 600; color: #fff; letter-spacing: -0.01em; line-height: 1.15;
  opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; }
.b3desc { font-size: 11.5px; line-height: 1.5; color: #b9cde4;
  opacity: 0; clip-path: inset(0 0 100% 0); transition: opacity .3s ease, clip-path .4s ease; }
.b3badge:hover .b3card b, .b3badge:focus-visible .b3card b, .b3badge:focus-within .b3card b { opacity: 1; transform: translateY(0); transition-delay: .34s; }
.b3badge:hover .b3desc, .b3badge:focus-visible .b3desc, .b3badge:focus-within .b3desc { opacity: 1; clip-path: inset(0); transition-delay: .44s; }

/* focus mode: dim the front photo + the other badges while one is active */
.bc-stage:has(.b3badge:hover) .bess-card.is-front .bess-photo,
.bc-stage:has(.b3badge:focus-within) .bess-card.is-front .bess-photo { filter: brightness(.5) saturate(.92); }
.bess3d-badges:has(.b3badge:hover) .b3badge:not(:hover),
.bess3d-badges:has(.b3badge:focus-within) .b3badge:not(:focus-within) { filter: opacity(.3); }

@media (max-width: 560px) { .b3card { width: 178px; padding: 9px 11px; } .b3card b { font-size: 11.5px; } .b3desc { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) {
  .b3dot { animation: none; }
  .bess-card { transition: opacity .2s ease; }
  .bess-card.is-front { animation: none; }
  .bc-stage.in-view.cutaway-front .b3badge { animation: none; opacity: 1; }
  .b3ring, .b3glow, .b3line { transition: none; }
  .b3card { clip-path: none !important; transform: translateX(-50%) !important; transition: opacity .15s ease; }
  .b3card b, .b3desc { clip-path: none; transform: none; transition: opacity .15s ease; }
}
