/* =========================================================
   TaskForge Studio — site styles
   Brand tokens live in :root. Change --accent to re-skin.
   ========================================================= */

:root {
  --bg: #0b0d12;
  --bg-alt: #0f1218;
  --surface: #141820;
  --surface-2: #1a1f29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f4;
  --muted: #9aa2b1;
  --faint: #6b7383;
  --accent: #c8f031;
  --accent-hi: #dcff5c;
  --accent-ink: #0b0d12;
  --accent-soft: rgba(200, 240, 49, 0.12);
  --accent-glow: rgba(200, 240, 49, 0.35);

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

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* subtle film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, pre { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap;
  cursor: pointer; overflow: hidden;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.3s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 8px 32px -6px var(--accent-glow); }
.btn-primary::after {
  /* shine sweep */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary .i { transition: transform 0.2s var(--ease); }
.btn-primary:hover .i { transform: translateX(3px); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 13, 18, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.035em; }
.brand-mark { width: 32px; height: 32px; flex: none; transition: transform 0.4s var(--ease); filter: drop-shadow(0 4px 14px rgba(200, 240, 49, 0.25)); }
.brand:hover .brand-mark { transform: translateY(-2px) rotate(-6deg); }
.brand-name b { color: var(--accent); font-weight: inherit; }
.brand-sub { margin-left: 0.28em; font-weight: 500; color: var(--muted); letter-spacing: -0.02em; }

.nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.nav-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.25s var(--ease); }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 959px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    display: flex; flex-direction: column; gap: 4px;
    padding: 24px var(--gutter) 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav a:not(.btn) { padding: 14px 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
  .nav .nav-cta-mobile { margin-top: 24px; height: 52px; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: var(--bg); border-bottom-color: var(--line); }
  .nav-open { overflow: hidden; }
}
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 2px; }
  .nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color 0.2s, background 0.2s; }
  .nav a:not(.btn):hover, .nav a.active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
  .nav-cta-mobile { display: none !important; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(180deg, rgba(30, 35, 46, 0.72), rgba(20, 24, 32, 0.66));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 48px) 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 20%, transparent 75%);
}
.hero::before {
  content: ""; position: absolute; z-index: -2;
  width: 760px; height: 760px; right: -160px; top: 20px;
  background: radial-gradient(closest-side, rgba(200, 240, 49, 0.14), transparent 70%);
  pointer-events: none;
}
.hero-visual {
  position: relative; z-index: -1;
  margin: -24px calc(var(--gutter) * -1) 8px;
  height: 300px;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero-widgets { display: none; }

.hero-inner { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.5rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.rotator { position: relative; white-space: nowrap; }
.rotator-word {
  background: linear-gradient(180deg, #fff 30%, #b9c0cc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret {
  display: inline-block; width: 0.06em; height: 0.82em; margin-left: 0.04em;
  background: var(--accent); vertical-align: -0.06em; border-radius: 2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero-title .accent { text-shadow: 0 0 40px rgba(200, 240, 49, 0.25); }

.hero-lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--muted); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 20px 16px 4px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.stat dd { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat dt { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 699px) {
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; }
}

@media (min-width: 960px) {
  .hero { padding: calc(var(--header-h) + 88px) 0 72px; min-height: 780px; }
  .hero-visual {
    position: absolute; margin: 0;
    top: 0; bottom: 0; right: 0; width: 62%; height: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to right, transparent 0%, #000 34%), linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-composite: intersect;
  }
  .hero-visual img { object-position: 30% 50%; }
  .hero-lead { max-width: 30rem; }
}

/* Hero floating widgets (desktop only) */
@media (min-width: 1180px) {
  .hero-widgets {
    display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    max-width: calc(var(--container) + 120px); margin: 0 auto;
  }
  .board {
    position: absolute; right: 24px; bottom: 150px; width: 330px;
    border-radius: 18px; padding: 16px 16px 18px;
    animation: float 7s ease-in-out infinite;
  }
  .toast {
    position: absolute; right: 250px; top: 150px;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px; border-radius: 14px;
    animation: float 6s ease-in-out infinite reverse;
    transition: opacity 0.4s, transform 0.4s var(--ease);
  }
  .toast.swap { opacity: 0; transform: translateY(6px) scale(0.98); }
}
@keyframes float { 50% { translate: 0 -10px; } }

.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.board-title { font-size: 13px; font-weight: 600; }
.board-list { display: grid; gap: 6px; }
.board-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035);
  font-size: 12.5px; transition: background 0.3s;
}
.board-row.flash { background: rgba(200, 240, 49, 0.1); }
.board-row .id { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.status {
  font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.status[data-s="1"] { color: #8fc1ff; border-color: rgba(143, 193, 255, 0.35); }
.status[data-s="2"] { color: #ffd27a; border-color: rgba(255, 210, 122, 0.35); }
.status[data-s="3"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.board-foot { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12px; color: var(--muted); }
.board-pct { font-family: var(--mono); color: var(--text); }
.bar { margin-top: 8px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #9cc414, var(--accent)); box-shadow: 0 0 12px var(--accent-glow); transition: width 0.8s var(--ease); }
.toast-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); flex: none; }
.toast-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.toast strong { display: block; font-size: 13px; font-weight: 600; }
.toast small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row + .marquee-row { border-top: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-row.reverse .marquee-track { animation-direction: reverse; animation-duration: 50s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; flex: none; }
.marquee li { display: flex; align-items: center; white-space: nowrap; }
.marquee-big li {
  gap: 36px; padding: 22px 0 22px 36px;
  font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  transition: color 0.3s;
}
.marquee-big li:nth-child(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee-big li::after {
  content: ""; width: 0.5em; height: 0.5em; flex: none;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.marquee-small li {
  gap: 28px; padding: 14px 0 14px 28px;
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
}
.marquee-small li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding: 128px 0; } }

.section-head { max-width: 760px; margin-bottom: 48px; }
@media (min-width: 960px) { .section-head { margin-bottom: 64px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.section-lead { margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); max-width: 36rem; }
h3 { font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 40%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
/* cursor spotlight */
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 240, 49, 0.09), transparent 45%);
  opacity: 0; transition: opacity 0.3s;
}
.spot:hover::before { opacity: 1; }
.spot:hover { border-color: rgba(200, 240, 49, 0.28); box-shadow: 0 20px 60px -30px rgba(200, 240, 49, 0.35); }
.spot > * { position: relative; z-index: 2; }

.ticks { display: grid; gap: 8px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.32em;
  width: 16px; height: 16px; border-radius: 5px; background: var(--accent-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: calc(0.32em + 4px);
  width: 6px; height: 3.5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Bento base ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(12, 1fr); gap: 20px; } }

/* ---------- Services ---------- */
.service { display: flex; flex-direction: column; }
.service-media { aspect-ratio: 16 / 11; overflow: hidden; background: #0d0f14; border-bottom: 1px solid var(--line); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.service:hover .service-media img { transform: scale(1.06); }
.service-body { padding: 24px 24px 28px; flex: 1; }
.num { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-bottom: 10px; }
.service-body > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.service-wide .service-media { order: -1; }

@media (min-width: 700px) {
  .service-wide { grid-column: 1 / -1; flex-direction: row; }
  .service-wide .service-media { order: 0; width: 44%; flex: none; aspect-ratio: auto; border-bottom: 0; border-left: 1px solid var(--line); }
  .service-wide .service-body { padding: 36px 32px; align-self: center; }
  .service-wide h3 { font-size: 1.7rem; letter-spacing: -0.035em; }
}
@media (min-width: 1100px) {
  .services .service { grid-column: span 4; }
  .services .service:nth-child(1) { grid-column: span 7; }
  .services .service:nth-child(2) { grid-column: span 5; }
  .services .service-flip { grid-column: 1 / -1; }
  .services .service-flip .service-media { width: 40%; aspect-ratio: 16 / 9; }
  .services .service:nth-child(1) .service-media { width: 46%; }
}

/* ---------- Inside a project (widgets) ---------- */
.widget { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.widget-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.widget-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.widget-caption { margin-top: auto; font-size: 14.5px; color: var(--muted); }
.fineprint { margin-top: 20px; font-size: 13px; color: var(--faint); }
@media (min-width: 700px) {
  .w-board { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .inside .w-board { grid-column: span 7; grid-row: span 2; }
  .inside .w-ci { grid-column: span 5; }
  .inside .w-code { grid-column: span 5; }
  .inside .w-demo { grid-column: span 6; }
  .inside .w-chart { grid-column: span 6; }
}

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 300px; flex: 1; }
.kcol { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.kcol-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); padding: 2px 4px 4px; display: flex; justify-content: space-between; }
.kcol[data-col="2"] .kcol-title { color: var(--accent); }
.kcards { display: flex; flex-direction: column; gap: 8px; }
.kcard {
  padding: 10px 10px 9px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  font-size: 12.5px; line-height: 1.35;
  animation: kin 0.5s var(--ease);
}
.kcard .kmeta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.kcard .who { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.kcol[data-col="2"] .kcard { border-color: rgba(200, 240, 49, 0.3); }
.kcol[data-col="2"] .kcard .who { background: var(--accent-soft); color: var(--accent); }
@keyframes kin { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
@media (max-width: 520px) {
  .kanban { grid-template-columns: 1fr 1fr; }
  .kcol[data-col="1"] { display: none; }
}

/* pipeline */
.commit { font-size: 14px; color: var(--text); }
.commit .hash { font-family: var(--mono); font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; margin-right: 6px; }
.pipeline { display: grid; gap: 0; }
.pipeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; color: var(--faint); transition: color 0.3s; }
.pipeline li + li::before { content: ""; position: absolute; left: 10px; top: -9px; height: 18px; width: 1px; background: var(--line-strong); }
.pipeline .dot { width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.pipeline li.run { color: var(--text); }
.pipeline li.run .dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.pipeline li.done { color: var(--text); }
.pipeline li.done .dot { background: var(--accent); border-color: var(--accent); }
.pipeline li.done .dot::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: translateY(-1px) rotate(-45deg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* code */
.file { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #c9d1dc;
  background: #0c0e13; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 172px; overflow: hidden; white-space: pre;
}
.code .k { color: #c792ea; }
.code .f { color: var(--accent); }
.code .s { color: #f5c46b; }
.code .t { color: #7fd6ff; }
.code .c { color: #5c6577; }
.code-caret { display: inline-block; width: 7px; height: 15px; background: var(--accent); vertical-align: -3px; animation: caret 1s steps(1) infinite; }
.review { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(200, 240, 49, 0.25); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.review.show { opacity: 1; transform: none; }
.review p { font-size: 13.5px; color: var(--text); }
.review strong { color: var(--accent); margin-right: 6px; font-weight: 600; }
.review-avatar { width: 28px; height: 28px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; font-weight: 600; }

/* weekly demo */
.week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 130px; }
.week li { position: relative; display: flex; flex-direction: column-reverse; align-items: center; gap: 8px; height: 100%; }
.week span { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.week i {
  width: 100%; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  height: var(--h); transition: height 1s var(--ease); transition-delay: var(--d, 0s);
}
.week .demo-day i { background: linear-gradient(180deg, var(--accent), #8db212); border-color: var(--accent); box-shadow: 0 0 30px -6px var(--accent-glow); }
.week .demo-day span { color: var(--accent); }
.week b { position: absolute; top: 10px; font-size: 11.5px; color: var(--accent-ink); font-weight: 600; }
.js .w-demo:not(.in) .week i { height: 6%; }

/* burndown */
.burndown { width: 100%; height: 140px; overflow: visible; }
.burndown .grid-lines path { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.burndown .ideal { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.burndown .actual { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.burndown .actual-fill { fill: rgba(200, 240, 49, 0.08); }
.burndown .end-dot { fill: var(--accent); }
.js .burndown .actual { stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.8s var(--ease); }
.js .burndown .actual-fill, .js .burndown .end-dot { opacity: 0; transition: opacity 0.8s 1.2s; }
.js .w-chart.in .burndown .actual { stroke-dashoffset: 0; }
.js .w-chart.in .burndown .actual-fill, .js .w-chart.in .burndown .end-dot { opacity: 1; }

/* ---------- Engagement / plans ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { padding: 28px 28px 32px; display: flex; flex-direction: column; }
.plan-icon, .why-icon { mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 71%); }
.plan-icon { width: 96px; height: 96px; margin: -6px 0 14px -10px; border-radius: 18px; transition: transform 0.6s var(--ease); }
.plan:hover .plan-icon { transform: translateY(-4px) rotate(-4deg) scale(1.04); }
.plan .btn { margin-top: 28px; align-self: flex-start; }
.plan-kicker { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.plan h3 { font-size: 1.6rem; letter-spacing: -0.035em; }
.plan-desc { margin-top: 10px; color: var(--muted); font-size: 15px; }
.plan-meta {
  margin-top: 22px; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-block: 1px solid var(--line);
  font-size: 14px;
}
.plan-meta span { color: var(--faint); font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.plan .ticks { flex: 1; align-content: start; margin-top: 22px; }
.plan-featured {
  border-color: rgba(200, 240, 49, 0.45);
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(200, 240, 49, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 40%);
}
.plan-badge {
  position: absolute; top: 0; right: 24px; z-index: 3;
  padding: 4px 10px 5px; border-radius: 0 0 8px 8px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
}

/* ---------- Squad builder ---------- */
.squad { display: grid; }
@media (min-width: 960px) { .squad { grid-template-columns: 1fr 1fr; } }
.squad-controls { padding: 12px 20px; }
@media (min-width: 700px) { .squad-controls { padding: 16px 32px; } }
.role-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.role-row:last-child { border-bottom: 0; }
.role-chip {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
}
.role-chip.tl { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.role-text strong { display: block; font-size: 15px; font-weight: 600; }
.role-text span { display: block; font-size: 13px; color: var(--muted); }
.included { font-family: var(--mono); font-size: 11.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.counter { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); }
.counter button {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--text); font-size: 18px; line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.counter button:hover:not(:disabled) { background: var(--accent); color: var(--accent-ink); }
.counter button:disabled { opacity: 0.3; cursor: not-allowed; }
.counter output { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }

.squad-visual {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(200, 240, 49, 0.08), transparent 70%),
    #0d1015;
}
@media (min-width: 960px) { .squad-visual { border-top: 0; border-left: 1px solid var(--line); } }
.squad-stage {
  flex: 1; min-height: 260px; display: grid; place-items: center; padding: 32px 24px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.squad-tokens { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 360px; }
.token {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -10px rgba(0, 0, 0, 0.8);
  animation: pop 0.45s var(--ease);
}
.token.tl { background: linear-gradient(180deg, var(--accent-hi), #9cc414); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 10px 30px -8px var(--accent-glow); }
@keyframes pop { from { opacity: 0; transform: scale(0.5) translateY(8px); } 60% { transform: scale(1.08); } }
.squad-summary { padding: 24px; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .squad-summary { padding: 28px 32px 32px; } }
.squad-count { font-size: 15px; color: var(--muted); }
.squad-count strong { font-size: 2.4rem; font-weight: 700; color: var(--text); letter-spacing: -0.04em; margin-right: 6px; vertical-align: -0.1em; font-variant-numeric: tabular-nums; }
.squad-desc { margin-top: 6px; font-size: 14.5px; color: var(--text); }
.squad-note { margin-top: 4px; font-size: 13px; color: var(--faint); }
.squad-summary .btn { margin-top: 20px; }

/* ---------- Process ---------- */
.process { display: grid; gap: 8px; }
.process-head .btn { margin-top: 28px; }
@media (min-width: 960px) {
  .process { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .process-head { position: sticky; top: calc(var(--header-h) + 48px); margin-bottom: 0; }
}
.steps { position: relative; display: grid; gap: 14px; --fill: 0; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 43px; top: 44px; bottom: 44px; width: 2px; border-radius: 2px;
}
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(180deg, var(--accent), #8db212); transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 14px var(--accent-glow); }
.step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center;
  padding: 14px 18px 14px 0;
}
.step-icon { width: 88px; height: 88px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.step.lit .step-icon { border-color: rgba(200, 240, 49, 0.45); box-shadow: 0 0 0 4px var(--bg), 0 0 30px -6px var(--accent-glow); }
.step:hover .step-icon { transform: scale(1.05) rotate(-3deg); }
.step-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.step-meta span { color: var(--accent); }
.step h3 { margin-top: 4px; }
.step p:last-child { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- Work ---------- */
.work-grid { display: grid; gap: 16px; }
@media (min-width: 960px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .work-lg { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .work-lg .work-media { flex: 1; aspect-ratio: auto; min-height: 420px; }
  .work-cta { grid-column: span 3; }
}
.work-media { aspect-ratio: 3 / 2; overflow: hidden; background: #0d0f14; border-bottom: 1px solid var(--line); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); }
.work-body { padding: 22px 24px 26px; }
.work-body > p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.work-lg h3 { font-size: 1.6rem; letter-spacing: -0.035em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.work-cta {
  background:
    radial-gradient(80% 140% at 100% 100%, rgba(200, 240, 49, 0.14), transparent 60%),
    var(--surface);
}
.work-cta .work-body { padding: 36px 28px; }
.work-cta .eyebrow { margin-bottom: 12px; }
.work-cta h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -0.035em; max-width: 26ch; }
.work-cta p { max-width: 42rem; }
.work-cta .btn { margin-top: 24px; }
@media (min-width: 960px) {
  .work-cta .work-body { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 40px; padding: 44px 40px; }
  .work-cta .eyebrow, .work-cta h3, .work-cta p { grid-column: 1; }
  .work-cta .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin-top: 0; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.why { padding: 22px 26px 30px; }
.why-icon { width: 96px; height: 96px; margin: 0 0 12px -10px; border-radius: 18px; transition: transform 0.6s var(--ease); }
.why:hover .why-icon { transform: translateY(-4px) rotate(-5deg) scale(1.05); }
.why p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* ---------- Team ---------- */
.team { display: grid; gap: 40px; align-items: center; }
.team-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.team-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.roles { margin-top: 32px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.roles li { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.roles li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); flex: none; }
@media (min-width: 960px) { .team { grid-template-columns: 1.05fr 1fr; gap: 72px; } }

/* ---------- Stack ---------- */
.stack-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .stack-grid { grid-template-columns: repeat(5, 1fr); } }
.stack-group { padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.stack-group h3 { font-family: var(--mono); font-weight: 500; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; transition: border-color 0.2s, color 0.2s; }
.chips li:hover { border-color: rgba(200, 240, 49, 0.4); color: var(--accent); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); background: #08090d; display: flex; flex-direction: column-reverse; }
.cta-bg { position: relative; height: 300px; margin-top: -40px; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 55%; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #08090d 0%, transparent 35%); }
.cta-inner { position: relative; padding: 96px var(--gutter) 0; display: flex; flex-direction: column; align-items: flex-start; }
.cta-band h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -0.05em; line-height: 1; }
.cta-band h2 .accent { text-shadow: 0 0 50px rgba(200, 240, 49, 0.3); }
.cta-band p:not(.eyebrow) { margin-top: 20px; color: var(--muted); font-size: 1.1rem; max-width: 30rem; }
.cta-band .btn { margin-top: 32px; }
@media (min-width: 960px) {
  .cta-band { display: block; min-height: 640px; }
  .cta-bg { position: absolute; inset: 0; height: auto; margin: 0; z-index: -1; }
  .cta-bg img { object-position: 70% 50%; }
  .cta-bg::after { background: linear-gradient(90deg, #08090d 15%, rgba(8, 9, 13, 0.6) 45%, transparent 70%); }
  .cta-inner { padding: 160px var(--gutter); }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 0; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%;
  width: 14px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details[open] summary { color: var(--accent); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 46rem; animation: kin 0.4s var(--ease); }

/* ---------- Contact ---------- */
.contact-section { position: relative; overflow: hidden; }
.contact-section::before {
  content: ""; position: absolute; left: 50%; bottom: -380px; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(200, 240, 49, 0.10), transparent 70%);
}
.contact { position: relative; display: grid; gap: 40px; }
@media (min-width: 960px) { .contact { grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; } }
.next-steps { margin-top: 32px; display: grid; gap: 14px; }
.next-steps li { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 15px; }
.next-steps span {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
}
.contact-alt { margin-top: 36px; color: var(--muted); font-size: 15px; }
.contact-alt a { color: var(--text); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s, color 0.2s; overflow-wrap: anywhere; }
.contact-alt a:hover { color: var(--accent); border-color: var(--accent); }

.form { padding: 28px 22px; display: grid; gap: 18px; }
@media (min-width: 700px) { .form { padding: 36px; } }
.field-row { display: grid; gap: 18px; }
@media (min-width: 700px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field ::placeholder { color: var(--faint); }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: #ff6b6b; }
.field textarea.filled { animation: fillflash 1.2s var(--ease); }
@keyframes fillflash { 0% { box-shadow: 0 0 0 3px var(--accent-glow); border-color: var(--accent); } }
.field > span em { font-style: normal; color: var(--faint); }
.field input.file-input { padding: 10px; cursor: pointer; color: var(--muted); font-size: 14px; }
.field input.file-input::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.form-success { margin-top: 4px; padding: 18px; border-radius: var(--radius-sm); border: 1px solid rgba(200, 240, 49, 0.35); background: var(--accent-soft); }
.form-success strong { display: block; font-size: 1.05rem; color: var(--text); }
.form-success p { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.form-success a { display: inline-flex; margin-top: 12px; color: var(--accent); font-weight: 600; border-bottom: 1px solid currentColor; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--faint); max-width: 22rem; }
.form-status { font-size: 14.5px; min-height: 1.4em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff8a8a; }
.form button[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; border-top: 1px solid var(--line); background: #08090d; padding: 64px 0 28px; overflow: hidden; }
.footer-terrain { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: -1; opacity: 0.45; pointer-events: none; }
.footer-terrain img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.footer-terrain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #08090d 0%, transparent 45%, rgba(8, 9, 13, 0.55) 100%); }
.footer-inner { display: grid; gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 22rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer-nav div { display: grid; gap: 10px; align-content: start; }
.footer-nav h4 { font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.footer-nav a { color: var(--muted); font-size: 15px; transition: color 0.2s; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--text); }
.footer-wordmark {
  margin-top: 56px; text-align: center; white-space: nowrap;
  font-size: clamp(2.4rem, 11vw, 11rem); font-weight: 800; letter-spacing: -0.065em; line-height: 0.8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 10%, rgba(255, 255, 255, 0.03) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--faint); }
.to-top:hover { color: var(--text); }
@media (max-width: 959px) {
  .footer-nav div:last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1.4fr; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { transform: none; }
}
