/* ==========================================================================
   Sagtech Entertainment Pvt Ltd — site styles
   Theme: blue & white
   ========================================================================== */

:root {
  --blue-50: #eff5ff;
  --blue-100: #dbe8ff;
  --blue-200: #bfd5ff;
  --blue-300: #8fb6ff;
  --blue-400: #5a8eff;
  --blue-500: #2f6bff;
  --blue-600: #1a52f0;
  --blue-700: #1440c4;
  --blue-800: #12339a;
  --navy-900: #0a1a46;
  --navy-950: #060f2e;
  --sky: #38bdf8;

  --white: #ffffff;
  --ink: #0b1530;
  --ink-2: #33415e;
  --ink-3: #66728c;
  --line: #e3e9f5;
  --surface: #f6f9ff;

  --grad: linear-gradient(120deg, var(--blue-600) 0%, var(--blue-400) 55%, var(--sky) 100%);
  --shadow-sm: 0 2px 8px rgba(16, 42, 110, 0.06);
  --shadow-md: 0 14px 40px -12px rgba(16, 42, 110, 0.22);
  --shadow-lg: 0 30px 80px -24px rgba(16, 42, 110, 0.35);

  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 1240px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--blue-600);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue-600);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  box-shadow: 0 10px 30px -10px rgba(26, 82, 240, 0.6);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:hover { box-shadow: 0 16px 40px -12px rgba(26, 82, 240, 0.75); }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost::before { background: var(--blue-50); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue-300); }

.btn--white { background: #fff; color: var(--blue-700); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4); }
.btn--white::before { background: var(--blue-50); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header.hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand__sub { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-600); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-50); }
.nav__link.active { color: var(--blue-700); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-600);
  transform: translateX(-50%);
}
.header .btn { padding: 13px 24px; font-size: 15.5px; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 85% -10%, var(--blue-100), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, var(--blue-50), transparent 60%),
              #fff;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.6;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  animation: float 16s ease-in-out infinite;
}
.blob--1 { width: 460px; height: 460px; background: var(--blue-300); top: -120px; right: 8%; }
.blob--2 { width: 360px; height: 360px; background: #a5d8ff; bottom: -80px; left: 30%; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.08); }
  66% { transform: translate(-30px, 20px) scale(0.95); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
}
.eyebrow__dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(0.55); opacity: 0.6; } }

.hero__title {
  margin: 26px 0 24px;
  font-size: clamp(44px, 5.6vw, 82px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; white-space: nowrap; }
.hero__title .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.loaded .hero__title .word { transform: none; }

.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.hero__meta div { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.hero__meta svg { width: 20px; height: 20px; color: var(--blue-600); }

.hero__visual { position: relative; height: 580px; }
.hero__photo {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--main { inset: 30px 60px 70px 40px; }
.hero__photo--main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 26, 70, 0.55));
}
.hero__photo--side { width: 200px; height: 240px; right: 0; bottom: 0; border: 6px solid #fff; }
.hero__photo--top { width: 170px; height: 150px; left: 0; top: 0; border: 6px solid #fff; }

.float-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-display); font-size: 16px; }
.float-card span { color: var(--ink-3); font-size: 13.5px; }
.float-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  flex: none;
}
.float-card__icon svg { width: 20px; height: 20px; }
.float-card--a { left: -10px; bottom: 110px; }
.float-card--b { right: 20px; top: 70px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.hero__caption {
  position: absolute;
  left: 70px;
  bottom: 96px;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 1;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid var(--blue-200);
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-600);
  transform: translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Clients marquee ---------- */
.clients { padding: 56px 0; border-block: 1px solid var(--line); background: #fff; }
.clients__label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 80px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #8795b3;
  white-space: nowrap;
  transition: color 0.3s;
}
.client:hover { color: var(--blue-700); }
.client small { font-size: 11px; letter-spacing: 0.2em; font-weight: 600; text-transform: uppercase; }
.client__badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 150px) 0; position: relative; }
.section--tint { background: var(--surface); }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.section-title { font-size: clamp(38px, 5.2vw, 66px); font-weight: 700; }
.section-lead { font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 520px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.service {
  position: relative;
  grid-column: span 2;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service--wide { grid-column: span 3; }
.service:hover { box-shadow: var(--shadow-lg); }
.service__img { position: absolute; inset: 0; z-index: -2; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__img img { transform: scale(1.08); }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 26, 70, 0.05) 0%, rgba(10, 26, 70, 0.55) 45%, rgba(6, 15, 46, 0.94) 100%);
  transition: background 0.5s var(--ease);
}
.service:hover::before {
  background: linear-gradient(180deg, rgba(26, 82, 240, 0.25) 0%, rgba(20, 64, 196, 0.7) 45%, rgba(6, 15, 46, 0.96) 100%);
}
.service__num {
  position: absolute;
  top: 26px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.service__arrow {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--blue-700);
  transform: scale(0.6) rotate(-45deg);
  opacity: 0;
  transition: all 0.45s var(--ease);
}
.service__arrow svg { width: 18px; height: 18px; }
.service:hover .service__arrow { transform: none; opacity: 1; }
.service h3 { color: #fff; font-size: clamp(25px, 2.4vw, 31px); margin-bottom: 12px; }
.service p { color: rgba(255, 255, 255, 0.88); font-size: 16.5px; max-width: 440px; }
.service__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.service__more > div { overflow: hidden; }
.service:hover .service__more,
.service:focus-within .service__more { grid-template-rows: 1fr; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* ---------- Questions band ---------- */
.questions {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  color: #fff;
  border-radius: 36px;
  padding: clamp(56px, 8vw, 100px) clamp(28px, 6vw, 80px);
  isolation: isolate;
}
.questions::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(600px 400px at 90% 0%, rgba(47, 107, 255, 0.55), transparent 60%),
              radial-gradient(500px 400px at 0% 100%, rgba(56, 189, 248, 0.25), transparent 60%);
}
.questions__orb {
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(143, 182, 255, 0.25);
  z-index: -1;
  animation: spin 40s linear infinite;
}
.questions__orb::before, .questions__orb::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(143, 182, 255, 0.18);
}
.questions__orb::before { inset: 60px; }
.questions__orb::after { inset: -4px auto auto 50%; width: 10px; height: 10px; background: var(--sky); border: 0; box-shadow: 0 0 20px var(--sky); }
@keyframes spin { to { transform: rotate(360deg); } }

.questions__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.questions h2 { color: #fff; font-size: clamp(36px, 4.6vw, 58px); }
.questions .kicker { color: var(--blue-300); }
.questions__list { display: grid; gap: 16px; }
.question {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.question:hover { background: rgba(47, 107, 255, 0.18); border-color: rgba(143, 182, 255, 0.4); transform: translateX(8px); }
.question span {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--blue-300); color: var(--blue-700); }
.filter.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: 0 8px 24px -8px rgba(26, 82, 240, 0.6); }
.filter b { font-weight: 600; opacity: 0.7; margin-left: 4px; font-size: 12px; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  text-align: left;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.4s;
}
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.project.is-hidden { display: none; }
.project__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project:hover .project__media img { transform: scale(1.07); }
.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(26, 82, 240, 0.45), transparent 60%);
  mix-blend-mode: multiply;
}
.project__badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project__body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project__cat { font-size: 13.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); }
.project h3 { font-size: 27px; }
.project p { color: var(--ink-2); font-size: 17px; }
.project__link {
  margin-top: auto;
  padding-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--blue-700);
}
.project__link svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.project:hover .project__link svg { transform: translateX(5px); }
.disclaimer { margin-top: 36px; font-size: 15px; color: var(--ink-3); text-align: center; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 16px;
  visibility: hidden;
  pointer-events: none;
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 46, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.modal.open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(40px) scale(0.97);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease);
}
.modal.open .modal__panel { transform: none; opacity: 1; }
.modal__hero { position: relative; height: 280px; }
.modal__hero img { width: 100%; height: 100%; object-fit: cover; }
.modal__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(6, 15, 46, 0.85)); }
.modal__hero-text { position: absolute; left: 36px; right: 36px; bottom: 28px; z-index: 1; color: #fff; }
.modal__hero-text h3 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-top: 8px; }
.modal__hero-text .project__cat { color: var(--blue-200); }
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.3s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }
.modal__body { padding: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.modal__col h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.modal__col h4 span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue-50);
  font-size: 12px;
}
.modal__col p { color: var(--ink-2); font-size: 16.5px; }
.modal__foot { padding: 0 36px 32px; font-size: 14px; color: var(--ink-3); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__visual { position: relative; height: 600px; }
.about__img { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { inset: 0 90px 120px 0; }
.about__img--b { width: 300px; height: 280px; right: 0; bottom: 0; border: 8px solid #fff; }
.about__stamp {
  position: absolute;
  left: 32px;
  bottom: 40px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.about__stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.about__stamp b { font-family: var(--font-display); font-size: 32px; letter-spacing: -0.04em; }
.about__intro { font-size: clamp(19px, 1.8vw, 22px); color: var(--ink); font-weight: 500; margin: 24px 0 18px; line-height: 1.5; }
.about__text { color: var(--ink-2); font-size: 18px; }
.principles { display: grid; gap: 14px; margin-top: 36px; }
.principle {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.35s, transform 0.35s var(--ease);
}
.principle:hover { box-shadow: inset 0 0 0 1.5px var(--blue-300), var(--shadow-md); transform: translateY(-3px); }
.principle__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
}
.principle__icon svg { width: 24px; height: 24px; }
.principle h4 { font-size: 20px; margin-bottom: 4px; }
.principle p { color: var(--ink-2); font-size: 16.5px; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.process__line i { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease); }
.process.in .process__line i { transform: scaleX(1); }
.step { position: relative; padding-top: 0; }
.step__dot {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  color: var(--blue-600);
  margin-bottom: 28px;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.step:hover .step__dot { background: var(--blue-600); color: #fff; transform: translateY(-6px) rotate(-6deg); }
.step__dot svg { width: 28px; height: 28px; }
.step__num { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue-600); }
.step h3 { font-size: 28px; margin: 6px 0 12px; }
.step p { color: var(--ink-2); font-size: 17px; }

.process-photo {
  margin-top: 80px;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow-lg);
}
.process-photo img { width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.process-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 15, 46, 0.88) 0%, rgba(20, 64, 196, 0.5) 55%, transparent 100%); }
.process-photo__text { position: absolute; z-index: 1; left: clamp(28px, 6vw, 72px); top: 50%; transform: translateY(-50%); max-width: 520px; color: #fff; }
.process-photo__text h3 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.process-photo__text p { color: rgba(255, 255, 255, 0.9); font-size: 18.5px; margin-bottom: 28px; }

/* ---------- Tech strip ---------- */
.tech { padding: 70px 0; background: var(--navy-950); color: #fff; overflow: hidden; }
.tech .marquee__track { gap: 18px; animation-duration: 40s; }
.tech .marquee + .marquee { margin-top: 18px; }
.tech .marquee--rev .marquee__track { animation-direction: reverse; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.contact__info .section-title { margin-bottom: 20px; }
.contact__info .section-lead { margin-bottom: 40px; }
.company-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--blue-700), var(--navy-900));
  color: #fff;
  padding: 32px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.company-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent 70%);
  z-index: -1;
}
.company-card h3 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.company-card > p { color: var(--blue-200); font-size: 15.5px; margin-bottom: 26px; }
.company-card dl { margin: 0; display: grid; gap: 18px; }
.company-card dl div { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.company-card dt {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}
.company-card dt svg { width: 19px; height: 19px; }
.company-card dd { margin: 0; font-size: 16.5px; }
.company-card dd small { display: block; color: var(--blue-200); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.company-card a:hover { text-decoration: underline; }

.form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line);
}
.form h3 { font-size: 28px; margin-bottom: 6px; }
.form__fields > p { color: var(--ink-3); font-size: 16.5px; margin-bottom: 30px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  padding: 15px 17px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2333415e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.14);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #e5484d; }
.field__error { display: none; color: #d93036; font-size: 14px; margin-top: 6px; }
.field.invalid .field__error { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); margin: 6px 0 24px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-600); flex: none; }
.consent a { color: var(--blue-700); font-weight: 600; text-decoration: underline; }
.form__note { font-size: 14px; color: var(--ink-3); margin-top: 16px; }
.form__success {
  display: none;
  text-align: center;
  padding: 40px 10px;
}
.form__success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  animation: pop 0.6s var(--ease);
}
.form__success-icon svg { width: 34px; height: 34px; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.form.sent .form__fields { display: none; }
.form.sent .form__success { display: block; }

/* ---------- CTA band ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: clamp(56px, 8vw, 96px) clamp(28px, 6vw, 80px);
  background: var(--grad);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.cta h2 { color: #fff; font-size: clamp(34px, 5vw, 60px); margin-bottom: 18px; }
.cta p { font-size: 20px; color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); padding: 88px 0 36px; margin-top: clamp(88px, 11vw, 150px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--blue-300); }
.footer__tag { margin-top: 20px; max-width: 340px; font-size: 16.5px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 16.5px; }
.footer a { transition: color 0.25s; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; font-size: 16.5px; display: grid; gap: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 30px; font-size: 15px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-600);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(26, 82, 240, 0.6);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue-700); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--left { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal--zoom { transform: scale(0.92); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 160px 0 64px; background: radial-gradient(900px 400px at 80% 0%, var(--blue-100), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.legal-hero p { color: var(--ink-3); margin-top: 14px; }
.legal { padding: 64px 0 0; }
.legal__body { max-width: 780px; }
.legal__body h2 { font-size: 24px; margin: 44px 0 14px; }
.legal__body p, .legal__body li { color: var(--ink-2); font-size: 18px; }
.legal__body p + p { margin-top: 14px; }
.legal__body ul { padding-left: 22px; display: grid; gap: 8px; }
.legal__body a { color: var(--blue-700); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__visual { height: 520px; max-width: 640px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service, .service--wide { grid-column: span 1; }
  .service:last-child { grid-column: span 2; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about__visual { max-width: 640px; height: 540px; }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .questions__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .menu-toggle { display: block; }
  .menu-open .nav {
    display: flex;
    position: fixed;
    inset: 80px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: drop 0.35s var(--ease);
  }
  .menu-open .nav__link { padding: 14px 18px; font-size: 17px; }
  .menu-open .header { background: #fff; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .process__line { display: none; }
  .modal__body { grid-template-columns: 1fr; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero__visual { height: 400px; }
  .hero__photo--main { inset: 20px 30px 50px 20px; }
  .hero__photo--side { width: 130px; height: 160px; }
  .hero__photo--top { width: 110px; height: 100px; }
  .float-card--b { display: none; }
  .float-card--a { left: 0; bottom: 70px; }
  .hero__caption { display: none; }
  .scroll-cue { display: none; }
  .services { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .service { min-height: 400px; }
  .service__more { grid-template-rows: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .about__visual { height: 420px; }
  .about__img--a { inset: 0 50px 90px 0; }
  .about__img--b { width: 190px; height: 180px; }
  .about__stamp { width: 100px; height: 100px; left: 16px; bottom: 24px; }
  .about__stamp b { font-size: 24px; }
  .process { grid-template-columns: 1fr; }
  .process-photo { height: 460px; }
  .process-photo::after { background: linear-gradient(180deg, rgba(6, 15, 46, 0.5), rgba(6, 15, 46, 0.92)); }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .client { font-size: 20px; }
  .modal__hero { height: 220px; }
  .modal__hero-text { left: 24px; right: 24px; }
  .modal__body { padding: 26px; }
  .modal__foot { padding: 0 26px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero__title .word { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
