/* Tactical Pterodactyl — Drone Portfolio */

:root {
  --bg: #05080d;
  --bg-1: #090e16;
  --bg-2: #0c1320;
  --bg-3: #111a28;
  --border: #1c2736;
  --border-hi: #2a3a52;
  --text: #e8eef7;
  --text-dim: #b1bccf;
  --text-mute: #7d8ba3;
  --text-faint: #4a5669;
  --accent: oklch(0.78 0.14 220);
  --accent-hi: oklch(0.88 0.16 210);
  --accent-dim: oklch(0.5 0.12 225);
  --warn: oklch(0.78 0.15 60);
  --danger: oklch(0.68 0.22 25);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
body {
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

/* Global grain + scan overlay for atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse at top, rgba(88, 166, 255, 0.06), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(88, 166, 255, 0.03), transparent 60%);
  z-index: 1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
  mix-blend-mode: overlay;
}

/* Cursor reticle */
.reticle {
  position: fixed;
  pointer-events: none;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  z-index: 100;
  mix-blend-mode: difference;
  transition: opacity 0.2s ease;
}
.reticle svg { width: 100%; height: 100%; }
.reticle.hidden { opacity: 0; }

/* ================================================================== */
/* BOOT / LOAD ANIMATION                                                */
/* ================================================================== */
@keyframes boot-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes boot-scan-down {
  0% { transform: translateY(-100vh); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
@keyframes boot-bracket-tl {
  from { transform: translate(-40px, -40px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}
@keyframes boot-bracket-tr {
  from { transform: translate(40px, -40px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}
@keyframes boot-bracket-bl {
  from { transform: translate(-40px, 40px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}
@keyframes boot-bracket-br {
  from { transform: translate(40px, 40px); opacity: 0; }
  to { transform: translate(0, 0); opacity: 1; }
}
@keyframes boot-slide-up {
  from { transform: translateY(20px); opacity: 0; filter: blur(4px); }
  to { transform: translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes boot-clip-in {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes boot-flicker {
  0% { opacity: 0; }
  10% { opacity: 1; }
  12% { opacity: 0.3; }
  14% { opacity: 1; }
  30% { opacity: 1; }
  32% { opacity: 0.6; }
  34% { opacity: 1; }
  100% { opacity: 1; }
}
@keyframes boot-nav-slide {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes boot-hero-video {
  from { opacity: 0; filter: brightness(0.2) contrast(1.4) saturate(0); }
  to { opacity: 1; filter: none; }
}

/* Full-screen scan bar that sweeps across on load */
.boot-scanbar {
  position: fixed;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-hi) 50%, var(--accent) 70%, transparent);
  box-shadow: 0 0 20px var(--accent), 0 0 4px var(--accent-hi);
  top: 0;
  z-index: 1000;
  pointer-events: none;
  animation: boot-scan-down 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Boot overlay — fades out covering logo text */
.boot-veil {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  pointer-events: none;
  display: grid;
  place-items: center;
  animation: boot-fade 0.4s ease-in reverse forwards;
  animation-delay: 1.1s;
  animation-fill-mode: forwards;
}
.boot-veil-inner {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.boot-veil-inner::before {
  content: "";
  width: 28px; height: 28px;
  border: 1px solid var(--accent-dim);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot-veil-log {
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.15em;
  min-height: 14px;
}

body.booting { overflow: hidden; }
body.booting .nav { animation: boot-nav-slide 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both; }
body.booting .hero-slide-video { opacity: 1; }

body.booting .hero-bracket.tl { animation: boot-bracket-tl 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.4s both; }
body.booting .hero-bracket.tr { animation: boot-bracket-tr 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.45s both; }
body.booting .hero-bracket.bl { animation: boot-bracket-bl 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.5s both; }
body.booting .hero-bracket.br { animation: boot-bracket-br 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.55s both; }

body.booting .hero-hud-tl,
body.booting .hero-hud-tr {
  animation: boot-flicker 0.9s ease-out 1.6s both;
}

body.booting .hero-tag { animation: boot-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) 1.7s both; }
body.booting .hero-title {
  overflow: hidden;
  animation: boot-clip-in 0.9s cubic-bezier(0.7, 0, 0.3, 1) 1.8s both;
}
body.booting .hero-subtitle { animation: boot-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) 2.2s both; }
body.booting .hero-actions { animation: boot-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) 2.35s both; }
body.booting .hero-socials { animation: boot-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) 2.5s both; }
body.booting .hero-playlist { animation: boot-flicker 0.9s ease-out 2.6s both; }
body.booting .hero-scroll-hint { animation: boot-flicker 0.9s ease-out 2.7s both; }

/* Decrypt / glitch text effect for title */
.decrypt {
  position: relative;
  display: inline-block;
}
.decrypt-scramble {
  font-variant-numeric: tabular-nums;
}

/* ================================================================== */
/* END BOOT                                                             */
/* ================================================================== */

/* ================================================================== */
/* NAV                                                                  */
/* ================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5, 8, 13, 0.8), rgba(5, 8, 13, 0.3));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav:has(.nav-links.open) {
  bottom: 0;
  background: #090e16 !important;
  backdrop-filter: none;
}
.nav.scrolled {
  background: rgba(5, 8, 13, 0.92);
  border-bottom-color: var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 14px;
  text-transform: uppercase;
}
.nav-brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  position: relative;
}
.nav-brand-mark::before, .nav-brand-mark::after {
  content: "";
  position: absolute;
  width: 4px; height: 4px;
  border: 1px solid var(--accent);
}
.nav-brand-mark::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.nav-brand-mark::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.nav-brand-name { color: var(--text); }
.nav-brand-sub { color: var(--text-mute); font-size: 10px; letter-spacing: 0.3em; display: block; margin-top: 2px; }
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.nav-link {
  padding: 10px 16px;
  color: var(--text-mute);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}
.nav-link-index { color: var(--text-faint); font-size: 10px; margin-right: 6px; }

.nav-socials {
  display: flex;
  gap: 4px;
  align-items: center;
  padding-left: 14px;
  margin-left: 8px;
  border-left: 1px solid var(--border);
}
.nav-social {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  color: var(--text-mute);
  transition: color 0.2s ease, background 0.2s ease;
  border-radius: 2px;
}
.nav-social:hover { color: var(--accent); background: var(--bg-2); }
.nav-social svg { width: 15px; height: 15px; }

/* ================================================================== */
/* HERO                                                                 */
/* ================================================================== */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #000;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.4s ease, transform 8s linear;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.0);
}
.hero-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 8, 13, 0.2) 0%, rgba(5, 8, 13, 0.05) 30%, rgba(5, 8, 13, 0.6) 75%, rgba(5, 8, 13, 0.95) 100%),
    linear-gradient(to right, rgba(5, 8, 13, 0.6), transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 120px 48px 48px;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-hud {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.hero-hud-tl { top: 120px; left: 48px; }
.hero-hud-tr { top: 120px; right: 48px; text-align: right; }
.hero-hud-br { bottom: 160px; right: 48px; text-align: right; }
.hero-hud-val { color: var(--accent); }
.hero-hud-row { display: flex; gap: 10px; margin-bottom: 3px; }
.hero-hud-tr .hero-hud-row, .hero-hud-br .hero-hud-row { justify-content: flex-end; }
.hero-hud-label { min-width: 60px; color: var(--text-faint); }

.hero-bracket {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--accent);
  border-style: solid;
}
.hero-bracket.tl { top: 100px; left: 32px; border-width: 1px 0 0 1px; }
.hero-bracket.tr { top: 100px; right: 32px; border-width: 1px 1px 0 0; }
.hero-bracket.bl { bottom: 32px; left: 32px; border-width: 0 0 1px 1px; }
.hero-bracket.br { bottom: 32px; right: 32px; border-width: 0 1px 1px 0; }

.hero-main {
  align-self: end;
  max-width: 900px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 1px solid var(--accent-dim);
  background: rgba(5, 8, 13, 0.5);
  backdrop-filter: blur(4px);
}
.hero-tag::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(88, 166, 255, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.5vw, 112px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 400;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 0 24px -6px var(--accent); }
.btn-ghost {
  border-color: var(--border-hi);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(88, 166, 255, 0.05); }
.btn-arrow { width: 14px; height: 14px; }

/* Hero social row */
.hero-socials {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 0;
  align-items: center;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  max-width: 600px;
}
.hero-social-link {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}
.hero-social-link:first-child { padding-left: 0; }
.hero-social-link:last-child { border-right: 0; }
.hero-social-link:hover { background: rgba(88, 166, 255, 0.04); }
.hero-social-icon {
  width: 22px; height: 22px;
  color: var(--accent);
}
.hero-social-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
}
.hero-social-handle {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.hero-social-text { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }

/* Hero playlist indicator */
.hero-playlist {
  position: absolute;
  bottom: 60px;
  left: 48px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  z-index: 3;
}
.hero-playlist-bars {
  display: flex;
  gap: 4px;
}
.hero-playlist-bar {
  width: 28px;
  height: 2px;
  background: var(--border-hi);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.hero-playlist-bar.active::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  width: 100%;
  animation: fill var(--duration, 6s) linear;
}
.hero-playlist-bar.done { background: var(--accent); }
@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--text-mute);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll-hint-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ================================================================== */
/* SECTION COMMON                                                       */
/* ================================================================== */
.section {
  position: relative;
  padding: 120px 48px;
  z-index: 3;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: "";
  width: 18px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
  max-width: 640px;
}
.section-title em { font-style: normal; color: var(--accent); font-weight: 400; }
.section-sub {
  color: var(--text-dim);
  max-width: 400px;
  font-size: 15px;
}

/* ================================================================== */
/* GALLERY                                                              */
/* ================================================================== */
.gallery-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  flex-wrap: wrap;
}
.gallery-filter {
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--text-mute);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gallery-filter:hover { color: var(--text); border-color: var(--border-hi); }
.gallery-filter.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.gallery-filter-count { opacity: 0.6; font-size: 10px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  grid-auto-rows: 80px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-1);
  cursor: crosshair;
  transition: border-color 0.3s ease, transform 0.5s ease;
}
.gallery-item:hover { border-color: var(--accent-dim); }
.gallery-item-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease, filter 0.3s ease;
  filter: grayscale(0.1) contrast(1.05);
}
.gallery-item:hover .gallery-item-media {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.1);
}
.gallery-item-vignette {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 13, 0.85) 0%, rgba(5, 8, 13, 0.1) 50%, transparent 80%);
  pointer-events: none;
}
.gallery-item-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-hud { opacity: 1; }
.gallery-item-hud-bracket {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--accent);
  border-style: solid;
}
.gallery-item-hud-bracket.tl { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.gallery-item-hud-bracket.tr { top: 8px; right: 8px; border-width: 1px 1px 0 0; }
.gallery-item-hud-bracket.bl { bottom: 8px; left: 8px; border-width: 0 0 1px 1px; }
.gallery-item-hud-bracket.br { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }

.gallery-item-meta {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.gallery-item-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 70%;
}
.gallery-item-loc {
  font-family: var(--font-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-top: 6px;
}
.gallery-item-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 4px 7px;
  background: rgba(5, 8, 13, 0.7);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.gallery-item-badge.video { color: var(--warn); border-color: oklch(0.5 0.14 60); }
.gallery-item-badge.video::before {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 5px solid currentColor;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  margin-right: 5px;
  transform: translateY(-1px);
}
.gallery-item-altitude {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  background: rgba(5, 8, 13, 0.6);
  padding: 3px 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.gallery-item:hover .gallery-item-altitude { opacity: 1; }

/* ================================================================== */
/* ABOUT                                                                */
/* ================================================================== */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4 / 5;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}
.about-portrait-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15) contrast(1.05);
}
.about-portrait-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(5, 8, 13, 0.85));
}
.about-portrait-label {
  position: absolute;
  bottom: 24px; left: 24px; right: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.about-portrait-label strong { color: var(--accent); font-weight: 500; }

.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.about-body p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 3em;
  float: left;
  line-height: 0.9;
  margin: 4px 10px 0 0;
  color: var(--accent);
  font-weight: 500;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 40px;
  border: 1px solid var(--border);
}
.about-stat {
  padding: 22px 20px;
  background: var(--bg-1);
}
.about-stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.about-stat-unit { font-size: 16px; color: var(--accent); margin-left: 2px; }
.about-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-top: 8px;
}

/* ================================================================== */
/* GEAR                                                                 */
/* ================================================================== */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.gear-item {
  padding: 28px 24px;
  background: var(--bg-1);
  position: relative;
  transition: background 0.25s ease;
}
.gear-item:hover { background: var(--bg-2); }
.gear-item-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gear-item-cat::before {
  content: attr(data-idx);
  display: inline-block;
  width: 18px;
  color: var(--text-faint);
}
.gear-item-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}
.gear-item-model {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.gear-item-specs {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.gear-item-specs dt { color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.gear-item-specs dd { margin: 0; color: var(--text-dim); }

.gear-item-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gear-item:hover .gear-item-hint {
  opacity: 1;
  color: var(--accent);
}

/* Drone Diagram Modal */
.drone-diagram-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 13, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.drone-diagram-modal {
  width: 380px;
  max-width: 90vw;
  border: 1px solid var(--border-hi);
  background: var(--bg-1);
  position: relative;
}
.drone-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.drone-diagram-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.drone-diagram-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  transition: color 0.2s;
}
.drone-diagram-close:hover { color: var(--text); }
.drone-diagram-body {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drone-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
}
.drone-diagram-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
}

/* ================================================================== */
/* SERVICES                                                             */
/* ================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.service {
  position: relative;
  padding: 36px 28px 28px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}
.service.featured {
  border-color: var(--accent-dim);
  background: linear-gradient(155deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
.service.featured::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -1px; right: 20px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 5px 10px;
}
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  margin-bottom: 22px;
}
.service-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}
.service-summary {
  color: var(--text-mute);
  font-size: 13px;
  margin-bottom: 22px;
}
.service-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
  font-family: var(--font-display);
}
.service-price-from {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin-right: 6px;
}
.service-price-value {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.service-price-unit {
  font-size: 13px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-left: 4px;
}
.service-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 24px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.service-features li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.service-features li::before {
  content: "";
  width: 10px; height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}
.service-cta {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  transition: color 0.2s ease;
  cursor: pointer;
}
.service-cta:hover { color: var(--accent); }
.service-cta-arrow {
  transition: transform 0.2s ease;
}
.service-cta:hover .service-cta-arrow { transform: translateX(4px); }

/* ================================================================== */
/* CONTACT                                                              */
/* ================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-info-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-block:first-of-type { border-top: 1px solid var(--border); }
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.contact-info-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.contact-info-value a:hover { color: var(--accent); }

.contact-form {
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 36px;
  position: relative;
}
.contact-form-label {
  position: absolute;
  top: -10px; left: 28px;
  background: var(--bg);
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease;
  outline: 0;
}
.form-field textarea { resize: vertical; min-height: 90px; font-family: var(--font-body); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--accent);
}
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%);
  background-position: calc(100% - 12px) 16px, calc(100% - 7px) 16px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}
.form-field select option { background: var(--bg-2); color: var(--text); }

.form-budget-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.budget-chip {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}
.budget-chip:hover { border-color: var(--border-hi); color: var(--text); }
.budget-chip.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.form-submit {
  grid-column: 1 / -1;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.form-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ================================================================== */
/* FOOTER                                                               */
/* ================================================================== */
.footer {
  padding: 60px 48px 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 3;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--text);
  position: relative;
  overflow: visible;
}
.footer-mark em { color: var(--accent); font-style: normal; font-weight: 400; }

/* Pterodactyl silhouette watermark */
.footer-ptero {
  position: absolute;
  right: -22%;
  top: 30%;
  transform: translateY(-50%);
  height: 160%;
  width: auto;
  color: rgba(232, 238, 247, 0.08);
  pointer-events: none;
  z-index: 0;
}

/* Crosshair reticle on the "i" */
.footer-i-wrap {
  position: relative;
  display: inline-block;
}
.footer-crosshair {
  position: absolute;
  top: -0.1em;
  left: 62%;
  transform: translateX(-50%);
  width: 0.36em;
  height: 0.36em;
  color: var(--accent);
  pointer-events: none;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  max-width: 280px;
  line-height: 1.8;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a { color: var(--text-mute); }
.footer-bottom a:hover { color: var(--accent); }

/* ================================================================== */
/* LIGHTBOX                                                             */
/* ================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 8, 13, 0.96);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  padding: 40px;
  animation: fade 0.3s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-media {
  max-width: 90vw;
  max-height: 75vh;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 3 / 2;
  width: 1100px;
  border: 1px solid var(--border-hi);
}
.lightbox-video {
  max-width: 90vw;
  max-height: 75vh;
  width: 1100px;
  border: 1px solid var(--border-hi);
  background: #000;
  outline: none;
}
.lightbox-meta {
  position: absolute;
  left: 40px; right: 40px; bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.lightbox-meta-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.01em;
  text-transform: none;
}
.lightbox-close {
  position: absolute;
  top: 28px; right: 32px;
  width: 40px; height: 40px;
  border: 1px solid var(--border-hi);
  color: var(--text);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

/* ================================================================== */
/* RESPONSIVE                                                           */
/* ================================================================== */

/* Tablet & down */
@media (max-width: 1080px) {
  .nav { padding: 14px 20px; }
  .nav-links .nav-link-index { display: none; }
  .nav-link { padding: 8px 12px; font-size: 11px; }
  .section { padding: 100px 24px; }
  .section-head { margin-bottom: 44px; }
  .hero-content { padding: 110px 24px 40px; }
  .hero-hud-tl, .hero-hud-tr { font-size: 9px; }
  .hero-hud-tl { top: 80px; left: 24px; }
  .hero-hud-tr { top: 80px; right: 24px; }
  .hero-playlist { left: 24px; bottom: 24px; }
  .hero-scroll-hint { display: none; }
  .about { grid-template-columns: 1fr; gap: 48px; max-width: 640px; }
  .about-portrait { max-width: 420px; }
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-auto-rows: 60px; gap: 8px; }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 14px; }
  .reticle { display: none; }

  /* Nav: brand only + hamburger, links collapse to drawer */
  .nav { padding: 12px 16px; }
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: 13px; }
  .nav-brand-mark { width: 28px; height: 28px; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    background: #090e16 !important;
    border-left: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 24px 32px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 49;
  }
  .nav-links.open { transform: translateX(0) translateZ(0); will-change: transform; z-index: 9999; }
  .nav-link {
    padding: 18px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav-link.active::before { left: 0; right: auto; width: 3px; top: 0; bottom: 0; height: auto; }
  .nav-link-index { display: inline !important; margin-right: 10px; }
  .nav-socials {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding: 24px 0 0;
    margin: 24px 0 0;
    justify-content: flex-start;
    gap: 8px;
  }
  .nav-toggle {
    display: grid !important;
    place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    color: var(--text);
    z-index: 60;
    position: relative;
  }

  /* Hero mobile */
  .hero { min-height: 640px; height: 100svh; }
  .hero-content { padding: 90px 20px 40px; }
  .hero-hud-tl, .hero-hud-tr { display: none; }
  .hero-bracket { width: 16px; height: 16px; }
  .hero-bracket.tl, .hero-bracket.tr { top: 76px; }
  .hero-bracket.tl, .hero-bracket.bl { left: 12px; }
  .hero-bracket.tr, .hero-bracket.br { right: 12px; }
  .hero-bracket.bl, .hero-bracket.br { bottom: 12px; }
  .hero-tag { font-size: 10px; padding: 5px 8px; letter-spacing: 0.2em; }
  .hero-title { font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.02em; margin-bottom: 18px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 28px; max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
  .btn { padding: 14px 18px; font-size: 11px; }
  .hero-socials {
    flex-direction: column;
    margin-top: 32px;
    padding-top: 18px;
    gap: 0;
  }
  .hero-social-link {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
  }
  .hero-social-link:first-child { padding: 14px 0; }
  .hero-social-link:last-child { border-bottom: 0; }
  .hero-playlist {
    left: 20px; bottom: 20px;
    font-size: 9px;
  }
  .hero-playlist-bar { width: 18px; }

  /* Sections */
  .section { padding: 80px 20px; }
  .section-head { margin-bottom: 36px; }
  .section-tag { font-size: 10px; letter-spacing: 0.2em; }
  .section-tag::before { width: 14px; }
  .section-title { font-size: clamp(30px, 8.5vw, 44px); }
  .section-sub { font-size: 14px; }

  /* Gallery: collapse to single column with auto-height */
  .gallery-filters { gap: 6px; }
  .gallery-filter { padding: 7px 10px; font-size: 10px; }
  .gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .gallery-item {
    grid-column: unset !important;
    grid-row: unset !important;
    aspect-ratio: 4 / 3;
    cursor: pointer;
  }
  .gallery-item:nth-child(3n+1) { aspect-ratio: 16 / 10; }
  .gallery-item:nth-child(3n+2) { aspect-ratio: 1 / 1; }
  .gallery-item-hud { opacity: 1; }
  .gallery-item-hud-bracket { width: 10px; height: 10px; }
  .gallery-item-title { font-size: 15px; }
  .gallery-item-loc { font-size: 9px; }
  .gallery-item-altitude { opacity: 1; font-size: 8px; }

  /* About */
  .about-portrait { max-width: none; }
  .about-body p { font-size: 15px; }
  .about-stats { grid-template-columns: 1fr; gap: 1px; }
  .about-stat { padding: 18px 16px; }
  .about-stat-value { font-size: 30px; }

  /* Gear */
  .gear-grid { grid-template-columns: 1fr; }
  .gear-item { padding: 22px 18px; }
  .gear-item-name { font-size: 18px; }

  /* Services */
  .service { padding: 28px 20px 22px; }
  .service-name { font-size: 20px; }
  .service-price-value { font-size: 36px; }
  .service.featured::before { top: -1px; right: 14px; font-size: 8px; padding: 4px 8px; }

  /* Contact */
  .contact-form { padding: 24px 18px; }
  .contact-info-value { font-size: 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-submit {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .form-submit .btn { justify-content: center; width: 100%; }
  .form-hint { text-align: center; font-size: 9px; }
  .budget-chip { padding: 7px 10px; font-size: 10px; }

  /* Footer */
  .footer { padding: 40px 20px 24px; }
  .footer-top { padding-bottom: 32px; gap: 24px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 9px;
    gap: 12px;
  }

  /* Lightbox */
  .lightbox { padding: 16px; }
  .lightbox-media { width: 100%; max-height: 60vh; }
  .lightbox-video { width: 100%; max-height: 60vh; }
  .lightbox-meta {
    left: 16px; right: 16px; bottom: 16px;
    font-size: 9px;
    gap: 10px;
  }
  .lightbox-meta-title { font-size: 16px; }
  .lightbox-close { top: 16px; right: 16px; width: 34px; height: 34px; }

  /* Boot veil */
  .boot-veil-inner { font-size: 10px; letter-spacing: 0.25em; text-align: center; padding: 0 24px; }
}

/* Hide the mobile nav toggle on larger viewports */
.nav-toggle { display: none; }
