/* ============================================================
   ELECTRIC NIGHT — dark futuristic theme
   ============================================================ */

:root {
  /* DevBee — honey gold on warm near-black */
  --bg: #0c0a06;
  --surface: #16120a;
  --surface-glass: rgba(30, 23, 11, 0.55);
  --border: rgba(214, 178, 110, 0.13);
  --accent-rgb: 255, 184, 46;   /* honey gold */
  --accent2-rgb: 255, 140, 28;  /* amber */
  --border-glow: rgba(var(--accent-rgb), 0.45);
  --text: #f4ead7;
  --text-dim: #a99a80;
  --accent: #ffb82e;
  --accent-2: #ff8c1c;
  --gradient: linear-gradient(120deg, #ffd24a 0%, #ffb22c 50%, #ff8c1e 100%);
  --grid-dot: rgba(214, 178, 110, 0.16);
  --hl-gradient: linear-gradient(120deg, #ffd24a 0%, #ffae26 50%, #ff8c1e 100%);
  --scrollbar-thumb: linear-gradient(180deg, #b07d12, #8a5a0e);
  --scrollbar-thumb-hover: linear-gradient(180deg, #d49416, #a86a10);
  --btn-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.55);
  --btn-shadow-hover: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Light "Honey" theme ---- */
html[data-theme="light"] {
  --bg: #fbf3e0;
  --surface: #fffaef;
  --surface-glass: rgba(255, 250, 238, 0.64);
  --border: rgba(150, 110, 35, 0.18);
  --accent-rgb: 214, 142, 18;   /* deep honey gold */
  --accent2-rgb: 196, 104, 16;  /* amber */
  --text: #2c2410;
  --text-dim: #7c6638;
  --accent: #d68e12;
  --accent-2: #c46810;
  --gradient: linear-gradient(120deg, #f0a91c 0%, #e58a16 50%, #d98314 100%);
  --grid-dot: rgba(150, 110, 35, 0.18);
  --hl-gradient: linear-gradient(120deg, #eaa118 0%, #df8014 50%, #d98314 100%);
  --scrollbar-thumb: linear-gradient(180deg, #d68e12, #b06a10);
  --scrollbar-thumb-hover: linear-gradient(180deg, #c27814, #9a5c0e);
  --btn-shadow: 0 6px 16px -10px rgba(180, 110, 40, 0.3);
  --btn-shadow-hover: 0 10px 22px -10px rgba(180, 110, 40, 0.38);
}

/* perf-lite: drop the most GPU-expensive effects on weaker devices
   (backdrop blur + the large blurred background orbs) */
.perf-lite .bg__orb { display: none; }
.perf-lite .card,
.perf-lite .nav.is-scrolled,
.perf-lite .mobile-menu,
.perf-lite .modal__panel,
.perf-lite .scroll-next,
.perf-lite .availability,
.perf-lite .q-badge {
  -webkit-backdrop-filter: none !important;
          backdrop-filter: none !important;
}
.perf-lite .card { background: var(--surface); }

/* light theme: flip the surfaces that were hardcoded dark */
html[data-theme="light"] .nav.is-scrolled { background: rgba(255, 250, 243, 0.8); }
html[data-theme="light"] .mobile-menu { background: rgba(246, 239, 227, 0.92); }
html[data-theme="light"] .scroll-next { background: rgba(255, 250, 243, 0.75); }
html[data-theme="light"] .modal__panel { background: rgba(255, 250, 243, 0.97); border-color: rgba(var(--accent-rgb), 0.22); }
html[data-theme="light"] .modal__close { background: rgba(255, 250, 243, 0.8); }
html[data-theme="light"] .noise { opacity: 0.025; }
/* keep the terminal a real dark code-editor in both themes */
html[data-theme="light"] .terminal { background: #0e1626; border-color: rgba(124, 84, 45, 0.2); }
html[data-theme="light"] .terminal__file { color: #8b97a8; }

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

html { scroll-behavior: auto; overflow-x: clip; scrollbar-gutter: stable; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}

/* smooth palette crossfade while toggling theme (class added briefly by JS) */
html.theme-anim,
html.theme-anim .nav,
html.theme-anim .card,
html.theme-anim .btn,
html.theme-anim .skill-badge,
html.theme-anim .field input,
html.theme-anim .field textarea,
html.theme-anim .bg__orb,
html.theme-anim .terminal,
html.theme-anim .social-link {
  transition: background-color 0.6s ease, color 0.6s ease,
              border-color 0.6s ease, box-shadow 0.6s ease,
              background 0.6s ease !important;
}

::selection { background: rgba(var(--accent-rgb), 0.3); }

/* themed scrollbar — thin, gradient thumb */
html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 6px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* On devices with a fine pointer the native cursor is replaced */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button,
  body.has-cursor input, body.has-cursor textarea, body.has-cursor label { cursor: none; }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
.preloader__canvas { position: absolute; inset: 0; }
.preloader__name, .preloader__bar { position: relative; z-index: 1; }
.preloader__name {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  overflow: hidden;
}
.preloader__name .char { display: inline-block; }
.preloader__bar {
  width: min(260px, 60vw); height: 1px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}
.preloader__progress {
  display: block; height: 100%; width: 100%;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
/* hover-on-project state: a sleek filled gold disc with a diagonal arrow */
.cursor-ring__arrow {
  width: 0; height: 0;
  color: #231603;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.cursor-ring.is-label {
  width: 56px; height: 56px;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), 0.6);
}
.cursor-ring.is-label .cursor-ring__arrow {
  width: 20px; height: 20px;
  opacity: 1;
  transform: scale(1);
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 2px;
  pointer-events: none;
}
.scroll-progress__bar {
  position: absolute; inset: 0;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
}
.scroll-progress__glow {
  position: absolute; top: 50%; left: -4px;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #a5f3fc;
  box-shadow: 0 0 12px 3px rgba(var(--accent-rgb), 0.8);
  opacity: 0;
  transition: opacity 0.3s;
}

/* ---------- Mouse trail ---------- */
.trail-canvas {
  position: fixed; inset: 0; z-index: 994;
  pointer-events: none;
}

/* ---------- Film grain ---------- */
.noise {
  position: fixed; inset: 0; z-index: 600;
  pointer-events: none;
  opacity: 0.05;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg #stars { position: absolute; inset: 0; }
.bg__grid {
  position: absolute; inset: -50px;
  /* honeycomb pattern (DevBee) */
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffb82e' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 40px 70px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
html[data-theme="light"] .bg__grid {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23966e23' fill-opacity='0.13' fill-rule='evenodd'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/svg%3E");
}
.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.bg__orb--1 { width: 480px; height: 480px; top: -8%; left: -10%; background: radial-gradient(circle, rgba(var(--accent-rgb),0.35), transparent 65%); }
.bg__orb--2 { width: 540px; height: 540px; top: 30%; right: -16%; background: radial-gradient(circle, rgba(var(--accent2-rgb),0.32), transparent 65%); }
.bg__orb--3 { width: 420px; height: 420px; bottom: -12%; left: 18%; background: radial-gradient(circle, rgba(var(--accent-rgb),0.2), transparent 65%); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(12, 10, 6, 0.74);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
  padding-top: 12px; padding-bottom: 12px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__logo-mark {
  width: 26px; height: 26px;
  color: var(--accent);
  flex: none;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.35));
  animation: mark-pulse 3s ease-in-out infinite;
}
.nav__logo-text { color: var(--text); }
.nav__logo-dot {
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
@keyframes mark-pulse {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.3)); }
  50%      { filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.7)); }
}
.nav__links { display: none; gap: 26px; }
.nav__link {
  position: relative;
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s;
  display: inline-block;
  padding: 4px 0;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 18px; }
/* needs to out-specify .btn's display:inline-flex, otherwise the CTA stays
   visible on mobile and pushes the burger off the right edge */
.nav__right .nav__cta { display: none; }

.lang-switch { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.8rem; }
.lang-switch__divider { color: var(--text-dim); opacity: 0.5; }
.lang-switch__btn {
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding: 4px 2px;
  transition: color 0.3s, text-shadow 0.3s;
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.6);
}

/* theme toggle */
.theme-toggle {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  flex: none;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-glow); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25); }
/* the icon area spins a half-turn on every toggle — same effect both ways */
.theme-toggle__inner {
  position: relative;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  transition: transform 0.55s var(--ease-out);
}
html[data-theme="light"] .theme-toggle__inner { transform: rotate(180deg); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.35s ease; }
.theme-toggle__sun { opacity: 0; }
.theme-toggle__moon { opacity: 1; }
html[data-theme="light"] .theme-toggle__sun { opacity: 1; }
html[data-theme="light"] .theme-toggle__moon { opacity: 0; }

.nav__burger {
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  /* keep a 38px tap target but align the bars to the box's right edge so the
     icon's right inset matches the logo's left inset (symmetric) */
  width: 38px; height: 38px; align-items: flex-end;
}
.nav__burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 10, 18, 0.92);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
}
.mobile-menu__links { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.mobile-menu__link {
  font-family: var(--font-head);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  padding: 6px 20px;
  transition: color 0.3s;
}
.mobile-menu__link:hover { color: var(--accent); }

/* ---------- Layout ---------- */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 150px) clamp(20px, 4vw, 48px);
}
.section--tight { padding-top: clamp(40px, 7vh, 70px); padding-bottom: clamp(40px, 7vh, 70px); }
.section__head { margin-bottom: clamp(40px, 7vh, 72px); max-width: 720px; }
.section__kicker { display: block; margin-bottom: 16px; }
.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section__subtitle { margin-top: 16px; color: var(--text-dim); }

/* Scroll-reveal initial states are applied by JS (so no-JS users see content) */

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 600; font-size: 0.95rem;
  padding: 16px 35px;
  border-radius: 999px;
  /* no base border — a transparent border over the gradient rendered a
     faint lighter rim; only the ghost variant gets a real border */
  transition: box-shadow 0.4s, border-color 0.4s, color 0.4s, background-color 0.4s;
  white-space: nowrap;
}
.btn--small { padding: 11px 23px; font-size: 0.85rem; }
.btn--primary {
  background: var(--gradient);
  color: #231603;
  box-shadow: var(--btn-shadow);
  transition: box-shadow 0.4s, filter 0.4s, transform 0.4s;
}
.btn--primary:hover { box-shadow: var(--btn-shadow-hover); filter: brightness(1.04); }
.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(13, 21, 38, 0.4);
}
.btn--ghost:hover { border-color: var(--border-glow); box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.15); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  position: relative;
}
.hero__kicker { margin-bottom: 24px; }
.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 950px;
}
.hero__headline .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__headline .word { display: inline-block; }
/* gradient must sit on the innermost (split) span — background-clip:text
   does not paint through SplitText's nested transformed word spans */
.hero__headline .hl,
.hero__headline .hl .word {
  background: var(--hl-gradient);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: hl-pan 7s ease-in-out infinite alternate;
}
@keyframes hl-pan {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.hero__tagline {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
/* ---------- Persistent next-section button ---------- */
.scroll-next {
  /* centered via calc, not transform — the magnetic effect owns the transform */
  position: fixed; bottom: 24px; left: calc(50% - 27px); z-index: 80;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(13, 21, 38, 0.6);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text-dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s, border-color 0.35s, box-shadow 0.35s, color 0.35s;
}
.scroll-next.is-visible { opacity: 1; visibility: visible; }
.scroll-next:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.3);
}
.scroll-next__chev {
  width: 17px; height: 17px;
  display: block;
  animation: chev-wave 1.8s ease-in-out infinite;
  transition: transform 0.5s var(--ease-out);
}
.scroll-next__chev + .scroll-next__chev {
  margin-top: -10px;
  animation-delay: 0.22s;
}
/* at the very bottom the button points back up */
.scroll-next.is-up .scroll-next__chev { transform: rotate(180deg); animation: chev-wave-up 1.8s ease-in-out infinite; }
@keyframes chev-wave {
  0%, 100% { opacity: 0.15; transform: translateY(-3px); }
  50%      { opacity: 1;    transform: translateY(3px); }
}
@keyframes chev-wave-up {
  0%, 100% { opacity: 0.15; transform: rotate(180deg) translateY(-3px); }
  50%      { opacity: 1;    transform: rotate(180deg) translateY(3px); }
}


/* ---------- Glass card base ---------- */
.card {
  position: relative;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color 0.4s, box-shadow 0.4s, background-color 0.4s;
  overflow: hidden;
}
.card::before {
  /* faint top edge light */
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.35), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 8px 40px rgba(3, 8, 16, 0.6), 0 0 28px rgba(var(--accent-rgb), 0.08);
}
.card:hover::before { opacity: 1; }
.card::after {
  /* cursor-following spotlight (—mx/—my set by effects.js) */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card { padding: 34px 30px; }
.service-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  margin-bottom: 22px;
  color: var(--accent);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.service-card:hover .service-card__icon {
  transform: translateY(-4px) rotate(-4deg);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.25);
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card__title {
  font-family: var(--font-head);
  font-size: 1.18rem; font-weight: 600;
  margin-bottom: 10px;
}
.service-card__desc { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Portfolio ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.project-card { display: block; }
.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}
.project-card:hover .project-card__media img { transform: scale(1.08); }
.project-card__media::after {
  /* glass shine sweep across the image on hover */
  content: '';
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.85s ease;
  pointer-events: none;
  z-index: 1;
}
.project-card:hover .project-card__media::after { left: 135%; }
.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(6, 10, 18, 0.92) 100%);
  opacity: 0;
  transition: opacity 0.5s;
  display: flex; align-items: flex-end;
  padding: 24px;
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__overlay-text {
  transform: translateY(14px);
  transition: transform 0.5s var(--ease-out);
  color: var(--text-dim);
  font-size: 0.92rem;
}
.project-card:hover .project-card__overlay-text { transform: translateY(0); }
.project-card__body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 12px;
}
.project-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.project-card__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.project-card__category { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.project-card__arrow {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(6, 10, 18, 0.65);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.project-card:hover .project-card__arrow { opacity: 1; transform: translate(0, 0); }
.project-card--placeholder .project-card__media { filter: saturate(0.55); }

/* ---------- About: terminal + orbit + journey ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

/* terminal */
.terminal { font-family: var(--font-mono); }
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #f87171; }
.terminal__dot--y { background: #fbbf24; }
.terminal__dot--g { background: #34d399; }
.terminal__file { margin-left: 10px; color: var(--text-dim); font-size: 0.72rem; }
.terminal__body {
  margin: 0;
  padding: 24px 22px 28px;
  font-size: 0.86rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 235px;
}
.terminal__cursor {
  display: inline-block;
  width: 8px; height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.tk-kw  { color: #a78bfa; }
.tk-var { color: #22d3ee; }
.tk-key { color: #7dd3fc; }
.tk-str { color: #c4b5fd; }
.tk-num { color: #f472b6; }
.tk-pun { color: var(--text-dim); }

/* orbit */
.orbit {
  position: relative;
  width: 340px; height: 340px;
  margin: 30px auto;
}
.orbit__core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 86px; height: 86px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 700;
  background: var(--surface-glass);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 34px rgba(var(--accent-rgb), 0.25), inset 0 0 22px rgba(var(--accent-rgb), 0.08);
  animation: core-pulse 4s ease-in-out infinite;
  color: var(--accent);
}
.orbit__core svg { width: 40px; height: 40px; }
@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.2), inset 0 0 22px rgba(var(--accent-rgb), 0.08); }
  50%      { box-shadow: 0 0 48px rgba(var(--accent-rgb), 0.45), inset 0 0 22px rgba(var(--accent-rgb), 0.14); }
}
.orbit__core::after {
  /* ripple ring radiating from the core */
  content: '';
  position: absolute; inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  animation: core-ripple 3.4s ease-out infinite;
}
@keyframes core-ripple {
  0%        { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(2.3); opacity: 0; }
}
.orbit__ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px dashed rgba(148, 163, 184, 0.16);
  border-radius: 50%;
}
.orbit__ring--1 {
  --r: 105px;
  width: 210px; height: 210px;
  margin: -105px 0 0 -105px;
  animation: orbit-spin 38s linear infinite;
}
.orbit__ring--1 .orbit__fix { animation: orbit-spin 38s linear infinite reverse; }
.orbit__ring--2 {
  --r: 168px;
  width: 336px; height: 336px;
  margin: -168px 0 0 -168px;
  animation: orbit-spin 52s linear infinite reverse;
}
.orbit__ring--2 .orbit__fix { animation: orbit-spin 52s linear infinite; }
.orbit:hover .orbit__ring,
.orbit:hover .orbit__fix { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.orbit__item {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
}
.orbit__fix { display: block; width: 0; height: 0; }
.orbit__fix .skill-badge {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  /* opaque surface so the label is readable in both themes (was a
     hardcoded dark fill that hid the text in light mode) */
  background: var(--surface);
}
.orbit__fix .skill-badge:hover { transform: translate(-50%, -50%); }

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  transition: border-color 0.35s, box-shadow 0.35s, color 0.35s, transform 0.35s var(--ease-out);
}
.skill-badge:hover {
  border-color: var(--border-glow);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18);
  transform: translateY(-3px);
}

/* ---------- Availability pill ---------- */
.availability {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 8px 16px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
}
.availability .mono { color: var(--text); font-size: 0.7rem; }
.availability__bee {
  width: 24px; height: 19px;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(40, 26, 10, 0.3));
}
.availability__bee .bee-wing {
  transform-box: fill-box; transform-origin: center;
  animation: bee-flap-l 0.3s ease-in-out infinite alternate;
}
.availability__bee .bee-wing--r { animation-name: bee-flap-r; animation-delay: 0.04s; }
@keyframes bee-flap-l {
  from { transform: rotate(-22deg) scaleY(1); }
  to   { transform: rotate(-22deg) scaleY(0.5); }
}
@keyframes bee-flap-r {
  from { transform: rotate(22deg) scaleY(1); }
  to   { transform: rotate(22deg) scaleY(0.5); }
}

/* ---------- Process ---------- */
.process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.process-step {
  position: relative;
  padding: 30px 26px 28px;
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.process-step__title {
  font-family: var(--font-head);
  font-size: 1.12rem; font-weight: 600;
  margin: 16px 0 9px;
}
.process-step__desc { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__icon {
  position: relative;
  flex: none;
  width: 18px; height: 18px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.4s var(--ease-out);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item.is-open .faq-item__icon::after { transform: rotate(0); }
.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a-inner {
  overflow: hidden;
  color: var(--text-dim);
  font-size: 0.97rem;
  line-height: 1.7;
}
.faq-item__a-inner p { padding: 0 4px 26px; max-width: 640px; }

/* ---------- Final CTA band ---------- */
.final-cta {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 70px) clamp(20px, 4vw, 48px);
}
.final-cta__inner {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(var(--accent2-rgb), 0.16), transparent 55%),
    var(--surface-glass);
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
  padding: clamp(40px, 7vw, 72px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.final-cta__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  font-weight: 600;
  line-height: 1.15;
  max-width: 640px;
  margin: 0 auto;
}
.final-cta__text {
  color: var(--text-dim);
  margin: 18px auto 32px;
  max-width: 460px;
}

/* ---------- Project configurator (quote) ---------- */
.quote {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
.q-head { }
.q-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--surface-glass);
  font-size: 0.68rem;
}
.q-badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.9);
}
.q-subtitle { margin-top: 14px; color: var(--text-dim); max-width: 460px; }

.q-card { padding: 26px 26px 22px; }
/* clickable step indicator */
.q-stepper {
  display: flex; align-items: center;
  margin-bottom: 14px;
}
.q-stepper__dot {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--surface-glass);
  border: 1px solid var(--border);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.q-stepper__dot:not([disabled]) { cursor: pointer; }
.q-stepper__dot:not([disabled]):hover { transform: scale(1.12); border-color: var(--border-glow); }
.q-stepper__dot.is-done {
  color: #231603; background: var(--gradient); border-color: transparent;
}
.q-stepper__dot.is-current {
  /* current step: neutral highlight only — colour comes after you pass it */
  color: var(--text);
  border-color: var(--text-dim);
}
.q-stepper__dot[disabled] { opacity: 0.55; }
.q-stepper__line {
  flex: 1; height: 2px; min-width: 8px;
  background: rgba(148, 163, 184, 0.18);
  transition: background 0.4s;
}
.q-stepper__line.is-done { background: var(--gradient); }
.q-stepmeta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text-dim); font-size: 0.68rem;
}
.q-reset {
  font-family: var(--font-mono); font-size: 0.66rem;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.q-reset:hover { color: var(--accent); border-bottom-color: rgba(var(--accent-rgb), 0.4); }
.q-resumed {
  margin-top: 10px; color: var(--accent-2);
  font-size: 0.66rem;
}
.q-step { margin-top: 14px; }
.q-step__title {
  font-family: var(--font-head);
  font-size: 1.3rem; font-weight: 600;
  margin-bottom: 6px;
}
.q-step__hint { color: var(--text-dim); font-size: 0.66rem; margin-bottom: 16px; }

.q-options { display: grid; grid-template-columns: 1fr; gap: 12px; }
.q-option {
  position: relative;
  text-align: left;
  padding: 17px 18px 17px 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-glass);
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s, transform 0.3s var(--ease-out);
}
.q-option:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-2px); }
.q-option__check {
  position: absolute; left: 18px; top: 50%;
  width: 24px; height: 24px; margin-top: -12px;
  border-radius: 8px;
  /* inset ring instead of a border — no outer edge artifact */
  box-shadow: inset 0 0 0 2px var(--border);
  background: rgba(148, 163, 184, 0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.q-option__check--radio { border-radius: 50%; }
.q-option__check::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 11px;
  border: solid #231603; border-width: 0 2.5px 2.5px 0;
  border-radius: 1px;
  transform: translate(-50%, -58%) rotate(45deg) scale(0);
  transition: transform 0.28s var(--ease-out);
}
.q-option:hover .q-option__check { box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.55); }
.q-option.is-selected {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.07);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.12);
}
.q-option.is-selected .q-option__check {
  background: var(--gradient);
  box-shadow: none;
}
.q-option.is-selected .q-option__check::after { transform: translate(-50%, -58%) rotate(45deg) scale(1); }
.q-option__label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; }
.q-option__desc { display: block; color: var(--text-dim); font-size: 0.82rem; margin-top: 2px; }
.q-option__icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.q-option__icon svg { width: 20px; height: 20px; }
.q-option--icon { padding-top: 18px; }
.q-option:hover .q-option__icon { transform: translateY(-2px); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2); }
.q-option.is-selected .q-option__icon { box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25); }
.q-option__badge {
  display: inline-block;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  color: #231603;
  background: var(--gradient);
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.3);
}

.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; }
.q-status { min-height: 1.2em; font-size: 0.85rem; margin-top: 12px; }
.q-status.is-warn { color: var(--accent); }
.q-status.is-error { color: #f87171; }

/* details step */
.q-details { display: grid; grid-template-columns: 1fr; gap: 22px; }
.q-summary {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.q-summary__title { color: var(--text-dim); font-size: 0.66rem; margin-bottom: 12px; }
.q-summary__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.q-summary__row:first-of-type { border-top: none; }
.q-summary__row span { color: var(--text-dim); }
.q-summary__row strong { text-align: right; font-weight: 600; }

/* itemized breakdown */
.q-break__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 8px 0;
  font-size: 0.9rem;
}
.q-break__row span:first-child { color: var(--text-dim); }
.q-break__row.is-base span:first-child { color: var(--text); font-weight: 600; }
.q-break__price { font-family: var(--font-mono); font-size: 0.82rem; white-space: nowrap; color: var(--text); }
.q-break__row--note span:first-child { color: var(--accent); font-size: 0.8rem; }
.q-break__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.q-break__total span { font-family: var(--font-head); font-weight: 600; }
.q-break__total strong {
  font-family: var(--font-mono); font-size: 1.15rem;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.q-break__time { margin-top: 6px; color: var(--text-dim); font-size: 0.72rem; text-align: right; }
.q-form { display: flex; flex-direction: column; gap: 26px; }

/* live estimate panel */
.q-estimate {
  padding: 26px 24px;
  position: sticky; top: 92px;
  text-align: left;
}
.q-estimate__label { display: block; color: var(--text-dim); font-size: 0.66rem; margin-bottom: 14px; }
.q-estimate__price {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.q-estimate__time {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 1rem;
  margin-top: 10px;
}
.q-estimate__monthly {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-top: 8px;
  min-height: 1em;
}
/* live itemized breakdown inside the estimate panel */
.q-estimate__break { margin-top: 16px; }
.q-estimate__break:empty { margin-top: 0; }
.q-bd__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 0;
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}
.q-bd__row:first-child { border-top: none; }
.q-bd__row span:first-child { color: var(--text-dim); }
.q-bd__row.is-base span:first-child { color: var(--text); font-weight: 600; }
.q-bd__price { font-family: var(--font-mono); font-size: 0.76rem; white-space: nowrap; color: var(--text); }
.q-bd__note span:first-child { color: var(--accent); }
.q-bd__discount span { color: var(--accent-2) !important; font-weight: 600; }
.q-bd__discount .q-bd__price { color: var(--accent-2); }
.q-bd__tease {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.76rem;
  color: var(--accent-2);
  background: rgba(var(--accent2-rgb), 0.08);
  border: 1px dashed rgba(var(--accent2-rgb), 0.3);
}
.q-estimate__note {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: 0.76rem;
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* help / escape-hatch line */
.q-help { margin-top: 16px; text-align: center; font-size: 0.85rem; color: var(--text-dim); }
.q-help__link {
  color: var(--accent);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  padding-bottom: 1px;
  transition: border-color 0.3s;
}
.q-help__link:hover { border-color: var(--accent); }

/* quick consultation form */
.q-card--quick { position: relative; }
.q-quickback {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  transition: color 0.3s;
}
.q-quickback:hover { color: var(--accent); }
.q-quick__sub { color: var(--text-dim); margin: 8px 0 26px; max-width: 460px; }
.q-card--quick .q-form { margin-bottom: 10px; }
.q-quicksubmit { margin-top: 18px; }

/* trust row */
.q-trust {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.q-trust__item {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.84rem;
  color: var(--text-dim);
}
.q-trust__item svg {
  width: 15px; height: 15px;
  flex: none;
  color: var(--accent-2);
  padding: 3px;
  border-radius: 50%;
  background: rgba(var(--accent2-rgb), 0.12);
}

/* success state */
.q-done { text-align: center; padding: 40px 20px; }
.q-done__icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: #231603;
  background: var(--gradient);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.4);
}
.q-done p { max-width: 380px; margin: 0 auto; color: var(--text); }

.contact-info--row {
  position: relative;
  flex-direction: row; flex-wrap: wrap; gap: 40px;
  margin-top: clamp(48px, 7vh, 84px);
  padding-top: clamp(34px, 5vh, 50px);
  border-top: 1px solid var(--border);
}
.contact-info--row > div { min-width: 180px; }
.contact-info--row::before {
  content: '';
  position: absolute; top: -1px; left: 0;
  width: 56px; height: 2px;
  background: var(--gradient);
}

/* ---------- Contact ---------- */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
.contact-form { display: flex; flex-direction: column; gap: 30px; align-items: flex-start; }
.field { position: relative; width: 100%; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 2px 12px;
  color: var(--text);
  font: inherit;
  outline: none;
  resize: vertical;
}
.field label {
  position: absolute; left: 2px; top: 14px;
  color: var(--text-dim);
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), font-size 0.3s, color 0.3s;
  transform-origin: left top;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-24px);
  font-size: 0.72rem;
  color: var(--accent);
}
.field__line {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.field input:focus ~ .field__line,
.field textarea:focus ~ .field__line { transform: scaleX(1); }
.contact-form__submit { margin-top: 6px; }
.contact-form__status { font-size: 0.9rem; min-height: 1.4em; }
.contact-form__status.is-success { color: var(--accent); }
.contact-form__status.is-error { color: #f87171; }

.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-info__block-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.contact-info__value {
  font-family: var(--font-head);
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
}
.contact-info__value::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.contact-info__value:hover::after { transform: scaleX(1); transform-origin: left; }
.contact-info__socials { display: flex; gap: 12px; }
.social-link {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.2);
}
.social-link svg { width: 18px; height: 18px; }

/* ---------- Project modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 950;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 6, 12, 0.74);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.modal__panel {
  position: relative;
  width: min(720px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.96);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(var(--accent-rgb), 0.07);
}
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(6, 10, 18, 0.7);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.modal__close:hover { color: var(--accent); border-color: var(--border-glow); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }
.modal__media { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px 20px 0 0; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 26px 28px 32px; display: flex; flex-direction: column; gap: 13px; }
.modal__category { color: var(--accent); font-size: 0.7rem; }
.modal__name { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
.modal__desc { color: var(--text-dim); }
.modal__tech { display: flex; flex-wrap: wrap; gap: 8px; }
.modal__actions { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.footer__giant {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3.4rem, 14vw, 12rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.16);
  user-select: none;
  pointer-events: none;
  margin-top: 34px;
  margin-bottom: -0.18em;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.footer__logo { font-size: 1.6rem; }
.footer__logo .nav__logo-mark { width: 30px; height: 30px; }
.footer__tagline { color: var(--text-dim); }
.footer__socials { display: flex; gap: 12px; }
.footer__copy { color: var(--text-dim); font-size: 0.7rem; text-transform: none; letter-spacing: 0.04em; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__right .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .process__grid { grid-template-columns: repeat(4, 1fr); }
  .about__grid { grid-template-columns: 1.25fr 1fr; gap: 60px; }
  .contact__inner { grid-template-columns: 1.3fr 1fr; gap: 80px; }
  .quote { grid-template-columns: 1.55fr 1fr; }
  .q-head, .q-trust { grid-column: 1 / -1; }
  .q-options { grid-template-columns: repeat(2, 1fr); }
  .q-card--quick { grid-column: 1 / -1; max-width: 620px; }
}

@media (max-width: 420px) {
  .orbit { transform: scale(0.82); margin: 0 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .preloader { display: none; }
  .cursor-dot, .cursor-ring { display: none; }
}
