/* ==========================================================================
   Milan Kandel — Portfolio
   Tokens → base → layout → components → sections → responsive
   ========================================================================== */

:root {
  --bg: #060708;
  --bg-2: #0a0b0e;
  --bg-3: #0f1014;
  --surface: rgba(255, 255, 255, 0.028);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.075);
  --border-2: rgba(255, 255, 255, 0.13);
  --text: #ededf0;
  --muted: #9b9da7;
  --dim: #6a6c75;
  --accent: #6cb8ff;
  --accent-2: #9ec9ff;
  --accent-soft: rgba(108, 184, 255, 0.12);
  --accent-line: rgba(108, 184, 255, 0.45);
  --ok: #4ade80;

  --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: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(96px, 13vw, 176px);
  --nav-h: 64px;

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
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;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain — adds depth to flat darks; static and GPU-cheap. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.035;
  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, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: rgba(108, 184, 255, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 500;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow span { color: var(--accent); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow span::after { content: ''; width: 28px; height: 1px; background: var(--border-2); }
.eyebrow--center { justify-content: center; }
.h2 {
  font-size: clamp(2.35rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  text-wrap: balance;
}
.section-head { max-width: 780px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-sub { margin-top: 22px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 56ch; text-wrap: pretty; }
.grad {
  background: linear-gradient(100deg, #ffffff 0%, var(--accent-2) 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footnote { margin-top: 28px; font-size: 13px; color: var(--dim); font-family: var(--mono); }

/* ---------- Buttons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease), color 0.25s;
}
.btn--primary {
  background: var(--text); color: #08090b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 10px 30px -10px rgba(108, 184, 255, 0.45);
}
.btn--primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff inset, 0 14px 44px -10px rgba(108, 184, 255, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border-2); color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.24); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn__ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); flex: none; }
.btn:hover .btn__ico--move { transform: translateX(3px); }
.btn:hover .btn__ico:only-of-type:last-child { transform: translateX(3px); }
.btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(0.97); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: rgba(14, 15, 19, 0.7); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 12px; line-height: 1; color: var(--muted);
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
}

/* ---------- Reveal & entrance ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--rd, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-enter] { opacity: 0; transform: translate3d(0, 18px, 0); }
.js.is-loaded [data-enter] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 80ms + 200ms); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; inset: 16px 0 auto; z-index: 50; display: flex; flex-direction: column; align-items: center; padding-inline: 16px; pointer-events: none; transition: inset 0.5s var(--ease); }
.nav__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 8px;
  width: min(100%, 880px); height: var(--nav-h); padding: 0 8px 0 10px;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(10, 11, 14, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: width 0.6s var(--ease), height 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
}
.nav.is-compact { inset: 10px 0 auto; }
.nav.is-compact .nav__bar { width: min(100%, 780px); height: 54px; background: rgba(10, 11, 14, 0.78); border-color: var(--border-2); }
.nav__logo {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none;
  font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: -0.02em;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-2);
  transition: transform 0.4s var(--ease);
}
.nav.is-compact .nav__logo { width: 38px; height: 38px; font-size: 13px; }
.nav__logo:hover { transform: rotate(-8deg) scale(1.05); }
.nav__links { position: relative; display: flex; align-items: center; margin-inline: auto; }
.nav__links a { position: relative; z-index: 1; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__indicator {
  position: absolute; left: 0; top: 50%; height: 34px; width: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.06);
  transform: translate3d(var(--x, 0), -50%, 0); opacity: 0;
  transition: transform 0.55s var(--ease), width 0.55s var(--ease), opacity 0.3s;
}
.nav__indicator.is-ready { opacity: 1; }
.nav__resume {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px; margin-right: 2px;
  border-radius: 999px; font-size: 14px; color: var(--muted); border: 1px solid var(--border);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s, height 0.6s var(--ease);
}
.nav__resume svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav__resume:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.nav.is-compact .nav__resume { height: 38px; }
.nav__cta {
  flex: none; height: 44px; padding: 0 18px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--text); color: #08090b; font-size: 14px; font-weight: 500;
  transition: height 0.6s var(--ease), background-color 0.25s;
}
.nav__cta:hover { background: #fff; }
.nav.is-compact .nav__cta { height: 38px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; margin-left: auto; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.45s var(--ease); }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded='true'] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  width: min(100%, 880px); margin-top: 10px; padding: 14px;
  display: flex; flex-direction: column;
  border-radius: 24px; border: 1px solid var(--border-2);
  background: rgba(10, 11, 14, 0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transform-origin: top center;
  animation: menu-in 0.5s var(--ease);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; border-radius: 14px; color: var(--muted); }
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--text); background: var(--surface-2); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: 128px 96px; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -1px;
  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: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 0%, transparent 75%);
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -220px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(70, 140, 255, 0.2), rgba(70, 140, 255, 0.05) 55%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: 24px; }
.hero__copy { position: relative; z-index: 2; }

.status {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 30px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 13.5px; color: var(--text); background: rgba(74, 222, 128, 0.06); border: 1px solid rgba(74, 222, 128, 0.18);
}
.status__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.status__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2); opacity: 0; } }

.hero__title { font-size: clamp(3rem, 6.8vw, 6.4rem); line-height: 0.96; letter-spacing: -0.055em; font-weight: 600; max-width: 11ch; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .w > span { display: inline-block; }
.js .hero__title .w > span { transform: translate3d(0, 108%, 0); }
.js.is-loaded .hero__title .w > span { transform: none; transition: transform 1.25s var(--ease); transition-delay: calc(var(--d) * 70ms + 120ms); }
.hero__lead { margin-top: 28px; max-width: 46ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.08; width: 100%; max-height: 720px; }
.hero__canvas { position: absolute; inset: -12% -18% -12% -12%; width: 130%; height: 124%; max-width: none; }
.hero__labels { position: absolute; inset: 0; pointer-events: none; }
.hero__label {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; color: var(--text); white-space: nowrap;
  background: rgba(14, 16, 21, 0.72); border: 1px solid var(--border-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  will-change: transform, opacity;
}
.hero__label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.hero__canvas { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__visual.is-3d .hero__canvas { opacity: 1; }
.hero__visual:not(.is-2d):not(.is-3d) .hero__label { opacity: 0; }

/* 2D fallback (no WebGL, small screens) */
.hero__fallback { display: none; }
.hero__visual.is-2d .hero__canvas { display: none; }
.hero__visual.is-2d .hero__fallback {
  display: grid; place-items: center; position: absolute; inset: 0;
  --rx: 0deg; --ry: 0deg; perspective: 1200px;
}
.hero__visual.is-2d .hero__fallback::before {
  content: ''; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 160, 255, 0.28), transparent 70%);
}
.hero__fallback .phone { width: min(52%, 280px); transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(-4deg); transition: transform 0.8s var(--ease); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -12px; } }
.hero__visual.is-2d .hero__label { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -0.9s); }
.hero__visual.is-2d .hero__label:nth-child(1) { left: 6%;  top: 16%; }
.hero__visual.is-2d .hero__label:nth-child(2) { left: 74%; top: 10%; }
.hero__visual.is-2d .hero__label:nth-child(3) { left: 0%;  top: 48%; }
.hero__visual.is-2d .hero__label:nth-child(4) { left: 72%; top: 40%; }
.hero__visual.is-2d .hero__label:nth-child(5) { left: 10%; top: 78%; }
.hero__visual.is-2d .hero__label:nth-child(6) { left: 70%; top: 72%; }
.hero__visual.is-2d .hero__label:nth-child(7) { left: 44%; top: 92%; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid var(--border-2); border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 6px; margin-left: -1.5px; border-radius: 2px; background: var(--muted); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================================
   PHONE MOCKUP + APP SCREENS
   ========================================================================== */
.phone { width: 100%; aspect-ratio: 9 / 19.2; container-type: inline-size; flex: none; }
.phone__frame {
  height: 100%; padding: 3.4cqw; border-radius: 15.5cqw;
  background: linear-gradient(150deg, #34373e 0%, #121317 22%, #0b0c0f 60%, #24262c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 0 0.9cqw #050506, 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.7);
}
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 12.4cqw; background: var(--app-bg); }
.phone__screen picture { display: block; height: 100%; }
.phone__img { width: 100%; height: 100%; object-fit: cover; object-position: top center; image-rendering: auto; }
.phone__screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0%, transparent 32%); }

.phone { --app-bg: #0c0e12; --app-card: #151820; --app-line: rgba(255, 255, 255, 0.07); --app-text: #eceef2; --app-muted: #858b97; --app-accent: var(--project-accent, var(--accent)); --app-accent-soft: color-mix(in srgb, var(--app-accent) 14%, transparent); }

.app { height: 100%; padding: 0 5.5cqw; font-size: 4.3cqw; line-height: 1.35; color: var(--app-text); display: flex; flex-direction: column; gap: 0.75em; position: relative; }
.app .ico { width: 1.15em; height: 1.15em; flex: none; }
.app small { display: block; color: var(--app-muted); font-size: 0.8em; }
.app strong { font-weight: 600; }
.app__status { display: flex; justify-content: space-between; align-items: center; height: 3.4em; font-size: 0.85em; font-weight: 600; padding-inline: 0.6em; }
.app__island { width: 30%; height: 1.75em; border-radius: 1em; background: #000; }
.app__sig { display: flex; gap: 0.18em; align-items: flex-end; }
.app__sig i { width: 0.24em; background: var(--app-text); border-radius: 1px; }
.app__sig i:nth-child(1) { height: 0.45em; } .app__sig i:nth-child(2) { height: 0.65em; } .app__sig i:nth-child(3) { height: 0.85em; }
.app__bar { display: flex; align-items: center; gap: 0.7em; }
.app__bar strong { display: block; font-size: 1.15em; letter-spacing: -0.01em; }
.app__iconbtn { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: var(--app-card); flex: none; }
.app__card { background: var(--app-card); border: 1px solid var(--app-line); border-radius: 1.1em; padding: 0.9em; }
.app__label { font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--app-muted); margin-top: 0.2em; }
.app__weather { display: flex; align-items: center; gap: 0.8em; }
.app__weather > div { flex: 1; }
.app__weather-ico { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 0.8em; background: var(--app-accent-soft, var(--accent-soft)); color: var(--app-accent); }
.app__list { padding: 0.25em 0.85em; }
.app__row { display: flex; align-items: center; gap: 0.7em; padding: 0.6em 0; border-bottom: 1px solid var(--app-line); color: var(--app-text); }
.app__row:last-child { border-bottom: 0; }
.app__row > .ico:last-child { color: var(--app-muted); width: 0.95em; }
.app__tile { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.05); color: var(--app-accent); flex: none; }
.app__tile .ico { width: 1em; height: 1em; }
.app__rowtext { flex: 1; display: flex; flex-direction: column; gap: 0.35em; min-width: 0; }
.app__meta { font-size: 0.85em; color: var(--app-muted); font-variant-numeric: tabular-nums; }
.app__bar-progress { display: block; height: 0.3em; border-radius: 1em; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.app__bar-progress b { display: block; height: 100%; border-radius: inherit; background: var(--app-accent); }
.app__bar-progress.is-low b { background: #f87171; }
.app__offline { display: flex; align-items: center; gap: 0.6em; font-size: 0.82em; color: var(--app-muted); padding: 0.6em 0.8em; border-radius: 0.8em; border: 1px dashed var(--app-line); }
.app__cta { margin-top: auto; margin-bottom: 1.6em; text-align: center; padding: 0.95em; border-radius: 1em; background: var(--app-accent); color: #111; font-weight: 600; }
.app__pill { font-size: 0.72em; font-weight: 600; padding: 0.3em 0.7em; border-radius: 1em; white-space: nowrap; }
.app__pill--ok { background: rgba(74, 222, 128, 0.14); color: #4ade80; }
.app__pill--warn { background: rgba(245, 165, 36, 0.15); color: #f5a524; }
.app__pill--bad { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.app__seg { display: flex; padding: 0.25em; border-radius: 0.9em; background: var(--app-card); font-size: 0.85em; }
.app__seg span { flex: 1; text-align: center; padding: 0.45em; border-radius: 0.7em; color: var(--app-muted); }
.app__seg .is-on { background: rgba(255, 255, 255, 0.08); color: var(--app-text); }
.app__approval-head { display: flex; justify-content: space-between; align-items: center; }
.app__steps { display: flex; gap: 0.35em; margin-top: 0.7em; }
.app__steps i { flex: 1; height: 0.28em; border-radius: 1em; background: rgba(255, 255, 255, 0.08); }
.app__steps i.is-on { background: var(--app-accent); }
.app__tabs { margin-top: auto; margin-bottom: 1.2em; display: flex; justify-content: space-around; padding: 0.75em; border-radius: 1.4em; background: var(--app-card); border: 1px solid var(--app-line); color: var(--app-muted); }
.app__tabs .is-on { color: var(--app-accent); }
.app__search { display: flex; align-items: center; gap: 0.6em; padding: 0.75em 0.9em; border-radius: 0.9em; background: var(--app-card); color: var(--app-muted); font-size: 0.9em; }
.app__stock { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 1em; padding: 0.55em 0.1em; border-bottom: 1px solid var(--app-line); }
.app__greet { display: flex; justify-content: space-between; align-items: center; margin-top: 0.2em; }
.app__greet strong { font-size: 1.3em; letter-spacing: -0.02em; }
.app__avatar { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: linear-gradient(135deg, var(--app-accent), #0ea5e9); color: #06281d; font-weight: 700; flex: none; }
.app__avatar--sm { width: 1.9em; height: 1.9em; font-size: 0.9em; }
.app__balance { position: relative; overflow: hidden; padding: 1.1em; border-radius: 1.2em; color: #04140d; background: linear-gradient(135deg, #6ee7b7, var(--app-accent) 45%, #0d9488); }
.app__balance small { color: rgba(4, 20, 13, 0.7); }
.app__balance strong { display: block; font-size: 2.3em; letter-spacing: -0.04em; line-height: 1.1; margin: 0.15em 0 0.5em; }
.app__balance::after { content: ''; position: absolute; width: 8em; height: 8em; right: -2.5em; top: -3em; border-radius: 50%; border: 1.4em solid rgba(255, 255, 255, 0.18); }
.app__balance-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9em; padding-top: 0.6em; border-top: 1px solid rgba(4, 20, 13, 0.15); }
.app__actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5em; text-align: center; font-size: 0.8em; color: var(--app-muted); }
.app__actions b { display: grid; place-items: center; height: 3em; margin-bottom: 0.4em; border-radius: 1em; background: var(--app-card); color: var(--app-accent); border: 1px solid var(--app-line); }
.app__chart-head { display: flex; align-items: baseline; gap: 0.3em; }
.app__chart-head strong { font-size: 1.8em; letter-spacing: -0.03em; }
.app__bars { display: flex; align-items: flex-end; gap: 0.55em; height: 6em; margin-top: 0.6em; }
.app__bars i { flex: 1; border-radius: 0.4em 0.4em 0.15em 0.15em; background: linear-gradient(to top, rgba(52, 211, 153, 0.25), var(--app-accent)); }
.app__days { display: flex; gap: 0.55em; margin-top: 0.4em; font-size: 0.7em; color: var(--app-muted); }
.app__days span { flex: 1; text-align: center; }
.app__post p { margin: 0.6em 0; font-size: 0.95em; }
.app__post-head { display: flex; align-items: center; gap: 0.6em; }
.app__skel { height: 0.55em; width: 40%; border-radius: 1em; background: rgba(255, 255, 255, 0.09); }
.app__post-foot { display: flex; gap: 1.2em; color: var(--app-muted); font-size: 0.85em; }
.app__post-foot span { display: inline-flex; align-items: center; gap: 0.4em; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 104px); align-items: center; }
.about__story { display: grid; gap: 20px; max-width: 54ch; margin-top: 36px; }
.about__story .lead { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--text); text-wrap: pretty; }
.about__story .lead em { font-style: normal; color: var(--accent-2); }
.about__story p { color: var(--muted); }
.about__caps { margin-top: 48px; }
.about__caps-title { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 14px; }
.caps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.caps li { display: flex; gap: 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--border); font-size: 15px; transition: color 0.3s, padding-left 0.4s var(--ease); }
.caps li span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.caps li:hover { color: #fff; padding-left: 4px; }
.caps li:hover span { color: var(--accent); }

.workspace { --rx: 0deg; --ry: 0deg; perspective: 1600px; position: relative; padding: 4% 16% 18% 0; }
.workspace__stage { position: relative; transform-style: preserve-3d; transform: rotateX(calc(8deg + var(--rx))) rotateY(calc(-16deg + var(--ry))); transition: transform 0.9s var(--ease); }
.editor {
  position: relative; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(22, 24, 30, 0.92), rgba(12, 13, 17, 0.92));
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.editor__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.editor__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.editor__bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.editor__code { margin: 0; padding: 18px 20px 22px; font-family: var(--mono); font-size: clamp(10.5px, 1.05vw, 13px); line-height: 1.75; color: #c9ccd4; overflow: hidden; white-space: pre; }
.editor__code .k { color: #86b7ff; }
.editor__code .t { color: #f2f3f5; }
.editor__code .f { color: #b8c2ff; }
.editor__code .n { color: #f5b971; }
.workspace__phone { position: absolute; right: -14%; bottom: -22%; width: 40%; transform: translateZ(90px) rotateZ(2deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6)); }
.chip--float { position: absolute; transform-style: preserve-3d; }
.chip--float i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chip--a { left: -4%; bottom: -6%; transform: translateZ(130px); color: var(--text); }
.chip--b { right: 2%; top: -5%; transform: translateZ(60px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--border); }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 30px 24px 0 0; position: relative; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }

/* ==========================================================================
   SKILLS ECOSYSTEM
   ========================================================================== */
.eco { position: relative; }
.eco__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.eco__lines path { fill: none; stroke: rgba(255, 255, 255, 0.11); stroke-width: 1; transition: stroke 0.4s, opacity 0.4s; }
.eco__lines path.is-active { stroke: rgba(108, 184, 255, 0.75); stroke-dasharray: 4 6; animation: dash 1.2s linear infinite; }
.eco__lines circle { fill: var(--accent); opacity: 0; transition: opacity 0.4s; }
.eco__lines circle.is-active { opacity: 0.9; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.eco__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 36px; perspective: 1200px; padding-bottom: 80px; }
@media (min-width: 1025px) {
  .eco__grid > :nth-child(4n + 2) { margin-top: 56px; margin-bottom: -56px; }
  .eco__grid > :nth-child(4n + 3) { margin-top: 20px; margin-bottom: -20px; }
  .eco__grid > :nth-child(4n + 4) { margin-top: 76px; margin-bottom: -76px; }
}
.node {
  --rx: 0deg; --ry: 0deg; --lift: 0px;
  position: relative; height: 172px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012) 60%), var(--bg-2);
  border: 1px solid var(--border);
  transform: translate3d(0, var(--lift), 0) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease), opacity 0.4s;
  overflow: hidden; outline-offset: 4px;
}
.node::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--px, 50%) var(--py, 0%), rgba(108, 184, 255, 0.13), transparent 60%);
}
.node:hover, .node:focus-visible, .node.is-linked { border-color: rgba(108, 184, 255, 0.32); }
.node:hover, .node:focus-visible { --lift: -8px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(108, 184, 255, 0.1); z-index: 2; }
.node:hover::before, .node:focus-visible::before { opacity: 1; }
.eco.has-focus .node:not(.is-linked):not(:hover):not(:focus-visible) { opacity: 0.42; }
.node__top { display: flex; justify-content: space-between; align-items: flex-start; }
.node__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); border: 1px solid var(--border-2);
  transition: transform 0.6s var(--ease), color 0.3s;
}
.node:hover .node__mark, .node:focus-visible .node__mark { transform: rotate(-10deg) scale(1.06); color: var(--accent-2); }
.node__group { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.node__name { position: absolute; left: 22px; right: 22px; bottom: 22px; font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; transition: transform 0.55s var(--ease); }
.node__desc {
  position: absolute; left: 22px; right: 22px; bottom: 20px; font-size: 13.5px; line-height: 1.45; color: var(--muted);
  opacity: 0; transform: translateY(14px); transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}
.node:hover .node__name, .node:focus-visible .node__name { transform: translateY(-70px); }
.node:hover .node__desc, .node:focus-visible .node__desc { opacity: 1; transform: none; }
.node--core {
  background: radial-gradient(120% 90% at 0% 0%, rgba(108, 184, 255, 0.16), transparent 60%), linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)), var(--bg-2);
  border-color: rgba(108, 184, 255, 0.28);
}
.node--core .node__mark { color: var(--accent); border-color: rgba(108, 184, 255, 0.4); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.project {
  --rx: 0deg; --ry: 0deg; --px: 50%; --py: 50%;
  --glow: color-mix(in srgb, var(--project-accent, var(--accent)) 12%, transparent);
  position: relative; display: grid; grid-template-columns: 1.08fr 1fr; min-height: 600px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--bg-2);
  transform: perspective(1800px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.8s var(--ease), border-color 0.4s;
  overflow: hidden; isolation: isolate;
}
.project::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(600px circle at var(--px) var(--py), rgba(255, 255, 255, 0.05), transparent 55%);
}
.project:hover { border-color: var(--border-2); }
.project:hover::before { opacity: 1; }
.project:nth-child(even) { grid-template-columns: 1fr 1.08fr; }
.project:nth-child(even) .project__media { order: 2; }
.project__media {
  position: relative; display: grid; place-items: center; overflow: hidden; cursor: pointer;
  perspective: 1400px; border: 0; padding: 0; text-align: left;
  background: radial-gradient(70% 60% at 50% 60%, var(--glow), transparent 75%);
  border-right: 1px solid var(--border);
}
.project:nth-child(even) .project__media { border-right: 0; border-left: 1px solid var(--border); }
.project__phones { --spread: 0; position: relative; width: 100%; height: 100%; display: grid; place-items: center; transform-style: preserve-3d; transform: rotateX(calc(var(--rx) * 2)) rotateY(calc(var(--ry) * 2.4)); transition: transform 0.8s var(--ease); }
.project__phones .phone { position: absolute; width: clamp(160px, 17vw, 228px); transition: transform 0.9s var(--ease), filter 0.6s; }
.project__phones .phone:nth-child(1) { z-index: 2; transform: translateZ(60px); }
.project__phones .phone:nth-child(2) { transform: translateX(calc(-64% - var(--spread) * 14px)) translateZ(-40px) rotateY(20deg) scale(0.86); filter: brightness(0.55); }
.project__phones .phone:nth-child(3) { transform: translateX(calc(64% + var(--spread) * 14px)) translateZ(-40px) rotateY(-20deg) scale(0.86); filter: brightness(0.55); }
.project:hover .project__phones { --spread: 1; }
.project:hover .project__phones .phone:nth-child(n + 2) { filter: brightness(0.75); }
.project__placeholder { font-size: clamp(4rem, 9vw, 7rem); font-weight: 600; letter-spacing: -.06em; color: color-mix(in srgb, var(--project-accent, var(--accent)) 55%, transparent); }
.project__media-hint { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 8px); opacity: 0; transition: opacity 0.4s, transform 0.5s var(--ease); z-index: 3; }
.project__media:hover .project__media-hint, .project__media:focus-visible .project__media-hint { opacity: 1; transform: translate(-50%, 0); }
.project__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4.4vw, 64px); }
.project__index { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.project__index b { color: var(--accent); font-weight: 500; }
.project__title { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.project__tagline { margin-top: 12px; font-size: 1.1rem; color: var(--text); opacity: 0.85; }
.project__desc { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.project .tags { margin-top: 26px; }
.project__features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--muted); }
.project__features li { display: flex; align-items: center; gap: 10px; }
.project__features li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; opacity: 0.8; }
.project__features li.more { color: var(--dim); }
.project__features li.more::before { background: var(--dim); }
.project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 36px; }
.project__note { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); }
.project__note svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ==========================================================================
   CASE STUDY MODAL
   ========================================================================== */
.case {
  width: min(1140px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border-radius: var(--radius-lg); border: 1px solid var(--border-2);
  background: var(--bg-2); color: var(--text); overflow: hidden;
  box-shadow: 0 60px 160px -40px rgba(0, 0, 0, 0.95);
}
.case[open] { display: flex; animation: case-in 0.6s var(--ease); }
.case.is-closing { animation: case-out 0.32s var(--ease-io) forwards; }
.case::backdrop { background: rgba(3, 4, 6, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade 0.5s var(--ease); }
.case.is-closing::backdrop { animation: fade 0.32s reverse forwards; }
@keyframes case-in { from { opacity: 0; transform: translateY(32px) scale(0.97); } }
@keyframes case-out { to { opacity: 0; transform: translateY(20px) scale(0.98); } }
@keyframes fade { from { opacity: 0; } }
.case__inner { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.case__top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px 14px 28px; background: rgba(10, 11, 14, 0.82); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.case__crumb { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.case__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--surface); transition: background-color 0.25s, transform 0.4s var(--ease); }
.case__close:hover { background: var(--surface-2); transform: rotate(90deg); }
.case__close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.case__hero { --glow: color-mix(in srgb, var(--project-accent, var(--accent)) 12%, transparent); display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 64px); border-bottom: 1px solid var(--border); background: radial-gradient(60% 80% at 80% 50%, var(--glow), transparent 70%); }
.case__hero h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.case__lead { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.case__hero .tags { margin-top: 24px; }
.case__shots { display: flex; justify-content: center; gap: 4%; }
.case__shots--gallery { justify-content: flex-start; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 16px; scrollbar-width: thin; }
.case__shots--gallery .phone { width: 210px; max-width: none; scroll-snap-align: start; }
.case__shots--gallery .phone:nth-child(2) { transform: none; }
.case__shots .phone { width: 30%; max-width: 200px; }
.case__shots .phone:nth-child(2) { transform: translateY(-6%); }
.case__body { padding: clamp(12px, 3vw, 32px) clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px); }
.case__row { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.case__row:last-child { border-bottom: 0; }
.case__row h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); padding-top: 4px; }
.case__row p { color: #c8cad2; font-size: 1.05rem; max-width: 68ch; }
.case__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.case__split .case__row { grid-template-columns: 1fr; gap: 12px; }
.case__features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.case__features li { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 14.5px; }
.case__challenges { counter-reset: c; display: grid; gap: 14px; }
.case__challenges li { counter-increment: c; display: grid; grid-template-columns: 36px 1fr; color: #c8cad2; }
.case__challenges li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--dim); padding-top: 4px; }
.case__outcome { padding: 22px 24px; border-radius: 14px; border: 1px solid rgba(108, 184, 255, 0.22); background: linear-gradient(135deg, rgba(108, 184, 255, 0.08), transparent); }
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow__node { flex: 1 1 140px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-3); }
.flow__node strong { display: block; font-size: 14.5px; font-weight: 500; }
.flow__node small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.flow__arrow { display: grid; place-items: center; width: 28px; color: var(--dim); flex: none; }
.flow__arrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Resume viewer */
.viewer {
  width: min(920px, calc(100% - 32px)); max-width: none; height: calc(100dvh - 48px); max-height: none;
  padding: 0; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: var(--bg-2); color: var(--text);
  overflow: hidden; box-shadow: 0 60px 160px -40px rgba(0, 0, 0, 0.95);
}
.viewer[open] { display: flex; flex-direction: column; animation: case-in 0.6s var(--ease); }
.viewer.is-closing { animation: case-out 0.32s var(--ease-io) forwards; }
.viewer::backdrop { background: rgba(3, 4, 6, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: fade 0.5s var(--ease); }
.viewer__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 24px; border-bottom: 1px solid var(--border); }
.viewer__title { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.viewer__title span { color: var(--muted); font-weight: 400; }
.viewer__actions { display: flex; align-items: center; gap: 8px; }
.viewer__body { flex: 1; background: #525659; }
.viewer__body iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process { position: relative; padding-block: var(--section-y) 0; }
.process__pin { position: relative; }
.process__viewport { position: relative; }
.process__mover { position: relative; will-change: transform; }
.process__rail { position: absolute; height: 1px; background: var(--border-2); }
.process__fill { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--accent)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.process__packet { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(108, 184, 255, 0.25), 0 0 24px 4px var(--accent); left: calc(var(--p, 0) * 100%); }
.process__track { display: flex; gap: 22px; }
.step {
  position: relative; flex: none; width: 340px; display: flex; flex-direction: column;
  padding: 28px; min-height: 400px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--bg-2);
  transition: border-color 0.6s, transform 0.8s var(--ease), opacity 0.6s;
}
.step::before {
  content: ''; position: absolute; top: -45px; left: 28px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border-2); transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step.is-active { border-color: rgba(108, 184, 255, 0.24); }
.step.is-active::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--dim); transition: color 0.5s; }
.step.is-active .step__num { color: var(--accent); }
.step__title { margin-top: 14px; font-size: 1.75rem; letter-spacing: -0.04em; font-weight: 600; line-height: 1.1; }
.step__desc { margin-top: 10px; color: var(--muted); font-size: 15px; }
.step__art { margin-top: auto; padding-top: 24px; }
.art { position: relative; min-height: 132px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; }
.art__line { display: flex; gap: 10px; align-items: center; padding: 3px 0; opacity: 0.35; transform: translateX(-6px); transition: opacity 0.5s, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 90ms); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.is-active .art__line { opacity: 1; transform: none; }
.art__line b { font-weight: 400; color: var(--accent); flex: none; }
.art--commits .art__line b { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
.art--checks .art__line b { color: var(--ok); }
.art--terminal .art__line:last-child { color: var(--ok); }
.art--wire { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.art--wire i { display: block; border-radius: 6px; border: 1px dashed var(--border-2); min-height: 48px; transition: border-color 0.5s, background-color 0.5s; transition-delay: calc(var(--i) * 80ms); }
.art--wire i:nth-child(1) { grid-column: span 3; min-height: 26px; }
.art--wire i:nth-child(5) { grid-column: span 2; }
.step.is-active .art--wire i { border-style: solid; border-color: rgba(108, 184, 255, 0.35); background: rgba(108, 184, 255, 0.05); }
.art--layers { display: grid; gap: 8px; perspective: 400px; }
.art--layers .art__line { justify-content: center; padding: 9px; border-radius: 8px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.02); transform: rotateX(30deg) translateY(10px); }
.step.is-active .art--layers .art__line { transform: rotateX(30deg); border-color: rgba(108, 184, 255, 0.3); color: var(--text); }
.art--loop { display: grid; place-items: center; }
.art--loop svg { width: 96px; height: 96px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.step.is-active .art--loop svg { animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pinned horizontal mode (desktop, motion allowed) */
.process.is-pinned .process__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.process.is-pinned .section-head { margin-bottom: 72px; }
.process.is-pinned .process__mover { padding-top: 46px; }
.process.is-pinned .process__rail { top: 6px; left: var(--rail-l, 0); width: var(--rail-w, 100%); }
.process.is-pinned .process__track { padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); width: max-content; }
.process:not(.is-pinned) .process__mover { padding-bottom: var(--section-y); }

/* ==========================================================================
   EXPERIENCE
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 28px; }
.timeline__line { position: absolute; left: 260px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.timeline__line i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--accent), rgba(108, 184, 255, 0.1)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.job { position: relative; display: grid; grid-template-columns: 260px 1fr; }
.job__meta { padding: 30px 40px 0 0; }
.job__type { display: inline-block; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.job__org { margin-top: 10px; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.job__period { margin-top: 4px; font-size: 14px; color: var(--dim); font-family: var(--mono); }
.job__dot { position: absolute; left: 260px; top: 36px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border-2); transition: all 0.6s var(--ease); }
.job.is-visible .job__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(108, 184, 255, 0.12), 0 0 18px var(--accent); }
.job__card { margin-left: 48px; padding: clamp(24px, 3.4vw, 40px); border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008)), var(--bg-2); }
.job__role { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.04em; font-weight: 600; line-height: 1.15; }
.job__summary { margin-top: 12px; color: var(--muted); max-width: 64ch; }
.job__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.job__cols h4 { font-family: var(--mono); font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: 12px; }
.job__cols li { position: relative; padding-left: 18px; font-size: 14.5px; color: #c4c6ce; }
.job__cols li + li { margin-top: 9px; }
.job__cols li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--accent); }
.job .tags { margin-top: 26px; }

/* ==========================================================================
   ENGINEERING
   ========================================================================== */
.eng { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (min-width: 1101px) { .arch { position: sticky; top: 110px; } }
.arch { --rx: 0deg; --ry: 0deg; position: relative; perspective: 1400px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: radial-gradient(80% 60% at 50% 0%, rgba(108, 184, 255, 0.07), transparent 70%), var(--bg-2); }
.arch__stack { transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.8s var(--ease); }
.arch__head { display: flex; justify-content: space-between; margin-bottom: 18px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.1em; }
.arch__head span:last-child { color: var(--ok); display: inline-flex; gap: 8px; align-items: center; }
.arch__head span:last-child::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.layer {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--border-2); background: linear-gradient(180deg, #13151b, #0e0f13);
  transition: transform 0.6s var(--ease), border-color 0.4s, box-shadow 0.6s var(--ease), opacity 0.4s;
}
.layer__idx { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.03); transition: color 0.4s, border-color 0.4s; }
.layer strong { display: block; font-weight: 500; font-size: 1.05rem; letter-spacing: -0.01em; }
.layer small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.layer__tag { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.layer--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; border: 0; background: none; }
.layer--split > div { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-2); background: linear-gradient(180deg, #13151b, #0e0f13); transition: inherit; }
.arch.has-focus .layer:not(.is-hl) { opacity: 0.4; }
.layer.is-hl { transform: translateZ(40px) translateY(-2px); border-color: rgba(108, 184, 255, 0.4); box-shadow: 0 20px 50px -20px rgba(108, 184, 255, 0.35); }
.layer--split.is-hl { box-shadow: none; }
.layer--split.is-hl > div { border-color: rgba(108, 184, 255, 0.4); }
.layer.is-hl .layer__idx { color: var(--accent); border-color: rgba(108, 184, 255, 0.4); }
.wire { position: relative; height: 40px; display: flex; justify-content: center; gap: 46px; }
.wire--split { gap: 0; justify-content: space-around; }
.wire__lane { position: relative; width: 1px; height: 100%; background: linear-gradient(180deg, var(--border-2), rgba(255, 255, 255, 0.04)); }
.wire__lane i { position: absolute; left: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: down 2.4s var(--ease-io) infinite; animation-delay: var(--delay, 0s); opacity: 0; }
.wire__lane i.u { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation-name: up; }
@keyframes down { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
@keyframes up { 0% { top: calc(100% - 2px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: -4px; opacity: 0; } }
.arch__legend { display: flex; gap: 20px; margin-top: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.arch__legend span { display: inline-flex; align-items: center; gap: 8px; }
.arch__legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.arch__legend span + span i { background: var(--ok); }
.eng__topics { display: grid; }
.topic { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 15px 4px; border-top: 1px solid var(--border); cursor: default; transition: padding-left 0.4s var(--ease), background-color 0.3s; border-radius: 4px; }
.topic:last-child { border-bottom: 1px solid var(--border); }
.topic strong { font-weight: 500; transition: color 0.3s; }
.topic > span:not(.topic__dots) { grid-column: 1; font-size: 13.5px; color: var(--muted); }
.topic > .topic__dots { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; align-items: center; }
.topic__dots i { width: 6px; height: 6px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.topic__dots i.on { background: rgba(108, 184, 255, 0.55); }
.topic:hover, .topic:focus-visible { padding-left: 12px; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); }
.topic:hover strong, .topic:focus-visible strong { color: #fff; }

/* ==========================================================================
   GITHUB
   ========================================================================== */
.code__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.code__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.gh { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-2); overflow: hidden; min-height: 380px; }
.gh__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.gh__head img { width: 32px; height: 32px; border-radius: 50%; }
.gh__head svg { width: 20px; height: 20px; fill: currentColor; }
.gh__head strong { color: var(--text); font-weight: 500; }
.gh__head .gh__live { margin-left: auto; font-size: 11.5px; color: var(--dim); }
.gh__caption + .gh__langs { margin-top: 0; }
.gh__body { padding: 22px; }
.gh__caption { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.gh__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 4px; }
.gh__grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, 0.05); }
.gh__grid i[data-l='1'] { background: rgba(108, 184, 255, 0.25); }
.gh__grid i[data-l='2'] { background: rgba(108, 184, 255, 0.45); }
.gh__grid i[data-l='3'] { background: rgba(108, 184, 255, 0.7); }
.gh__grid i[data-l='4'] { background: var(--accent); }
.gh__repos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.repo { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease); }
.repo:hover { border-color: var(--border-2); transform: translateY(-2px); }
.repo strong { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo p { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.repo__meta { display: flex; gap: 14px; margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.repo__meta span { display: inline-flex; align-items: center; gap: 6px; }
.repo__meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.gh__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* Git workflow graph (shown when no live data is configured) */
.gitflow { width: 100%; height: auto; }
.gitflow .lane { fill: none; stroke-width: 2; stroke-linecap: round; }
.gitflow .lane--main { stroke: rgba(255, 255, 255, 0.28); }
.gitflow .lane--feat { stroke: var(--accent); stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease); }
.gh.is-visible .gitflow .lane--feat { stroke-dashoffset: 0; }
.gitflow .lane--fix { stroke: var(--ok); stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease) 0.5s; }
.gh.is-visible .gitflow .lane--fix { stroke-dashoffset: 0; }
.gitflow circle { fill: var(--bg-2); stroke-width: 2; }
.gitflow .c-main { stroke: rgba(255, 255, 255, 0.5); }
.gitflow .c-feat { stroke: var(--accent); }
.gitflow .c-fix { stroke: var(--ok); }
.gitflow text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.gitflow .t-dim { fill: var(--dim); }
.gh__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.gh__steps li { padding: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; color: var(--muted); }
.gh__steps li b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--accent); margin-bottom: 4px; }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact { position: relative; padding-block: clamp(140px, 18vw, 240px); overflow: hidden; isolation: isolate; text-align: center; border-top: 1px solid var(--border); }
.contact__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s var(--ease); }
.contact__canvas.is-ready { opacity: 1; }
.contact__orb { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; transform: translate(-50%, -50%); z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 140, 255, 0.18), rgba(70, 140, 255, 0.04) 60%, transparent 80%); }
.contact__inner { position: relative; }
.contact__title { font-size: clamp(2.6rem, 7vw, 6.4rem); line-height: 0.98; letter-spacing: -0.055em; font-weight: 600; max-width: 14ch; margin-inline: auto; text-wrap: balance; }
.contact__text { margin: 26px auto 0; max-width: 44ch; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.btn__ico--fill { fill: currentColor; stroke: none; }
.footer { border-top: 1px solid var(--border); padding-block: 36px; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__id { display: flex; gap: 12px; align-items: baseline; }
.footer__id strong { color: var(--text); font-weight: 500; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { transition: color 0.25s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { color: var(--dim); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .project__media, .project:nth-child(even) .project__media { order: 0; height: 460px; border: 0; border-bottom: 1px solid var(--border); }
  .eng { grid-template-columns: 1fr; }
  .code__grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 8px; }
  .hero { padding-top: 120px; min-height: auto; }
  .hero__visual { max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 0.9; }
  .hero__title { max-width: 12ch; }
  .scroll-cue { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 620px; }
  .eco__grid { grid-template-columns: repeat(3, 1fr); }
  .timeline__line, .job__dot { left: 7px; }
  .job { grid-template-columns: 1fr; padding-left: 40px; }
  .job__meta { padding: 0 0 16px; }
  .job__dot { top: 4px; }
  .job__card { margin-left: 0; }
  .case__hero { grid-template-columns: 1fr; }
  .case__row { grid-template-columns: 160px 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--border); margin-top: 30px; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta, .nav__resume { display: none !important; }
  .nav__toggle { display: block; }
  .nav__bar { width: 100%; }
  .nav.is-compact .nav__bar { width: 100%; }
}

/* Vertical process (tablet/mobile and reduced motion) */
.process:not(.is-pinned) .process__viewport { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.process:not(.is-pinned) .process__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.process:not(.is-pinned) .step { width: auto; min-height: 0; }
.process:not(.is-pinned) .step::before { display: none; }
.process:not(.is-pinned) .process__rail { display: none; }

@media (max-width: 760px) {
  :root { --nav-h: 58px; }
  .hero { padding-top: 112px; padding-bottom: 72px; }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 4rem); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__visual { aspect-ratio: 1 / 1; margin-top: 16px; }
  .hero__label { font-size: 11px; padding: 6px 10px 6px 9px; }
  .caps { grid-template-columns: 1fr; }
  .workspace { padding: 0 12% 22% 0; }
  .editor__code { font-size: 10px; padding: 14px; }
  .eco__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .eco__lines { display: none; }
  .node { height: auto; min-height: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
  .node__name, .node__desc { position: static; opacity: 1; transform: none !important; }
  .node__name { font-size: 1.05rem; }
  .node__desc { font-size: 13px; margin-top: -8px; }
  .node__mark { width: 34px; height: 34px; font-size: 12px; }
  .node__group { font-size: 10px; }
  .project { transform: none !important; }
  .project__media, .project:nth-child(even) .project__media { height: 400px; }
  .project__phones .phone { width: 150px; }
  .project__features { grid-template-columns: 1fr; }
  .project__actions .btn { flex: 1 1 auto; }
  .project__media-hint { opacity: 1; transform: translate(-50%, 0); }
  .case { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .case__top { padding-left: 20px; }
  .case__row, .case__split { grid-template-columns: 1fr; gap: 12px; }
  .case__split .case__row { gap: 12px; }
  .case__shots .phone { width: 31%; }
  .flow { flex-direction: column; }
  .flow__arrow { width: auto; height: 22px; transform: rotate(90deg); }
  .flow__node { flex: none; }
  .job__cols { grid-template-columns: 1fr; gap: 22px; }
  .arch { padding: 18px; }
  .layer { padding: 14px; gap: 12px; }
  .layer__tag { display: none; }
  .layer--split { grid-template-columns: 1fr; gap: 8px; }
  .layer--split > div { padding: 14px; }
  .wire--split { display: none; }
  .gh__repos { grid-template-columns: 1fr; }
  .gh__steps { grid-template-columns: 1fr 1fr; }
  .gh__sub, .gitflow .t-dim, .gh__head .gh__live { display: none; }
  .gh__head { flex-wrap: wrap; row-gap: 4px; }
  .gitflow text { font-size: 17px; }
  .stats > div { padding-right: 12px; }
  .stats > div + div { padding-left: 16px; }
  .stats > div:nth-child(3) { padding-left: 0; }
  .contact__orb { width: 420px; height: 420px; }
  .contact__actions .btn { flex: 1 1 140px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .eco__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stats > div, .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 2) { border-top: 1px solid var(--border); margin-top: 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-reveal], .js [data-enter], .js .hero__title .w > span { opacity: 1 !important; transform: none !important; }
  .wire__lane i { display: none; }
}
