/* ==========================================================================
   SoLS AI — site styles
   Palette derived from the logo: cyan → sky → deep blue.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --brand-cyan: #5FE0E6;
  --brand-sky: #22B5E8;
  --brand-blue: #1677D2;
  --brand-deep: #0B4F9C;
  --grad: linear-gradient(120deg, #3FD3E0 0%, #1FA8E6 45%, #0B5BA8 100%);

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Light theme */
  --bg: #F5F8FB;
  --bg-tint: #EBF2F8;
  --surface: #FFFFFF;
  --surface-2: #F3F7FB;
  --ink: #0A1A2F;
  --ink-2: #34485F;
  --muted: #5F7189;
  --line: rgba(10, 26, 47, .09);
  --line-strong: rgba(10, 26, 47, .16);
  --accent-ink: #0A66B3;
  --accent-soft: rgba(31, 168, 230, .10);
  --accent-ring: rgba(31, 168, 230, .35);
  --grad-text: linear-gradient(110deg, #0C9FC2 0%, #1677D2 50%, #0B4F9C 100%);
  --btn-bg: #0A1A2F;
  --btn-ink: #FFFFFF;
  --danger: #C92A2F;
  --success: #0F7B4F;
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, .05), 0 1px 1px rgba(10, 26, 47, .03);
  --shadow-md: 0 10px 30px -12px rgba(10, 26, 47, .18), 0 2px 6px rgba(10, 26, 47, .04);
  --shadow-lg: 0 40px 80px -30px rgba(11, 79, 156, .35), 0 12px 30px -12px rgba(10, 26, 47, .18);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #060B14;
  --bg-tint: #09111E;
  --surface: #0D1626;
  --surface-2: #111D30;
  --ink: #EAF2FB;
  --ink-2: #B3C2D5;
  --muted: #8597AE;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);
  --accent-ink: #5CC8F0;
  --accent-soft: rgba(95, 224, 230, .09);
  --accent-ring: rgba(95, 224, 230, .35);
  --grad-text: linear-gradient(110deg, #6FE6EB 0%, #3BB4F0 50%, #5B8CF0 100%);
  --btn-bg: #F2F7FD;
  --btn-ink: #0A1A2F;
  --danger: #FF7A7E;
  --success: #4FD69C;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.12; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
::selection { background: rgba(31, 168, 230, .25); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--btn-bg); color: var(--btn-ink); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Serif-italic gradient accent used inside headings */
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-right: .06em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 46px; padding: 0 20px;
  border-radius: 999px;
  font-size: .95rem; font-weight: 550; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { height: 38px; padding: 0 15px; font-size: .875rem; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--btn-bg); color: var(--btn-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 8px 24px -10px rgba(11, 79, 156, .55);
}
.btn-primary::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: .55; }

.btn-ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent-ink); color: var(--accent-ink); }

.btn-light { background: #fff; color: #0A1A2F; }
.btn-light:hover { box-shadow: 0 10px 30px -10px rgba(95, 224, 230, .6); }
.btn-outline-light { color: #EAF2FB; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }

.btn[aria-busy="true"] { pointer-events: none; opacity: .8; }
.btn[aria-busy="true"] .icon { animation: spin .8s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: auto; }
.brand b { font-weight: 650; margin-left: .25em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { margin-inline: auto; display: none; }
.nav-list { display: flex; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: .925rem; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav-list a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-list a.is-active { color: var(--ink); background: var(--accent-soft); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; margin-left: 6px; }

.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.mobile-menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 16px var(--gutter) 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  animation: menu-in .3s var(--ease);
}
.mobile-menu ul { margin-bottom: 24px; }
.mobile-menu li a {
  display: block; padding: 14px 4px;
  font-size: 1.35rem; font-weight: 550; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-phone {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; color: var(--ink-2); font-weight: 500;
}
body.menu-open { overflow: hidden; }

@media (min-width: 560px) { .header-cta { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav { display: block; }
  .header-actions { margin-left: 0; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 75%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero-orb--a { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, var(--brand-cyan), transparent 70%); animation: float 18s ease-in-out infinite; }
.hero-orb--b { width: 460px; height: 460px; bottom: -200px; left: -160px; background: radial-gradient(circle, var(--brand-blue), transparent 70%); opacity: .35; animation: float 22s ease-in-out infinite reverse; }
[data-theme="dark"] .hero-orb--a { opacity: .32; }
[data-theme="dark"] .hero-orb--b { opacity: .3; }

.hero-inner { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.12fr .88fr; } }

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; margin-bottom: 28px;
  border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm);
  font-size: .875rem; color: var(--ink-2);
  transition: box-shadow .2s;
}
.announce:hover { box-shadow: inset 0 0 0 1px var(--accent-ink), var(--shadow-sm); }
.announce-tag {
  padding: 3px 10px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.announce .icon { width: 14px; height: 14px; color: var(--muted); }

.hero-title {
  font-size: clamp(2.5rem, 1.3rem + 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 620;
}
.hero-title { text-wrap: wrap; }
.hero-title em { display: inline-block; }
.hero-lead {
  margin-top: 24px; max-width: 34em;
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
  color: var(--ink-2);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: .9rem; color: var(--muted); }
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .icon { width: 16px; height: 16px; color: var(--accent-ink); stroke-width: 2.5; }

/* Demo window */
.hero-demo { position: relative; }
.hero-demo::before {
  content: ""; position: absolute; inset: 8% 4% -4%; z-index: -1;
  background: var(--grad); filter: blur(60px); opacity: .28; border-radius: 40px;
}
.demo-window {
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-lg);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .78rem; color: var(--muted);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo-file { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 500; }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }

.demo-body { padding: clamp(16px, 3vw, 24px); }
.flow-node {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 14px; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9rem;
}
.flow-node strong { display: block; font-weight: 550; line-height: 1.3; }
.flow-kicker { display: block; font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.flow-time { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.flow-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--line);
}
.flow-icon .icon { width: 18px; height: 18px; }
.flow-icon--ai { background: var(--grad); color: #fff; box-shadow: none; }
.flow-node--ai {
  position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 30px -16px rgba(31, 168, 230, .7);
}
.flow-fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.flow-fields code {
  font-family: var(--font-mono); font-size: .72rem;
  padding: 3px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.flow-score {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  padding: 4px 8px; border-radius: 8px; color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}

.flow-link { position: relative; height: 28px; }
.flow-link::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 8px);
}
.flow-link span {
  position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--brand-sky); box-shadow: 0 0 12px var(--brand-sky);
  animation: drop 2.4s var(--ease) infinite;
}
.flow-link--split span { animation-delay: 1.2s; }

.flow-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flow-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 6px; border-radius: 12px; text-align: center;
  font-size: .78rem; font-weight: 500; line-height: 1.25; color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  animation: chip-glow 4.8s ease-in-out infinite;
}
.flow-chip:nth-child(2) { animation-delay: .3s; }
.flow-chip:nth-child(3) { animation-delay: .6s; }
.flow-chip .icon { width: 17px; height: 17px; color: var(--accent-ink); }

.demo-log {
  --row: 30px;
  height: calc(var(--row) * 3);
  margin-top: 16px; overflow: hidden;
  border-top: 1px solid var(--line); padding-top: 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.demo-log ul { transition: transform .5s var(--ease); }
.demo-log li {
  height: var(--row); display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .76rem; color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.demo-log em { margin-left: auto; font-style: normal; color: var(--muted); }
.demo-log .ok { color: var(--success); }
.demo-log .warn { color: #D9822B; font-weight: 700; padding-inline: 2px; }
/* Scene switching */
.demo-scene[hidden] { display: none; }
.demo-scene.is-entering { animation: scene-in .6s var(--ease); }
.demo-body { min-height: 450px; }
.demo-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.demo-caption { text-align: center; font-size: .78rem; color: var(--muted); }
.demo-pager { display: flex; gap: 2px; }
.demo-pager button { position: relative; width: 26px; height: 22px; border-radius: 999px; }
.demo-pager button::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 999px; background: var(--line-strong);
  transition: width .3s var(--ease), margin .3s var(--ease), background-color .3s;
}
.demo-pager button:hover::before { background: var(--muted); }
.demo-pager button[aria-pressed="true"]::before { width: 20px; margin-left: -10px; background: var(--grad); }
.demo-live--brand { color: var(--accent-ink); }
.demo-live.is-busy { color: #D9822B; }
.progress { position: relative; height: 6px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease); }

/* Scene: WhatsApp assistant */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; }
.chat-avatar .icon { width: 18px; height: 18px; }
.chat-head strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.25; }
.chat-head div span { font-size: .75rem; color: var(--success); }
.chat-badge { font-family: var(--font-mono); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.chat-thread {
  flex: 1; height: 300px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
  mask-image: linear-gradient(to bottom, transparent, #000 18%);
}
.msg {
  flex: none; max-width: 82%; padding: 9px 13px; border-radius: 16px;
  font-size: .84rem; line-height: 1.45; animation: msg-in .4s var(--ease) both;
}
.msg--in { align-self: flex-start; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 5px; }
.msg--out {
  align-self: flex-end; border-bottom-right-radius: 5px;
  background: color-mix(in srgb, var(--brand-sky) 16%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-sky) 30%, transparent);
}
.msg--card { display: grid; gap: 6px; min-width: 230px; }
.mc-title { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.mc-title .icon { width: 15px; height: 15px; color: var(--success); stroke-width: 2.5; }
.mc-row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--ink-2); }
.mc-row b { color: var(--ink); font-weight: 600; }
.mc-btn { margin-top: 4px; padding: 7px; border-radius: 10px; text-align: center; font-weight: 600; font-size: .8rem; background: var(--btn-bg); color: var(--btn-ink); }
.msg-sys {
  flex: none; align-self: center; padding: 4px 12px; border-radius: 999px; animation: msg-in .4s var(--ease) both;
  font-family: var(--font-mono); font-size: .7rem; color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}
.msg--typing { display: flex; gap: 4px; padding: 13px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-ink); opacity: .5; animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
.chat-compose {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 16px; border-radius: 999px;
  font-size: .8rem; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.chat-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; }
.chat-send .icon { width: 14px; height: 14px; }

/* Scene: operations dashboard */
.dash { display: flex; flex-direction: column; gap: 14px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { min-width: 0; padding: 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { display: block; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi strong { display: block; margin-top: 2px; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-family: var(--font-mono); font-size: .68rem; }
.kpi .up { color: var(--success); }
.kpi .down { color: var(--accent-ink); }
.kpi strong.is-bump { animation: bump .5s var(--ease); }
.dash-chart { flex: 1; display: flex; flex-direction: column; padding: 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.dash-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dash-chart-head strong { font-size: .85rem; font-weight: 600; }
.dash-chart-head span { font-size: .7rem; color: var(--muted); }
.bars {
  flex: 1; min-height: 140px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end;
  background: repeating-linear-gradient(to top, transparent 0 34px, var(--line) 34px 35px);
}
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar i {
  width: 100%; max-width: 30px; border-radius: 7px 7px 3px 3px;
  background: color-mix(in srgb, var(--brand-sky) 32%, var(--surface));
  transition: height .9s var(--ease);
}
.bar span { font-size: .65rem; color: var(--muted); }
.bar--today i { background: var(--grad); box-shadow: 0 8px 20px -8px rgba(31, 168, 230, .8); }
.bar--today span { color: var(--accent-ink); font-weight: 600; }
.bar:nth-child(1) i { height: 62%; } .bar:nth-child(2) i { height: 74%; } .bar:nth-child(3) i { height: 58%; }
.bar:nth-child(4) i { height: 81%; } .bar:nth-child(5) i { height: 69%; } .bar:nth-child(6) i { height: 88%; }
.bar:nth-child(7) i { height: 52%; }
.dash-feed { display: grid; gap: 2px; }
.dash-feed li { display: flex; align-items: center; gap: 10px; height: 30px; font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.dash-feed li.is-new { animation: feed-in .5s var(--ease); }
.dash-feed em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot--ok { background: var(--success); }
.dot--info { background: var(--brand-sky); }
.dot--warn { background: #D9822B; }

/* Scene: model training */
.train { display: flex; flex-direction: column; gap: 14px; }
.train-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.train-stats div { min-width: 0; padding: 10px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.train-stats span { display: block; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.train-stats strong { display: block; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.train-chart { position: relative; flex: 1; display: flex; min-height: 150px; padding: 18px 12px 10px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.train-chart svg { flex: 1; width: 100%; height: auto; min-height: 120px; overflow: visible; }
.train-axis { position: absolute; top: 6px; left: 12px; font-family: var(--font-mono); font-size: .65rem; color: var(--muted); }
.train-grid { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.train-area { fill: url(#train-fill); stroke: none; }
.train-line { fill: none; stroke: url(#train-stroke); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.train-dot {
  position: absolute; left: calc(12px + (100% - 24px) * .763); top: calc(18px + (100% - 28px) * .705);
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #1677D2; box-shadow: 0 0 0 4px rgba(31, 168, 230, .25), 0 0 14px rgba(31, 168, 230, .8);
}
.train-phase { display: grid; gap: 6px; }
.train-phase-row { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-2); }
.train-phase-row b { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); }
.train-phase .progress i { width: 76%; }
.term {
  height: 76px; overflow: hidden; padding: 8px 12px; border-radius: 12px;
  background: #07101D; color: #A8F0DA; font-family: var(--font-mono); font-size: .7rem; line-height: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.term div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term div.is-new { animation: feed-in .35s var(--ease); }
.t-dim { color: #5E7A92; }

/* Scene: deploy pipeline */
.deploy { display: flex; flex-direction: column; gap: 14px; }
.commit {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
.commit > div { min-width: 0; }
.commit-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--btn-bg); color: var(--btn-ink); }
.commit-icon .icon { width: 18px; height: 18px; }
.commit strong { display: block; font-size: .86rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.commit div > span { font-size: .72rem; color: var(--muted); }
.commit code { font-family: var(--font-mono); color: var(--accent-ink); }
.commit-pr { font-family: var(--font-mono); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); white-space: nowrap; }
.pipeline { position: relative; display: grid; gap: 4px; }
.pipeline::before { content: ""; position: absolute; left: 11px; top: 16px; bottom: 16px; width: 2px; background: var(--line-strong); }
.pipeline li { position: relative; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px; height: 36px; font-size: .84rem; }
.pl-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.pl-name small { margin-left: 6px; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }
.pl-time { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.pl-state { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); }
.pipeline li.is-running .pl-state { box-shadow: none; }
.pipeline li.is-running .pl-state::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent-soft); border-top-color: var(--brand-sky); animation: spin .7s linear infinite;
}
.pipeline li.is-running .pl-name { color: var(--ink); font-weight: 550; }
.pipeline li.is-done .pl-state { background: var(--success); box-shadow: none; animation: bump .4s var(--ease); }
.pipeline li.is-done .pl-state::after {
  content: ""; position: absolute; left: 8.5px; top: 5.5px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pipeline li.is-done .pl-name { color: var(--ink); }
.deploy-foot { display: grid; gap: 8px; margin-top: auto; font-size: .8rem; font-weight: 550; color: var(--ink-2); }
.deploy-foot .progress i { width: 100%; }
.deploy-foot.is-live { color: var(--success); }
.deploy-foot.is-live .progress i { background: var(--success); }

/* Scene: support triage */
.triage { display: flex; flex-direction: column; gap: 12px; }
.ticket { padding: 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(-10px); }
.ticket.is-in { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ticket-meta { display: flex; gap: 10px; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.ticket-src { color: var(--accent-ink); }
.ticket p { margin-top: 6px; min-height: 2.9em; font-size: .88rem; line-height: 1.45; }
.triage-ai {
  display: grid; gap: 9px; padding: 14px; border-radius: 14px; border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
}
.triage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.triage-head strong { font-size: .86rem; font-weight: 600; white-space: nowrap; }
.flow-icon--sm { width: 28px; height: 28px; border-radius: 8px; }
.flow-icon--sm .icon { width: 15px; height: 15px; }
.triage-tag { margin-left: auto; padding: 3px 9px; border-radius: 999px; font-size: .68rem; font-weight: 600; color: #A04406; background: rgba(217, 130, 43, .14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .triage-tag { color: #F5B26B; }
.conf { display: grid; grid-template-columns: 70px 1fr 38px; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-2); }
.conf b { text-align: right; font-family: var(--font-mono); font-weight: 500; font-size: .72rem; }
.conf .progress i { background: color-mix(in srgb, var(--brand-sky) 40%, var(--surface)); }
.conf.is-top { color: var(--ink); font-weight: 550; }
.conf.is-top .progress i { background: var(--grad); }
.conf.is-top b { color: var(--accent-ink); }
.triage-ai .conf:nth-child(2) .progress i { width: 94%; }
.triage-ai .conf:nth-child(3) .progress i { width: 4%; }
.triage-ai .conf:nth-child(4) .progress i { width: 2%; }
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lane {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; border-radius: 12px;
  font-size: .76rem; color: var(--ink-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, background-color .3s;
}
.lane strong { font-family: var(--font-mono); font-size: .85rem; color: var(--ink); }
.lane.is-hit { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--brand-sky); }
.lane.is-hit strong { color: var(--accent-ink); animation: bump .5s var(--ease); }
.triage-foot { margin-top: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--success); }
@media (max-width: 420px) {
  .lane { flex-direction: column; align-items: flex-start; gap: 0; }
  .train-stats { grid-template-columns: repeat(2, 1fr); }
  .kpi strong { font-size: 1.05rem; }
}

/* ---------- Stack marquee ---------- */
.stack { padding: 8px 0 clamp(16px, 3vw, 32px); }
.stack-label {
  text-align: center; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.marquee {
  display: flex; overflow: hidden; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  flex: none; display: flex; gap: 48px; padding-right: 48px; min-width: 100%;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  display: flex; align-items: center; gap: 48px;
  font-size: 1.1rem; font-weight: 550; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap;
}
.marquee-track li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(64px, 8vw, 108px); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split {
  max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
}
.section-head--split > div { max-width: 640px; }
.section-head--split .section-lead { max-width: 420px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--light { color: var(--brand-cyan); }

.section-title {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.section-lead { margin-top: 18px; font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }
.section-lead a, .faq a, .form-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
[data-spotlight] { overflow: hidden; isolation: isolate; }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 168, 230, .12), transparent 60%);
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight]:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-md); }

.card h3 { font-size: 1.25rem; letter-spacing: -0.02em; margin: 20px 0 8px; }
.card p { color: var(--ink-2); font-size: .975rem; }

.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  color: var(--accent-ink); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 22%, transparent);
}
.card-icon .icon { width: 22px; height: 22px; }
.card-icon--sm { width: 38px; height: 38px; border-radius: 11px; }
.card-icon--sm .icon { width: 18px; height: 18px; }

.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  font-size: .925rem; font-weight: 600; color: var(--accent-ink);
}
.card-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card-link:hover .icon, .project--cta:hover .card-link .icon { transform: translateX(4px); }

.ticks { display: grid; gap: 9px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 28px; font-size: .925rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.2em + 4px); width: 5px; height: 9px;
  border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ticks--lg li { font-size: 1rem; }
.ticks--lg { margin: 28px 0 36px; gap: 12px; }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 680px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento-card.bento-card--wide { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: stretch; }
}
.bento-card { display: flex; flex-direction: column; }
.bento-card > .card-link, .bento-text > .card-link { margin-top: auto; padding-top: 22px; }
.bento-text { display: flex; flex-direction: column; height: 100%; }
.bento-card--wide .ticks { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.bento-visual {
  display: none;
  position: relative; height: 100%; min-height: 260px; padding: 28px 20px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 20%, var(--accent-soft), transparent 60%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  flex-direction: column; justify-content: center; gap: 22px;
  overflow: hidden;
}
@media (min-width: 1024px) { .bento-visual { display: flex; } }
.mini-flow { display: flex; align-items: center; }
.mini-flow--offset { padding-left: 24px; }
.mf-node {
  flex: none; padding: 7px 12px; border-radius: 10px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm);
}
.mf-node--ai { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px rgba(31, 168, 230, .7); }
.mf-line { position: relative; flex: 1; height: 2px; min-width: 24px; background: var(--line-strong); overflow: hidden; }
.mf-line::after {
  content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--brand-sky), transparent);
  animation: travel 2.2s linear infinite;
}
.mini-flow:nth-child(2) .mf-line::after { animation-delay: .7s; }
.mini-flow:nth-child(3) .mf-line::after { animation-delay: 1.4s; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; padding: 28px;
  border-radius: var(--radius); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.step-num {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-mono); font-size: .85rem; color: var(--muted);
}
.step-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(31, 168, 230, .8);
}
.step-icon .icon { width: 20px; height: 20px; }
.step h3 { margin: 22px 0 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50px; right: -16px; width: 16px; height: 2px;
    background: var(--grad); opacity: .5;
  }
}

/* ---------- Work / projects ---------- */
.filters {
  display: flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { background: var(--btn-bg); color: var(--btn-ink); }

.projects { display: grid; gap: 16px; }
@media (min-width: 680px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .project.project--feature { grid-column: span 2; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 8px; }
}
@media (min-width: 680px) and (max-width: 1023.98px) { .project--feature { grid-column: span 2; } }

.project {
  position: relative; display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, opacity .3s;
}
.project:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-md); }
.project.is-hidden { display: none; }
.project-media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 3 / 2; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease); }
.project:hover .project-media img { transform: scale(1.04); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 18px 14px 14px; }
.project--feature .project-body { padding: 20px 22px; }
.project-meta { display: flex; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-meta span + span::before { content: "·"; margin-right: 8px; }
.project h3 { margin: 10px 0 8px; font-size: 1.2rem; letter-spacing: -0.02em; }
.project--feature h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.project p { color: var(--ink-2); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}

.project-art { display: grid; place-items: center; color: #fff; }
.project-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 18px 18px;
}
.project-art .icon { position: relative; width: 56px; height: 56px; stroke-width: 1.5; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.project-art--automation { background: linear-gradient(135deg, #2CC9DA, #1677D2); }
.project-art--product { background: linear-gradient(135deg, #1677D2, #0B2F6B); }
.project-art--docs { background: linear-gradient(135deg, #5FE0E6, #0E8FD6 60%, #0B4F9C); }

.project--cta {
  justify-content: center; padding: 32px; min-height: 280px;
  background:
    radial-gradient(circle at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  border: 0;
}
.project--cta h3 { margin-top: 22px; font-size: 1.45rem; }
.project--cta:hover { box-shadow: inset 0 0 0 1.5px var(--accent-ink), var(--shadow-md); }

/* Example projects: hidden unless previewing locally (main.js adds .show-placeholders) */
[data-placeholder] { display: none; }
.show-placeholders [data-placeholder] { display: flex; }
.show-placeholders [data-placeholder].is-hidden { display: none; }
[data-placeholder]::after {
  content: "Example — replace before launch"; position: absolute; top: 20px; left: 20px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  background: #FFE8A3; color: #5C4300;
}

/* ---------- Research (always dark) ---------- */
.research {
  --ink: #EAF2FB; --ink-2: #B3C2D5; --muted: #8597AE;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
  --accent-ink: #5CC8F0;
  --grad-text: linear-gradient(110deg, #6FE6EB 0%, #3BB4F0 50%, #5B8CF0 100%);
  background: #050A13; color: var(--ink);
  overflow: hidden; isolation: isolate;
}
.research-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(34, 181, 232, .22), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(11, 79, 156, .35), transparent 70%);
}
.research-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}
.research-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 1024px) { .research-grid { grid-template-columns: 1fr 1.05fr; } }
.research-copy > p { margin-top: 22px; color: var(--ink-2); font-size: 1.075rem; }
.research-copy strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 36px 0; }
.stat {
  display: flex; flex-direction: column-reverse; gap: 2px;
  padding: 18px 20px; border-radius: 16px;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line);
}
.stat dd {
  font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat dt { font-size: .85rem; color: var(--muted); }
.research-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.research-cite { margin-top: 22px; font-size: .85rem; color: var(--muted); }
.research-cite a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.research-figure a {
  display: block; overflow: hidden; border-radius: var(--radius-lg); background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 80px -30px rgba(34, 181, 232, .45);
  transition: transform .4s var(--ease);
}
.research-figure a:hover { transform: translateY(-4px); }
.research-figure figcaption { margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- Values ---------- */
.values { display: grid; gap: 32px 24px; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.value h3 { margin: 20px 0 8px; font-size: 1.15rem; letter-spacing: -0.02em; }
.value p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Internships ---------- */
.intern { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .intern { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.tracks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.track {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: .875rem; font-weight: 500;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.track .icon { width: 16px; height: 16px; color: var(--accent-ink); }

.intern-steps h3 { margin: 0 0 24px; font-size: 1.2rem; }
.timeline { position: relative; display: grid; gap: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(to bottom, var(--brand-sky), var(--line));
}
.timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; }
.timeline li > span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-family: var(--font-mono); font-size: .85rem; font-weight: 500;
  background: var(--surface); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent-ink);
}
.timeline strong { display: block; margin-top: 6px; font-weight: 600; }
.timeline p { margin-top: 2px; font-size: .925rem; }

/* ---------- Collaborate ---------- */
.collab { display: grid; gap: 16px; }
@media (min-width: 900px) { .collab { grid-template-columns: repeat(3, 1fr); } }
.collab-card { display: flex; flex-direction: column; }
.collab-card .card-link { margin-top: auto; padding-top: 22px; }

/* ---------- Team ---------- */
.team { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.member {
  padding: 28px 18px; text-align: center; border-radius: var(--radius);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.member:hover { transform: translateY(-3px); }
.avatar {
  display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%;
  font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; color: #fff;
  object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line-strong);
}
.avatar--1 { background: linear-gradient(135deg, #5FE0E6, #1677D2); }
.avatar--2 { background: linear-gradient(135deg, #22B5E8, #0B4F9C); }
.avatar--3 { background: linear-gradient(135deg, #1677D2, #0A2A5E); }
.avatar--4 { background: linear-gradient(135deg, #3FD3E0, #0E8FD6); }
.avatar--5 { background: linear-gradient(135deg, #0E8FD6, #233D8C); }
.member h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.member p { margin-top: 4px; font-size: .875rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 880px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.02rem, 1rem + .2vw, 1.15rem); font-weight: 550; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 70ch; }
.faq details[open] p { animation: fade-down .35s var(--ease); }

/* ---------- Contact ---------- */
.contact { background: var(--bg-tint); }
.contact-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.3fr .7fr; } }

.contact-form { padding: clamp(22px, 4vw, 36px); }
.chips { border: 0; padding: 0; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 12px; font-size: .9rem; font-weight: 550; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font-size: .875rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.chips span:hover { box-shadow: inset 0 0 0 1px var(--accent-ink); }
.chips input:checked + span { background: var(--btn-bg); color: var(--btn-ink); box-shadow: none; }
.chips input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 550; }
.field label span[aria-hidden] { color: var(--accent-ink); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field input { height: 50px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-ink); background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { margin-top: 6px; font-size: .8rem; color: var(--danger); }
.field-error:empty { display: none; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.form-note { font-size: .825rem; color: var(--muted); max-width: 32ch; }
.form-status:empty { display: none; }
.form-status { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: .925rem; }
.form-status.is-success { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); }
.form-status.is-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.form-status a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.contact-side { display: grid; gap: 20px; }
.office h3 { margin: 0 0 20px; }
.office-list { display: grid; gap: 16px; }
.office-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--ink-2); font-size: .95rem; }
.office-list li > a, .office-list address { padding-top: 8px; line-height: 1.5; }
.office-list a:hover { color: var(--accent-ink); }
.office-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.map { padding: 0; overflow: hidden; aspect-ratio: 4 / 3; min-height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; }
[data-theme="dark"] .map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.8); }
.map-load {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--ink-2); font-weight: 550;
  background:
    radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 27px, var(--line) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--line) 27px 28px),
    var(--surface-2);
}
.map-load .icon { width: 30px; height: 30px; color: var(--accent-ink); margin-bottom: 4px; }
.map-load small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.map-load:hover .icon { animation: bounce .6s var(--ease); }

/* ---------- Footer (always dark) ---------- */
.site-footer {
  --ink: #EAF2FB; --ink-2: #A9B9CD; --muted: #7488A1; --line: rgba(255, 255, 255, .09);
  --grad-text: linear-gradient(110deg, #6FE6EB 0%, #3BB4F0 50%, #5B8CF0 100%);
  background: #050A13; color: var(--ink);
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: -200px; left: 50%; width: 900px; height: 400px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(34, 181, 232, .18), transparent);
  pointer-events: none;
}
.footer-cta {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid var(--line);
}
.footer-cta h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); letter-spacing: -0.035em; max-width: 16ch; }
.footer-grid { position: relative; display: grid; gap: 40px 24px; padding: 56px 0; }
@media (min-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer-brand p { margin-top: 16px; max-width: 32ch; color: var(--ink-2); font-size: .925rem; }
.footer-brand .brand img { width: 30px; }
.footer-col h3 {
  margin-bottom: 16px; font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { font-size: .925rem; color: var(--ink-2); }
.footer-col a { transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px 0 32px; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.to-top:hover { color: #fff; }

/* ---------- Simple pages (privacy, 404) ---------- */
.page { padding: calc(var(--header-h) + 64px) 0 96px; }
.page .container { max-width: 820px; }
.page h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.page h2 { font-size: 1.35rem; margin: 40px 0 12px; letter-spacing: -0.02em; }
.page p, .page li { color: var(--ink-2); margin-bottom: 12px; }
.page ul { list-style: disc; padding-left: 1.2em; }
.page a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.page-meta { color: var(--muted); font-size: .9rem; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px var(--gutter); }
.notfound-code {
  font-size: clamp(6rem, 4rem + 10vw, 11rem); font-weight: 650; letter-spacing: -0.06em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound p { color: var(--ink-2); margin: 16px auto 32px; max-width: 40ch; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 40px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes drop { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 4px); opacity: 0; } }
@keyframes chip-glow { 0%, 60%, 100% { box-shadow: inset 0 0 0 1px var(--line); } 70%, 85% { box-shadow: inset 0 0 0 1px var(--brand-sky), 0 6px 18px -8px rgba(31, 168, 230, .6); } }
@keyframes travel { to { left: 100%; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 50% { transform: translateY(-5px); } }
@keyframes scene-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes feed-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes bump { 40% { transform: scale(1.12); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; gap: 12px 32px; min-width: 0; padding: 0 var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track li { gap: 32px; }
}

@media print {
  .site-header, .hero-bg, .hero-demo, .stack, .map, .contact-form, .footer-cta { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}
