/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body.menu-open, body.sheet-open { overflow: hidden; }
svg { flex: none; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0B0D; }
::-webkit-scrollbar-thumb { background: #2A2E35; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #00C2FF; }

/* ---------- blueprint grid background ---------- */
.grid-bg {
  position: fixed;
  inset: -50px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 194, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 80%);
}

/* film grain */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.83 0 0 0 0 0.85 0 0 0 0 0.87 0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.25;
  animation: grain 0.8s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); } 60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- cursor crosshair (desktop) ---------- */
.crosshair {
  position: fixed;
  top: 0; left: 0;
  width: 40px; height: 40px;
  color: #00C2FF;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}
.crosshair svg { width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) {
  body:hover .crosshair { opacity: 0.85; }
}

/* ---------- HUD corners on hero ---------- */
.hud-corner {
  position: absolute;
  width: 40px; height: 40px;
  border-color: #00C2FF;
  border-style: solid;
  z-index: 10;
  pointer-events: none;
  opacity: 0.55;
}
@media (min-width: 768px) { .hud-corner { width: 56px; height: 56px; } }
.hud-tl { top: 80px; left: 16px; border-width: 1px 0 0 1px; }
.hud-tr { top: 80px; right: 16px; border-width: 1px 1px 0 0; }
.hud-bl { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.hud-br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }
@media (min-width: 768px) {
  .hud-tl { top: 96px; left: 32px; } .hud-tr { top: 96px; right: 32px; }
  .hud-bl { bottom: 32px; left: 32px; } .hud-br { bottom: 32px; right: 32px; }
}

/* ---------- nav ---------- */
.nav-shell {
  background: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav-shell.is-scrolled {
  background: rgba(10, 11, 13, 0.88);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: rgba(212, 215, 220, 0.08);
}
.nav-link {
  position: relative;
  color: #D4D7DC;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: #00C2FF;
  transition: width 0.4s cubic-bezier(0.6, 0, 0.1, 1);
}
.nav-link:hover { color: #00C2FF; }
.nav-link:hover::after { width: 100%; }

/* pulse dots */
.pulse-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00C2FF;
  box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.6);
  animation: pulse 1.8s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 194, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); }
}

/* burger BUTTON — highly visible on any bg */
.menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(212, 215, 220, 0.55);
  background: rgba(10, 11, 13, 0.55);
  color: #D4D7DC;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  z-index: 60;
}
.menu-btn:hover,
.menu-btn:focus-visible {
  border-color: #00C2FF;
  color: #00C2FF;
  background: rgba(0, 194, 255, 0.08);
  outline: none;
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.35);
}
.menu-open .menu-btn {
  border-color: #00C2FF;
  color: #00C2FF;
  background: rgba(0, 194, 255, 0.1);
}

/* 3-line burger morphing to X */
.burger {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.4s cubic-bezier(0.68, -0.2, 0.3, 1.4),
    top 0.3s cubic-bezier(0.68, -0.2, 0.3, 1.4),
    opacity 0.18s ease,
    width 0.3s ease;
  transform-origin: center;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 6.5px; width: 70%; }
.burger span:nth-child(3) { top: 11px; }
.menu-btn:hover .burger span:nth-child(2) { width: 100%; }
.menu-open .burger span:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .burger span:nth-child(3) { top: 6.5px; transform: rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.mobile-menu-inner {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  height: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #14171C 0%, #0A0B0D 100%);
  border-left: 1px solid rgba(0, 194, 255, 0.18);
  padding: 84px 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.2, 1);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
@media (max-width: 560px) {
  .mobile-menu-inner {
    max-width: 100%;
    border-left: 0;
    border-bottom: 1px solid rgba(0, 194, 255, 0.18);
  }
}

.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}
.menu-open .mobile-menu::before { opacity: 1; }
.menu-open .mobile-menu-inner { transform: translateX(0); }

/* decorative neon accent line */
.mobile-menu-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: linear-gradient(180deg, #00C2FF, transparent);
  transition: height 0.6s 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-open .mobile-menu-inner::before { height: 100%; }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: "Unbounded", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #D4D7DC;
  border-bottom: 1px solid rgba(212, 215, 220, 0.08);
  text-decoration: none;
  opacity: 0;
  transform: translateX(30px);
  transition:
    color 0.25s ease,
    padding-left 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.3s ease,
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: 0s;
}
.menu-open .mobile-link {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.25s + var(--i, 0) * 0.06s);
}
.mobile-link:hover {
  color: #00C2FF;
  padding-left: 0.5rem;
  border-color: rgba(0, 194, 255, 0.35);
}
.m-num {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  color: #00C2FF;
  letter-spacing: 0.15em;
  width: 2ch;
  flex: none;
}
.m-text { flex: 1; }
.m-arr {
  color: rgba(212, 215, 220, 0.3);
  transition: color 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mobile-link:hover .m-arr {
  color: #00C2FF;
  transform: translate(4px, -4px);
}

.mobile-foot {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 215, 220, 0.08);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: 0s;
}
.menu-open .mobile-foot {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.25s + var(--i, 6) * 0.06s);
}

/* ---------- side dots ---------- */
.side-dots {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1024px) { .side-dots { display: flex; } }
.dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(212, 215, 220, 0.35);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.dot span {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.6rem;
  background: #14171C;
  border: 1px solid rgba(212, 215, 220, 0.15);
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #D4D7DC;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.dot:hover span { opacity: 1; }
.dot:hover { border-color: #00C2FF; }
.dot.is-active { background: #00C2FF; border-color: #00C2FF; box-shadow: 0 0 12px rgba(0, 194, 255, 0.65); }

/* ---------- chapter label ---------- */
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #00C2FF;
}
.chapter::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: #00C2FF;
}

/* ---------- spec tag pills (hero) ---------- */
.spec-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(0, 194, 255, 0.4);
  background: rgba(0, 194, 255, 0.07);
  color: #00C2FF;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

/* ---------- hero ---------- */
.hero-title {
  font-size: clamp(3.5rem, 18vw, 16rem);
}
@media (min-width: 768px) {
  .hero-title { font-size: clamp(6rem, 13vw, 18rem); }
}
.text-outline {
  -webkit-text-stroke: 1.5px #D4D7DC;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* stacked reveal (different from prior sites — slide up + opacity per block) */
.reveal-stack {
  opacity: 0;
  transform: translateY(60%);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal-stack:nth-child(2) { transition-delay: 0.18s; }
.loaded .reveal-stack { opacity: 1; transform: translateY(0); }

/* ---------- hero specs strip ---------- */
.specs-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(212, 215, 220, 0.08);
  border-top: 1px solid rgba(212, 215, 220, 0.1);
  border-bottom: 1px solid rgba(212, 215, 220, 0.1);
}
@media (min-width: 768px) { .specs-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec-cell {
  background: rgba(10, 11, 13, 0.55);
  backdrop-filter: blur(6px);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
@media (min-width: 768px) { .spec-cell { padding: 1.25rem 1.5rem; } }
.spec-label {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7C828C;
}
.spec-value {
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #D4D7DC;
  line-height: 1;
}
@media (min-width: 768px) { .spec-value { font-size: 2rem; } }
.spec-bar {
  height: 2px;
  background: rgba(212, 215, 220, 0.15);
  overflow: hidden;
  position: relative;
}
.spec-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00C2FF, #0088FF);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.4s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.is-specs-visible .spec-bar span { transform: scaleX(1); }

/* ---------- buttons ---------- */
.btn-azure {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.75rem;
  background: #00C2FF;
  color: #0A0B0D;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.btn-azure:hover { background: #33D0FF; box-shadow: 0 0 28px rgba(0, 194, 255, 0.6); }
.btn-azure:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-azure .btn-arrow { transition: transform 0.3s ease; }
.btn-azure:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid rgba(212, 215, 220, 0.25);
  background: transparent;
  color: #D4D7DC;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}
.btn-ghost:hover { border-color: #00C2FF; color: #00C2FF; background: rgba(0, 194, 255, 0.04); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 38s linear infinite;
  padding-right: 2rem;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .sep { color: #00C2FF; font-size: 0.7em; transform: translateY(-0.1em); opacity: 0.8; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- services grid ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px)  { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.svc-tile {
  position: relative;
  padding: 1.75rem;
  background: #14171C;
  border: 1px solid rgba(212, 215, 220, 0.09);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.svc-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 194, 255, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.svc-tile:hover {
  border-color: rgba(0, 194, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(0, 194, 255, 0.25);
}
.svc-tile:hover::before { opacity: 1; }
.svc-num {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #00C2FF;
}
.svc-ic {
  width: 38px; height: 38px;
  color: #00C2FF;
  transition: transform 0.4s ease;
}
.svc-tile:hover .svc-ic { transform: rotate(-6deg) scale(1.08); }
.svc-title {
  font-family: "Unbounded", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #D4D7DC;
}
.svc-desc {
  font-size: 0.9rem;
  color: rgba(212, 215, 220, 0.65);
  line-height: 1.5;
  flex: 1;
}
.svc-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 215, 220, 0.15);
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: #D4D7DC;
}
.svc-meta :first-child { color: #00C2FF; font-weight: 700; }
.svc-meta :last-child  { color: #7C828C; font-size: 0.72rem; letter-spacing: 0.1em; }

.svc-tile--feat {
  background: linear-gradient(145deg, #00C2FF 0%, #0088FF 100%);
  border-color: #00C2FF;
  color: #0A0B0D;
}
.svc-tile--feat .svc-num   { color: rgba(10, 11, 13, 0.7); }
.svc-tile--feat .svc-title { color: #0A0B0D; }
.svc-tile--feat .svc-desc  { color: rgba(10, 11, 13, 0.75); }
.svc-tile--feat .svc-meta  { color: #0A0B0D; border-top-color: rgba(10, 11, 13, 0.2); }
.svc-tile--feat .svc-meta :first-child { color: #0A0B0D; }
.svc-tile--feat .svc-meta :last-child  { color: rgba(10, 11, 13, 0.55); }
.svc-tile--feat::before { background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 40%); }
.svc-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 0.25rem 0.6rem;
  background: #0A0B0D;
  color: #00C2FF;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}

/* ---------- process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  border-top: 1px solid rgba(212, 215, 220, 0.12);
}
@media (min-width: 768px) {
  .process-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-left: 1px solid rgba(212, 215, 220, 0.12);
  }
}
.pstep {
  padding: 1.75rem;
  border-right: 1px solid rgba(212, 215, 220, 0.12);
  border-bottom: 1px solid rgba(212, 215, 220, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background-color 0.3s ease;
}
@media (min-width: 768px) { .pstep { padding: 2.25rem; min-height: 280px; } }
.pstep:hover { background: rgba(0, 194, 255, 0.035); }
.pnum {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Unbounded", sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #00C2FF;
  line-height: 0.8;
}
.pnum-dot {
  display: inline-block;
  flex: 1;
  height: 1px;
  background: rgba(212, 215, 220, 0.15);
}
.ptitle {
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #D4D7DC;
}
.pdesc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(212, 215, 220, 0.7);
  flex: 1;
}
.pmeta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00C2FF;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(0, 194, 255, 0.3);
}

/* ---------- WORK (horizontal scroll + BA slider) ---------- */
.work-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding: 0 0 1.5rem;
}
.work-scroll::-webkit-scrollbar { display: none; }
.work-scroll.is-dragging { cursor: grabbing; }
.work-track {
  display: inline-flex;
  gap: 1.5rem;
  padding: 0 1.25rem;
}
@media (min-width: 768px) { .work-track { gap: 2rem; padding: 0 2.5rem; } }
.case {
  flex: 0 0 auto;
  width: 86vw;
  max-width: 720px;
}
.case-meta {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 215, 220, 0.6);
}
.case-title {
  margin-top: 0.6rem;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1;
  color: #D4D7DC;
}

/* before/after slider */
.ba {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 215, 220, 0.08);
  aspect-ratio: 16 / 10;
  background: #14171C;
  user-select: none;
  touch-action: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
  will-change: width;
}
.ba-after .ba-img { width: 100cqw; }
@supports not (width: 100cqw) {
  .ba-after .ba-img { width: 200%; }  /* fallback: image wide enough */
}
.ba-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: #00C2FF;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(0, 194, 255, 0.7);
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #00C2FF;
  color: #0A0B0D;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 194, 255, 0.6);
  transition: transform 0.2s ease;
}
.ba-handle:active { cursor: grabbing; transform: translate(-50%, -50%) scale(0.95); }
.ba-tag {
  position: absolute;
  top: 16px;
  padding: 0.25rem 0.6rem;
  background: rgba(10, 11, 13, 0.75);
  backdrop-filter: blur(4px);
  color: #D4D7DC;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-tag--l { left: 16px; }
.ba-tag--r { right: 16px; color: #00C2FF; border: 1px solid rgba(0, 194, 255, 0.4); }

.work-hint {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem 0;
  max-width: 1500px;
  margin: 0 auto;
}
@media (min-width: 768px) { .work-hint { padding: 1.5rem 2.5rem 0; } }

/* ---------- technology section ---------- */
.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(212, 215, 220, 0.15);
}
.tech-logos span {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(212, 215, 220, 0.5);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.tech-logos span:hover { color: #00C2FF; }

.tech-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0A0B0D;
  border: 1px solid rgba(212, 215, 220, 0.1);
}
.tech-media video { width: 100%; height: 100%; object-fit: cover; }
.tech-overlay {
  position: absolute;
  left: 16px; top: 16px;
  padding: 0.85rem 1rem;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 194, 255, 0.3);
  min-width: 170px;
}
.tech-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.5rem;
  background: rgba(0, 194, 255, 0.12);
  color: #00C2FF;
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  margin-bottom: 0.7rem;
}
.tech-label::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00C2FF;
  animation: pulse 1.8s ease-out infinite;
}
.tech-readout { display: flex; flex-direction: column; gap: 0.25rem; }
.readout-row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}
.readout-row span { color: #7C828C; }
.readout-row b { color: #D4D7DC; font-weight: 700; }

/* ---------- masters ---------- */
.master {
  background: #14171C;
  border: 1px solid rgba(212, 215, 220, 0.1);
  overflow: hidden;
  grid-column: span 12;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
@media (min-width: 640px)  { .master { grid-column: span 6; } }
@media (min-width: 1024px) { .master { grid-column: span 4; } }
.master:hover { border-color: rgba(0, 194, 255, 0.35); transform: translateY(-4px); }
.master-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0A0B0D;
}
.master-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}
.master:hover .master-frame img { transform: scale(1.05); filter: grayscale(0) contrast(1.08); }
.master-tag {
  position: absolute;
  top: 12px; left: 12px;
}
.master-tag span {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: rgba(10, 11, 13, 0.8);
  color: #00C2FF;
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 194, 255, 0.4);
}
.master-body { padding: 1.5rem 1.75rem 2rem; }
.master-num {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #00C2FF;
}
.master-name {
  margin-top: 0.5rem;
  font-family: "Unbounded", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
  color: #D4D7DC;
}
.master-spec {
  margin-top: 0.35rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.85rem;
  color: #7C828C;
}
.master-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(212, 215, 220, 0.15);
}
.master-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.master-stats span {
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7C828C;
}
.master-stats b {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #D4D7DC;
}

/* ---------- testimonial ---------- */
.testimonial {
  padding: 3rem 1.5rem 2.5rem;
  background: #14171C;
  border: 1px solid rgba(212, 215, 220, 0.08);
  border-left: 3px solid #00C2FF;
  position: relative;
}
@media (min-width: 768px) { .testimonial { padding: 4rem 4rem 3rem; } }
.test-star {
  display: inline-flex;
  gap: 0.35rem;
  color: #FFB224;
}
.test-star svg { width: 18px; height: 18px; }
.test-text {
  margin-top: 1.75rem;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
  color: #D4D7DC;
}
.test-foot {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.test-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C2FF, #0088FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  color: #0A0B0D;
}

/* ---------- contact ---------- */
.c-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.c-ic {
  width: 26px; height: 26px;
  color: #00C2FF;
  flex: none;
  margin-top: 2px;
}
.c-label {
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #7C828C;
}
.c-val {
  margin-top: 0.25rem;
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #D4D7DC;
}

.contact-map {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #14171C;
  border: 1px solid rgba(212, 215, 220, 0.12);
  isolation: isolate;
}
.contact-map iframe {
  width: 100%; height: 100%;
  display: block;
  border: 0;
  filter: grayscale(0.7) contrast(1.1) invert(0.92) hue-rotate(180deg);
}
.contact-pin {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  padding: 0.75rem 1rem;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 194, 255, 0.4);
  color: #D4D7DC;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-pin:hover {
  background: rgba(0, 194, 255, 0.95);
  color: #0A0B0D;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(0, 194, 255, 0.5);
}

/* ---------- footer ---------- */
.foot-head {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(212, 215, 220, 0.45);
}

/* ---------- FAB (hidden while hero visible; compact technical pill) ---------- */
.fab {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 30;
  padding: 0.85rem 1.25rem;
  background: rgba(14, 17, 22, 0.9);
  color: #D4D7DC;
  border: 1px solid rgba(0, 194, 255, 0.4);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.6), 0 0 24px -12px rgba(0, 194, 255, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 0;
  cursor: pointer;
  /* hidden by default; .fab-reveal toggles visibility once hero is scrolled past */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
@media (min-width: 768px) {
  .fab { right: 2rem; bottom: 2rem; padding: 1rem 1.5rem; font-size: 0.78rem; }
}
.fab.is-revealed {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab:hover {
  background: #00C2FF;
  color: #0A0B0D;
  border-color: #00C2FF;
  box-shadow: 0 18px 48px -16px rgba(0, 194, 255, 0.85);
}
.fab:hover .fab-ring { background: #0A0B0D; }

/* hide FAB whenever an overlay is open so it never fights with content */
.menu-open .fab,
.sheet-open .fab {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(16px);
}

.fab-ring {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00C2FF;
  box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.6);
  animation: pulse 1.8s ease-out infinite;
  flex: none;
  transition: background-color 0.3s ease;
}

/* ---------- BOTTOM SHEET ---------- */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 768px) { .sheet { padding: 2rem; } }
.sheet.hidden { display: none; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in 0.3s ease;
}
.sheet-body {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  background: #14171C;
  border: 1px solid rgba(0, 194, 255, 0.2);
  border-radius: 16px 16px 0 0;
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  animation: sheet-up 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 768px) {
  .sheet-body { padding: 2rem 2.25rem 1.5rem; border-radius: 16px; max-height: 85vh; }
}
@keyframes sheet-up {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.sheet-grip {
  display: block;
  width: 44px;
  height: 4px;
  background: rgba(212, 215, 220, 0.3);
  border-radius: 4px;
  margin: 0 auto 0.75rem;
}
@media (min-width: 768px) { .sheet-grip { display: none; } }
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(212, 215, 220, 0.1);
}
.sheet-close {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212, 215, 220, 0.2);
  background: transparent;
  color: #D4D7DC;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.sheet-close:hover { background: #00C2FF; color: #0A0B0D; border-color: #00C2FF; }

.sheet-form { padding: 1.5rem 0 0.5rem; }
.fs { margin-bottom: 1.5rem; }
.fs-head {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #00C2FF;
  margin-bottom: 0.75rem;
}

/* chips */
.chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 520px) { .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 520px) { .chips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(212, 215, 220, 0.18);
  background: rgba(10, 11, 13, 0.4);
  color: #D4D7DC;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.chip:hover span { border-color: #00C2FF; }
.chip input:checked + span {
  background: #00C2FF;
  color: #0A0B0D;
  border-color: #00C2FF;
}
.chip--warn input:checked + span { background: #FFB224; border-color: #FFB224; color: #0A0B0D; }

/* live estimate block */
.estimate {
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem;
  background: rgba(0, 194, 255, 0.05);
  border: 1px solid rgba(0, 194, 255, 0.25);
  position: relative;
  overflow: hidden;
}
.estimate::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(0, 194, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.estimate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.est-update::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00C2FF;
  margin-right: 0.5rem;
  animation: pulse 1.6s ease-out infinite;
}
.estimate-body {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}
@media (min-width: 520px) { .estimate-body { grid-template-columns: 2fr 1fr; align-items: baseline; } }
.est-num {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  color: #D4D7DC;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.est-dash { color: rgba(212, 215, 220, 0.5); font-weight: 400; }
.est-cur { color: #00C2FF; }
.est-meta {
  display: flex;
  gap: 1.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
}
.est-meta > div { display: flex; flex-direction: column; gap: 0.2rem; }
.est-meta span { color: #7C828C; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; }
.est-meta b { color: #D4D7DC; font-weight: 700; }
.est-note { margin-top: 0.75rem; position: relative; }

/* fields */
.fields { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field > span {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #7C828C;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid rgba(212, 215, 220, 0.15);
  background: rgba(10, 11, 13, 0.35);
  padding: 0.75rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #D4D7DC;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(212, 215, 220, 0.3); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: #00C2FF;
  background: rgba(0, 194, 255, 0.04);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF3D3D; }
.field-error {
  display: block;
  min-height: 1rem;
  margin-top: 0.25rem;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-style: normal;
  color: #FF3D3D;
  transition: opacity 0.2s ease;
}
.field-error:empty { opacity: 0; }

.consent {
  display: flex;
  gap: 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: rgba(212, 215, 220, 0.7);
  margin-top: 0.5rem;
}

.sheet-foot {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(212, 215, 220, 0.1);
}

.sheet-success {
  padding: 2rem 0 1rem;
  animation: fade-in 0.35s ease;
}
.success-check { width: 120px; height: 120px; margin: 0 auto; display: block; }
.success-check circle {
  transform-origin: center;
  animation: sc-scale 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.success-check .check-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: sc-draw 0.6s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes sc-scale { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sc-draw  { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* magnetic */
[data-magnetic] {
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal-stack { opacity: 1 !important; transform: none !important; }
  .crosshair, .grid-bg, .grain { display: none; }
  .is-specs-visible .spec-bar span { transform: scaleX(1); }
}
