:root {
  --bg: #05080f;
  --surface: #0a101a;
  --ink: #e8f0fa;
  --muted: #8896ab;
  --line: rgba(0, 212, 255, 0.16);
  --blue: #1a6dff;
  --cyan: #00d4ff;
  --glow: 0 0 20px rgba(0, 212, 255, 0.28);
  --font: "Vazirmatn", sans-serif;
  --latin: "Outfit", "Vazirmatn", sans-serif;
  --tech: "Orbitron", sans-serif;
  --wrap: 1120px;
  --nav: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.75;
  overflow-x: hidden;
  cursor: auto;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  height: var(--nav);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(5, 8, 15, 0.92), transparent);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--wrap), calc(100% - 3rem));
}
.brand img {
  width: 58px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.25));
}
.links {
  display: flex;
  gap: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.links a:hover { color: var(--cyan); }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.burger span {
  width: 16px;
  height: 1.5px;
  background: var(--cyan);
}
.drawer {
  display: none;
  position: fixed;
  inset: var(--nav) 0 auto;
  z-index: 35;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: rgba(5, 8, 15, 0.96);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.35s var(--ease);
}
.drawer.open { transform: translateY(0); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.25s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-neon {
  color: #041018;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  box-shadow: var(--glow);
}
.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.45);
}
.btn-line {
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--cyan);
  background: transparent;
}
.btn-line:hover {
  background: rgba(0, 212, 255, 0.08);
  box-shadow: var(--glow);
}
.btn.full { width: 100%; }

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: var(--tech);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}
.lede {
  margin: 0.6rem auto 0;
  max-width: 38ch;
  color: var(--muted);
  font-weight: 300;
}
.lede.align-start { margin-inline: 0; text-align: right; }

/* HERO — balanced split on desktop */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav) + 1.5rem) 0 4.5rem;
  overflow: hidden;
}
/* HERO media */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: saturate(1.15) contrast(1.05);
}
.hero-video.is-fallback {
  /* when video fails, poster/image layer shows */
}
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(5, 8, 15, 0.35), rgba(5, 8, 15, 0.88)),
    linear-gradient(180deg, rgba(5, 8, 15, 0.55), rgba(5, 8, 15, 0.92));
}
.hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s var(--ease) forwards;
}
.line:nth-child(2) { animation-delay: 0.2s; }
.line:nth-child(3) { animation-delay: 0.35s; }
.line:nth-child(4) { animation-delay: 0.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dot {
  opacity: 0;
  animation: pop 0.5s ease forwards, blink 2.4s ease-in-out infinite;
}
.dot:nth-child(1) { animation-delay: 1s, 1s; }
.dot:nth-child(2) { animation-delay: 1.15s, 1.3s; }
.dot:nth-child(3) { animation-delay: 1.3s, 1.6s; }
.dot:nth-child(4) { animation-delay: 1.45s, 1.9s; }
@keyframes pop { to { opacity: 1; } }
@keyframes blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.g1 {
  width: 420px; height: 420px;
  top: 12%; right: 8%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
}
.g2 {
  width: 360px; height: 360px;
  bottom: 10%; left: 6%;
  background: radial-gradient(circle, rgba(26, 109, 255, 0.2), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero-brand {
  display: flex;
  justify-content: center;
}
.logo-wrap {
  position: relative;
  width: min(340px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.logo-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-logo {
  width: 78%;
  height: auto;
  position: relative;
  z-index: 1;
  background: transparent;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 22px rgba(0, 212, 255, 0.28));
  animation: float 5.5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-copy { max-width: 34rem; }
.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--latin);
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.35);
}
.hero-copy .sub {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 34ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.75;
}

/* STORY */
.story { position: relative; }
.story-track { height: 260vh; }
.story-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: calc(var(--nav) + 1rem);
}
.story-text { position: relative; min-height: 260px; }
.story-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s var(--ease);
  pointer-events: none;
}
.story-card.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.story-card span {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--tech);
  color: var(--cyan);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}
.story-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--latin);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 650;
}
.story-card p {
  margin: 0;
  color: var(--muted);
  max-width: 32ch;
  font-size: 1.05rem;
}
.story-art {
  display: grid;
  place-items: center;
}
.story-media {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow);
}
.story-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}
.story-shot.on {
  opacity: 1;
  transform: scale(1);
}
.story-media-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 8, 15, 0.55));
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.12);
}

/* SECTIONS */
.section { padding: 6rem 0; }
.sec-head {
  text-align: center;
  margin-bottom: 2.75rem;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--latin);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 650;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.svc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(12, 18, 28, 0.9), rgba(7, 11, 18, 0.95));
  transition: 0.3s var(--ease);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.svc-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 8, 15, 0.55), rgba(5, 8, 15, 0.92)),
    var(--svc-img) center / cover no-repeat;
  opacity: 0.55;
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.svc:hover .svc-bg {
  opacity: 0.75;
  transform: scale(1.05);
}
.svc svg { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35)); }
.svc:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.svc h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.1rem;
}
.svc p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.work-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.3s var(--ease);
  background: #070d16;
}
.work-frame img,
.work-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.work-item:hover .work-frame img,
.work-item:hover .work-frame video {
  transform: scale(1.06);
}
.work-frame .work-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.work-frame video {
  position: relative;
  z-index: 1;
}
.work-frame video[hidden],
.hero-video[hidden] {
  display: none;
}
.work-tag {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(5, 8, 15, 0.65);
  border: 1px solid rgba(0, 212, 255, 0.35);
  backdrop-filter: blur(8px);
}
.work-item:hover .work-frame {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: var(--glow);
  transform: translateY(-5px);
}
.work-item h3 {
  margin: 0.9rem 0 0.2rem;
  font-size: 1.1rem;
}
.work-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: var(--tech);
  letter-spacing: 0.04em;
}

.contact {
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.contact-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.75), rgba(5, 8, 15, 0.92));
}
.contact .wrap {
  position: relative;
  z-index: 1;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.4rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.price.featured {
  border-color: rgba(0, 212, 255, 0.5);
  background: linear-gradient(165deg, rgba(14, 30, 54, 0.95), rgba(8, 12, 20, 0.98));
  box-shadow: 0 0 36px rgba(0, 120, 255, 0.14);
  transform: scale(1.03);
}
.badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(120deg, var(--blue), var(--cyan));
}
.price h3 { margin: 0.2rem 0 0; color: var(--muted); font-weight: 500; }
.amount {
  margin: 0;
  color: var(--muted);
}
.amount strong {
  font-family: var(--tech);
  font-size: 2.3rem;
  margin-left: 0.25rem;
  background: linear-gradient(120deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.price li {
  position: relative;
  padding-inline-start: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.price li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background:
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(0, 212, 255, 0.08), transparent 50%),
    linear-gradient(145deg, rgba(10, 16, 26, 0.95), rgba(5, 8, 15, 0.98));
}
.contact-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--latin);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 650;
}
.phone {
  display: inline-block;
  margin: 1.2rem 0 1rem;
  font-family: var(--tech);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  direction: ltr;
}
.form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  outline: none;
  transition: 0.2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form textarea { resize: vertical; min-height: 110px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.foot img {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.25));
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--cyan); }

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

/* Desktop comfort */
@media (min-width: 1100px) {
  :root { --wrap: 1180px; }
  .hero-inner { min-height: calc(100vh - var(--nav) - 5rem); }
  .logo-wrap { width: 360px; }
}

@media (max-width: 980px) {
  .links, .nav-inner > .btn-neon { display: none; }
  .burger { display: flex; }
  .drawer { display: flex; }
  .hero-inner,
  .story-sticky,
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  .hero-brand { order: -1; }
  .logo-wrap { width: min(280px, 68vw); }
  .hero-copy {
    text-align: center;
    max-width: none;
    margin-inline: auto;
  }
  .hero-copy .sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .story-art { order: -1; }
  .story-media { width: min(320px, 78vw); }
  .svc-grid,
  .work-grid,
  .price-grid { grid-template-columns: 1fr; }
  .price.featured { transform: none; }
  .story-track { height: 220vh; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .svc-grid,
  .work-grid,
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid .price:last-child { grid-column: 1 / -1; max-width: 420px; margin-inline: auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
