/* ==========================================================================
   Kartik Pawar - Portfolio
   Design language: Ethereal Glass (premium dark-tech, editorial)
   System: Geist (display/body) + Geist Mono (labels/meta)
   Accent: single desaturated jade #7FB5AE, locked across the page.
   No neon, no saturated gradients - inner borders and tinted shadows only.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #08090a;
  --bg-elevated: #0d0f11;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);

  --text: #e9e9e6;
  --text-muted: #9aa0a7;
  --text-dim: #5d636b;

  --accent: #7fb5ae;
  --accent-dark: #0a1211;
  --accent-soft: rgba(127, 181, 174, 0.1);
  --accent-border: rgba(127, 181, 174, 0.28);
  --accent-faint: rgba(127, 181, 174, 0.06);

  --radius-card: 20px;
  --radius-shell: 28px;
  --radius-pill: 999px;

  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  --font-sans: "Geist", "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, monospace;

  --shadow-ambient: 0 24px 70px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-ring: 0 0 0 1px rgba(127, 181, 174, 0.05);

  --nav-h: 44px;
  --z-grain: 200;
  --z-nav: 100;
  --z-menu: 90;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 620px at 88% -12%, rgba(127, 181, 174, 0.045), transparent 62%),
    radial-gradient(900px 540px at -12% 32%, rgba(127, 181, 174, 0.035), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  min-height: 100dvh;
}

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

/* Accessible focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Film grain (fixed, pointer-events none only) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ---------- 4. Layout ---------- */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

section,
footer {
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* ---------- 5. Navigation (slim floating island) ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding-top: 0.45rem;
}

.nav-island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--nav-h);
  padding: 0 0.8rem 0 1rem;
  border-radius: var(--radius-pill);
  background: rgba(13, 15, 17, 0.6);
  border: 1px solid var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    var(--shadow-float);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover { color: var(--accent); transition: color 0.25s var(--ease-premium); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-inline: auto;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-premium);
  position: relative;
  padding: 0.2rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-premium);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fbf8f;
  box-shadow: 0 0 0 3px rgba(111, 191, 143, 0.12);
}

/* Hamburger (desktop hidden) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: var(--radius-pill);
}

.hamburger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s var(--ease-premium);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- 6. Mobile menu (full-screen glass overlay) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-premium), visibility 0.45s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.mobile-menu-inner a {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-premium), transform 0.5s var(--ease-premium), color 0.25s;
  transition-delay: calc(var(--i) * 70ms + 80ms);
}

.mobile-menu.open .mobile-menu-inner a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-inner a:hover { color: var(--accent); }

.mobile-menu-cta {
  margin-top: 0.9rem;
  font-size: 1.05rem !important;
  color: var(--accent) !important;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- 7. Hero ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Eyebrow typewriter, background-free (bare text on the hero) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  min-width: 13.5ch;
}

.type-text { white-space: nowrap; }

.type-cursor {
  display: inline-block;
  width: 1.5px;
  height: 0.95em;
  background: var(--accent);
  margin-left: 2px;
  animation: type-blink 0.85s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes type-blink {
  50% { opacity: 0; }
}

/* Hero title: paper word-chips (kinetic display type) */
.hero-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24em 0.2em;
  font-size: clamp(2.7rem, 5.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.1;
  max-width: 13ch;
  margin-bottom: 1.3rem;
}

.word-chip {
  display: inline-block;
  padding: 0.05em 0.3em;
  border-radius: 0.16em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 26px -14px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  will-change: transform;
}

.word-chip-accent {
  color: var(--accent);
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(127, 181, 174, 0.13), rgba(127, 181, 174, 0.02));
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.65;
  max-width: 44ch;
  margin-bottom: 2.1rem;
}

/* ---------- 8. Buttons (pill + button-in-button) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-premium), border-color 0.3s, background 0.3s, color 0.3s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-dark);
  box-shadow: 0 8px 30px rgba(127, 181, 174, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(127, 181, 174, 0.24);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 18, 17, 0.35);
  color: inherit;
  transition: transform 0.35s var(--ease-spring);
}

.btn-primary:hover .btn-icon,
.btn-ghost:hover .btn-icon {
  transform: translateX(2px) translateY(-1px) scale(1.06);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- 9. Hero visual (double-bezel frame) ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}

.visual-shell {
  padding: 10px;
  border-radius: var(--radius-shell);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-ambient),
    var(--shadow-ring);
}

.visual-core {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-shell) - 10px);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ---------- Hero dashboard panel (idea to live in 24h) ---------- */
.dash {
  position: absolute;
  inset: 0;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background:
    radial-gradient(circle at 85% 8%, rgba(127, 181, 174, 0.06), transparent 45%),
    linear-gradient(180deg, #0d1012, #070809 70%);
  overflow: hidden;
}

.dash-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 181, 174, 0.14);
  animation: dash-pulse 2s ease-in-out infinite;
}

.dash-status {
  margin-left: auto;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  padding: 0.14rem 0.5rem;
  font-size: 0.58rem;
}

/* Idea -> Build -> Live pipeline (the 24h story) */
.dash-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.6rem 0.3rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.35s var(--ease-premium), background 0.35s;
}

.pipe-node b {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.pipe-node::after {
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.pipe-node.is-lit { border-color: var(--border-strong); }

.pipe-node.pipe-live {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, rgba(127, 181, 174, 0.12), rgba(127, 181, 174, 0.02));
}

.pipe-live b { color: var(--accent); }
.pipe-live::after { color: var(--accent); }

/* Connecting lines with a traveling pulse dot */
.pipe-line {
  position: relative;
  width: 100%;
  height: 1px;
  align-self: center;
  background: linear-gradient(90deg, transparent, var(--accent-border), transparent);
}

.pipe-line i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  animation: stat-flow 2.6s ease-in-out infinite;
}

.pipe-line + .pipe-line i { animation-delay: 1.3s; }

@keyframes stat-flow {
  0%   { left: 0%;    opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%;  opacity: 0; }
}

/* Idea → Build → Live: the three pipeline stages blink in sequence,
   like a status light chasing through the build flow. */
.pipe-node {
  animation: pipe-chase 3.6s ease-in-out infinite;
}

.pipe-node:nth-of-type(2) { animation-delay: -1.2s; }
.pipe-node:nth-of-type(3) { animation-delay: -2.4s; }

@keyframes pipe-chase {
  0%, 22%  { opacity: 1; transform: scale(1); }
  34%, 88% { opacity: 0.3; transform: scale(0.965); }
  100%     { opacity: 1; transform: scale(1); }
}

/* 24h countdown row */
.dash-timer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

.dash-timer-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dash-timer {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Product filter overview (jumps to the agents section) */
.dash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.62rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-spring);
  cursor: pointer;
}

.dash-pill b {
  font-size: 0.54rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
}

.dash-pill:hover {
  border-color: var(--accent-border);
  color: var(--text);
  transform: translateY(-1px);
}

.dash-pill.is-active {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.dash-pill:active { transform: scale(0.97); }

.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

.dash-row-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dash-row-val {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 500;
}

/* Stack chips inside the dash */
.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-chips span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.55rem;
}

@keyframes dash-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Floating focus cards */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 190px;
  padding: 0.9rem 1.05rem;
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.74);
  border: 1px solid var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    var(--shadow-float);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.float-card-1 { top: 6%; left: -11%; transform: rotate(-2deg); }
.float-card-2 { bottom: 24%; right: -9%; transform: rotate(1.5deg); }
.float-card-3 { bottom: -4%; left: 8%; transform: rotate(-1deg); }

.float-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.float-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- 10. Marquee (single on page) ---------- */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding-right: 2.2rem;
  white-space: nowrap;
}

.marquee-group span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee-group i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.7rem;
  opacity: 0.7;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 11. Section headings ---------- */
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  max-width: 22ch;
  margin-bottom: 1.1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
}

/* ---------- 12. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

.block-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.block-copy {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 30ch;
}

/* Spec list: hairline on top of group, bottom-only between rows */
.about-spec {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.spec-val {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- 13. Filter tabs (all products showcase) ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-bottom: 2.2rem;
}

.filter-tabs-center { justify-content: center; }

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  padding: 0.3rem 0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s var(--ease-premium);
}

.filter-tab b {
  font-size: 0.62rem;
  color: var(--accent);
  font-weight: 700;
  margin-left: 0.3rem;
  opacity: 0.8;
}

.filter-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-premium);
}

.filter-tab:hover { color: var(--text); }
.filter-tab.is-active { color: var(--accent); }
.filter-tab.is-active::after { transform: scaleX(1); }

/* ---------- 14. Agents deck (Tinder-style looping stack) ---------- */
.deck-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Double-bezel stage: outer shell frames the inner card core */
.deck-shell {
  position: relative;
  width: min(440px, 100%);
  padding: 10px;
  border-radius: var(--radius-shell);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-ambient),
    var(--shadow-ring);
}

/* Inner core. Without JS the cards read as a clean vertical list. */
.project-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: calc(var(--radius-shell) - 10px);
}

/* NOTE: `.deck-ready` is added to #work-deck itself, so it must sit on the
   same element as `.project-deck` (compound selector, not a descendant).
   A descendant selector here silently zeroes the deck height and hides
   every absolutely-positioned card. */
.project-deck.deck-ready {
  aspect-ratio: 4 / 5;
  gap: 0;
}

.deck-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius-shell) - 10px);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  will-change: transform;
  touch-action: pan-y;
}

.deck-ready .deck-card {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  cursor: grab;
}

.deck-ready .deck-card:active { cursor: grabbing; }

.deck-card.is-hidden { display: none; }

/* Full-bleed image: grayscale base + jade duotone tint (cohesive across cards) */
.deck-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.74);
  transform: scale(1.01);
  transition: transform 0.9s var(--ease-premium);
}

.deck-card:hover .deck-img { transform: scale(1.05); }

.deck-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--accent);
  mix-blend-mode: color;
  opacity: 0.4;
  pointer-events: none;
}

/* Legibility scrim: dark at the base, clear at the top */
.deck-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 10, 0.42) 0%,
    rgba(8, 9, 10, 0.08) 30%,
    transparent 46%,
    rgba(8, 9, 10, 0.86) 80%,
    rgba(8, 9, 10, 0.97) 100%
  );
  pointer-events: none;
}

/* Swipe stamps: appear while dragging past the threshold */
.stamp {
  position: absolute;
  top: 30%;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.42rem 1.25rem;
  border-radius: 10px;
  border: 2px solid;
  background: rgba(8, 9, 10, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease-premium);
}

.stamp-pass {
  left: 9%;
  color: rgba(233, 233, 230, 0.85);
  border-color: rgba(233, 233, 230, 0.7);
  transform: translateY(-50%) rotate(-14deg);
}

.stamp-keep {
  right: 9%;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) rotate(14deg);
}

.deck-card.is-pass .stamp-pass,
.deck-card.is-keep .stamp-keep { opacity: 1; }

/* Card chrome: top meta row + bottom content on the scrim */
.deck-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
}

.deck-index {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: rgba(233, 233, 230, 0.65);
}

/* Category label: open text with a live dot, no box (shared with hero) */
.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cat-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 181, 174, 0.12);
  animation: cat-pulse 2.4s ease-in-out infinite;
}

@keyframes cat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

.deck-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.7rem 1.5rem 1.5rem;
}

.deck-name {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease-premium);
}

.deck-card:hover .deck-name { color: var(--accent); }

.deck-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 40ch;
}

.deck-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: rgba(233, 233, 230, 0.55);
}

.deck-meta b {
  color: var(--accent);
  font-weight: 700;
}

.deck-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.1rem;
}

.deck-tags span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
}

.deck-tags span + span::before {
  content: "·";
  position: absolute;
  left: -0.62rem;
  color: var(--accent);
  opacity: 0.7;
}

/* Deck controls: circular arrows + live counter */
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.deck-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  transition: border-color 0.3s, color 0.3s, transform 0.35s var(--ease-spring), box-shadow 0.3s;
}

.deck-btn:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.6);
}

.deck-btn:active { transform: scale(0.94); }

.deck-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  min-width: 7ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.deck-hint {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- 15. Skills (live dashboard, centered) ---------- */
.section-skills { text-align: center; }

.section-title-center { max-width: 22ch; margin-inline: auto; }

/* Agents heading: centered text, nudged ~12px right of its centered slot.
   `translate` is separate from `transform`, so GSAP reveals never clobber it. */
#agents .section-title { text-align: center; translate: 12px 0; }
.section-sub-center { margin-inline: auto; }

.skills-dash {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.skills-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Donut with a rotating light sweep (the "live" feel) */
.donut-wrap {
  position: relative;
  width: min(300px, 100%);
}

.donut {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.donut-sheen {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(127, 181, 174, 0.14) 40deg,
    transparent 90deg
  );
  animation: sheen-spin 7s linear infinite;
  mask-image: radial-gradient(circle, transparent 68%, #000 69% 88%, transparent 89%);
  -webkit-mask-image: radial-gradient(circle, transparent 68%, #000 69% 88%, transparent 89%);
}

@keyframes sheen-spin {
  to { transform: rotate(360deg); }
}

.donut-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 22;
}

.donut-seg {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
  transform: rotate(-90deg);
  transform-origin: 100px 100px;
  transition: stroke 0.3s;
}

.seg-ai      { stroke: var(--accent); }
.seg-dev     { stroke: #9ec8c1; }
.seg-data    { stroke: #63958e; }
.seg-growth  { stroke: rgba(127, 181, 174, 0.45); }

.donut-center-num {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  fill: var(--text);
  letter-spacing: -0.03em;
  animation: num-pulse 3.6s ease-in-out infinite;
  transform-origin: 100px 100px;
}

@keyframes num-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.donut-center-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--text-dim);
}

.donut-legend {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 2.4rem;
  width: min(340px, 100%);
}

.donut-legend li {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

/* Interactive legend rows (clickable category selectors) */
.legend-item {
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  margin: -0.5rem -0.6rem;
  transition: background 0.3s var(--ease-premium), transform 0.3s var(--ease-spring);
  outline: none;
}

.legend-item:hover { background: rgba(255, 255, 255, 0.03); }

.legend-item:focus-visible {
  box-shadow: 0 0 0 1px var(--accent);
}

.legend-item.is-active { background: var(--accent-soft); }

.legend-item.is-active .legend-top { color: var(--text); }

.legend-item.is-active .legend-bar { background: rgba(255, 255, 255, 0.08); }

.legend-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.donut-legend b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.sw-ai      { background: var(--accent); }
.sw-dev     { background: #9ec8c1; }
.sw-data    { background: #63958e; }
.sw-growth  { background: rgba(127, 181, 174, 0.45); }

/* Animated legend bars (KPI style) */
.legend-bar {
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.legend-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--accent);
}

/* Non-active donut segments dim while a category is selected */
.donut-seg { transition: stroke 0.3s, opacity 0.45s var(--ease-premium); }
.donut-seg.dim { opacity: 0.16; }

/* Flux chips: tools fly in and out per selected category */
.skills-flux {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.flux-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.flux-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.34rem 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, color 0.3s;
}

.flux-chip:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

.skills-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(2.5rem, 6vw, 5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
  text-align: left;
}

.skill-cat {
  border-top: 1px solid var(--border);
  padding-top: 1.3rem;
  transition: border-color 0.3s;
}

.skill-cat:hover { border-color: var(--accent-border); }

.skill-cat-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.skill-cat-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 46ch;
}

/* ---------- 16. Contact (editorial manifesto) ---------- */
.section-contact {
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(6rem, 12vw, 9rem);
}

.contact-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: 1.3rem;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 2.4rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.25rem;
  transition: color 0.3s var(--ease-premium), border-color 0.3s;
}

.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent-border);
}

/* ---------- 17. Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0 2.2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-top {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s var(--ease-premium);
}

.footer-top:hover { color: var(--accent); }

/* ==========================================================================
   18. Motion-safe defaults: JS hides via GSAP only when it runs.
   Elements are visible by default (progressive enhancement).
   ========================================================================== */

/* ==========================================================================
   19. Responsive
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid { gap: 2.5rem; }
  .float-card-1 { left: -4%; }
  .float-card-2 { right: -3%; }
  .skills-detail { gap: 2rem 2.5rem; }
}

/* Mobile: everything collapses to a single column */
@media (max-width: 768px) {
  .container { width: min(1200px, 100% - 2rem); }

  .nav-links,
  .nav-status { display: none; }
  .hamburger { display: flex; }

  .hero {
    padding-top: calc(var(--nav-h) + 3.5rem);
  }

  .hero-grid { grid-template-columns: 1fr; }

  /* Floating cards become a static stack under the image */
  .hero-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 0.5rem;
    max-width: 100%;
  }

  .float-card {
    position: static;
    transform: none;
    min-width: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Deck tightens on mobile: slimmer bezel, snugger card padding */
  .deck-shell { padding: 6px; }
  .deck-card-top { padding: 1.15rem 1.2rem; }
  .deck-card-body { padding: 1.35rem 1.2rem 1.2rem; }
  .stamp { font-size: 0.82rem; padding: 0.36rem 1rem; }
  .filter-tabs { gap: 0.5rem 1.2rem; }

  .skills-detail { grid-template-columns: 1fr; }
  .donut-legend { grid-template-columns: 1fr 1fr; }

  .contact-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title { font-size: clamp(2.2rem, 9vw, 2.6rem); }
}

/* ==========================================================================
   20. Reduced motion & reduced transparency
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  /* Motion is intentionally kept: this is a showcase portfolio and the user
     asked for it explicitly. Windows "animation effects: off" otherwise turns
     the whole page into a static dummy page. Only smooth scrolling is dropped. */
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-island,
  .float-card,
  .mobile-menu {
    background: var(--bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
