/* ============================================================
   hadierbns — portfolio (Portfolite-inspired)
   Palette: black / white / blue. Inter. Beveled dark panels.
   ============================================================ */

:root {
  --bg: #050505;
  --accent: #0055fe;
  --accent-2: #0090ff;
  --accent-glow: rgba(0, 85, 255, 0.5);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
  --muted: rgba(255, 255, 255, 0.5);
  --border-soft: rgba(255, 255, 255, 0.09);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 120px;
  --bevel: linear-gradient(180deg, #1e1e1e 0%, #121212 45%, #090909 100%);
  --bevel-hover: linear-gradient(180deg, #262626 0%, #181818 45%, #0e0e0e 100%);
  --bevel-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 1px 0 0 rgba(255, 255, 255, 0.04), inset -1px 0 0 rgba(255, 255, 255, 0.04), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 2px 3px rgba(0, 0, 0, 0.55), 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  --bevel-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 1px 0 0 rgba(255, 255, 255, 0.05), inset -1px 0 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.5), 0 32px 64px -12px rgba(0, 0, 0, 0.7);
}

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

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

body {
  background-color: #060606;
  background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 55%);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(0, 85, 255, 0.4); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Layout ---------------- */

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: 120px 0 20px;
  position: relative;
}

.section + .section { padding-top: 140px; }

.center { text-align: center; }

/* ---------------- Reveal ---------------- */

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

.reveal.in { opacity: 1; transform: none; }

.projects-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.projects-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.19s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.26s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
.quote-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.quote-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn .ico { flex: none; transition: transform 0.25s var(--ease); }

.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 17px 30px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(180deg, #1a63ff 0%, #0055fe 55%, #0048dc 100%);
  color: #fff;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 40px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2b6fff 0%, #0a5cff 55%, #0052ea 100%);
  box-shadow: 0 12px 52px rgba(0, 85, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 0 -2px 0 rgba(0, 0, 0, 0.24);
}

.btn-ghost {
  background: linear-gradient(180deg, #1f1f1f 0%, #141414 60%, #0e0e0e 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 2px 3px rgba(0, 0, 0, 0.5);
}
.btn-ghost:hover {
  background: linear-gradient(180deg, #282828 0%, #191919 60%, #121212 100%);
  border-color: rgba(255, 255, 255, 0.24);
}

/* ---------------- Section heads ---------------- */

.section-head { margin-bottom: 60px; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--text);
  text-wrap: balance;
}

.h2-narrow { max-width: 760px; }
.center .h2-narrow { margin-inline: auto; }

.lead {
  margin-top: 26px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
}
.center .lead { margin-inline: auto; }

.center-cta { margin-top: 38px; }

.cta-inner .book-note {
  margin: 18px auto 0;
  max-width: 420px;
  font-size: 14.5px;
  color: var(--muted);
}

.grad-text {
  background: linear-gradient(92deg, #3d8bff, #0090ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------------- Nav ---------------- */

.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border: none;
}

.nav.scrolled { background: transparent; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 18px 10px 10px;
  background: linear-gradient(180deg, rgba(34, 34, 38, 0.38), rgba(10, 10, 12, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 85, 255, 0.05);
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled .nav-inner {
  background: linear-gradient(180deg, rgba(28, 28, 32, 0.55), rgba(8, 8, 10, 0.7));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.45), 0 0 50px rgba(0, 85, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: #000;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.3), 0 6px 24px rgba(0, 85, 255, 0.5);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand-name {
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-inner .nav-cta {
  border-radius: 999px;
  padding: 12px 22px;
}

.nav-inner .nav-burger {
  flex: none;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 11px 10px;
}

.nav-burger span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 84px; left: 0; right: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  padding: 18px 28px 30px;
  display: none;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu.open { display: flex; transform: none; opacity: 1; pointer-events: auto; }

.mobile-menu a {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-2);
  padding: 14px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .btn {
  margin-top: 14px;
  justify-content: center;
  border: none;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 160px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-a {
  width: 700px;
  height: 480px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 85, 255, 0.4), transparent 70%);
  animation: floatA 12s ease-in-out infinite;
}

.hero-glow-b {
  width: 420px;
  height: 420px;
  bottom: -140px;
  right: 8%;
  background: radial-gradient(closest-side, rgba(0, 153, 255, 0.22), transparent 70%);
  animation: floatB 16s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(22px); }
}

@keyframes floatB {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-28px); }
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.hero-badge.in { animation: badgeBreath 6s ease-in-out infinite; }

@keyframes badgeBreath {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.82; transform: scale(1.025); }
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #0090ff;
  box-shadow: 0 0 10px rgba(0, 144, 255, 0.8);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
  margin-top: 40px;
  font-size: clamp(46px, 8.5vw, 92px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -3.5px;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 30px;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(0, 153, 255, 0.6), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
  transform-origin: top;
}

.scroll-hint.in { transform: translateX(-50%); }

@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------------- Hero video ---------------- */

.hero-video {
  position: relative;
  margin: 56px auto 0;
  width: 100%;
  max-width: 1000px;
  border-radius: 26px;
  box-shadow: 0 40px 90px -24px rgba(0, 0, 0, 0.75), 0 0 80px rgba(0, 85, 255, 0.16);
}

.hero-video-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 300px;
  background: radial-gradient(closest-side, rgba(0, 85, 255, 0.4), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: toolsDrift 11s ease-in-out infinite;
}

.hero-video-btn {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  padding: 0;
}

.hero-video-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.intro-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #fff;
  transition: opacity 0.4s var(--ease);
}

.intro-play svg {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  padding: 15px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a63ff, #0055fe);
  box-shadow: 0 10px 34px rgba(0, 85, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.intro-play-ring {
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: playPulse 2.2s var(--ease) infinite;
}

.hero-video-btn:hover .intro-play svg {
  background: linear-gradient(180deg, #2b6fff, #0a5cff);
  transform: scale(1.1);
}

.intro-pause {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), background 0.25s ease;
}

.hero-video-btn.playing .intro-play { opacity: 0; pointer-events: none; }
.hero-video-btn.playing .intro-pause { opacity: 1; transform: none; }
.hero-video-btn.playing:hover .intro-pause { background: var(--accent); }

@keyframes playPulse {
  0% { transform: scale(0.72); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ---------------- Projects ---------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--bevel-shadow);
  cursor: pointer;
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 85, 255, 0.5);
  background: var(--bevel-hover);
  box-shadow: var(--bevel-shadow-hover), 0 0 60px rgba(0, 85, 255, 0.15);
}

.video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  display: grid;
  place-items: center;
}

.work-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.work-card:hover .work-video { transform: scale(1.04); }

.video-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 42%);
  pointer-events: none;
}

.thumb-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(6px);
}

.play-btn {
  position: absolute;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s ease;
}

.play-btn .ico-play { display: block; }
.play-btn .ico-pause { display: none; }

.work-card:hover .play-btn,
.work-card.is-playing .play-btn {
  opacity: 1;
  transform: scale(1);
}

.work-card:hover .play-btn { background: rgba(0, 85, 255, 0.85); }

.work-card.is-playing .play-btn {
  background: rgba(0, 85, 255, 0.9);
  box-shadow: 0 0 34px rgba(0, 85, 255, 0.55);
}

.work-card.is-playing .play-btn .ico-play { display: none; }
.work-card.is-playing .play-btn .ico-pause { display: block; }

@media (hover: none), (pointer: coarse) {
  .play-btn {
    opacity: 1;
    transform: scale(1);
    background: rgba(0, 85, 255, 0.85);
  }
}

.work-info {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.work-info h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
  transition: color 0.3s ease;
}

.work-card:hover .work-info h3 { color: #7db4ff; }

.work-cat {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: start;
}

.about-copy h2 { margin-bottom: 26px; }

.about-copy p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 560px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 30px;
}

.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 85, 255, 0.22), rgba(0, 85, 255, 0.08));
  border: 1px solid rgba(0, 85, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  color: #c7dbff;
  font-size: 13.5px;
  font-weight: 500;
}

.about-card {
  position: sticky;
  top: 110px;
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  padding: 36px 34px;
  box-shadow: var(--bevel-shadow);
}

/* Flip experience card */
.flip-card {
  perspective: 1500px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
}

.flip-inner {
  position: relative;
  min-height: 410px;
  transform-style: preserve-3d;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-inner.flipped { transform: rotateY(180deg); }

.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-lg);
  padding: 36px 34px;
  overflow: hidden;
}

.flip-front {
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--bevel-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.flip-front::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 360px;
  height: 240px;
  background: radial-gradient(closest-side, rgba(0, 85, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.flip-logo {
  position: relative;
  width: 148px;
  height: 148px;
  border-width: 4px;
  box-shadow: 0 0 0 8px rgba(0, 85, 255, 0.22), 0 20px 60px rgba(0, 85, 255, 0.55);
}

.flip-back {
  display: flex;
  flex-direction: column;
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--bevel-shadow);
  transform: rotateY(180deg);
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 30px;
}

.about-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.exp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}

.exp-row:last-child { border-bottom: none; }

.exp-row strong {
  display: block;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.exp-row span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}

.flip-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.flip-ctas .btn {
  width: 100%;
  justify-content: center;
  padding: 12px 10px;
  font-size: 14.5px;
}

.flip-socials {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.flip-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--bevel-shadow);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.flip-socials a:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(0, 85, 255, 0.6);
  box-shadow: 0 8px 24px rgba(0, 85, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ---------------- Process ---------------- */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 60px;
}

.process-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  padding: 40px 44px;
  box-shadow: var(--bevel-shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.process-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 85, 255, 0.5);
  background: var(--bevel-hover);
  box-shadow: var(--bevel-shadow-hover);
}

.process-num {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(180deg, #4d9bff, transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.process-body h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.process-body p {
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 560px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 85, 255, 0.22), rgba(0, 85, 255, 0.08));
  border: 1px solid rgba(0, 85, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  color: #c7dbff;
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------------- Services ---------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.service-card {
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--bevel-shadow);
  transition: transform 0.35s var(--ease), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 85, 255, 0.5);
  background: var(--bevel-hover);
  box-shadow: var(--bevel-shadow-hover);
}

.service-ico {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  animation: iconFloat 5.5s ease-in-out infinite;
}

.services-grid .service-card:nth-child(2) .service-ico { animation-delay: -1.4s; }
.services-grid .service-card:nth-child(3) .service-ico { animation-delay: -2.8s; }
.services-grid .service-card:nth-child(4) .service-ico { animation-delay: -4.2s; }

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(0, 85, 255, 0.3));
  transition: transform 0.45s var(--ease), filter 0.45s ease;
}

.service-card:hover .service-img {
  transform: scale(1.08);
  filter: drop-shadow(0 16px 30px rgba(0, 85, 255, 0.5));
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
}

.card-link .ico { transition: transform 0.25s var(--ease); }
.service-card:hover .card-link .ico { transform: translateX(4px); }

/* ---------------- Tools ---------------- */

.tools-showcase {
  position: relative;
  margin: 60px auto 0;
  max-width: 1020px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 44px 84px;
  padding: 76px 56px;
  border-radius: 28px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(0, 85, 255, 0.14), transparent 55%),
    var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--bevel-shadow);
  overflow: hidden;
}

.tools-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 340px;
  background: radial-gradient(closest-side, rgba(0, 85, 255, 0.38), transparent 70%);
  filter: blur(44px);
  pointer-events: none;
  animation: toolsDrift 11s ease-in-out infinite;
}

@keyframes toolsDrift {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
  50% { transform: translateX(-40%) translateY(18px); opacity: 1; }
}

.tool-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  animation: toolFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
}

.tool-brand .tool-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.65));
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}

.tool-brand:hover .tool-logo {
  transform: translateY(-6px) scale(1.1);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 26px rgba(0, 120, 255, 0.55));
}

.tool-brand .tool-name {
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #fff;
}

.tool-brand em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}

@keyframes toolFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---------------- Reviews ---------------- */

.quote-grid {
  max-width: 840px;
  margin: 48px auto 0;
}

.quote-card {
  position: relative;
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  padding: 72px 56px 64px;
  text-align: center;
  box-shadow: var(--bevel-shadow);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 149, 255, 0.8), transparent);
  box-shadow: 0 0 24px rgba(0, 149, 255, 0.6);
}

.quote-card::after {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 240px;
  background: radial-gradient(closest-side, rgba(0, 85, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.quote-card:hover {
  border-color: rgba(0, 85, 255, 0.45);
  box-shadow: var(--bevel-shadow-hover);
}

.quote-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  color: var(--accent-2);
}

.quote-card blockquote {
  position: relative;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.72;
  letter-spacing: -0.2px;
  font-weight: 500;
  color: var(--text);
}

/* ---------------- FAQ ---------------- */

.faq-list {
  max-width: 860px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(0, 0, 0, 0.55), 0 2px 3px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.open {
  border-color: rgba(0, 85, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 85, 255, 0.12);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
  background: none;
  border: none;
  text-align: left;
  color: #fff;
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.faq-ico {
  flex: none;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.3s ease;
}

.faq-item.open .faq-ico {
  transform: rotate(180deg);
  color: var(--accent-2);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a p {
  padding: 0 32px 28px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 640px;
}

/* ---------------- CTA ---------------- */

.cta { padding-bottom: 60px; }

.cta-inner {
  position: relative;
  text-align: center;
  background: var(--bevel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 100px 60px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.6), 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

.cta-glow {
  position: absolute;
  inset: -40% 0 auto 0;
  height: 100%;
  background: radial-gradient(closest-side at 50% 0%, rgba(0, 85, 255, 0.45), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.cta-inner .section-label,
.cta-inner h2,
.cta-inner p,
.cta-inner .center-cta { position: relative; }

.cta-inner h2 {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.08;
}

.cta-inner p {
  margin: 24px auto 0;
  max-width: 520px;
  color: var(--text-2);
  font-size: 17px;
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border-soft);
  padding: 80px 0 34px;
  margin-top: 40px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  color: var(--text-2);
  font-size: 15.5px;
  transition: color 0.2s ease, transform 0.25s var(--ease);
}

.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-col .ico { color: var(--muted); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-soft);
  padding-top: 30px;
  font-size: 14px;
  color: var(--muted);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: color 0.2s ease;
}
.to-top:hover { color: #fff; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1200px) {
  :root { --pad: 70px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 50px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .quote-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 16px; padding: 34px 30px; }
  .process-num { font-size: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 1120px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 810px) {
  :root { --pad: 50px; }
  .hero { padding: 110px 0 140px; }
  .hero-title { letter-spacing: -2.5px; }
  .hero-video { margin-top: 48px; }
  .cta-inner { padding: 70px 34px; }
  .tools-showcase { gap: 40px 48px; padding: 58px 30px; }
}

@media (max-width: 560px) {
  :root { --pad: 24px; }
  .section { padding: 80px 0 10px; }
  .section + .section { padding-top: 90px; }
  .services-grid, .stats-row { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; gap: 22px; max-width: 460px; margin: 0 auto; }
  .work-info { padding: 18px 20px 22px; }
  .work-info h3 { font-size: 17px; }
  .work-cat { font-size: 13px; }
  .tool-brand .tool-logo { width: 60px; height: 60px; }
  .tools-showcase { gap: 36px 40px; padding: 50px 22px; }
  .hero-video { margin-top: 44px; border-radius: 18px; }
  .hero-video-btn { border-radius: 18px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .scroll-hint { display: none; }
  .faq-q { padding: 22px 24px; font-size: 16px; }
  .faq-a p { padding: 0 24px 24px; }
  .cta-inner { padding: 60px 26px; }
  .cta-inner h2 { letter-spacing: -1.5px; }
  .exp-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flip-inner { min-height: 460px; }
  .flip-ctas { grid-template-columns: 1fr; }
  .footer-bar { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .projects-grid { max-width: 100%; }
  .play-btn { width: 52px; height: 52px; }
  .thumb-duration { top: 10px; right: 10px; font-size: 11.5px; padding: 4px 9px; }
}

/* ---------------- Video modal ---------------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  background: linear-gradient(180deg, #1d1d1d 0%, #0c0c0c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 14px 14px 18px;
  box-shadow: 0 48px 140px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: scale(0.93) translateY(14px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.video-modal.open .video-modal-panel { transform: scale(1) translateY(0); }

.video-modal-frame {
  margin: 0 auto;
  width: min(100%, calc(72vh * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.3s var(--ease);
}

.video-modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.video-modal-info {
  padding: 16px 8px 2px;
  text-align: center;
}

.video-modal-info h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.video-modal-info span {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 5px;
}

body.modal-open { overflow: hidden; }

/* ---------------- Reduced motion ---------------- */

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