/* ==========================================================
   ROMULO — Portfolio
   ========================================================== */

:root {
  --bg: #1b1d22;
  --bg-2: #24272e;
  --bg-3: #2e3139;
  --accent: #1e6bff;
  --accent-2: #4db2ff;
  --accent-3: #0a3fd6;
  --text: #eceef7;
  --muted: #8d929d;
  --line: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --blur: 18px;
  --radius: 18px;
  --pad-x: clamp(20px, 8vw, 140px);
  --header-h: 88px;
  --font-display: "Michroma", "Orbitron", sans-serif;
  --font-body: "Sora", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(
        120vw 90vh at 70% 20%,
        #33363e 0%,
        #26282f 40%,
        #1b1d22 70%,
        #141519 100%
      )
      fixed,
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  list-style: none;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

/* ---------- Background layers ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      50vw 45vh at 75% 30%,
      rgba(255, 255, 255, 0.05),
      transparent 70%
    ),
    radial-gradient(
      45vw 45vh at 80% 40%,
      rgba(30, 107, 255, 0.07),
      transparent 70%
    ),
    radial-gradient(50vw 50vh at 5% 100%, rgba(0, 0, 0, 0.35), transparent 70%);
}
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-evenly;
  transition: opacity 0.6s ease;
}
/* Contact: no grid lines, particles fade in from left to right */
body[data-section="contact"] .grid-lines {
  opacity: 0;
}
body[data-section="contact"] #bg-canvas {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.55) 60%,
    #000 90%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.55) 60%,
    #000 90%
  );
}
.grid-lines span {
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--line) 20%,
    var(--line) 80%,
    transparent
  );
}
.noise {
  position: fixed;
  inset: -50%;
  z-index: 1;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise 1s steps(4) infinite;
}
@keyframes noise {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-3%, 2%);
  }
  50% {
    transform: translate(2%, -3%);
  }
  75% {
    transform: translate(-2%, -1%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  border-radius: var(--radius);
  box-shadow:
    0 20px 60px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition:
    color 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn-primary {
  background: linear-gradient(
    120deg,
    var(--accent-3),
    var(--accent) 55%,
    var(--accent-2)
  );
  box-shadow: 0 10px 40px -10px rgba(30, 107, 255, 0.8);
}
.btn-primary::before {
  background: #fff;
}
.btn-primary:hover {
  color: var(--bg);
  box-shadow: 0 10px 50px -8px rgba(77, 178, 255, 0.7);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost::before {
  background: var(--accent);
}
.btn-ghost:hover {
  border-color: var(--accent);
}
.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 10px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.arrow {
  position: relative;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow {
  width: 26px;
}

/* ---------- Common type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.section-sub {
  color: var(--muted);
  max-width: 520px;
  font-size: 15px;
}
.grad {
  background: linear-gradient(
    100deg,
    #8fd0ff,
    var(--accent-2) 30%,
    var(--accent) 70%,
    #1552d8
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.85);
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: radial-gradient(80vw 80vh at 50% 40%, #2a2d34, #17181c);
  display: grid;
  place-items: center;
  clip-path: inset(0% 0% 0% 0%);
}
.loader-inner {
  width: min(320px, 80vw);
  text-align: center;
}
.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: 0.25em;
  margin-bottom: 20px;
}
.loader-logo span,
.logo span,
.curtain-logo .dot {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.loader-status {
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.loader-bar {
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-2);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  background: linear-gradient(
    to bottom,
    rgba(24, 26, 31, 0.85),
    rgba(24, 26, 31, 0.45) 60%,
    transparent
  );
}
.logo {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.3em;
}
.nav ul {
  display: flex;
  gap: clamp(18px, 2.6vw, 42px);
}
.nav a {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover,
.nav a.active {
  color: #fff;
}
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
  box-shadow: 0 0 10px var(--accent-2);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.status i,
.availability i,
.hud-agents i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4db2ff;
  box-shadow: 0 0 10px #4db2ff;
  animation: pulse 1.6s infinite;
}
/* "Online" / "available" indicators stay green */
.status i,
.availability i {
  background: #2ee68a;
  box-shadow: 0 0 10px #2ee68a;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  position: relative;
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1px;
  background: #fff;
  transition:
    transform 0.5s var(--ease),
    top 0.5s var(--ease);
}
.burger span:nth-child(1) {
  top: 18px;
}
.burger span:nth-child(2) {
  top: 25px;
}
body.menu-open .burger span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
body.menu-open .burger span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}
.mobile-section {
  display: none;
  color: var(--muted);
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 40px;
  visibility: hidden;
  background: rgba(24, 26, 31, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  clip-path: circle(0% at calc(100% - 44px) 44px);
}
.menu li {
  overflow: hidden;
}
.menu a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 44px);
  text-transform: uppercase;
  padding: 8px 0;
}
.menu a em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  color: var(--accent-2);
}
.menu a.active {
  color: var(--accent-2);
}
.menu-foot {
  margin-top: 40px;
  color: var(--muted);
}

/* ---------- Rails ---------- */
.rail {
  position: fixed;
  top: 50%;
  z-index: 30;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.rail-left {
  left: clamp(16px, 2.4vw, 40px);
}
.rail-num,
.rail-total {
  font-family: var(--font-display);
  font-size: 11px;
}
.rail-total {
  color: var(--muted);
}
.rail-dots {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.rail-dots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.rail-dots li {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2a3a;
  cursor: pointer;
  transition:
    background 0.4s,
    transform 0.4s,
    box-shadow 0.4s;
  pointer-events: auto;
}
.rail-dots li.active {
  background: var(--accent-2);
  transform: scale(1.5);
  box-shadow: 0 0 12px var(--accent-2);
}
.rail-dots li span {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--muted);
  font-family: var(--font-mono);
}
.rail-dots li:hover span {
  opacity: 1;
}

.scroll-hint {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9px;
  pointer-events: none;
  transition: opacity 0.5s;
}
.scroll-hint .mouse {
  width: 20px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}
.scroll-hint .mouse i {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(12px);
  }
}
.scroll-hint.hide {
  opacity: 0;
}

/* ---------- Slides system ---------- */
.slides {
  position: fixed;
  inset: 0;
  z-index: 2;
}
.slide {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 107, 255, 0.7) transparent;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.slide::-webkit-scrollbar {
  width: 4px;
}
.slide::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 4px;
}
.slide::-webkit-scrollbar-track {
  background: transparent;
}
.slide.is-active {
  visibility: visible;
  pointer-events: auto;
}
.slide-inner {
  position: relative;
  min-height: 100%;
  padding: calc(var(--header-h) + 30px) var(--pad-x) 70px;
}

/* ---------- Curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.curtain-panel {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: bottom;
}
.curtain.active {
  pointer-events: auto;
}
.c1 {
  background: linear-gradient(
    120deg,
    var(--accent-3),
    var(--accent) 55%,
    var(--accent-2)
  );
}
.c2 {
  background: var(--bg-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.c2 {
  background: radial-gradient(70vw 70vh at 50% 50%, #30333b, #1a1c21);
}
.c2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    35vw 35vh at 50% 50%,
    rgba(30, 107, 255, 0.18),
    transparent 70%
  );
}
.curtain-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 10vw, 140px);
  line-height: 1.12;
  letter-spacing: 0.2em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
  text-align: center;
}
/* Two lines (first / last name); negative margin cancels the trailing letter-spacing so each line is truly centered */
.curtain-logo .cl-line {
  display: block;
  margin-right: -0.2em;
  white-space: nowrap;
}
.curtain-label {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-2);
}

/* ==========================================================
   01 HERO
   ========================================================== */
.hero .slide-inner {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 640px;
}
.hero-block {
  position: absolute;
  left: -26px;
  top: 12px;
  width: 64px;
  height: 190px;
  z-index: -1;
  background: linear-gradient(180deg, var(--accent), rgba(30, 107, 255, 0.4));
  box-shadow: 0 0 60px rgba(30, 107, 255, 0.6);
}
.hero .eyebrow {
  color: #fff;
}
.hero .eyebrow::before {
  background: #fff;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: 26px;
}
.hero-title .line {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: clamp(2.1rem, 5.2vw, 5.6rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hero-title .plus {
  color: var(--accent-2);
  font-size: 0.7em;
  text-shadow: 0 0 30px var(--accent-2);
}
.hero-title .outline {
  -webkit-text-stroke: 1.5px #fff;
}
.hero-title .small {
  font-size: clamp(0.9rem, 1.55vw, 1.6rem);
  letter-spacing: 0.9em;
  color: var(--muted);
  margin-top: 14px;
}
.hero-kicker {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 16px;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}
.hero-kicker b {
  font-weight: 600;
  color: #fff;
}
.hero-bio {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-bio strong {
  color: #fff;
  font-weight: 600;
}
.hero-bio em {
  font-style: normal;
  color: var(--accent-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: absolute;
  right: clamp(24px, 6vw, 120px);
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  height: calc(100% - var(--header-h) - 10px);
  width: auto;
  max-width: 48vw;
  aspect-ratio: 2 / 3;
}
.cyborg {
  position: absolute;
  inset: 0;
  --split: 50%;
  pointer-events: auto;
}
/* Photo sits a little below the top so the hair never touches the edge */
.cyborg img {
  position: absolute;
  left: 0;
  top: 5%;
  width: 100%;
  height: 95%;
  object-fit: cover;
  object-position: center top;
}
/* Soft fade on every edge so the photo never shows a hard cut */
.cy-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image:
    radial-gradient(ellipse 50% 80% at 50% 42%, #000 52%, transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 4%,
      #000 70%,
      transparent 97%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 50% 80% at 50% 42%, #000 52%, transparent 100%),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 4%,
      #000 70%,
      transparent 97%
    );
  mask-composite: intersect;
}
/* Lifts the photo's pure-black backdrop to the page's graphite so it blends in */
.cy-lift {
  position: absolute;
  inset: 0;
  background: #232529;
  mix-blend-mode: lighten;
  pointer-events: none;
}
.cy-human img {
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
}
.cy-robot {
  clip-path: inset(0 0 0 var(--split));
}
.cy-robot img {
  filter: grayscale(1) contrast(1.6) brightness(0.75) sepia(1)
    hue-rotate(185deg) saturate(4);
}
.cy-circuit {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%234db2ff' stroke-width='1' opacity='.55'%3E%3Cpath d='M0 20h30l10 10h30M60 0v15l10 10v25M120 60H90l-10 10H50l-10 10v40M20 120V90l10-10h20M90 120v-20l15-15h15M0 75h15l10-10'/%3E%3Ccircle cx='70' cy='30' r='3'/%3E%3Ccircle cx='40' cy='80' r='3'/%3E%3Ccircle cx='50' cy='80' r='2'/%3E%3Ccircle cx='105' cy='85' r='3'/%3E%3Ccircle cx='25' cy='65' r='2'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgba(77, 178, 255, 0.07) 1px, transparent 1px);
  background-size:
    120px 120px,
    100% 4px;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 70% at 50% 40%,
    #000 30%,
    transparent 70%
  );
  mask-image: radial-gradient(
    ellipse 60% 70% at 50% 40%,
    #000 30%,
    transparent 70%
  );
  animation: circuit 12s linear infinite;
}
@keyframes circuit {
  to {
    background-position:
      0 -120px,
      0 0;
  }
}
.cy-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: -120px;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(77, 178, 255, 0.28),
    transparent
  );
  animation: scan 4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
@keyframes scan {
  to {
    top: 100%;
  }
}
.cy-divider {
  position: absolute;
  top: 8%;
  bottom: 18%;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent-2),
    #fff,
    var(--accent-2),
    transparent
  );
  box-shadow:
    0 0 18px var(--accent-2),
    0 0 40px var(--accent);
  opacity: 0.9;
}
.cy-halo {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 95%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(77, 178, 255, 0.18);
  box-shadow:
    0 0 120px rgba(30, 107, 255, 0.35),
    inset 0 0 80px rgba(30, 107, 255, 0.2);
  animation: spin 30s linear infinite;
}
.cy-halo::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.cy-halo::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-2);
}
@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.hud {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}
.hud-line {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
}
.hud-line::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  top: -2px;
}
.hud-ai {
  right: -4%;
  top: 20%;
  flex-direction: row;
}
.hud-ai .hud-line::after {
  left: -2px;
}
.hud-ni {
  left: -10%;
  top: 52%;
  flex-direction: row-reverse;
}
.hud-ni .hud-line::after {
  right: -2px;
}
.hud-agents {
  right: 4%;
  top: 6%;
  color: var(--muted);
}

.hero-features {
  position: absolute;
  right: clamp(20px, 5vw, 90px);
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 12px;
}
.feature {
  width: 170px;
  padding: 18px 18px 16px;
  border-radius: 14px;
}
.feature .mono {
  color: var(--accent-2);
  font-size: 9px;
}
.feature h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 8px 0 6px;
}
.feature p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================
   02 WORKS
   ========================================================== */
.works-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.works-bg-layer {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: transform, opacity;
}
.works-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      90deg,
      rgba(24, 26, 31, 0.97) 0%,
      rgba(24, 26, 31, 0.93) 30%,
      rgba(24, 26, 31, 0.78) 38%,
      rgba(24, 26, 31, 0.45) 52%,
      rgba(24, 26, 31, 0.28) 100%
    ),
    linear-gradient(0deg, rgba(24, 26, 31, 0.9) 0%, transparent 40%),
    linear-gradient(180deg, rgba(24, 26, 31, 0.7) 0%, transparent 30%);
}
@media (max-width: 1024px) {
  /* Stacked layout: text sits on top, so darken from the top down */
  .works-bg::after {
    background: linear-gradient(
      180deg,
      rgba(24, 26, 31, 0.95) 0%,
      rgba(24, 26, 31, 0.88) 45%,
      rgba(24, 26, 31, 0.55) 70%,
      rgba(24, 26, 31, 0.9) 100%
    );
  }
}
.works .slide-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 4vw, 80px);
  align-items: center;
  padding-right: 0;
}
.works-info {
  position: relative;
  z-index: 2;
  max-width: 480px;
}
.works-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.works-meta .sep {
  width: 24px;
  height: 1px;
  background: currentColor;
}
.works-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.8vw, 3.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
  min-height: 1.1em;
}
.works-title .ch {
  display: inline-block;
}
.works-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  margin-bottom: 22px;
  max-width: 440px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}
.tags li {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.8);
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.play-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  transition:
    background 0.4s,
    border-color 0.4s,
    transform 0.4s;
}
.play-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--accent-2);
  opacity: 0;
  animation: ring 2s infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}
.play-icon svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  margin-left: 3px;
}
.play-btn:hover .play-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.works-stage {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.works-track {
  position: relative;
  height: 440px;
}
.wcard {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  background: #111;
  will-change: transform, width, height, opacity;
}
.wcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.wcard:hover img {
  transform: scale(1.08);
}
.wcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 26, 31, 0.95) 0%,
    rgba(24, 26, 31, 0.2) 55%,
    rgba(24, 26, 31, 0.1) 100%
  );
}
.wcard {
  --glow: #1e6bff;
  transition:
    border-color 0.6s,
    box-shadow 0.8s;
}
/* Selected card: 20% white border + glow in the project's own `shadow` color (js/data.js) */
.wcard.active {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 24px 70px -8px color-mix(in srgb, var(--glow) 80%, transparent),
    0 0 36px -2px color-mix(in srgb, var(--glow) 55%, transparent);
}
.wcard-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}
.wcard-body .mono {
  font-size: 9px;
  color: var(--accent-2);
}
.wcard-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  margin-top: 6px;
}
.wcard.active .wcard-body h3 {
  font-size: 17px;
}
.wcard-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
}
.works-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-right: clamp(20px, 7vw, 120px);
}
.arrows {
  display: flex;
  gap: 10px;
}
.arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  transition:
    background 0.3s,
    border-color 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.arrow-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
}
.arrow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.works-count {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
}
.works-count #w-num {
  color: #fff;
}
.works-count #w-total {
  color: var(--muted);
}
.count-line {
  width: 80px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.count-line i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  visibility: hidden;
}
.modal.open {
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 10, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
}
.modal-box {
  position: relative;
  width: min(94vw, 1600px);
  height: 90vh;
  height: 90dvh;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: 22px;
  background: rgba(30, 32, 38, 0.82);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 6px 16px;
}
.modal-head .mono {
  color: var(--accent-2);
  font-size: 10px;
}
.modal-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(14px, 2vw, 20px);
  text-transform: uppercase;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.close-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition:
    background 0.3s,
    transform 0.5s var(--ease);
  flex-shrink: 0;
}
.close-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 21px;
  height: 1px;
  background: #fff;
  transform: rotate(45deg);
}
.close-btn span + span {
  transform: rotate(-45deg);
}
.close-btn:hover {
  background: var(--accent);
  transform: rotate(90deg);
}
.modal-video {
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.modal-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================
   03 CLIENTS
   ========================================================== */
.clients .slide-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 3.4vh, 34px);
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 50px;
}
.section-head {
  padding: 0 var(--pad-x);
}
.section-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Subtitle sits over the particles, so it gets its own frosted card for legibility */
.section-head.center .section-sub {
  margin-top: 14px;
  max-width: 600px;
  padding: 12px 26px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 16px 40px -18px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.section-head.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0;
  margin-bottom: 38px;
}
.marquee {
  position: relative;
  overflow: hidden;
  margin: 0 clamp(24px, 6vw, 110px);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 20%,
    #000 80%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 20%,
    #000 80%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
  padding: 4px 0;
}
.marquee.reverse .marquee-track {
  animation-direction: reverse;
  animation-duration: 46s;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 8px));
  }
}
.logo-tile {
  width: clamp(170px, 18vw, 230px);
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.55);
  transition:
    color 0.4s,
    border-color 0.4s,
    background 0.4s;
  flex-shrink: 0;
  background: linear-gradient(135deg, #373a42, #26282e);
}
.logo-tile:hover {
  color: #fff;
  border-color: rgba(77, 178, 255, 0.5);
  background: linear-gradient(135deg, #2f3d58, #252a35);
}
.logo-tile svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.logo-tile .lname {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
}
/* White silhouette by default; original colors + slight zoom on hover.
   Same filter functions in both states so the color change animates smoothly. */
.logo-tile img {
  height: auto;
  opacity: 0.8;
  filter: grayscale(1) brightness(2.2);
  transition:
    filter 0.5s ease,
    opacity 0.4s,
    transform 0.5s var(--ease);
}
.logo-tile:hover img {
  opacity: 1;
  filter: brightness(1) invert(0);
  transform: scale(1.1);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 var(--pad-x);
}
.stat {
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stat strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.stat > span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--accent-2);
}
.stat p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.stat::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -50px;
  width: 380px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(30 107 255 / 17%), transparent 70%);
}

/* ==========================================================
   04 SERVICES
   ========================================================== */
.services .slide-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 40px;
}
.services .section-title {
  font-size: clamp(1.6rem, 3vw, 3rem);
}
.services .section-head.split {
  margin-bottom: 28px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1200px;
}
.service {
  position: relative;
  padding: 24px 24px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s;
  --mx: 50%;
  --my: 50%;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    360px circle at var(--mx) var(--my),
    rgba(77, 178, 255, 0.16),
    transparent 45%
  );
}
.service:hover {
  border-color: rgba(77, 178, 255, 0.35);
}
.service:hover::before {
  opacity: 1;
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(30, 107, 255, 0.35),
    rgba(77, 178, 255, 0.1)
  );
  border: 1px solid rgba(77, 178, 255, 0.25);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon svg * {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}
.service:hover .service-icon svg * {
  animation: draw 1.2s var(--ease);
}
@keyframes draw {
  from {
    stroke-dashoffset: 120;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.service-num {
  font-family: var(--font-display);
  font-size: 28px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.18);
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.service .tags {
  margin: auto 0 0;
}
.service .tags li {
  font-size: 10px;
  padding: 4px 10px;
}
.service-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service:hover .service-line {
  transform: scaleX(1);
}

/* ==========================================================
   05 CTA
   ========================================================== */
.cta-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.cta-bg img {
  position: absolute;
  right: 0;
  top: 0;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(0.4) contrast(1.1) brightness(0.8);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 30%,
      rgba(24, 26, 31, 0.85) 45%,
      rgba(24, 26, 31, 0.25) 75%,
      rgba(24, 26, 31, 0.5) 100%
    ),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    linear-gradient(180deg, rgba(24, 26, 31, 0.8) 0%, transparent 25%),
    linear-gradient(
      120deg,
      rgba(30, 107, 255, 0.22),
      rgba(10, 63, 214, 0.12) 60%,
      rgba(77, 178, 255, 0.08)
    );
}
.cta-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 40vw;
  height: 40vw;
  left: -10vw;
  top: 10%;
  background: rgba(66, 162, 255, 0.1);
  animation: float 12s ease-in-out infinite;
}
.orb-2 {
  width: 30vw;
  height: 30vw;
  right: 10%;
  bottom: -10%;
  background: rgba(77, 178, 255, 0.12);
  animation: float 14s ease-in-out infinite reverse;
}
@keyframes float {
  50% {
    transform: translate(6vw, -4vh) scale(1.1);
  }
}
.cta .slide-inner {
  display: flex;
  align-items: center;
  padding-bottom: 40px;
}
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 5.4vw, 5.6rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.cta-title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.04em 0.1em 0.04em 0;
  margin-right: 0.12em;
}
.cta-title .wi {
  display: inline-block;
}
.cta-title .outline {
  -webkit-text-stroke: 1.5px #fff;
}
.grad-anim {
  background: linear-gradient(
    90deg,
    #8fd0ff,
    var(--accent-2),
    var(--accent),
    #1552d8,
    var(--accent-2),
    #8fd0ff
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradmove 6s linear infinite;
}
@keyframes gradmove {
  to {
    background-position: 300% 0;
  }
}
.cta-text {
  font-size: clamp(15px, 1.2vw, 18px);
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 30px;
  font-weight: 300;
}

/* ==========================================================
   06 CONTACT
   ========================================================== */
.contact .slide-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 110px);
  align-items: center;
  padding-bottom: 64px;
}
.contact .section-title {
  margin-bottom: 22px;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 138, 0.3);
  background: rgba(46, 230, 138, 0.06);
  color: #c4f5da;
  margin-bottom: 26px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.contact-list .mono {
  color: var(--muted);
  font-size: 10px;
}
.contact-list a,
.contact-list p {
  font-size: clamp(16px, 1.5vw, 22px);
  transition: color 0.3s;
}
.contact-list a:hover {
  color: var(--accent-2);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.socials a {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  transition:
    background 0.3s,
    border-color 0.3s;
}
.socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.contact-form {
  position: relative;
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent-2);
  font-size: 10px;
}
.form-head .dots {
  display: flex;
  gap: 6px;
}
.form-head .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.form-head .dots i:first-child {
  background: var(--accent-2);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  position: relative;
  display: block;
}
.field input,
.field textarea {
  width: 100%;
  padding: 22px 16px 10px;
  border-radius: 12px;
  resize: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-2);
  background: rgba(30, 107, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(77, 178, 255, 0.08);
}
.field span {
  position: absolute;
  left: 17px;
  top: 16px;
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}
.field input:focus + span,
.field input:not(:placeholder-shown) + span,
.field textarea:focus + span,
.field textarea:not(:placeholder-shown) + span {
  top: 7px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent-2);
}
.field.error input,
.field.error textarea {
  border-color: #ff4d6d;
}
.field-label {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: -6px;
}
/* Spam honeypot — kept out of sight and out of the tab order */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.contact-form .btn:disabled {
  cursor: wait;
  opacity: 0.75;
}
.form-error {
  visibility: hidden;
  opacity: 0;
  margin-top: -6px;
  font-size: 13px;
  line-height: 1.5;
  color: #ff8a9a;
}
.form-error:empty {
  display: none;
}
.form-error a {
  color: #fff;
  text-decoration: underline;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.3s;
}
.chip:hover {
  border-color: rgba(77, 178, 255, 0.5);
}
.chip.on {
  background: linear-gradient(120deg, var(--accent-3), var(--accent));
  border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(30, 107, 255, 0.8);
}
.form-success {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 30px;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  visibility: hidden;
  opacity: 0;
}
.form-success h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 18px;
}
.form-success p {
  color: var(--muted);
  max-width: 300px;
  font-size: 14px;
}
.ok-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 40px rgba(77, 178, 255, 0.5);
}
.ok-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.form-success.show svg {
  animation: check 0.6s 0.3s forwards;
}
@keyframes check {
  to {
    stroke-dashoffset: 0;
  }
}
.footer {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 26px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--accent-2);
  box-shadow: 0 0 10px var(--accent-2);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    margin 0.35s var(--ease),
    background 0.35s,
    border-color 0.35s;
}
.cursor.hover .cursor-ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(77, 178, 255, 0.08);
  border-color: var(--accent-2);
}
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1200px) {
  .hero-features {
    display: none;
  }
  .services-grid {
    gap: 14px;
  }
  .service {
    padding: 24px 20px;
  }
}

@media (max-width: 1024px) {
  .nav,
  .status {
    display: none;
  }
  .burger {
    display: block;
  }
  .mobile-section {
    display: block;
  }
  .header-right .btn {
    display: none;
  }
  .rail,
  .scroll-hint {
    display: none;
  }
  .grid-lines span:nth-child(odd) {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .works .slide-inner {
    grid-template-columns: 1fr;
    align-content: center;
    padding-right: 0;
    gap: 34px;
  }
  .works-info {
    max-width: 620px;
    padding-right: var(--pad-x);
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }
  .hero .slide-inner {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(var(--header-h) - 10px);
  }
  .hero-visual {
    order: -1;
    position: relative;
    right: auto;
    bottom: auto;
    height: 48vh;
    height: 48dvh;
    max-width: 100%;
    margin: 0 auto;
    flex-shrink: 0;
  }
  .hero-content {
    margin-top: -7vh;
  }
  .hero-block {
    height: 150px;
    width: 48px;
    left: -20px;
    top: 4px;
  }
  .hud-ni {
    left: -12%;
  }
  .hud-ai {
    right: -12%;
  }
  .hud-line {
    width: 30px;
  }

  .section-head.split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .contact .slide-inner {
    grid-template-columns: 1fr;
  }
  .footer {
    position: static;
    grid-column: 1 / -1;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .cta-bg img {
    width: 100%;
    opacity: 0.7;
  }
  .cta-bg::after {
    background:
      linear-gradient(
        0deg,
        var(--bg) 10%,
        rgba(24, 26, 31, 0.7) 55%,
        rgba(24, 26, 31, 0.4) 100%
      ),
      linear-gradient(
        120deg,
        rgba(30, 107, 255, 0.22),
        rgba(10, 63, 214, 0.12) 60%,
        rgba(77, 178, 255, 0.08)
      );
  }
  .cta .slide-inner {
    align-items: flex-end;
  }
}

@media (max-width: 640px) {
  .slide-inner {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 50px;
  }
  .hero-title .line {
    font-size: clamp(1.5rem, 8.4vw, 3rem);
  }
  .hero-title .small {
    font-size: 0.8rem;
    letter-spacing: 0.7em;
  }
  .hero-bio {
    font-size: 13px;
  }
  .btn {
    height: 48px;
    padding: 0 22px;
    font-size: 11px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service {
    min-height: 0;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px 16px;
  }
  .clients .slide-inner {
    padding-left: 0;
    padding-right: 0;
    gap: 24px;
  }
  .section-head {
    padding: 0 20px;
  }
  .stats {
    padding: 0 20px;
  }
  .logo-tile {
    height: 74px;
  }
  .works-controls {
    padding-right: 20px;
    margin-top: 22px;
  }
  .arrow-btn {
    width: 44px;
    height: 44px;
  }
  .works-desc {
    font-size: 14px;
  }
  .modal-box {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    padding: 14px;
  }
  .modal-head .btn {
    display: none;
  }
  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
