@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --void: #05070f;
  --space: #0a0f1f;
  --space-2: #11182b;
  --panel: rgba(17, 24, 43, 0.72);
  --panel-solid: #121a2e;
  --ink: #eef2ff;
  --muted: #9aa6c3;
  --cobalt: #5b84ff;
  --cobalt-deep: #3d6bff;
  --violet: #8b5cf6;
  --coral: #ff6b4a;
  --star: #f7f9ff;
  --line: rgba(255, 255, 255, 0.1);
  --glow-blue: rgba(61, 107, 255, 0.45);
  --glow-coral: rgba(255, 107, 74, 0.35);
  --glow-violet: rgba(139, 92, 246, 0.35);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Sora", "Figtree", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--void);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient galaxy atmosphere behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(61, 107, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(139, 92, 246, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 90%, rgba(255, 107, 74, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(61, 107, 255, 0.08), transparent 50%),
    var(--void);
}

/* Animated starfield + cursor FX canvas */
.space-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(91, 132, 255, 0.22) 0%, rgba(139, 92, 246, 0.12) 35%, transparent 68%);
  mix-blend-mode: screen;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.35s ease;
  will-change: transform;
}

.cursor-glow.is-on {
  opacity: 1;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 6;
  opacity: 0;
  background: #fff;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(91, 132, 255, 0.8),
    0 0 36px rgba(255, 107, 74, 0.35);
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.25s ease;
  will-change: transform;
}

.cursor-dot.is-on {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow,
  .cursor-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .space-canvas,
  .cursor-glow,
  .cursor-dot {
    display: none !important;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Attractive galaxy header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0.85rem 0 0;
}

.site-header .nav-shell {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(17, 24, 43, 0.82),
    rgba(20, 18, 40, 0.72)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(61, 107, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s ease;
}

.site-header.scrolled .nav-shell {
  border-color: rgba(91, 132, 255, 0.35);
  box-shadow:
    0 0 40px rgba(61, 107, 255, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav {
  display: contents;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: var(--star);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(61, 107, 255, 0.45);
}

.brand span em {
  font-style: normal;
  background: linear-gradient(120deg, var(--cobalt), #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  color: var(--star);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  box-shadow: inset 0 0 0 1px rgba(91, 132, 255, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b4a, #ff3d6e 55%, #b44bff);
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(255, 107, 74, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(255, 107, 74, 0.45);
  color: #ffffff !important;
}

.nav-links a.btn-primary,
.nav-links .btn-primary {
  padding: 0.72rem 1.2rem;
  margin-left: 0.35rem;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff6b4a, #ff3d6e 55%, #b44bff);
  border: 0;
  box-shadow: 0 8px 24px rgba(255, 107, 74, 0.4);
}

.nav-links a.btn-primary:hover,
.nav-links .btn-primary:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff7d61, #ff5280 55%, #c25bff);
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--star);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--cobalt);
  color: #c7d4ff;
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--star);
  font-size: 1.2rem;
  border: 1px solid var(--line);
}

/* —— Galaxy hero —— */
.hero {
  position: relative;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: 0.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: galaxy-drift 28s ease-in-out infinite alternate;
}

@keyframes galaxy-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-2%, 1%, 0);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 20% 50%, rgba(5, 7, 15, 0.55), transparent 70%),
    linear-gradient(105deg, rgba(5, 7, 15, 0.82) 0%, rgba(5, 7, 15, 0.45) 48%, rgba(5, 7, 15, 0.55) 100%),
    linear-gradient(to top, var(--void) 0%, transparent 35%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-float 12s ease-in-out infinite alternate;
}

.hero-orbs span:nth-child(1) {
  width: 280px;
  height: 280px;
  left: 55%;
  top: 15%;
  background: var(--glow-blue);
}

.hero-orbs span:nth-child(2) {
  width: 220px;
  height: 220px;
  right: 8%;
  bottom: 18%;
  background: var(--glow-violet);
  animation-delay: -4s;
}

.hero-orbs span:nth-child(3) {
  width: 160px;
  height: 160px;
  left: 12%;
  bottom: 22%;
  background: var(--glow-coral);
  animation-delay: -2s;
}

@keyframes orb-float {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-28px) scale(1.08);
  }
}

.hero-inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 3.25rem;
  max-width: 44rem;
}

.hero-philosophy {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c7d4ff;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.05s forwards;
}

.hero-philosophy img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(2.15rem, 4.4vw, 3.25rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 14ch;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.18s forwards;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #9db4ff, #e9d5ff 45%, #ffb4a2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 0.85rem;
  max-width: 34rem;
  color: rgba(238, 242, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.32s forwards;
}

.hero-credo {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-style: italic;
  border-left: 2px solid rgba(91, 132, 255, 0.55);
  padding-left: 1rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section.alt {
  background: linear-gradient(
    180deg,
    rgba(17, 24, 43, 0.35),
    rgba(10, 15, 31, 0.6)
  );
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.6rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #ffb4a2;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.22;
  font-weight: 600;
  color: var(--star);
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-hero {
  padding: 5.5rem 0 2.8rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(61, 107, 255, 0.25), transparent 45%),
    radial-gradient(ellipse at 85% 30%, rgba(139, 92, 246, 0.18), transparent 40%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  max-width: 16ch;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Capabilities — creative bento */
.capabilities-section {
  position: relative;
  overflow: hidden;
}

.capabilities-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 107, 255, 0.2), transparent 70%);
  pointer-events: none;
}

.capabilities-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-tile {
  position: relative;
  padding: 1.7rem 1.5rem;
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(12, 16, 32, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 0.35s var(--ease), border-color 0.35s ease,
    box-shadow 0.35s var(--ease);
  overflow: hidden;
  isolation: isolate;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cobalt-deep), var(--violet), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}

.service-tile::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 132, 255, 0.28), transparent 70%);
  opacity: 0.55;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
  z-index: 0;
  pointer-events: none;
}

.service-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(91, 132, 255, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 48px rgba(61, 107, 255, 0.16);
}

.service-tile:hover::before {
  transform: scaleX(1);
}

.service-tile:hover::after {
  opacity: 1;
  transform: scale(1.15);
}

.service-tile > * {
  position: relative;
  z-index: 1;
}

.cap-featured {
  grid-column: span 7;
  min-height: 250px;
  display: grid;
  align-content: end;
  padding: 2rem 1.85rem;
  background:
    linear-gradient(135deg, rgba(61, 107, 255, 0.22), rgba(139, 92, 246, 0.12) 45%, rgba(255, 107, 74, 0.08)),
    rgba(12, 16, 32, 0.7);
}

.cap-featured::after {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.28), transparent 70%);
  right: -40px;
  bottom: -80px;
  top: auto;
}

.cap-side {
  grid-column: span 5;
}

.cap-wide {
  grid-column: span 6;
}

.cap-num {
  display: block;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb4a2;
  margin-bottom: 0.85rem;
}

.service-tile h3 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
}

.cap-featured h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  margin-bottom: 0.7rem;
}

.service-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.cap-featured p {
  max-width: 34rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

.cap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.15rem;
}

.cap-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #d7e0ff;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
  background: linear-gradient(145deg, rgba(61, 107, 255, 0.32), rgba(139, 92, 246, 0.18));
  color: #e8eeff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 24px rgba(61, 107, 255, 0.18);
}

.icon-mark svg {
  width: 24px;
  height: 24px;
}

.cap-coral .icon-mark {
  background: linear-gradient(145deg, rgba(255, 107, 74, 0.3), rgba(180, 75, 255, 0.18));
  box-shadow: 0 0 24px rgba(255, 107, 74, 0.2);
}

.cap-violet .icon-mark {
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.35), rgba(61, 107, 255, 0.18));
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.22);
}

/* Portfolio — horizontal showcase */
.work-section {
  overflow: hidden;
}

.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-controls {
  display: flex;
  gap: 0.55rem;
  flex-shrink: 0;
}

.work-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--star);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.work-nav:hover {
  background: rgba(61, 107, 255, 0.25);
  border-color: rgba(91, 132, 255, 0.55);
  box-shadow: 0 0 24px rgba(61, 107, 255, 0.25);
  transform: translateY(-1px);
}

.work-nav:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.work-rail-wrap {
  position: relative;
}

.work-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem max(1.25rem, calc((100vw - var(--max)) / 2)) 1.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.work-rail::-webkit-scrollbar {
  display: none;
}

.work-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.project {
  flex: 0 0 min(860px, calc(100vw - 3rem));
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  min-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17, 24, 43, 0.9), rgba(20, 16, 40, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}

.project:hover {
  border-color: rgba(91, 132, 255, 0.45);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45), 0 0 50px rgba(61, 107, 255, 0.16);
  transform: translateY(-4px);
}

.project-h .project-visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #070b16;
}

.project-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.15);
  transform: scale(1.05);
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.project:hover .project-bg {
  transform: scale(1.12);
  filter: brightness(0.55) saturate(1.25);
}

.project-phones {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.4rem 1rem 1.2rem;
  z-index: 1;
}

.project-phones img {
  width: auto;
  height: 86%;
  max-width: 46%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0f1f;
  transition: transform 0.45s var(--ease);
}

.project-phones img:first-child {
  transform: translateY(8px) rotate(-4deg);
}

.project-phones img:last-child {
  transform: translateY(0) rotate(4deg);
}

.project:hover .project-phones img:first-child {
  transform: translateY(0) rotate(-2deg);
}

.project:hover .project-phones img:last-child {
  transform: translateY(-6px) rotate(2deg);
}

.project-index {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
  pointer-events: none;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.35rem;
}

.project-link.subtle {
  color: #9db4ff;
}

.project-link.subtle:hover {
  color: #fff;
}

.project-body {
  padding: 1.75rem 1.7rem;
  display: grid;
  gap: 0.75rem;
  align-content: center;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7d4ff;
  background: rgba(61, 107, 255, 0.18);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(91, 132, 255, 0.25);
}

.project h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.project-link {
  margin-top: 0.35rem;
  font-weight: 700;
  color: #ffb4a2;
  width: fit-content;
}

.project-link:hover {
  color: #fff;
}

.work-progress {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.work-progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cobalt-deep), var(--coral));
  transition: width 0.25s var(--ease);
}

/* Philosophy band */
.philosophy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.philosophy-card {
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(61, 107, 255, 0.14), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.philosophy-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -40px;
  top: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.25), transparent 70%);
}

.philosophy-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  position: relative;
}

.philosophy-card p {
  margin: 0;
  color: var(--muted);
  position: relative;
  font-size: 1.02rem;
  line-height: 1.7;
}

.proof {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding: 0.9rem 0 0.9rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.list-check li:last-child {
  border-bottom: 0;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: rgba(61, 107, 255, 0.2);
  box-shadow: inset 0 0 0 2px var(--cobalt);
}

.list-check li::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 1.45rem;
  width: 0.4rem;
  height: 0.22rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.55rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(17, 24, 43, 0.95), rgba(30, 20, 50, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(61, 107, 255, 0.25);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  background: linear-gradient(120deg, #9db4ff, #ffb4a2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.25rem;
}

.stat span {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.process-step {
  padding: 1.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  background: linear-gradient(120deg, var(--coral), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.process-step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.contact-strip {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 107, 74, 0.22), transparent 30%),
    radial-gradient(circle at 15% 80%, rgba(61, 107, 255, 0.25), transparent 32%),
    linear-gradient(135deg, #0a0f1f, #15102a 55%, #0f1a33);
  border-block: 1px solid var(--line);
}

.contact-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.35rem;
}

.contact-strip h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.contact-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.25rem;
}

.contact-card,
.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
  backdrop-filter: blur(10px);
}

.contact-card h3,
.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
}

.contact-card p,
.card p {
  margin: 0;
  color: var(--muted);
}

.contact-card a:hover,
.card a:hover {
  color: #ffb4a2;
}

.form {
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgba(5, 7, 15, 0.55);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(154, 166, 195, 0.7);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(61, 107, 255, 0.2);
}

.form select {
  appearance: none;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
}

.footer {
  background: #04060c;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2.2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(61, 107, 255, 0.4);
}

.footer h4 {
  margin: 0 0 0.9rem;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
}

.footer p,
.footer a,
.footer li {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a:hover {
  color: #ffb4a2;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(154, 166, 195, 0.7);
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (max-width: 960px) {
  .site-header {
    padding-top: 0.65rem;
  }

  .site-header .nav-shell {
    border-radius: 20px;
    position: relative;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .proof,
  .process,
  .footer-grid,
  .contact-box,
  .stats,
  .philosophy-band {
    grid-template-columns: 1fr;
  }

  .work-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project {
    flex-basis: min(780px, calc(100vw - 2.5rem));
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-h .project-visual {
    aspect-ratio: 16 / 11;
    min-height: 220px;
  }

  .project-phones img {
    height: 88%;
    border-radius: 14px;
  }

  .process {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    top: calc(100% + 0.55rem);
    background: rgba(10, 15, 31, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
    gap: 0.2rem;
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a.btn {
    width: 100%;
    margin: 0.35rem 0 0;
    text-align: center;
  }

  .hero {
    min-height: min(58vh, 520px);
  }

  .hero-inner {
    padding: 4.75rem 0 2.75rem;
  }

  .hero h1 {
    max-width: none;
  }

  .capabilities-bento,
  .cap-featured,
  .cap-side,
  .cap-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .cap-featured {
    min-height: 0;
  }

  .nav-links a.btn-primary,
  .nav-links .btn-primary {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .process,
  .stats {
    grid-template-columns: 1fr;
  }
}
