/* ============================================================
   Guavex Pro — design tokens
   ============================================================ */
:root {
  --bg: #07090f;
  --bg-soft: #0b0e17;
  --surface: #10141f;
  --surface-2: #161b29;
  --line: rgba(148, 163, 184, 0.14);
  --text: #eef2f8;
  --muted: #9aa6ba;
  --accent: #e8784f;
  --accent-2: #f4a259;
  --grad: linear-gradient(92deg, var(--accent), var(--accent-2));
  --nav-bg: rgba(7, 9, 15, 0.72);
  --nav-bg-solid: rgba(7, 9, 15, 0.95);
  --ghost-bg: rgba(255, 255, 255, 0.03);
  --grid-line: rgba(148, 163, 184, 0.05);
  --logo-g: #fff;
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
}

[data-theme="light"] {
  --bg: #faf7f3;
  --bg-soft: #f2ede6;
  --surface: #ffffff;
  --surface-2: #f6f1ea;
  --line: rgba(28, 34, 48, 0.12);
  --text: #1c2230;
  --muted: #5a6477;
  --accent: #cf5325;
  --accent-2: #d97b2e;
  --nav-bg: rgba(250, 247, 243, 0.8);
  --nav-bg-solid: rgba(250, 247, 243, 0.96);
  --ghost-bg: rgba(28, 34, 48, 0.04);
  --grid-line: rgba(28, 34, 48, 0.06);
  --logo-g: #1c2230;
  --card-shadow: 0 24px 60px rgba(28, 34, 48, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.02em; }

h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

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

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: background-color 0.6s ease;
}
/* curtain fades while the logo flies to the nav corner */
.preloader.done { background-color: transparent; pointer-events: none; }
#preLogo { overflow: visible; color: var(--accent); will-change: transform; }
#preLogo circle {
  fill: currentColor;
  /* per-dot transition (duration/ease/delay) is set inline by main.js */
  will-change: transform;
}
/* the G stays hidden until its font is loaded, then fades in at its
   final, constant size — no mid-sequence typeface swap */
#preG { opacity: 0; }
#preG.in { opacity: 1; transition: opacity 0.4s ease-out; }
body.loading { overflow: hidden; }
body.loading .hero-title .line > span { animation-play-state: paused; }

/* ============================================================
   Scroll progress
   ============================================================ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  margin: -3.5px 0 0 -3.5px;
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid var(--accent);
  margin: -19px 0 0 -19px;
  transition: opacity 0.3s;
}
body.custom-cursor .cursor-dot, body.custom-cursor .cursor-ring { opacity: 1; }
body.custom-cursor, body.custom-cursor a, body.custom-cursor button,
body.custom-cursor .chip, body.custom-cursor .card { cursor: none; }

/* ============================================================
   Cursor glow
   ============================================================ */
.cursor-glow {
  position: fixed;
  width: 560px; height: 560px;
  left: 0; top: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(232, 120, 79, 0.07) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
  opacity: 0;
}
body.has-mouse .cursor-glow { opacity: 1; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo em { font-style: normal; color: var(--accent); }
.logo-mark { color: var(--accent); flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ghost-bg);
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 24px;
  background: var(--nav-bg-solid);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--muted);
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn { margin-top: 12px; justify-content: center; color: #fff; }
.nav.open .nav-mobile { display: flex; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  will-change: transform;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(232, 120, 79, 0.28);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(232, 120, 79, 0.45); }
.btn-primary svg { transition: transform 0.25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--ghost-bg);
}
.btn-ghost:hover { border-color: rgba(232, 120, 79, 0.5); background: rgba(232, 120, 79, 0.06); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

#net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #4ade80;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from { transform: scale(0.6); opacity: 1; }
  to { transform: scale(1.8); opacity: 0; }
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 700;
  margin-bottom: 26px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: line-up 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes line-up { to { transform: translateY(0); } }

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* terminal */
.hero-terminal { position: relative; }

.terminal {
  background: rgba(13, 17, 27, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}
.hero-terminal:hover .terminal { transform: perspective(1200px) rotateY(0) rotateX(0); }

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #8b97ab; /* terminal stays dark in both themes */
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  min-height: 264px;
  white-space: pre-wrap;
  color: #c8d3e8;
}
.terminal-body .cmd { color: #7ee787; }
.terminal-body .dim { color: #6b7a93; }
.terminal-body .ok { color: #4ade80; }
.terminal-body .hl { color: var(--accent-2); }

.caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.terminal-badge {
  position: absolute;
  bottom: -18px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 24, 20, 0.92);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  z-index: 1;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   Marquee
   ============================================================ */
.marquee-section {
  border-block: 1px solid var(--line);
  padding: 22px 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-right: 44px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  opacity: 0.85;
}
.marquee-track i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 90px;
  padding-bottom: 30px;
}
.stat { text-align: left; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   Manifesto (scroll-scrubbed statement)
   ============================================================ */
.manifesto { height: 180vh; position: relative; }
.manifesto-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.manifesto-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.manifesto-text {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 980px;
}
.manifesto-text .w { color: var(--muted); opacity: 0.28; transition: opacity 0.3s, color 0.3s; }
.manifesto-text .w.lit { color: var(--text); opacity: 1; }

/* ============================================================
   Statement strips (kinetic type)
   ============================================================ */
.statement {
  padding: 90px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: rotate(-2deg) scale(1.04);
}
.statement-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.4rem, 9vw, 8rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
  will-change: transform;
}
.statement-track span { flex-shrink: 0; }
.st-fill { color: var(--text); animation: st-left 38s linear infinite; }
.st-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  animation: st-right 44s linear infinite;
}
@keyframes st-left { to { transform: translateX(-50%); } }
@keyframes st-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 110px 24px; }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-sub { color: var(--muted); margin-top: 18px; max-width: 560px; }

/* ============================================================
   Service cards
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s, background 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 120, 79, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(232, 120, 79, 0.35); }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(232, 120, 79, 0.1);
  color: var(--accent);
  margin-bottom: 22px;
  transition: transform 0.3s var(--ease);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.22rem; margin-bottom: 10px; font-weight: 600; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ============================================================
   Work
   ============================================================ */
.work-list { display: flex; flex-direction: column; gap: 26px; }

.work-item {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.work-item:hover {
  border-color: rgba(232, 120, 79, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}
.work-item:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.work-item:nth-child(even) .work-media { order: 2; }

.work-media {
  min-height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.wm-1 { background: radial-gradient(ellipse at 30% 20%, rgba(232, 120, 79, 0.16), transparent 60%), var(--surface-2); }
.wm-2 { background: radial-gradient(ellipse at 70% 30%, rgba(244, 162, 89, 0.14), transparent 60%), var(--surface-2); }
.wm-3 { background: radial-gradient(ellipse at 50% 80%, rgba(232, 120, 79, 0.13), transparent 60%), var(--surface-2); }

.wm-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 150px;
}
.wm-chart span {
  width: 26px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: var(--grad);
  opacity: 0.85;
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.8s var(--ease);
}
.work-item.visible .wm-chart span { transform: scaleY(1); }
.work-item.visible .wm-chart span:nth-child(2) { transition-delay: 0.08s; }
.work-item.visible .wm-chart span:nth-child(3) { transition-delay: 0.16s; }
.work-item.visible .wm-chart span:nth-child(4) { transition-delay: 0.24s; }
.work-item.visible .wm-chart span:nth-child(5) { transition-delay: 0.32s; }
.work-item.visible .wm-chart span:nth-child(6) { transition-delay: 0.4s; }

.wm-phone {
  width: 150px; height: 230px;
  border-radius: 26px;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  background: var(--bg-soft);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: rotate(-5deg);
  transition: transform 0.5s var(--ease);
}
.work-item:hover .wm-phone { transform: rotate(0deg) scale(1.04); }
.wm-phone-bar { height: 6px; width: 40%; border-radius: 3px; background: rgba(148, 163, 184, 0.35); margin: 0 auto; }
.wm-phone-card { height: 76px; border-radius: 12px; background: var(--grad); opacity: 0.85; }
.wm-phone-row { height: 14px; border-radius: 7px; background: rgba(148, 163, 184, 0.22); }
.wm-phone-row.short { width: 60%; }

.wm-orbit {
  position: relative;
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  animation: spin 16s linear infinite;
}
.wm-orbit::after {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.22);
}
.wm-orbit i {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(232, 120, 79, 0.7);
}
.wm-orbit i:nth-child(1) { top: -8px; left: 50%; }
.wm-orbit i:nth-child(2) { bottom: 12px; left: 8px; width: 11px; height: 11px; }
.wm-orbit i:nth-child(3) { top: 40px; right: -4px; width: 9px; height: 9px; }
@keyframes spin { to { transform: rotate(360deg); } }

.work-info { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.work-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.work-info h3 { font-size: 1.55rem; font-weight: 600; margin-bottom: 12px; }
.work-info p { color: var(--muted); margin-bottom: 22px; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.work-meta li {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ============================================================
   Process
   ============================================================ */
.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.process li:hover { border-color: rgba(232, 120, 79, 0.35); transform: translateY(-4px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  margin-bottom: 40px;
}
.process li::after {
  content: "";
  position: absolute;
  top: 38px; right: -16px;
  width: 12px; height: 2px;
  background: rgba(232, 120, 79, 0.5);
}
.process li:last-child::after { display: none; }
.process h3 { font-size: 1.18rem; font-weight: 600; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 0.93rem; }

/* ============================================================
   Stack chips
   ============================================================ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 860px; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease), background 0.25s;
  cursor: default;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(232, 120, 79, 0.08);
  transform: translateY(-3px);
}

/* ============================================================
   Quote
   ============================================================ */
.quote {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 30px 20px;
}
.quote-mark { width: 44px; height: 44px; color: var(--accent); opacity: 0.85; margin-bottom: 18px; }
.quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.quote figcaption { color: var(--muted); font-size: 0.95rem; }
.quote figcaption strong { color: var(--text); }

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  position: relative;
  padding: 140px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 900px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(232, 120, 79, 0.13), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-inner h2 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); margin-bottom: 26px; }
.cta-inner p { color: var(--muted); max-width: 520px; margin: 0 auto 38px; }
.cta-inner .hero-cta { justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-soft); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer p { color: var(--muted); font-size: 0.88rem; }
.footer .logo { font-size: 1rem; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-terminal { max-width: 560px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav .btn-sm { display: none; }
  .nav-toggle { display: block; margin-left: 0; }
  .theme-toggle { margin-left: auto; }
  .nav { background: var(--nav-bg); backdrop-filter: blur(16px); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .section { padding: 80px 24px; }
  .work-item, .work-item:nth-child(even) { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-media { order: 0; }
  .work-media { min-height: 220px; }
  .work-info { padding: 30px 26px; }
  .cards { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .terminal { transform: none; }
  .scroll-hint { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; animation: none; }
  .wm-chart span { transform: scaleY(1); }
  #net, .cursor-glow, .scroll-hint, .preloader, .cursor-dot, .cursor-ring { display: none; }
  body.loading { overflow: auto; }
  .manifesto { height: auto; padding: 110px 0; }
  .manifesto-text .w { color: var(--text); opacity: 1; }
  .statement { transform: none; }
  .statement-track { animation: none; }
}
