:root {
  --bg: #08090d;
  --bg-alt: #0e1117;
  --surface: #12161d;
  --surface-2: #1a2029;
  --border: rgba(233, 239, 248, 0.12);
  --text: #f5f5f1;
  --text-dim: #b1b8c2;
  --text-dimmer: #7d8794;
  --primary: #d7ff70;
  --primary-2: #c5f85c;
  --accent: #9b8cff;
  --grad: linear-gradient(120deg, #d7ff70 0%, #97f0b2 100%);
  --grad-2: linear-gradient(120deg, #9b8cff 0%, #77d8f6 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --radius-sm: 10px;
  --ff-heading: 'Space Grotesk', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
  --ff-display: 'Instrument Serif', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.65;
}
body, button, input, select, textarea { font-family: var(--ff-body); }
body::selection, ::selection { background: var(--primary); color: #08090d; }
h1, h2, h3, h4 { margin: 0 0 0.65em; color: var(--text); font-family: var(--ff-heading); line-height: 1.08; letter-spacing: -0.045em; }
p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}
.container { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.gradient-text {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: var(--ff-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.035em;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.scroll-progress {
  position: fixed;
  z-index: 2100;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(215, 255, 112, 0.7);
}

.preloader {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: var(--bg);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-logo {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(215, 255, 112, 0.45);
  border-radius: 17px;
  background: #111710;
  color: var(--primary);
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  font-weight: 700;
  animation: logo-breathe 1.5s ease-in-out infinite;
}
.preloader-bar { width: 130px; height: 2px; overflow: hidden; background: var(--surface-2); }
.preloader-bar span { display: block; width: 40%; height: 100%; background: var(--primary); animation: loading 1s ease-in-out infinite; }
@keyframes loading { to { transform: translateX(350%); } }
@keyframes logo-breathe { 50% { transform: scale(1.06); box-shadow: 0 0 28px rgba(215, 255, 112, 0.15); } }

.btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--primary); color: #10130c; box-shadow: 0 8px 28px rgba(178, 231, 84, 0.18); }
.btn-primary:hover { background: #e2ff9e; box-shadow: 0 12px 34px rgba(178, 231, 84, 0.25); }
.btn-ghost { border-color: rgba(255,255,255,0.22); background: rgba(10,12,16,0.2); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); background: rgba(215,255,112,0.08); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-lg { min-height: 56px; padding: 0.95rem 1.55rem; font-size: 0.93rem; }
.btn-sm { min-height: 40px; padding: 0.55rem 0.9rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn:disabled { cursor: not-allowed; opacity: 0.65; transform: none; }

.navbar {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.15rem 0;
  color: var(--text);
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: blur(18px);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 0.62rem; font-family: var(--ff-heading); font-size: 1rem; font-weight: 700; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(215,255,112,0.45);
  border-radius: 12px;
  background: rgba(215,255,112,0.08);
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: -0.04em;
}
.brand-name em { color: var(--primary); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.3rem); }
.nav-link { position: relative; color: rgba(245,245,241,0.74); font-size: 0.8rem; font-weight: 600; transition: color 0.2s ease; }
.nav-link::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--primary); content: ''; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
.nav-link:hover, .nav-link:focus-visible { color: var(--text); }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
.navbar-actions { display: flex; align-items: center; gap: 0.65rem; }
.dashboard-link { border-color: rgba(255,255,255,0.16); color: rgba(245,245,241,0.82); }
.hamburger { display: none; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--border); border-radius: 50%; background: rgba(12,14,18,0.72); }
.hamburger span { display: block; width: 17px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.25s ease; }
.hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: max(760px, 100svh);
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 8.5rem 0 1.5rem;
  background: #090b0d;
  color: var(--text);
}
.hero-video-wrap, .hero-veil { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; opacity: 0.73; transform: scale(1.025); }
.hero-video-wrap::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,8,11,0.91) 0%, rgba(7,8,11,0.66) 43%, rgba(7,8,11,0.2) 100%), linear-gradient(0deg, #08090d 0%, transparent 25%, rgba(7,8,11,0.25) 100%);
  content: '';
}
.hero-veil { z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 70% 48%, transparent 10%, rgba(4,5,7,0.2) 72%); }
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  content: '';
  mask-image: linear-gradient(90deg, transparent, #000 65%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  min-height: min(680px, calc(100svh - 190px));
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: 3rem;
}
.hero-content { position: relative; z-index: 2; max-width: 790px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.68rem; margin-bottom: 1.45rem; color: rgba(245,245,241,0.77); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
.dot-live, .signal-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 15px rgba(215,255,112,0.8); }
.hero-kicker { margin-bottom: 0.8rem; color: var(--primary); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.hero-title { max-width: 820px; margin-bottom: 1.2rem; font-size: clamp(3.6rem, 7.4vw, 7.4rem); line-height: 0.91; letter-spacing: -0.075em; text-wrap: balance; }
.hero-title .gradient-text { font-size: 1.03em; }
.hero-subtitle { max-width: 600px; margin-bottom: 1.8rem; color: rgba(245,245,241,0.78); font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.72; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.35rem; }
.hero .btn-primary { background: var(--primary); color: #10130c; }
.hero .btn-primary:hover { background: #e2ff9e; box-shadow: 0 12px 34px rgba(178,231,84,0.25); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.45rem; color: rgba(245,245,241,0.75); }
.hero-trust span { padding: 0.28rem 0.65rem; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; background: rgba(9,11,14,0.27); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.02em; }
.hero-visual { position: relative; min-height: 440px; display: grid; align-items: center; justify-items: center; }
.hero-console {
  position: relative;
  width: min(100%, 390px);
  padding: 1.15rem;
  border: 1px solid rgba(255,255,255,0.21);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(15,18,23,0.72), rgba(15,18,23,0.28));
  box-shadow: 0 30px 90px rgba(0,0,0,0.35), inset 0 1px rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.hero-console:hover { transform: perspective(900px) rotateY(-1deg) rotateX(0); }
.console-head, .console-footer, .console-signal, .console-stack, .hero-bottom { display: flex; align-items: center; justify-content: space-between; }
.console-head { color: rgba(245,245,241,0.53); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.15em; }
.console-signal { justify-content: flex-start; gap: 0.6rem; margin-top: 1.5rem; color: rgba(245,245,241,0.77); font-size: 0.61rem; font-weight: 700; letter-spacing: 0.11em; }
.signal-dot { width: 6px; height: 6px; flex-basis: 6px; }
.console-mark { position: relative; display: grid; min-height: 220px; place-items: center; overflow: hidden; margin: 0.65rem 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.console-screen { width: min(100%, 320px); padding: 0.75rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 12px; background: linear-gradient(145deg, rgba(28,33,38,0.94), rgba(13,16,21,0.92)); box-shadow: 0 16px 38px rgba(0,0,0,0.3), inset 0 1px rgba(255,255,255,0.12); animation: screen-drift 6s ease-in-out infinite; }
.screen-bar, .screen-dots, .screen-live, .screen-body, .screen-footer { display: flex; align-items: center; }
.screen-bar { gap: 0.55rem; min-height: 17px; color: rgba(245,245,241,0.55); font-size: 0.43rem; font-weight: 700; letter-spacing: 0.1em; }
.screen-dots { gap: 3px; }
.screen-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(245,245,241,0.38); }
.screen-dots i:first-child { background: var(--primary); }
.screen-address { margin-right: auto; }
.screen-live { gap: 0.25rem; color: rgba(245,245,241,0.72); font-size: 0.38rem; }
.screen-live i { width: 4px; height: 4px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.screen-body { justify-content: space-between; gap: 0.7rem; min-height: 128px; padding: 0.75rem 0 0.85rem; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.screen-copy { display: flex; width: 52%; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.screen-kicker { color: var(--primary); font-size: 0.39rem; font-weight: 700; letter-spacing: 0.1em; }
.screen-heading { display: flex; width: 100%; flex-direction: column; gap: 5px; }
.screen-heading i { display: block; width: 100%; height: 7px; border-radius: 4px; background: rgba(245,245,241,0.9); }
.screen-heading i:nth-child(2) { width: 78%; background: rgba(215,255,112,0.9); }
.screen-heading i:nth-child(3) { width: 54%; height: 4px; background: rgba(245,245,241,0.4); }
.screen-button { width: 56px; height: 15px; margin-top: 0.15rem; border-radius: 999px; background: var(--primary); box-shadow: 0 0 18px rgba(215,255,112,0.15); }
.screen-art { position: relative; width: 42%; height: 105px; overflow: hidden; border: 1px solid rgba(255,255,255,0.17); border-radius: 8px; background: linear-gradient(145deg, #d5ef9e 0%, #788c77 38%, #34354c 72%, #171a22 100%); }
.screen-art::before { position: absolute; top: 10%; right: 13%; width: 54%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,0.52); border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.72), rgba(215,255,112,0.18) 30%, transparent 72%); content: ''; }
.screen-art::after { position: absolute; right: -15%; bottom: -27%; left: -15%; height: 60%; border-top: 1px solid rgba(255,255,255,0.45); background: linear-gradient(160deg, rgba(18,23,29,0.08), rgba(18,23,29,0.9)); content: ''; transform: rotate(-12deg); }
.screen-footer { gap: 0.35rem; padding-top: 0.65rem; }
.screen-footer span { width: 24%; height: 3px; border-radius: 3px; background: rgba(245,245,241,0.32); }
.screen-footer span:first-child { background: var(--primary); }
@keyframes screen-drift { 50% { transform: translateY(-4px) rotate(0.5deg); } }
.console-footer { align-items: flex-end; gap: 0.7rem; }
.console-footer > div:first-child { display: flex; flex-direction: column; gap: 0.35rem; }
.console-index { color: var(--primary); font-family: var(--ff-heading); font-size: 0.62rem; letter-spacing: 0.08em; }
.console-footer strong { font-family: var(--ff-heading); font-size: 1.02rem; }
.console-stack { gap: 0.4rem; }
.console-stack span { padding: 0.28rem 0.4rem; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; color: rgba(245,245,241,0.7); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; }
.console-note { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(245,245,241,0.62); font-size: 0.61rem; line-height: 1.45; }
.console-note strong { color: var(--text); font-size: 0.69rem; }
.console-note .dot-live { width: 6px; height: 6px; flex-basis: 6px; }
.hero-bottom { position: relative; z-index: 2; gap: 1rem; padding-top: 0.7rem; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-scroll { display: inline-flex; align-items: center; gap: 0.8rem; color: rgba(245,245,241,0.82); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.hero-scroll i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,0.38); border-radius: 50%; color: var(--primary); transition: transform 0.25s ease; }
.hero-scroll:hover i { transform: translateY(4px); }
.hero-credit { margin-left: auto; color: rgba(245,245,241,0.48); font-size: 0.62rem; }
.hero-credit:hover { color: var(--text); }
.hero-motion-toggle { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0; color: rgba(245,245,241,0.74); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.hero-motion-toggle i { color: var(--primary); font-size: 0.62rem; }

.section { position: relative; z-index: 1; padding: clamp(5rem, 9vw, 8rem) 0; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 810px; margin: 0 0 3rem; text-align: left; }
.section-head h2 { max-width: 800px; margin-bottom: 0.85rem; font-size: clamp(2.2rem, 4.2vw, 4rem); line-height: 1.02; letter-spacing: -0.065em; }
.section-head p { max-width: 640px; font-size: 1rem; line-height: 1.7; }
.section-head::after { display: block; width: 52px; height: 2px; margin: 1.2rem 0 0; background: var(--primary); content: ''; }
.skills-section { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.9rem; }
.skill-card { position: relative; min-height: 260px; overflow: hidden; padding: 1.55rem; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)); transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease; }
.skill-card::after { position: absolute; top: -64px; right: -56px; width: 150px; height: 150px; border: 1px solid rgba(215,255,112,0.15); border-radius: 50%; box-shadow: 0 0 0 20px rgba(215,255,112,0.025), 0 0 0 40px rgba(215,255,112,0.018); content: ''; pointer-events: none; }
.skill-card:hover { transform: translateY(-7px); border-color: rgba(215,255,112,0.42); background: linear-gradient(145deg, rgba(215,255,112,0.075), rgba(255,255,255,0.018)); }
.skill-index { display: inline-block; margin-bottom: 2.1rem; color: var(--primary); font-family: var(--ff-heading); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; }
.skill-heading { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.skill-heading i { color: var(--primary); font-size: 0.95rem; }
.skill-heading h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.035em; }
.skill-card p { min-height: 3.1em; margin-bottom: 1.1rem; font-size: 0.88rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-tags span { padding: 0.26rem 0.5rem; border: 1px solid var(--border); border-radius: 4px; background: rgba(255,255,255,0.03); color: var(--text-dim); font-size: 0.65rem; }

.portfolio-section { overflow: hidden; background: #0a0c11; }
.portfolio-section::before { position: absolute; top: 0; right: -20vw; width: 60vw; height: 60vw; border: 1px solid rgba(155,140,255,0.1); border-radius: 50%; box-shadow: 0 0 0 60px rgba(155,140,255,0.025), 0 0 0 120px rgba(155,140,255,0.018); content: ''; pointer-events: none; }
.portfolio-section .container { position: relative; }
.portfolio-section .section-head { max-width: 830px; }
.portfolio-section .section-head h2 .gradient-text { color: var(--primary); }
.work-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.work-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.work-filter { display: inline-flex; min-height: 40px; align-items: center; gap: 0.55rem; padding: 0.5rem 0.85rem; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-dim); cursor: pointer; font-size: 0.74rem; font-weight: 700; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.work-filter:hover, .work-filter.is-active { border-color: var(--primary); background: var(--primary); color: #10130c; }
.work-filter span { opacity: 0.65; font-size: 0.58rem; }
.work-results { margin: 0; color: var(--text-dimmer); font-size: 0.7rem; }
.landing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.9rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.portfolio-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(0,0,0,0.17);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.portfolio-card:hover { border-color: rgba(215,255,112,0.43); box-shadow: 0 24px 52px rgba(0,0,0,0.33); }
.landing-card:first-child { grid-column: span 2; }
.portfolio-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; padding: 0; background: #171b20; }
.landing-thumb { aspect-ratio: 16 / 10; background: #171b20; }
.landing-card:first-child .landing-thumb { aspect-ratio: 16 / 8.15; }
.mini-browser { position: relative; width: 100%; height: 100%; overflow: hidden; background: #171b20; }
.mini-browser .project-screenshot { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 0.8s cubic-bezier(.2,.8,.2,1), filter 0.5s ease; }
.portfolio-card:hover .project-screenshot { filter: saturate(1.08); transform: scale(1.045); }
.mini-browser iframe { width: 100%; height: 100%; border: 0; background: #111; }
.motion-preview-frame, .showcase-motion-frame { position: absolute; inset: 0; width: 200%; height: 200%; border: 0; opacity: 0; pointer-events: none; transform: scale(0.5); transform-origin: top left; transition: opacity 0.45s ease; }
.motion-preview-frame.is-loaded, .showcase-motion-frame.is-loaded { opacity: 1; }
.mini-browser iframe.local-preview { display: none; }
.mini-browser .sticky-screenshot { object-position: center top; }
.mini-browser iframe.sticky-preview { width: 128%; height: 128%; transform: scale(0.78); transform-origin: top left; }
.landing-number { position: absolute; z-index: 2; top: 0.8rem; left: 0.8rem; padding: 0.36rem 0.58rem; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; background: rgba(8,9,13,0.72); color: var(--text); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.1em; backdrop-filter: blur(12px); }
.portfolio-info { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.25rem 1.3rem; }
.portfolio-info h3 { margin: 0 0 0.45rem; color: var(--text); font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -0.04em; }
.portfolio-info p { margin-bottom: 0.5rem; color: var(--text-dim); font-size: 0.86rem; line-height: 1.6; }
.tag { display: inline-block; margin-bottom: 0.5rem; color: var(--primary); font-size: 0.63rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.65rem; }
.tech-chip { padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: 4px; background: rgba(255,255,255,0.025); color: var(--text-dim); font-size: 0.62rem; font-weight: 600; }
.view-project { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.85rem; color: var(--primary); font-size: 0.72rem; font-weight: 700; }
.view-project i { transition: transform 0.25s ease; }
.portfolio-card:hover .view-project i { transform: translate(3px,-3px); }
.portfolio-section .portfolio-info { background: linear-gradient(180deg, #13171e, #101319); }
.apps-section .section-head { max-width: 850px; }
.app-card .portfolio-thumb { aspect-ratio: 16 / 10; }
.app-card .project-screenshot { object-fit: cover; object-position: center top; }
.commerce-card .project-screenshot { object-fit: contain; background: #171b20; }
.app-card .portfolio-info { background: var(--surface); }
.portfolio-card[hidden] { display: none !important; }
.modal-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.modal-subhead { margin-bottom: 0.65rem; font-size: 0.9rem; }
.modal-features { display: flex; flex-direction: column; gap: 0.55rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.modal-features li { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--text-dim); font-size: 0.84rem; }
.modal-features li i { flex: 0 0 auto; margin-top: 0.25em; color: var(--primary); }
.modal-overlay { position: fixed; z-index: 2500; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(2,3,5,0.82); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; width: min(980px, 100%); max-height: 92vh; overflow-y: auto; padding: 1.35rem; border: 1px solid var(--border); border-radius: 18px; background: #101319; box-shadow: var(--shadow); transform: translateY(18px) scale(0.98); transition: transform 0.3s ease; }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close { position: absolute; z-index: 2; top: 1.9rem; right: 1.9rem; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,0.28); border-radius: 50%; background: rgba(8,9,13,0.75); color: var(--text); }
.modal-thumb { position: relative; display: flex; height: 380px; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 1.2rem; padding: 0.8rem; border-radius: 12px; background: #171b20; color: var(--text-dim); }
.modal-thumb iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.modal-thumb img { display: block; width: 100%; height: 100%; border-radius: 6px; background: #fff; object-fit: contain; }
.modal-thumb.full-page, .modal-thumb.viewport-shot { display: block; height: min(68vh, 660px); min-height: 280px; overflow-x: hidden; overflow-y: auto; padding: 0; }
.modal-thumb.full-page img, .modal-thumb.viewport-shot img { width: min(100%, 834px); height: auto; max-width: 100%; margin-inline: auto; border-radius: 0; object-fit: initial; }
.modal-results { margin-bottom: 1.2rem; padding: 0.85rem 1rem; border: 1px solid rgba(215,255,112,0.15); border-radius: 8px; background: rgba(215,255,112,0.06); color: var(--primary); font-size: 0.8rem; font-weight: 700; }

.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { position: absolute; top: 0; bottom: 0; left: 27px; width: 1px; background: linear-gradient(var(--primary), var(--border) 82%); content: ''; }
.timeline-item { position: relative; display: flex; gap: 1.4rem; padding-bottom: 2.3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-index { z-index: 1; display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border: 1px solid rgba(215,255,112,0.35); border-radius: 50%; background: var(--bg-alt); color: var(--primary); font-family: var(--ff-heading); font-size: 0.78rem; font-weight: 700; }
.timeline-body h3 { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.45rem; font-size: 1.1rem; }
.timeline-body h3 i { color: var(--primary); font-size: 0.9rem; }
.timeline-body p { max-width: 680px; margin-bottom: 0; font-size: 0.9rem; }

.why-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
.why-list { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.5rem; }
.why-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-dim); font-size: 0.9rem; }
.why-list li i { margin-top: 0.25em; color: var(--primary); }
.why-visual { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; gap: 0.75rem; }
.feature-card { min-height: 155px; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); transition: transform 0.3s ease, border-color 0.3s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(215,255,112,0.38); }
.feature-card i { margin-bottom: 0.8rem; color: var(--primary); font-size: 1.2rem; }
.feature-card h4 { margin-bottom: 0.35rem; font-size: 0.95rem; }
.feature-card p { margin: 0; font-size: 0.78rem; }
.fc-2, .fc-4 { margin-top: 0.8rem; }

.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-bottom: 2rem; }
.toggle-label { color: var(--text-dimmer); font-size: 0.82rem; font-weight: 700; transition: color 0.2s ease; }
.toggle-label.active { color: var(--text); }
.switch { position: relative; width: 50px; height: 27px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--primary); transition: transform 0.25s ease; }
.switch.on .switch-knob { transform: translateX(23px); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; gap: 0.9rem; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 1.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.price-card:hover { transform: translateY(-6px); border-color: rgba(215,255,112,0.36); box-shadow: var(--shadow); }
.price-card.featured { border-color: rgba(215,255,112,0.55); background: linear-gradient(155deg, rgba(215,255,112,0.09), rgba(18,22,29,0.96) 40%); }
.price-badge { position: absolute; top: 1rem; right: 1rem; padding: 0.28rem 0.58rem; border-radius: 999px; background: var(--primary); color: #10130c; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.price-card h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.price-desc { min-height: 3em; font-size: 0.84rem; }
.price-amount { margin: 0.5rem 0 1.1rem; color: var(--primary); font-family: var(--ff-heading); font-size: 2rem; font-weight: 700; letter-spacing: -0.06em; }
.price-period { color: var(--text-dim); font-size: 0.75rem; letter-spacing: 0; }
.price-features { display: flex; flex-direction: column; gap: 0.68rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.price-features li { display: flex; gap: 0.6rem; color: var(--text-dim); font-size: 0.82rem; }
.price-features li i { margin-top: 0.25em; color: var(--primary); }
.price-card .btn { margin-top: auto; }
.hidden { display: none !important; }

.faq-grid { display: grid; grid-template-columns: minmax(230px,0.75fr) minmax(0,1.25fr); gap: 4rem; }
.faq-grid h2 { font-size: clamp(2.1rem, 3.5vw, 3.3rem); }
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; color: var(--text); cursor: pointer; text-align: left; font-family: var(--ff-heading); font-size: 0.96rem; font-weight: 600; }
.accordion-head i { flex: 0 0 auto; color: var(--primary); transition: transform 0.25s ease; }
.accordion-item.active .accordion-head i { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-item.active .accordion-body { max-height: 260px; }
.accordion-body p { padding: 0 2rem 1.2rem 0; font-size: 0.86rem; }

.review-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem,4vw,2.7rem); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(120deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)); }
.review-panel > div { max-width: 680px; }
.review-panel h2 { margin-bottom: 0.5rem; font-size: clamp(1.8rem,3vw,2.5rem); }
.review-panel p { margin: 0; font-size: 0.9rem; }
.review-panel .btn { flex: 0 0 auto; }
.review-new-window { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.cta-banner { position: relative; overflow: hidden; padding: clamp(4rem,8vw,7rem) 0; background: var(--primary); color: #0c1008; }
.cta-banner::before { position: absolute; top: -50%; right: -7%; width: 42vw; height: 42vw; border: 1px solid rgba(8,9,13,0.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(8,9,13,0.035), 0 0 0 70px rgba(8,9,13,0.03); content: ''; }
.cta-inner { position: relative; text-align: center; }
.cta-inner h2 { max-width: 850px; margin: 0 auto 0.8rem; color: #10130c; font-size: clamp(2.4rem,6vw,5.2rem); letter-spacing: -0.075em; }
.cta-inner p { margin-bottom: 1.4rem; color: rgba(16,19,12,0.76); }
.cta-inner .btn-light { border-color: rgba(16,19,12,0.12); background: #10130c; color: var(--primary); }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: start; gap: clamp(2rem,6vw,5rem); }
.contact-info h2 { max-width: 520px; font-size: clamp(2.3rem,4vw,3.8rem); }
.contact-info > p { max-width: 440px; }
.contact-item { display: flex; align-items: flex-start; gap: 0.85rem; margin: 1.1rem 0; color: var(--text-dim); font-size: 0.88rem; }
.contact-item i { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--primary); }
.social-row { display: flex; gap: 0.5rem; margin-top: 1.4rem; }
.social-row a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 12px; color: var(--text-dim); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.social-row a:hover { border-color: var(--primary); background: rgba(215,255,112,0.08); color: var(--primary); }
.contact-form { padding: clamp(1.2rem,3vw,2rem); border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.85rem; }
.form-group { display: flex; flex-direction: column; gap: 0.42rem; margin-bottom: 0.9rem; }
.form-group label { color: var(--text-dim); font-size: 0.74rem; font-weight: 700; }
.form-group input, .form-group select, .form-group textarea, .newsletter-form input {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(4,5,8,0.5);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder, .newsletter-form input::placeholder { color: #707985; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(215,255,112,0.1); outline: 0; }
.form-group.invalid input, .form-group.invalid textarea { border-color: #ff8274; }
.error-msg { display: none; color: #ff9a8f; font-size: 0.72rem; }
.form-group.invalid .error-msg { display: block; }
.form-trap { position: absolute; left: -10000px; }
.form-success { display: none; margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 8px; background: rgba(215,255,112,0.1); color: var(--primary); font-size: 0.84rem; }
.form-success.show { display: block; }
.form-success.form-error { background: rgba(255,130,116,0.1); color: #ff9a8f; }

.footer { padding-top: 4rem; border-top: 1px solid var(--border); background: #06070a; color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 2.2rem; padding-bottom: 3rem; }
.footer-brand p, .footer-col p, .footer-col a { color: var(--text-dimmer); font-size: 0.82rem; }
.footer-brand p { max-width: 270px; margin-top: 0.9rem; }
.footer-col h4 { margin-bottom: 0.9rem; color: var(--text); font-size: 0.82rem; letter-spacing: 0; }
.footer-col a { display: block; width: fit-content; margin-bottom: 0.6rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary); }
.footer-newsletter p { margin-bottom: 0.6rem; }
.newsletter-form { display: flex; gap: 0.45rem; margin-top: 0.7rem; }
.newsletter-form input { min-width: 0; min-height: 42px; background: var(--surface); }
.newsletter-form button { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 9px; background: var(--primary); color: #10130c; }
.newsletter-error { display: block; min-height: 1.4em; margin-top: 0.4rem; color: var(--text-dim); font-size: 0.7rem; }
.footer-bottom { padding: 1.1rem 0; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { margin: 0; color: var(--text-dimmer); font-size: 0.72rem; }
.back-to-top { position: fixed; z-index: 900; right: 1.5rem; bottom: 1.5rem; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(215,255,112,0.35); border-radius: 50%; background: var(--primary); color: #10130c; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(9px); transition: all 0.25s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.hero-content.reveal.in-view { animation: hero-arrive 0.85s cubic-bezier(.2,.8,.2,1) both; }
.hero-visual.reveal.in-view { animation: visual-arrive 0.95s cubic-bezier(.2,.8,.2,1) 0.12s both; }
@keyframes hero-arrive { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes visual-arrive { from { opacity: 0; transform: translateX(22px) rotate(2deg); } to { opacity: 1; transform: translateX(0) rotate(0); } }

@media (max-width: 1100px) {
  .container { width: min(100% - 52px, 1050px); }
  .navbar-inner { gap: 1rem; }
  .nav-links { gap: 1rem; }
  .dashboard-link { display: none; }
  .hero-grid { grid-template-columns: minmax(0,1fr) minmax(245px,0.72fr); gap: 1.5rem; }
  .hero-visual { min-height: 380px; }
  .console-mark { min-height: 205px; }
  .skills-grid { gap: 0.7rem; }
}
@media (max-width: 780px) {
  .container { width: min(100% - 40px, 680px); }
  .navbar-actions > .btn { display: none; }
  .hamburger { display: flex; position: relative; z-index: 1202; }
  .nav-links { position: fixed; z-index: 1201; top: 0; right: 0; display: flex; width: min(86vw, 360px); height: 100vh; height: 100dvh; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.4rem; padding: 5rem 2rem; border-left: 1px solid var(--border); background: rgba(10,12,17,0.97); backdrop-filter: blur(20px); transform: translateX(105%); transition: transform 0.35s cubic-bezier(.2,.8,.2,1); }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.3rem; }
  .hero { min-height: 860px; min-height: max(820px, 100svh); padding-top: 7rem; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 0; }
  .hero-content { max-width: 690px; }
  .hero-title { font-size: clamp(3.8rem, 12vw, 6.4rem); }
  .hero-visual { position: absolute; right: -0.5rem; bottom: 0; width: 265px; min-height: 0; opacity: 0.9; transform: scale(0.72); transform-origin: bottom right; }
  .hero-console { width: 330px; }
  .hero-bottom { margin-top: auto; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { min-height: 0; }
  .skill-index { margin-bottom: 1.2rem; }
  .landing-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .landing-card:first-child { grid-column: span 2; }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-visual { order: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .console-footer { align-items: flex-start; flex-direction: column; gap: 0.65rem; }
  .console-stack { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .navbar { padding: 0.8rem 0; }
  .brand { font-size: 0.92rem; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .hero { min-height: max(760px, 100svh); padding: 6.5rem 0 1rem; }
  .hero-video { object-position: 55% center; }
  .hero-video-wrap::after { background: linear-gradient(90deg, rgba(7,8,11,0.84), rgba(7,8,11,0.39)), linear-gradient(0deg, #08090d 0%, transparent 40%, rgba(7,8,11,0.2)); }
  .hero-grid { align-content: center; }
  .hero-content { max-width: 100%; }
  .hero-badge { margin-bottom: 1rem; font-size: 0.63rem; }
  .hero-kicker { margin-bottom: 0.7rem; font-size: 0.59rem; }
  .hero-title { margin-bottom: 1rem; font-size: clamp(3.45rem, 16vw, 5rem); }
  .hero-subtitle { max-width: 460px; margin-bottom: 1.2rem; font-size: 0.94rem; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
  .hero-cta .btn { width: 100%; }
  .hero-trust { gap: 0.32rem; }
  .hero-trust span { padding: 0.25rem 0.45rem; font-size: 0.58rem; }
  .hero-visual { display: none; }
  .hero-bottom { flex-wrap: wrap; gap: 0.55rem; padding-top: 0.55rem; }
  .hero-credit { order: 3; width: 100%; margin: 0; font-size: 0.56rem; }
  .hero-motion-toggle { font-size: 0.59rem; }
  .hero-scroll { font-size: 0.59rem; }
  .section { padding: 4.6rem 0; }
  .section-head { margin-bottom: 2rem; }
  .section-head h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .section-head p { font-size: 0.9rem; }
  .work-controls { align-items: flex-start; flex-direction: column; }
  .work-filters { gap: 0.35rem; }
  .work-filter { min-height: 36px; padding: 0.42rem 0.65rem; font-size: 0.65rem; }
  .landing-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .landing-card:first-child { grid-column: auto; }
  .landing-thumb, .landing-card:first-child .landing-thumb { aspect-ratio: 16 / 10; }
  .portfolio-info { padding: 1rem; }
  .why-visual { gap: 0.55rem; }
  .feature-card { min-height: 140px; padding: 0.95rem; }
  .review-panel { align-items: flex-start; flex-direction: column; }
  .review-panel .btn { width: 100%; white-space: normal; }
  .cta-inner h2 { font-size: clamp(2.5rem,12vw,4rem); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem 1rem; }
  .footer-brand, .footer-newsletter { grid-column: 1 / -1; }
  .modal-overlay { padding: 0.65rem; }
  .modal-box { padding: 0.9rem; }
  .modal-close { top: 1.25rem; right: 1.25rem; }
  .modal-thumb { height: 240px; padding: 0.45rem; }
  .modal-thumb.full-page, .modal-thumb.viewport-shot { height: 68vh; }
  .timeline-item { gap: 0.9rem; }
  .timeline-index { width: 46px; height: 46px; flex-basis: 46px; }
  .timeline::before { left: 22px; }
  .back-to-top { right: 0.8rem; bottom: 0.8rem; }
}
@media (max-width: 370px) {
  .hero-title { font-size: 3.15rem; }
  .hero-trust span { font-size: 0.54rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-newsletter { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-console, .hero-console:hover { transform: none; }
}
