/* ============================================================
   SSGA.ai — Design System
   "Computational Editorial" — Obsidian + Voltage
   ============================================================ */

/* ---------- Fonts ---------- */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Geist:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap");

/* ---------- Tokens — Cobalt Vault ---------- */
:root {
  /* Surface — deep midnight navy */
  --ink-1000: #02060F;
  --ink-950:  #070C1A;
  --ink-900:  #0B1224;
  --ink-850:  #0F1830;
  --ink-800:  #131D3A;
  --ink-750:  #182343;
  --ink-700:  #1F2D54;
  --ink-600:  #283A6B;
  --ink-500:  #354A82;

  /* Type — cool bone */
  --bone-50:  #F4F1E8;
  --bone-100: #EBE8DD;
  --bone-200: #D4D0C0;
  --bone-300: #ADAA9C;
  --ash-400:  #7E8AA8;
  --ash-500:  #5F6A85;
  --ash-600:  #404962;

  /* Signature — electric cobalt cyan */
  --voltage:      #3DE0FF;
  --voltage-dim:  #2BA8C2;
  --voltage-glow: rgba(61, 224, 255, 0.20);

  /* Action — warm copper for CTAs */
  --ember:      #D4744A;
  --ember-glow: rgba(212, 116, 74, 0.22);

  /* States */
  --success: #4DDBA0;
  --warning: #FFC15E;
  --danger:  #FF5470;

  /* Type stacks */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-11: 160px;

  /* Layout */
  --max-w: 1480px;
  --gutter: 32px;
  --rail: 56px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 700ms;

  /* Effects */
  --grid-line: rgba(255, 255, 255, 0.04);
  --grid-line-strong: rgba(255, 255, 255, 0.07);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

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

/* ---------- Base ---------- */
html {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--ink-950);
  color: var(--bone-100);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  background:
    radial-gradient(1200px 600px at 12% -6%, rgba(61, 224, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 92% 12%, rgba(212, 116, 74, 0.06), transparent 55%),
    radial-gradient(800px 480px at 50% 100%, rgba(40, 58, 107, 0.4), transparent 70%),
    var(--ink-950);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Subtle grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

.eyebrow,
.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  font-weight: 400;
}

.eyebrow-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  font-weight: 500;
}
.eyebrow-line::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--voltage);
}

.display-xxl {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144, "SOFT" 0;
  font-weight: 300;
  font-size: clamp(48px, 9.4vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--bone-50);
}

.display-xl {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--bone-50);
}

.display-lg {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 72;
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--bone-50);
}

.display-md {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 48;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bone-50);
}

.display-sm {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bone-50);
}

.italic { font-style: italic; font-variation-settings: "opsz" 96, "SOFT" 100; }

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--bone-200);
  letter-spacing: -0.01em;
  max-width: 56ch;
}

.body-sm { font-size: 14px; line-height: 1.55; color: var(--bone-200); }

.muted { color: var(--ash-400); }

/* ---------- Layout ---------- */
.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  padding: var(--space-10) 0;
}
.section.tight { padding: var(--space-9) 0; }
.section.wide { padding: var(--space-11) 0 var(--space-10); }

@media (max-width: 720px) {
  .section { padding: var(--space-9) 0; }
  .section.wide { padding: var(--space-9) 0; }
}

.divider {
  height: 1px;
  background: var(--hairline);
}

/* Section header pattern */
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ash-400);
  letter-spacing: 0.12em;
}
.section-head .head-title { max-width: 22ch; }

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur);
}
.site-header.scrolled {
  background: rgba(10, 11, 17, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--bone-50);
}
.brand .mark {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand .word-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.brand .word {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bone-50);
}
.brand .word .dot {
  color: var(--voltage);
}
.brand .word-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash-400);
  font-weight: 400;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .brand .word-tag { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-200);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--voltage);
  transition: right var(--dur) var(--ease);
}
.nav a:hover, .nav a.active { color: var(--bone-50); }
.nav a:hover::after, .nav a.active::after { right: 0; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--hairline-strong);
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--bone-50);
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-cta:hover {
  background: var(--voltage);
  color: var(--ink-950);
  border-color: var(--voltage);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--bone-100);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--bone-100);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 920px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: var(--ink-950);
  padding: 96px 32px 48px;
  transform: translateY(-110%);
  transition: transform var(--dur-slow) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: -0.02em;
  color: var(--bone-50);
  display: block;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}
.mobile-menu .nav-cta {
  display: inline-flex;
  margin-top: 16px;
  align-self: flex-start;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  font-weight: 500;
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--voltage);
  color: var(--ink-950);
}
.btn-primary:hover {
  background: var(--bone-50);
  box-shadow: 0 0 0 6px var(--voltage-glow);
}

.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--bone-50);
}
.btn-ghost:hover {
  border-color: var(--bone-50);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ember {
  background: var(--ember);
  color: var(--ink-950);
}
.btn-ember:hover {
  background: #ff8a5e;
  box-shadow: 0 0 0 6px var(--ember-glow);
}

/* ---------- Grid backdrop ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at center, black, transparent 80%);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--space-11) + 12px);
  padding-bottom: var(--space-10);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
          mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  opacity: 0.85;
}

.hero-orb {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-orb.a {
  background: radial-gradient(circle, rgba(61, 224, 255, 0.18), transparent 70%);
  top: -200px; right: -100px;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-orb.b {
  background: radial-gradient(circle, rgba(212, 116, 74, 0.10), transparent 70%);
  bottom: -260px; left: -180px;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
.hero-orb.c {
  background: radial-gradient(circle, rgba(53, 74, 130, 0.32), transparent 70%);
  top: 40%; left: 35%;
  width: 600px; height: 600px;
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 30px) scale(1.08); }
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}
.hero-meta .stat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
}
.hero-meta .stat strong { color: var(--bone-50); font-weight: 500; }
.hero-meta .stat.right { text-align: right; }
.hero-meta .pulse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.02);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--voltage);
  box-shadow: 0 0 0 0 var(--voltage);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 224, 255, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(61, 224, 255, 0); }
}

.hero-title {
  max-width: 17ch;
}

.hero-title .accent {
  font-style: italic;
  color: var(--bone-50);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-title .voltage {
  color: var(--voltage);
}

.hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: end;
  margin-top: 64px;
}
.hero-row .desc { max-width: 48ch; }
.hero-row .actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 880px) {
  .hero-row { grid-template-columns: 1fr; gap: 32px; }
  .hero-row .actions { justify-content: flex-start; }
  .hero-meta { grid-template-columns: 1fr; gap: 12px; }
  .hero-meta .stat.right { text-align: left; }
}

.hero-feature {
  margin-top: 96px;
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  padding: 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.hero-feature::before {
  content: "";
  position: absolute;
  top: -1px; left: 32px;
  width: 64px;
  height: 1px;
  background: var(--voltage);
}
.hero-feature .feat-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background: var(--ink-900);
}
.hero-feature .feat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9) brightness(0.85);
}
.hero-feature .feat-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,11,17,0.6), transparent 50%, rgba(197,255,61,0.06));
  mix-blend-mode: overlay;
}
.hero-feature .feat-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.hero-feature .feat-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-feature .feat-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--bone-200);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.hero-feature .feat-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-feature .feat-list .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--voltage);
  letter-spacing: 0.1em;
}

@media (max-width: 880px) {
  .hero-feature { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
}

/* ---------- Marquee logos ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
  overflow: hidden;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink-950), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--ink-950), transparent); }
.marquee-track {
  display: flex;
  gap: 80px;
  align-items: center;
  width: max-content;
  animation: scroll 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
}
.marquee-track span { white-space: nowrap; }
.marquee-track .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--voltage);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}
.cap-card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--ink-950);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 320px;
  transition: background var(--dur) var(--ease);
}
.cap-card:hover { background: var(--ink-900); }
.cap-card .cap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--voltage);
}
.cap-card h3 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone-50);
  max-width: 14ch;
}
.cap-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bone-300);
  margin: 0;
  max-width: 32ch;
}
.cap-card .cap-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-200);
}
.cap-card .cap-foot .arrow {
  width: 22px; height: 22px;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: all var(--dur) var(--ease);
}
.cap-card:hover .cap-foot .arrow {
  background: var(--voltage);
  border-color: var(--voltage);
  color: var(--ink-950);
}
.cap-icon {
  width: 32px; height: 32px;
  color: var(--bone-50);
}

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

/* ---------- Stats / Numbers ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat-row .stat-cell {
  padding: 32px 24px 32px 0;
  border-right: 1px solid var(--hairline);
}
.stat-row .stat-cell:last-child { border-right: 0; }
.stat-row .stat-cell .figure {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--bone-50);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-row .stat-cell .figure .unit {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--voltage);
  font-weight: 400;
  letter-spacing: 0;
}
.stat-row .stat-cell .desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--bone-300);
  max-width: 22ch;
}
@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row .stat-cell:nth-child(2) { border-right: 0; }
  .stat-row .stat-cell:nth-child(1), .stat-row .stat-cell:nth-child(2) { border-bottom: 1px solid var(--hairline); }
}

/* ---------- Process / Workflow ---------- */
.process {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}
.process-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
}
.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  cursor: default;
  transition: padding var(--dur) var(--ease);
}
.process-list li:first-child { border-top: 1px solid var(--hairline); }
.process-list li:hover { padding-left: 8px; }
.process-list .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ash-400);
  padding-top: 6px;
}
.process-list h4 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone-50);
  margin: 0 0 8px;
}
.process-list p {
  font-size: 14.5px;
  color: var(--bone-300);
  margin: 0;
  max-width: 48ch;
}
@media (max-width: 880px) {
  .process { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Industries ---------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.ind-card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-900);
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  isolation: isolate;
  transition: border-color var(--dur) var(--ease);
}
.ind-card:hover { border-color: var(--hairline-strong); }
.ind-card.span-7 { grid-column: span 7; }
.ind-card.span-5 { grid-column: span 5; }
.ind-card.span-6 { grid-column: span 6; }
.ind-card.span-4 { grid-column: span 4; }
.ind-card.span-8 { grid-column: span 8; }

.ind-card .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.ind-card .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.1) brightness(0.55);
  transition: transform 1.2s var(--ease);
}
.ind-card:hover .bg img { transform: scale(1.04); }
.ind-card .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,11,17,0.85));
}
.ind-card .ind-tag {
  position: absolute;
  top: 20px; left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-100);
  padding: 6px 10px;
  border: 1px solid var(--hairline-strong);
  background: rgba(10, 11, 17, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 2px;
}
.ind-card h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone-50);
}
.ind-card p {
  font-size: 14px;
  color: var(--bone-200);
  margin: 8px 0 0;
  max-width: 36ch;
}

@media (max-width: 880px) {
  .industries-grid { grid-template-columns: 1fr; }
  .ind-card.span-7, .ind-card.span-5, .ind-card.span-6, .ind-card.span-4, .ind-card.span-8 {
    grid-column: span 1;
  }
}

/* ---------- Approach / Philosophy ---------- */
.philosophy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 96px;
  align-items: start;
}
.philosophy .pull-quote {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96, "SOFT" 100;
  font-style: italic;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--bone-50);
}
.philosophy .pull-quote::first-letter {
  color: var(--voltage);
  font-style: normal;
  font-variation-settings: "opsz" 144;
}
.philosophy .pull-meta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ash-400);
}
.philosophy .pull-meta .line { width: 36px; height: 1px; background: var(--ash-500); }

.principle-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.principle-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.principle-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.principle-list .pn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--voltage);
  padding-top: 4px;
}
.principle-list h4 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  color: var(--bone-50);
  margin: 0 0 6px;
}
.principle-list p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bone-300);
  margin: 0;
  max-width: 52ch;
}
@media (max-width: 880px) {
  .philosophy { grid-template-columns: 1fr; gap: 48px; }
}

/* ---------- Insights / Cards ---------- */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.insight-card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--ink-900);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.insight-card:hover { transform: translateY(-4px); border-color: var(--hairline-strong); }
.insight-card .ins-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-800);
  position: relative;
}
.insight-card .ins-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.insight-card:hover .ins-img img { transform: scale(1.06); }
.insight-card .ins-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,11,17,0.4));
}
.insight-card .ins-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.insight-card .ins-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ash-400);
}
.insight-card .ins-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ash-500); }
.insight-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--bone-50);
}
.insight-card p {
  font-size: 14px;
  color: var(--bone-300);
  margin: 0;
}
.insight-card .ins-foot {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--voltage);
}
@media (max-width: 880px) {
  .insight-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  position: relative;
  padding: 72px 56px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background:
    radial-gradient(700px 300px at 80% 30%, rgba(197, 255, 61, 0.12), transparent 70%),
    linear-gradient(135deg, var(--ink-900), var(--ink-850));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 80% 30%, black, transparent 70%);
          mask-image: radial-gradient(circle at 80% 30%, black, transparent 70%);
  pointer-events: none;
}
.cta-banner h3 { max-width: 16ch; }
.cta-banner .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cta-banner .cta-info {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-400);
  margin-top: 12px;
}
@media (max-width: 880px) {
  .cta-banner { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
  .cta-banner .cta-actions { justify-content: flex-start; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--ink-1000);
  border-top: 1px solid var(--hairline);
  padding: 80px 0 32px;
  z-index: 2;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.foot-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a {
  font-size: 14.5px;
  color: var(--bone-200);
  transition: color var(--dur-fast) var(--ease);
}
.foot-col a:hover { color: var(--voltage); }

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.foot-brand .brand .word { font-size: 14px; }
.foot-brand .brand .mark { width: 32px; height: 32px; }
.foot-brand p {
  font-size: 14px;
  color: var(--bone-300);
  max-width: 36ch;
  line-height: 1.55;
  margin: 0;
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-500);
  flex-wrap: wrap;
  gap: 12px;
}
.foot-bottom .foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
}

/* ---------- Page heading (subpages) ---------- */
.page-head {
  position: relative;
  padding-top: calc(var(--space-11) + 12px);
  padding-bottom: var(--space-9);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.page-head .grid-bg { -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 30%, transparent 100%); }
.page-head .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  margin-bottom: 32px;
}
.page-head .breadcrumb .voltage-line { width: 24px; height: 1px; background: var(--voltage); }
.page-head .lead { margin-top: 28px; max-width: 60ch; }

/* ---------- Service detail blocks ---------- */
.service-block {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 64px;
  padding: 80px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.service-block:first-child { border-top: 1px solid var(--hairline); }
.service-block .sb-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--voltage);
}
.service-block h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--bone-50);
  margin: 0 0 16px;
}
.service-block p { color: var(--bone-200); font-size: 15.5px; line-height: 1.6; margin: 0 0 16px; max-width: 50ch; }
.service-block .sb-list {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-block .sb-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  color: var(--bone-200);
  padding: 12px 0;
  border-bottom: 1px dashed var(--hairline);
}
.service-block .sb-list li:last-child { border-bottom: 0; }
.service-block .sb-list .check {
  color: var(--voltage);
  font-family: var(--font-mono);
  font-size: 12px;
  padding-top: 2px;
}
@media (max-width: 880px) {
  .service-block { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
}

/* ---------- About story ---------- */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.about-story .story-text p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--bone-200);
  margin: 0 0 18px;
  max-width: 60ch;
}
.about-story .story-text p:first-letter {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-size: 56px;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--voltage);
}
.about-story .story-side {
  position: sticky;
  top: 120px;
  border-left: 1px solid var(--hairline);
  padding-left: 32px;
}
.about-story .story-side .meta-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}
.about-story .story-side .meta-block:last-child { border-bottom: 0; }
.about-story .story-side h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  margin: 0 0 12px;
  font-weight: 500;
}
.about-story .story-side p {
  font-size: 14.5px;
  color: var(--bone-200);
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .about-story { grid-template-columns: 1fr; gap: 48px; }
  .about-story .story-side { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 32px; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 96px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  font-weight: 500;
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  padding: 12px 0;
  font-size: 16px;
  color: var(--bone-50);
  font-family: var(--font-body);
  transition: border-color var(--dur) var(--ease);
  outline: none;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--voltage);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-info-block {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.contact-info-block h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  font-weight: 500;
  margin: 0 0 12px;
}
.contact-info-block p, .contact-info-block a {
  font-size: 16px;
  color: var(--bone-100);
  margin: 0;
  line-height: 1.6;
}
.contact-info-block a:hover { color: var(--voltage); }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Email-first contact ---------- */
.email-cta {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.email-cta .label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.email-cta .label-mono::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--voltage);
}
.email-display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 300;
  color: var(--bone-50);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hairline);
  transition: border-color var(--dur) var(--ease);
}
.email-display:hover { border-bottom-color: var(--voltage); }
.email-display .at,
.email-display .dot { color: var(--voltage); }
.email-display .at {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.email-display .arrow-mark {
  font-family: var(--font-mono);
  font-size: 0.36em;
  color: var(--ash-400);
  margin-left: 8px;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
  align-self: center;
}
.email-display:hover .arrow-mark { color: var(--voltage); transform: translate(8px, -4px); }

.email-prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--bone-200);
  max-width: 56ch;
  margin: 0;
}

.email-hint {
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.email-hint ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.email-hint li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: var(--bone-200);
  line-height: 1.55;
}
.email-hint .check {
  color: var(--voltage);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.email-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---------- Industries detail rows ---------- */
.ind-row {
  display: grid;
  grid-template-columns: 220px 1fr 1.2fr;
  gap: 64px;
  padding: 64px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.ind-row:first-child { border-top: 1px solid var(--hairline); }
.ind-row .ind-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ash-400);
}
.ind-row .ind-meta strong { color: var(--voltage); display: block; margin-bottom: 8px; }
.ind-row h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--bone-50);
  margin: 0 0 12px;
  max-width: 14ch;
}
.ind-row .ind-desc {
  font-size: 15px;
  color: var(--bone-200);
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 0 16px;
}
.ind-row .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.ind-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-200);
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
@media (max-width: 880px) {
  .ind-row { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}

/* ---------- Chatbot ---------- */
.chatbot-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--voltage);
  color: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 0 0 var(--voltage-glow);
  transition: all var(--dur) var(--ease);
  cursor: pointer;
  animation: chatPulse 3s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 0 rgba(61,224,255,0.55); }
  50%      { box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 14px rgba(61,224,255,0); }
}
.chatbot-toggle:hover { transform: scale(1.05); }
.chatbot-toggle svg { width: 22px; height: 22px; }

.chatbot-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: min(420px, calc(100vw - 48px));
  height: min(620px, calc(100vh - 140px));
  z-index: 99;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur) var(--ease);
}
.chatbot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.chatbot-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink-1000);
}
.chatbot-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chatbot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--voltage);
  color: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
}
.chatbot-avatar::after {
  content: "";
  position: absolute;
  bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--ink-1000);
}
.chatbot-meta-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.chatbot-name {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--bone-50);
  font-weight: 500;
}
.chatbot-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chatbot-close {
  width: 28px; height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone-200);
  transition: all var(--dur-fast) var(--ease);
}
.chatbot-close:hover { color: var(--voltage); background: var(--ink-800); }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--ink-700); border-radius: 3px; }
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 86%;
  animation: msgIn 0.4s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone-100);
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  position: relative;
}
.chat-bubble strong { color: var(--bone-50); font-weight: 500; }
.chat-msg.user .chat-bubble {
  background: var(--voltage);
  color: var(--ink-1000);
  border-color: var(--voltage);
}
.chat-msg.user .chat-bubble strong { color: var(--ink-1000); }
.chat-msg .chat-mini-avatar {
  width: 26px; height: 26px;
  border-radius: 4px;
  flex: none;
  background: var(--voltage);
  color: var(--ink-950);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chat-msg.user .chat-mini-avatar {
  background: var(--ember);
  color: var(--ink-1000);
}
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 14px;
}
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--bone-300);
  opacity: 0.6;
  animation: dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 0.95; }
}

.chatbot-suggestions {
  padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--ink-1000);
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--bone-200);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover {
  background: var(--voltage);
  color: var(--ink-1000);
  border-color: var(--voltage);
}
.chatbot-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--hairline);
  background: var(--ink-900);
}
.chatbot-input input {
  flex: 1;
  background: var(--ink-800);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--bone-50);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
}
.chatbot-input input:focus { border-color: var(--voltage); }
.chatbot-input input::placeholder { color: var(--ash-500); }
.chatbot-send {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--voltage);
  color: var(--ink-1000);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast) var(--ease);
}
.chatbot-send:hover { background: var(--bone-50); transform: translateX(2px); }
.chatbot-send:disabled { opacity: 0.4; cursor: default; transform: none; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger.in > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-voltage { color: var(--voltage); }
.text-ember { color: var(--ember); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 32px; }
.mt-8 { margin-top: 64px; }

.scroll-prompt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash-400);
  margin-top: 64px;
}
.scroll-prompt .line {
  width: 36px; height: 1px;
  background: var(--ash-500);
  position: relative;
  overflow: hidden;
}
.scroll-prompt .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--voltage);
  transform: translateX(-100%);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- Full-name banner ---------- */
.fullname-banner {
  position: relative;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(90deg, transparent, rgba(61, 224, 255, 0.04), transparent);
  overflow: hidden;
}
.fullname-banner .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.fullname-banner .fn-pre,
.fullname-banner .fn-post {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash-400);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.fullname-banner .fn-pre::after,
.fullname-banner .fn-post::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--voltage);
}
.fullname-banner .fn-main {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 72;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--bone-50);
  text-align: center;
}
.fullname-banner .fn-main .amp {
  color: var(--voltage);
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100;
}

/* ---------- Image gallery (homepage) ---------- */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.gal {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--ink-900);
  isolation: isolate;
}
.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.7) hue-rotate(-12deg);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.gal:hover img { transform: scale(1.04); filter: contrast(1.1) saturate(1) hue-rotate(0deg); }
.gal::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 30%, rgba(7, 12, 26, 0.65)),
    linear-gradient(135deg, rgba(61, 224, 255, 0.05), transparent 50%);
  pointer-events: none;
}
.gal .gal-meta {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gal .gal-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--voltage);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gal .gal-tag::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--voltage);
}
.gal .gal-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--bone-50);
  line-height: 1.1;
  max-width: 18ch;
}
.gal-tall  { grid-column: span 5; min-height: 520px; }
.gal-wide  { grid-column: span 7; min-height: 320px; }
.gal-third { grid-column: span 4; min-height: 320px; }
.gal-half  { grid-column: span 6; min-height: 360px; }

@media (max-width: 880px) {
  .image-gallery { grid-template-columns: 1fr; gap: 16px; }
  .gal-tall, .gal-wide, .gal-third, .gal-half {
    grid-column: span 1;
    min-height: 280px;
  }
}

/* ---------- Service block image ---------- */
.service-block {
  position: relative;
}
.service-block .sb-image {
  grid-column: 2 / -1;
  margin-top: 32px;
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink-900);
  border: 1px solid var(--hairline);
}
.service-block .sb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.7) brightness(0.85) hue-rotate(-15deg);
}
.service-block .sb-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 12, 26, 0) 50%, rgba(7, 12, 26, 0.5)),
    linear-gradient(135deg, rgba(61, 224, 255, 0.06), transparent 60%);
}
@media (max-width: 880px) {
  .service-block .sb-image { grid-column: 1 / -1; }
}

/* ---------- About hero image ---------- */
.about-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 64px;
  background: var(--ink-900);
  border: 1px solid var(--hairline);
}
.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.75) brightness(0.85) hue-rotate(-15deg);
}
.about-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(7, 12, 26, 0.7)),
    linear-gradient(90deg, rgba(7, 12, 26, 0.6), transparent 40%, transparent 60%, rgba(7, 12, 26, 0.4));
}
.about-hero-image .stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-50);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.about-hero-image .stamp::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--voltage);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
