/* ============================================================
   Tarun Teja Reddy — Product Portfolio
   Design tokens + layout + theming
   ============================================================ */

:root {
  /* accent is overridden by JS via [data-accent]; default = blue */
  --accent: oklch(0.72 0.15 265);
  --accent-soft: oklch(0.72 0.15 265 / 0.14);
  --accent-line: oklch(0.72 0.15 265 / 0.32);

  /* dark theme (default) */
  --bg: #0c0c0e;
  --bg-2: #notused;
  --surface: #141417;
  --surface-2: #1b1b1f;
  --line: #26262b;
  --line-soft: #1d1d21;
  --text: #f4f4f5;
  --text-2: #b7b7be;
  --text-3: #76767e;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.4, 0, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #f0efec;
  --line: #e2e0dc;
  --line-soft: #ebe9e5;
  --text: #16161a;
  --text-2: #4f4f57;
  --text-3: #8a8a92;
}

[data-accent="violet"] { --accent: oklch(0.72 0.15 300); --accent-soft: oklch(0.72 0.15 300 / 0.14); --accent-line: oklch(0.72 0.15 300 / 0.32); }
[data-accent="green"]  { --accent: oklch(0.72 0.15 155); --accent-soft: oklch(0.72 0.15 155 / 0.14); --accent-line: oklch(0.72 0.15 155 / 0.32); }
[data-accent="amber"]  { --accent: oklch(0.74 0.15 55);  --accent-soft: oklch(0.74 0.15 55 / 0.14);  --accent-line: oklch(0.74 0.15 55 / 0.32); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 17px;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
/* instant, freeze-proof theme/accent switching */
.no-transition, .no-transition *, .no-transition *::before, .no-transition *::after { transition: none !important; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent-soft); color: var(--text); }

/* hide native cursor only when custom cursor active */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor [data-cursor] { cursor: none; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--accent-line);
}
.section { padding-block: clamp(48px, 6vw, 80px); position: relative; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 720px; }
.section-head h2 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin-top: 18px;
  text-wrap: balance;
}
.section-head p { color: var(--text-2); font-size: clamp(16px, 2vw, 19px); margin-top: 18px; max-width: 60ch; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255,255,255,0.08); border-color: transparent; }
.cursor-ring.is-down { width: 28px; height: 28px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s, padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line-soft);
  padding-block: 13px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #0c0c0e; font-weight: 750; font-size: 14px;
  font-family: var(--font-mono);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; color: var(--text-2);
  padding: 8px 13px; border-radius: 8px;
  position: relative; transition: color 0.25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 1.5px; background: var(--accent); border-radius: 2px;
}
.nav-tools { display: flex; align-items: center; gap: 14px; }
.swatches { display: flex; gap: 7px; padding-right: 14px; border-right: 1px solid var(--line); }
.swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid transparent; transition: transform 0.2s var(--ease-out), border-color 0.2s;
  outline: none;
}
.swatch:hover { transform: scale(1.18); }
.swatch.active { border-color: var(--text); }
.swatch[data-set="blue"]   { background: oklch(0.72 0.15 265); }
.swatch[data-set="violet"] { background: oklch(0.72 0.15 300); }
.swatch[data-set="green"]  { background: oklch(0.72 0.15 155); }
.swatch[data-set="amber"]  { background: oklch(0.74 0.15 55); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-2);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent-line); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.nav-cta {
  font-size: 14px; font-weight: 550;
  padding: 9px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg);
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 0.9; }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(140px, 22vh, 220px); padding-bottom: clamp(70px, 10vw, 120px); overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  filter: blur(20px);
  pointer-events: none; opacity: 0.9;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 14px; margin-bottom: 32px;
  background: var(--surface);
}
.hero-status .dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.72 0.15 155); box-shadow: 0 0 0 0 oklch(0.72 0.15 155 / 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 oklch(0.72 0.15 155 / 0.5); } 70% { box-shadow: 0 0 0 8px oklch(0.72 0.15 155 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.72 0.15 155 / 0); } }

.hero h1 {
  font-size: clamp(44px, 8.5vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 680;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero-lede {
  margin-top: 30px;
  font-size: clamp(18px, 2.4vw, 23px);
  color: var(--text-2);
  max-width: 56ch;
  line-height: 1.5;
}
.hero-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 550; font-size: 15px;
  transition: transform 0.2s var(--ease-out), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary { background: var(--accent); color: #0a0a0c; }
[data-accent] .btn-primary { color: #0a0a0c; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* hero metrics strip */
.hero-metrics {
  margin-top: clamp(56px, 8vw, 90px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden;
}
.metric { background: var(--surface); padding: 26px 24px; }
.metric .num { font-size: clamp(28px, 4vw, 42px); font-weight: 680; letter-spacing: -0.02em; line-height: 1; }
.metric .num .suffix { color: var(--accent); }
.metric .label { margin-top: 10px; font-size: 13.5px; color: var(--text-3); line-height: 1.35; }
@media (max-width: 720px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.about-body p { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; margin-bottom: 22px; }
.about-body p strong { color: var(--text); font-weight: 600; }
.about-side { position: sticky; top: 110px; }
.about-portrait {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 4 / 5; position: relative;
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
  display: grid; place-items: center;
}
.about-portrait .ph-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  letter-spacing: 0.06em; background: var(--bg); padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line);
}
.about-facts { margin-top: 18px; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.fact { background: var(--surface); padding: 16px 18px; display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.fact .k { color: var(--text-3); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; }
.fact .v { color: var(--text); text-align: right; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .about-side { position: static; } }
.edu { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.edu-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.edu-list { margin-top: 16px; display: grid; gap: 14px; }
.edu-item { display: grid; gap: 3px; padding-left: 16px; border-left: 2px solid var(--accent); }
.edu-school { font-size: 16px; font-weight: 600; color: var(--text); }
.edu-degree { font-size: 14.5px; color: var(--text-2); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: var(--surface);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, background 0.3s;
  position: relative; overflow: hidden;
}
.skill-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.skill-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.55s var(--ease-out); z-index: 2;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: 0 18px 46px -18px var(--accent-soft); }
.skill-card:hover::after { opacity: 1; }
.skill-card:hover::before { transform: scaleX(1); }
.skill-card .idx {
  position: absolute; top: 20px; right: 22px; z-index: 2;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-2); opacity: 0.45; transition: opacity 0.35s, color 0.35s, transform 0.5s var(--ease-out);
}
.skill-card:hover .idx { opacity: 1; color: var(--accent); transform: translateY(-2px); }
.skill-card > * { position: relative; z-index: 1; }
.skill-card .ic { transition: transform 0.45s var(--ease-out), background 0.35s, color 0.35s, box-shadow 0.35s; }
.skill-card:hover .ic {
  transform: translateY(-2px) scale(1.08) rotate(-6deg);
  background: var(--accent); color: #fff; box-shadow: 0 10px 24px -8px var(--accent-soft);
}
.skill-card .tags span { transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.4s var(--ease-out); }
.skill-card:hover .tags span { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.skill-card:hover .tags span:nth-child(2) { transition-delay: 0.04s }
.skill-card:hover .tags span:nth-child(3) { transition-delay: 0.08s }
.skill-card:hover .tags span:nth-child(4) { transition-delay: 0.12s }
.skill-card:hover .tags span:nth-child(5) { transition-delay: 0.16s }
.skill-card:hover .tags span:nth-child(6) { transition-delay: 0.2s }
.skill-card .ic {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.skill-card .ic svg { width: 21px; height: 21px; }
.skill-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.skill-card p { color: var(--text-2); font-size: 14.5px; margin-top: 9px; line-height: 1.5; }
.skill-card .tags { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.skill-card .tags span {
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--text-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px;
}
@media (max-width: 880px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases { display: grid; gap: 20px; }
.case-card {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--surface);
  transition: border-color 0.35s, transform 0.35s var(--ease-out);
  cursor: pointer;
}
.case-card:hover { border-color: var(--accent-line); }
.case-card:nth-child(even) { grid-template-columns: 0.85fr 1fr; }
.case-card:nth-child(even) .case-text { order: 2; }
.case-info { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; }
.case-num { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); letter-spacing: 0.1em; }
.case-card h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 640; letter-spacing: -0.02em; margin-top: 14px; line-height: 1.08; }
.case-tagline { color: var(--text-2); margin-top: 14px; font-size: 16px; line-height: 1.5; max-width: 42ch; }
.case-meta { margin-top: auto; padding-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }
.case-meta .m .k { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }
.case-meta .m .v { font-size: 14.5px; color: var(--text); margin-top: 4px; }
.case-open {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 550; color: var(--accent);
}
.case-open svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease-out); }
.case-card:hover .case-open svg { transform: translateX(4px); }
.case-visual {
  position: relative; min-height: 300px;
  background: radial-gradient(120% 90% at 80% 0%, var(--accent-soft), transparent 60%), var(--surface-2);
  display: grid; place-items: center; padding: 30px 26px;
  border-left: 1px solid var(--line); overflow: hidden;
}
.case-card:nth-child(even) .case-visual { border-left: none; border-right: 1px solid var(--line); }
.case-visual .ph-label {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.05em;
  background: var(--bg); padding: 7px 13px; border-radius: 7px; border: 1px solid var(--line);
}
.case-chip {
  position: absolute; top: 20px; left: 20px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line);
  padding: 5px 11px; border-radius: 100px;
}
@media (max-width: 760px) {
  .case-card, .case-card:nth-child(even) { grid-template-columns: 1fr; }
  .case-card:nth-child(even) .case-text { order: 0; }
  .case-visual { min-height: 200px; border-left: none !important; border-right: none !important; border-top: 1px solid var(--line); order: 2; }
}

/* ---------- case study visuals ---------- */
.viz { width: 100%; max-width: 340px; position: relative; }
.vz-win { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0,0,0,0.7); }
.vz-bar-top { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.vz-bar-top .d { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.vz-bar-top em { margin-left: 6px; font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--text-3); text-transform: uppercase; }
/* Atlas */
.vz-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.vz-kpi { background: var(--bg); padding: 12px 11px; }
.vz-kpi b { display: block; font-size: 19px; font-weight: 680; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }
.vz-kpi i { display: block; font-style: normal; font-size: 9.5px; color: var(--text-3); margin-top: 5px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.vz-funnel { padding: 14px 12px 16px; display: grid; gap: 9px; border-top: 1px solid var(--line-soft); }
.vz-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.vz-row .lbl { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-3); letter-spacing: 0.03em; }
.vz-row .trk { height: 9px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.vz-row .trk i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, var(--surface)), var(--accent)); }
.case-card.in .vz-row .trk i { animation: vzGrow 1s var(--ease-out) var(--d) both; }
@keyframes vzGrow { from { width: 0; } to { width: var(--v); } }
/* Pulse */
.viz-pulse { display: grid; place-items: center; }
.vz-phone { width: 178px; padding: 20px 16px 16px; border-radius: 24px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 24px 60px -26px rgba(0,0,0,0.75); position: relative; }
.vz-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 42px; height: 4px; border-radius: 3px; background: var(--line); }
.vz-prog { height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.vz-prog i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; }
.case-card.in .vz-prog i { animation: vzProg 1.5s var(--ease-out) 0.2s both; }
@keyframes vzProg { from { width: 8%; } to { width: 100%; } }
.vz-steps { display: grid; gap: 12px; }
.vz-step { display: flex; align-items: center; gap: 10px; opacity: 0.28; }
.case-card.in .vz-step { animation: vzStep 0.5s var(--ease-out) var(--d) both; }
@keyframes vzStep { from { opacity: 0.28; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
.vz-step .ck { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; }
.case-card.in .vz-step .ck { animation: vzCk 0.4s var(--ease-out) calc(var(--d) + 0.16s) both; }
@keyframes vzCk { to { border-color: var(--accent); background: var(--accent); } }
.vz-step .ck::after { content: ""; position: absolute; left: 4.5px; top: 7px; width: 4px; height: 2px; border-left: 1.5px solid #0a0a0c; border-bottom: 1.5px solid #0a0a0c; transform: rotate(-45deg) scale(0); transform-origin: center; }
.case-card.in .vz-step .ck::after { animation: vzTick 0.3s var(--ease-out) calc(var(--d) + 0.28s) both; }
@keyframes vzTick { to { transform: rotate(-45deg) scale(1.5); } }
.vz-step .ln { height: 7px; border-radius: 4px; background: var(--surface-2); flex: 1; }
.vz-step .ln.short { max-width: 62%; }
.vz-cta { margin-top: 18px; text-align: center; font-size: 11.5px; font-weight: 600; color: #0a0a0c; background: var(--accent); border-radius: 8px; padding: 9px; opacity: 0; }
.case-card.in .vz-cta { animation: vzFade 0.5s var(--ease-out) 1.45s both; }
@keyframes vzFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vz-badge { position: absolute; top: -6px; right: -2px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); background: var(--bg); border: 1px solid var(--accent-line); border-radius: 100px; padding: 6px 12px; opacity: 0; box-shadow: 0 10px 26px -10px var(--accent); }
.vz-badge small { font-size: 9px; color: var(--text-3); letter-spacing: 0.06em; }
.case-card.in .vz-badge { animation: vzPop 0.6s cubic-bezier(0.2, 1.5, 0.4, 1) 1.7s both; }
@keyframes vzPop { from { opacity: 0; transform: scale(0.6) translateY(8px); } to { opacity: 1; transform: none; } }
/* Ledger */
.vz-chart { position: relative; padding: 16px 12px 10px; }
.vz-chart svg { width: 100%; height: 96px; display: block; overflow: visible; }
.vz-chart .gl { stroke: var(--line-soft); stroke-width: 1; fill: none; }
.vz-chart .ln-area { fill: var(--accent-soft); opacity: 0; }
.case-card.in .vz-chart .ln-area { animation: vzFadeIn 0.9s var(--ease) 0.85s both; }
@keyframes vzFadeIn { to { opacity: 1; } }
.vz-chart .ln-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; }
.case-card.in .vz-chart .ln-line { animation: vzDraw 1.5s var(--ease-out) 0.2s both; }
@keyframes vzDraw { to { stroke-dashoffset: 0; } }
.vz-pt { position: absolute; font-family: var(--font-mono); font-size: 10px; font-weight: 600; padding: 3px 7px; border-radius: 5px; opacity: 0; }
.vz-pt.from { top: 8px; left: 12px; color: var(--text-2); background: var(--surface-2); }
.vz-pt.to { bottom: 20px; right: 12px; color: #0a0a0c; background: var(--accent); }
.case-card.in .vz-pt.from { animation: vzFadeIn 0.5s var(--ease) 0.5s both; }
.case-card.in .vz-pt.to { animation: vzPop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) 1.55s both; }
.vz-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 14px; }
.vz-chips span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--text-2); border: 1px solid var(--line); border-radius: 100px; padding: 4px 9px; opacity: 0; }
.vz-chips span:last-child { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.case-card.in .vz-chips span { animation: vzFade 0.45s var(--ease-out) var(--d) both; }
@media (prefers-reduced-motion: reduce) { .case-card .viz *, .case-card.in .viz * { animation: none !important; opacity: 1 !important; } .case-card .vz-row .trk i { width: var(--v); } .case-card .vz-prog i { width: 100%; } }

/* ---------- case study overlay ---------- */
.cs-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: color-mix(in oklab, var(--bg) 60%, #000 40%);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; opacity: 0;
  transition: opacity 0.35s var(--ease);
  padding: clamp(16px, 4vw, 50px);
  overflow-y: auto;
}
.cs-overlay.open { display: flex; align-items: flex-start; justify-content: center; opacity: 1; }
.cs-panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px;
  width: 100%; max-width: 940px; overflow: hidden;
  max-height: calc(100vh - 72px); display: flex; flex-direction: column;
  transform: translateY(24px) scale(0.99); transition: transform 0.45s var(--ease-out);
  margin: auto;
}
.cs-top, .cs-progress, .cs-steps-nav, .cs-foot { flex: none; }
.cs-overlay.open .cs-panel { transform: none; }
.cs-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(8px); z-index: 2;
}
.cs-top .t-title { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 12px; }
.cs-top .t-title .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: #0a0a0c; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.cs-close { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); transition: 0.2s; }
.cs-close:hover { color: var(--text); border-color: var(--accent-line); }
.cs-close svg { width: 16px; height: 16px; }

.cs-progress { height: 2px; background: var(--line); position: relative; }
.cs-progress .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 25%; }

.cs-steps-nav { display: flex; gap: 6px; padding: 18px clamp(24px, 4vw, 40px) 0; flex-wrap: wrap; }
.cs-steps-nav button {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--text-3); border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px;
  transition: 0.25s;
}
.cs-steps-nav button.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.cs-steps-nav button:hover { color: var(--text); }

.cs-body { padding: clamp(26px, 4vw, 44px); min-height: 0; flex: 1 1 auto; overflow-y: auto; }
.cs-bullets.cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 30px; }
.cs-step { display: none; }
.cs-step.active { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .cs-step.active { animation: stepIn 0.5s var(--ease-out); }
}
.cs-step.active.settled { animation: none !important; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cs-step .step-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.cs-step h4 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 640; letter-spacing: -0.02em; margin-top: 12px; line-height: 1.1; }
.cs-step .step-text { color: var(--text-2); font-size: 17px; line-height: 1.65; margin-top: 18px; max-width: 62ch; }
.cs-step .step-text + .step-text { margin-top: 14px; }
.cs-bullets { margin-top: 22px; display: grid; gap: 12px; }
.cs-bullets li { list-style: none; display: flex; gap: 13px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
.cs-bullets li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.cs-bullets li strong { color: var(--text); font-weight: 600; }

/* impact metrics inside overlay */
.cs-impact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.cs-impact .stat { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); }
.cs-impact .stat .n { font-size: clamp(26px, 4vw, 38px); font-weight: 680; letter-spacing: -0.02em; line-height: 1; }
.cs-impact .stat .n .suffix { color: var(--accent); }
.cs-impact .stat .n .prefix { color: var(--accent); }
.cs-impact .stat .l { color: var(--text-3); font-size: 13px; margin-top: 9px; line-height: 1.35; }
@media (max-width: 620px) { .cs-impact { grid-template-columns: 1fr; } }

.cs-foot { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(24px, 4vw, 40px); border-top: 1px solid var(--line); }
.cs-foot .nav-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 550; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); transition: 0.22s; }
.cs-foot .nav-btn:hover:not(:disabled) { border-color: var(--accent-line); }
.cs-foot .nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cs-foot .nav-btn.primary { background: var(--accent); color: #0a0a0c; border-color: var(--accent); }
.cs-foot .nav-btn svg { width: 15px; height: 15px; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; margin-top: 10px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-left: 42px; padding-bottom: 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item .node {
  position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg); transition: 0.3s;
}
.tl-item.in .node { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tl-head .role { font-size: 20px; font-weight: 620; letter-spacing: -0.01em; }
.tl-head .co { color: var(--accent); font-weight: 550; }
.tl-period { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); letter-spacing: 0.03em; margin-left: auto; }
.tl-item p { color: var(--text-2); margin-top: 10px; font-size: 15.5px; line-height: 1.55; max-width: 64ch; }
.tl-item .tl-tags { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.tl-item .tl-tags span { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; }
@media (max-width: 620px) { .tl-period { margin-left: 0; width: 100%; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; }
.contact-inner {
  border: 1px solid var(--line); border-radius: 24px; padding: clamp(44px, 7vw, 88px) var(--gutter);
  background:
    radial-gradient(600px circle at 50% -20%, var(--accent-soft), transparent 60%),
    var(--surface);
  position: relative; overflow: hidden;
}
.contact h2 { font-size: clamp(32px, 6vw, 60px); letter-spacing: -0.03em; font-weight: 680; line-height: 1.02; text-wrap: balance; }
.contact h2 .accent { color: var(--accent); }
.contact p { color: var(--text-2); max-width: 50ch; margin: 22px auto 0; font-size: clamp(16px, 2vw, 19px); }
.contact-actions { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-links { margin-top: 40px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; font-family: var(--font-mono); font-size: 13px; }
.contact-links a { color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.contact-links a:hover { color: var(--accent); }
.contact-links a svg { width: 15px; height: 15px; }

footer.foot { padding: 40px var(--gutter); border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--text-3); font-size: 13.5px; }
footer.foot .font-mono { font-family: var(--font-mono); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: 0.08s; }
  .reveal[data-delay="2"] { transition-delay: 0.16s; }
  .reveal[data-delay="3"] { transition-delay: 0.24s; }
  .reveal[data-delay="4"] { transition-delay: 0.32s; }
}
/* settled state: hard-snap to visible (guards against frozen-transition environments) */
.reveal.rv-done { opacity: 1 !important; transform: none !important; transition: none !important; }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; z-index: 1; }
.scroll-cue .line { width: 1px; height: 36px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

.edu-item[data-case] { cursor: pointer; transition: border-color .25s ease, transform .25s ease; }
.edu-item[data-case]:hover, .edu-item[data-case]:focus-visible { transform: translateX(3px); border-left-color: var(--accent); outline: none; }
.edu-more { margin-top: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-3); transition: color .25s ease; }
.edu-item[data-case]:hover .edu-more, .edu-item[data-case]:focus-visible .edu-more { color: var(--accent); }

.stack { margin-top: clamp(32px, 4vw, 48px); padding-top: 26px; border-top: 1px solid var(--line-soft); }
.stack-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }



.stack-rows { margin-top: 20px; display: grid; gap: 14px; }
.stack-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.stack-track { display: flex; width: max-content; gap: 14px; animation: stack-scroll 46s linear infinite; }
.stack-row.rev .stack-track { animation-direction: reverse; animation-duration: 54s; }
.stack-row:hover .stack-track { animation-play-state: paused; }
@keyframes stack-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.stack-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 13px 24px; cursor: default; transition: color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.stack-chip:hover { color: var(--text); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 26px -14px var(--accent); }
.stack-chip img { width: 24px; height: 24px; display: block; transition: transform .2s ease; }
.stack-chip:hover img { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .stack-track { animation: none; } }



.rail { margin-top: 16px; display: flex; align-items: center; }
.rail .lg { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; margin-right: -9px; position: relative; transition: transform 0.3s var(--ease-out), margin-right 0.3s var(--ease-out), border-color 0.3s; }
.rail .lg img { width: 16px; height: 16px; filter: grayscale(1) opacity(0.55); transition: filter 0.3s; }
.rail:hover .lg { margin-right: 4px; }
.rail .lg:hover { transform: translateY(-5px) scale(1.14); border-color: var(--accent-line); z-index: 2; }
.rail .lg:hover img { filter: none; }
.rail .lg .tip { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); opacity: 0; pointer-events: none; white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; transition: 0.22s; }
.rail .lg:hover .tip { opacity: 1; transform: translateX(-50%); }
[data-theme="light"] .rail .lg img { filter: grayscale(1) opacity(0.6); }
@media (max-width: 620px) { .rail { flex-wrap: wrap; row-gap: 10px; } }

.rail .lg.txt b { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-3); transition: color 0.3s; }
.rail .lg.txt:hover b { color: #ff9900; }

.rail .lg.txt.xd b { font-size: 11px; }
.rail .lg.txt.xd:hover b { color: #ff61f6; }

.rail .lg.txt.tb b { font-size: 10px; }
.rail .lg.txt.tb:hover b { color: #e97627; }
.rail .lg.txt.sqls b { font-size: 9.5px; }
.rail .lg.txt.sqls:hover b { color: #cc2927; }
.rail .lg.txt.xls b { font-size: 13px; font-weight: 600; }
.rail .lg.txt.xls:hover b { color: #217346; }

.cs-panel.flow .cs-steps-nav { display: none; }
.cs-panel.flow .cs-step { display: block; animation: none; }
.cs-panel.flow .cs-step + .cs-step { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.cs-panel.flow .cs-foot .nav-btn.prev { display: none; }
.cs-panel.flow .cs-foot { justify-content: flex-end; }


.stack-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.stack-filters { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.sf { white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-2); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease-out); }
.sf:hover { color: var(--text); border-color: var(--accent-line); transform: translateY(-1px); }
.sf.is-on { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.stack-chip { transition: color .25s, border-color .25s, background .25s, transform .3s var(--ease-out), box-shadow .3s, opacity .35s, filter .35s; }
.stack-chip img { filter: none; opacity: 1; transition: transform .3s var(--ease-out); }
.stack-chip:hover img { transform: scale(1.14) rotate(-4deg); }
.stack-chip.is-hit { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.stack-chip.is-hit img { filter: none; opacity: 1; }
.stack-chip.is-dim { opacity: .22; }
@media (max-width: 600px) { .stack-filters { gap: 6px } .sf { font-size: 10.5px; padding: 5px 10px } }

.stack-chip img[src*="amazonwebservices"] { width: 34px; }

.work-block + .work-block { margin-top: clamp(48px, 6vw, 80px); }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;  padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px; }
.block-kicker { white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.block-head h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.work-card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--surface); position: relative; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s; }
.work-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease-out); }
.work-card:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: 0 16px 40px -20px var(--accent-soft); }
.work-card:hover::before { transform: scaleY(1); }
.wc-top { display: flex; flex-direction: column; gap: 4px; }
.work-card h4 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.wc-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--text-3); }
.work-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-top: 12px; }
.wc-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.wc-tags span { white-space: nowrap; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; transition: color .3s, border-color .3s, background .3s; }
.work-card:hover .wc-tags span { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* case studies: three across */
.cases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.case-card, .case-card:nth-child(even) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
.case-card:nth-child(even) .case-text { order: 0; }
.case-card .case-visual, .case-card:nth-child(even) .case-visual { order: -1; border-left: none; border-right: none; border-bottom: 1px solid var(--line); min-height: 210px; padding: 52px 22px 26px; }
.case-card .case-chip { z-index: 3; }
.case-card .vz-badge { top: -14px; right: -2px; }
.case-card .viz { max-width: 100%; }
.case-info { padding: 24px 22px 26px; }
.case-card h3 { font-size: clamp(17px, 1.7vw, 20px); margin-top: 10px; line-height: 1.22; }
.case-num { font-size: 11px; }
.case-tagline { font-size: 14px; margin-top: 10px; max-width: none; }
.case-meta { padding-top: 20px; gap: 16px; }
@media (max-width: 620px) { .case-card .case-visual { min-height: 240px; } }

/* work / side project card visuals + interaction */
.work-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 62%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.work-card:hover::after { opacity: 1; }
.work-card > * { position: relative; z-index: 1; }
.wc-viz { height: 66px; margin-bottom: 18px; border-radius: 10px; border: 1px solid var(--line-soft); background: radial-gradient(120% 90% at 80% 0%, var(--accent-soft), transparent 62%), var(--surface-2); padding: 12px 14px; overflow: hidden; display: flex; }
.wc-viz .b, .wc-viz .vb, .wc-viz .sb, .wc-viz i { background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 45%, var(--surface)), var(--accent)); border-radius: 4px; }
/* funnel */
.v-funnel { flex-direction: column; justify-content: space-between; }
.v-funnel .b { height: 7px; width: 0; }
.work-card.in .v-funnel .b { animation: wcGrow .9s var(--ease-out) var(--d) both; }
@keyframes wcGrow { from { width: 0 } to { width: var(--v) } }
.work-card:hover .v-funnel .b { animation: wcGrow .7s var(--ease-out) var(--d) both; }
/* split panes */
.v-split { gap: 10px; }
.v-split .pane { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid var(--line-soft); border-radius: 7px; padding: 8px; background: var(--surface); }
.v-split .pane.p2 { flex: .58; }
.v-split i { height: 5px; width: 0; }
.work-card.in .v-split i { animation: wcWide .8s var(--ease-out) var(--d) both; }
@keyframes wcWide { from { width: 0 } to { width: 100% } }
/* vertical bars */
.v-bars { align-items: flex-end; gap: 7px; }
.v-bars .vb { flex: 1; height: 0; border-radius: 3px 3px 2px 2px; }
.work-card.in .v-bars .vb { animation: wcRise .8s var(--ease-out) var(--d) both; }
@keyframes wcRise { from { height: 0 } to { height: var(--v) } }
/* gauge */
.v-gauge { align-items: center; justify-content: center; gap: 0; position: relative; }
.v-gauge .ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); }
.v-gauge .fill { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent); transform: rotate(-90deg); opacity: 0; }
.work-card.in .v-gauge .fill { animation: wcSpin 1.1s var(--ease-out) var(--d) both; }
@keyframes wcSpin { from { transform: rotate(-90deg); opacity: 0 } to { transform: rotate(155deg); opacity: 1 } }
/* split bars */
.v-split-bars { flex-direction: column; justify-content: center; gap: 10px; }
.v-split-bars .sb { height: 10px; width: 0; }
.v-split-bars .sb:last-child { background: var(--surface); border: 1px solid var(--accent-line); }
.work-card.in .v-split-bars .sb { animation: wcGrow 1s var(--ease-out) var(--d) both; }
/* checklist */
.v-check { align-items: center; gap: 12px; }
.v-check .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); position: relative; flex: none; }
.v-check .ck::after { content: ""; position: absolute; left: 5px; top: 8px; width: 5px; height: 2.5px; border-left: 1.6px solid var(--bg); border-bottom: 1.6px solid var(--bg); transform: rotate(-45deg) scale(0); }
.work-card.in .v-check .ck { animation: wcCk .45s var(--ease-out) var(--d) both; }
.work-card.in .v-check .ck::after { animation: wcTick .35s var(--ease-out) calc(var(--d) + .18s) both; }
@keyframes wcCk { to { border-color: var(--accent); background: var(--accent) } }
@keyframes wcTick { to { transform: rotate(-45deg) scale(1.4) } }
@media (prefers-reduced-motion: reduce) { .wc-viz *, .work-card.in .wc-viz * { animation: none !important; opacity: 1 !important } .v-funnel .b, .v-split-bars .sb { width: var(--v) } .v-bars .vb { height: var(--v) } .v-split i { width: 100% } }

.work-grid.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-grid.grid-4 .work-card { padding: 18px; }
.work-grid.grid-4 .work-card h4 { font-size: 15.5px; }
.work-grid.grid-4 .work-card p { font-size: 13.2px; }
@media (max-width: 700px) { .work-grid.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .work-grid.grid-4 { grid-template-columns: minmax(0, 1fr); } }

.v-claw { align-items: center; justify-content: center; gap: 0; position: relative; }
.v-claw .claw-mark { width: 30px; height: 30px; position: relative; z-index: 2; }
.v-claw .pulse-ring { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent-line); opacity: 0; }
.work-card.in .v-claw .pulse-ring { animation: clawPulse 2.4s var(--ease-out) .2s infinite; }
@keyframes clawPulse { 0% { transform: scale(.7); opacity: .9 } 70% { transform: scale(1.9); opacity: 0 } 100% { opacity: 0 } }
.v-claw .dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; }
.v-claw .d1 { left: 22px } .v-claw .d2 { right: 22px } .v-claw .d3 { top: 14px }
.work-card.in .v-claw .dot { animation: clawDot 1.8s var(--ease-out) var(--d) infinite; }
@keyframes clawDot { 0% { opacity: 0; transform: scale(.4) } 40% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(.4) } }

.v-sent { align-items: center; justify-content: center; gap: 9px; position: relative; }
.v-sent .sd { width: 15px; height: 15px; border-radius: 50%; opacity: 0; transform: scale(.5); }
.v-sent .sd.pos { background: var(--accent); }
.v-sent .sd.neu { background: var(--surface); border: 1.5px solid var(--line); }
.v-sent .sd.neg { background: color-mix(in oklab, var(--accent) 35%, var(--surface-2)); }
.work-card.in .v-sent .sd { animation: sentPop .5s cubic-bezier(.2,1.5,.4,1) var(--d) both; }
@keyframes sentPop { to { opacity: 1; transform: scale(1) } }
.v-sent .sline { position: absolute; bottom: 12px; left: 14px; right: 14px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 30%, var(--surface-2))); transform: scaleX(0); transform-origin: left; }
.work-card.in .v-sent .sline { animation: sentLine .8s var(--ease-out) var(--d) both; }
@keyframes sentLine { to { transform: scaleX(1) } }

/* APM concept card */
.apm-card { cursor: pointer; }
.apm-card:focus-visible { outline: none; border-color: var(--accent); transform: translateY(-4px); }
.wc-open { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--accent); }
.wc-open svg { width: 13px; height: 13px; transition: transform .25s var(--ease-out); }
.apm-card:hover .wc-open svg, .apm-card:focus-visible .wc-open svg { transform: translateX(4px); }
.v-gmap { position: relative; align-items: stretch; padding: 8px 10px; overflow: hidden }
.v-gmap .gline, .v-gmap .gpin, .v-gmap .gripple { display: none }
.v-gmap .brand-badge.gbrand { left: auto; right: 10px; top: 9px; transform: none; opacity: .9 }
.v-gmap .brand-badge.gbrand img { width: 15px; height: 15px }
.v-gmap .brand-badge.gbrand b { font-size: 9px }
.gplan { position: relative; display: grid; gap: 4px; align-content: center; width: 62%; }
.v-gmap i.grow { background: none; background-image: none; border-radius: 0 }
.v-gmap .grow s { height: 5px; width: var(--w); border-radius: 3px; background: rgba(255,255,255,.14); text-decoration: none }
:root[data-theme="light"] .v-gmap .grow s { background: rgba(0,0,0,.12) }
.grow { position: relative; display: flex; align-items: center; gap: 6px; font-style: normal }
.work-card.in .grow { animation: gRowIn 4.8s var(--ease-out) var(--d) infinite both }
.grow.r1 { --d: 0s } .grow.r2 { --d: .2s } .grow.r3 { --d: .4s }
@keyframes gRowIn { 0% { opacity: 0; transform: translateX(-10px) } 12%, 78% { opacity: 1; transform: none } 92%, 100% { opacity: 0; transform: translateX(10px) } }
@media (prefers-reduced-motion:reduce){.work-card.in .grow{animation:none}}
.grow em { font-family: var(--font-mono); font-size: 8px; letter-spacing: .04em; color: var(--text-3); font-style: normal; width: 22px; flex: none }
.grow b { width: 6px; height: 6px; border-radius: 50%; flex: none }
.grow.r1 b { background: #4285f4 } .grow.r2 b { background: #fbbc04 } .grow.r3 b { background: #34a853 }
.grow s { height: 5px; border-radius: 3px; text-decoration: none }
.grow u { position: absolute; right: 0; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .08em; text-transform: uppercase; color: #ea4335; text-decoration: none; opacity: .95 }

.v-gmap .gline { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; mask: linear-gradient(90deg, #000 0 34%, transparent 34% 66%, #000 66%); -webkit-mask: linear-gradient(90deg, #000 0 34%, transparent 34% 66%, #000 66%); border-radius: 2px; background: linear-gradient(90deg,#4285f4,#34a853); transform: scaleX(0); transform-origin: left; }
.v-gmap .gline { display: none }
.v-gmap .gripple { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid rgba(66,133,244,.45); opacity: 0 }
.work-card.in .v-gmap .gripple { animation: gmapRipple 3s var(--ease-out) infinite }
.work-card.in .v-gmap .gripple.g2 { animation-delay: 1s; border-color: rgba(52,168,83,.4) }
.work-card.in .v-gmap .gripple.g3 { animation-delay: 2s; border-color: rgba(251,188,4,.4) }
@keyframes gmapRipple { 0% { transform: scale(.55); opacity: .85 } 75% { transform: scale(2.6); opacity: 0 } 100% { opacity: 0 } }
@keyframes gmapLine { to { transform: scaleX(1) } }
.v-gmap .gpin { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; color: #fff; opacity: 0; transform: scale(.4); }
.v-gmap .p1 { left: 18%; background: #4285f4 } .v-gmap .p2 { left: 47%; background: #fbbc04; color: #241c00 } .v-gmap .p3 { left: 76%; background: #34a853 }
.work-card.in .v-gmap .gpin { animation: gmapPin .5s cubic-bezier(.2,1.5,.4,1) var(--d) both; }
@keyframes gmapPin { to { opacity: 1; transform: scale(1) } }

/* TAPP card visual */
.v-tap { position: relative; align-items: center; justify-content: center; }
.v-tap .tphone { width: 26px; height: 40px; border-radius: 6px; border: 2px solid var(--accent); background: var(--surface); }
.v-tap .tcard { position: absolute; left: 50%; margin-left: 6px; width: 30px; height: 20px; border-radius: 4px; background: linear-gradient(120deg, color-mix(in oklab, var(--accent) 60%, var(--surface)), var(--accent)); opacity: 0; }
.work-card.in .v-tap .tcard { animation: tapCard 2.6s var(--ease-out) .2s infinite; }
@keyframes tapCard { 0% { opacity: 0; transform: translateX(18px) } 25%, 65% { opacity: 1; transform: translateX(0) } 100% { opacity: 0; transform: translateX(18px) } }
.v-tap .twave { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent-line); opacity: 0 }
.work-card.in .v-tap .twave { animation: tapWave 2.6s var(--ease-out) infinite }
.work-card.in .v-tap .w2 { animation-delay: .5s }
@keyframes tapWave { 0% { transform: scale(.5); opacity: .8 } 60% { transform: scale(2); opacity: 0 } 100% { opacity: 0 } }

/* Robotaxi card visual */
.v-robo { position: relative; align-items: center; justify-content: center; }
.v-robo .rtrack { position: absolute; left: 12%; right: 12%; top: 50%; height: 1.5px; background: linear-gradient(90deg,transparent,rgba(226,72,61,.55) 22%,rgba(226,72,61,.55) 30%,transparent 34%,transparent 66%,rgba(226,72,61,.55) 70%,rgba(226,72,61,.55) 78%,transparent); }
.v-robo .rpin { position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #e2483d; box-shadow: 0 0 0 3px rgba(226,72,61,.16); opacity: .25 }
.v-robo .r1 { left: 14% } .v-robo .r2 { left: 30% } .v-robo .r3 { right: 14% }
.work-card.in .v-robo .rpin { animation: rtPin 2.6s var(--ease-out) var(--d) infinite }
@keyframes rtPin { 0%,100% { opacity: .22; transform: scale(.85) } 45% { opacity: 1; transform: scale(1) } }
.v-robo .rcar { position: absolute; top: 50%; left: 14%; width: 16px; height: 8px; margin-top: -4px; border-radius: 4px 6px 4px 4px; background: #fff; box-shadow: 0 0 12px 2px rgba(255,255,255,.22) }
.work-card.in .v-robo .rcar { animation: rtDrive 4.2s cubic-bezier(.5,0,.5,1) infinite }
@keyframes rtDrive { 0% { left: 12%; opacity: 0 } 12% { opacity: 1 } 38% { left: 34%; opacity: 1 } 46% { opacity: 0 } 56% { left: 62%; opacity: 0 } 64% { opacity: 1 } 88% { opacity: 1 } 100% { left: 84%; opacity: 0 } }
@media (prefers-reduced-motion:reduce){.work-card.in .v-robo .rcar,.work-card.in .v-robo .rpin{animation:none}}

/* Powershare card visual */
.v-power { position: relative; align-items: center; justify-content: center; gap: 8px; }
.v-power .bolt { width: 3px; height: 26px; background: #e2483d; border-radius: 2px; box-shadow: 0 0 14px 2px rgba(226,72,61,.5); transform: rotate(18deg); }
.v-power .pwave { position: absolute; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(226,72,61,.5); opacity: 0 }
.work-card.in .v-power .pwave { animation: pwPulse 2.4s var(--ease-out) infinite }
.work-card.in .v-power .w2 { animation-delay: .8s }
@keyframes pwPulse { 0% { transform: scale(.6); opacity: .8 } 70% { transform: scale(2.4); opacity: 0 } 100% { opacity: 0 } }
.v-power .pcell { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); opacity: 0 }
.v-power .c1 { left: 20% } .v-power .c2 { left: 32%; top: 34% } .v-power .c3 { right: 22% }
.work-card.in .v-power .pcell { animation: pwCell 2.4s var(--ease-out) var(--d) infinite }
@keyframes pwCell { 0%, 100% { opacity: .15; transform: scale(.8) } 45% { opacity: 1; transform: scale(1) } }

.wc-viz .brand-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 24px; height: 24px; z-index: 3 }
.wc-viz .brand-badge.tsl { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 5px }
.wc-viz .brand-badge.tsl img { width: 26px; height: 26px; display: block }
.wc-viz .brand-badge.tsl b { font-size: 9.5px; font-weight: 600; letter-spacing: .34em; text-indent: .34em; color: #e2483d; line-height: 1 }
.v-gmap .gpin.p2 { display: none }
.v-gmap .gpin.p1 { left: 16% } .v-gmap .gpin.p3 { left: 78% }
.v-power .bolt { display: none }

.wc-viz .brand-badge.gbrand { width: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 5px }
.wc-viz .brand-badge.gbrand img { width: 24px; height: 24px; display: block }
.wc-viz .brand-badge.gbrand b { font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1; white-space: nowrap }
.wc-viz .brand-badge.gbrand b span:nth-child(1),.wc-viz .brand-badge.gbrand b span:nth-child(4){color:#4285f4}
.wc-viz .brand-badge.gbrand b span:nth-child(2),.wc-viz .brand-badge.gbrand b span:nth-child(6){color:#ea4335}
.wc-viz .brand-badge.gbrand b span:nth-child(3){color:#fbbc04}
.wc-viz .brand-badge.gbrand b span:nth-child(5){color:#34a853}

/* ---------- Credentials capsule ---------- */
.credsec { padding-top: 0; padding-bottom: 0 }
.creds { max-width: 620px; margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: border-color .3s var(--ease-out) }
.creds:hover { border-color: var(--accent-line) }
.creds-cap { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit }
.creds-orbit { display: flex; align-items: center; flex: none }
.creds-orbit i { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; margin-right: -9px; animation: credFloat 4.2s ease-in-out var(--d) infinite }
.creds-orbit i img { width: 15px; height: 15px; display: block }
@keyframes credFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@media (prefers-reduced-motion: reduce) { .creds-orbit i { animation: none } }
.creds-lbl { display: grid; gap: 3px; min-width: 0; margin-left: 6px }
.creds-lbl b { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em }
.creds-lbl em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3) }
.creds-chev { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--text-3); transition: transform .35s var(--ease-out), color .25s }
.creds.open .creds-chev { transform: rotate(180deg); color: var(--accent) }
.creds-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out) }
.creds.open .creds-panel { grid-template-rows: 1fr }
.creds-inner { overflow: hidden; min-height: 0 }
.creds.open .creds-inner { border-top: 1px solid var(--line-soft) }
.creds-group { padding: 18px 20px 4px }
.creds-group + .creds-group { padding-top: 6px }
.creds-group:last-child { padding-bottom: 20px }
.creds-group h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px }
.creds-group ul { display: grid; gap: 8px; list-style: none }
.creds-group li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft) }
.creds-group li:last-child { border-bottom: 0 }
.c-name { font-size: 14px; color: var(--text); line-height: 1.45 }
.c-meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); white-space: nowrap }

.creds-orbit i b { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; line-height: 1 }
.creds-orbit i b.c-bb { color: #1b1b1f }
:root[data-theme="dark"] .creds-orbit i b.c-bb { color: #e9e9ee }
.creds-orbit i b.c-gb { color: #34a853 }
.creds-orbit i b.c-po { color: #009fda }

.creds-group li { align-items: center }
.c-mark { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--line); background: var(--surface-2) }
.c-mark.po { color: #009fda; border-color: color-mix(in oklab, #009fda 32%, transparent) }
.c-mark.bb { color: var(--text); border-color: var(--line) }
.c-mark.gb { color: #34a853; border-color: color-mix(in oklab, #34a853 32%, transparent) }
.creds-group li .c-name { flex: 1 1 auto; min-width: 0 }

.wc-gh { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 14px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); text-decoration: none; transition: color .25s, border-color .25s, background .25s }
.wc-gh:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft) }
.wc-gh svg { width: 13px; height: 13px; flex: none }

.hero-actions .btn-primary { position: relative }
.hero-actions .btn-primary::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 22px 4px color-mix(in oklab, var(--accent) 45%, transparent); opacity: 0; will-change: opacity; animation: btnGlow 2.4s ease-in-out infinite }
@keyframes btnGlow { 0%, 100% { opacity: 0 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .hero-actions .btn-primary::before { animation: none } }

.work-grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) }
@media (max-width: 860px) { .work-grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .work-grid.grid-3 { grid-template-columns: minmax(0, 1fr) } }
.work-grid.grid-3 .work-card { display: flex; flex-direction: column }
.work-grid.grid-3 .wc-gh { margin-top: auto; margin-bottom: 0 }
.work-grid.grid-3 .wc-tags { margin-bottom: 14px }
