/* Farbetter Builds - Theme A "Studio" (dark editorial) */
:root {
  --bg: #121210; --panel: #1a1a17; --panel-2: #22221e;
  --ink: #f2efe8; --muted: #a8a296; --faint: #6e6a60;
  --accent: #266ffc; --accent-ink: #ffffff;
  --line: rgba(242, 239, 232, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 300;
  font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 20px 4vw;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(18, 18, 16, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 12px 4vw; border-bottom-color: var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.05; letter-spacing: 0.34em; font-weight: 500; font-size: 13px; }
.brand-sub { letter-spacing: 0.62em; font-size: 9px; color: var(--accent); font-weight: 400; }
.nav-desktop { display: flex; gap: 26px; margin-left: auto; }
.nav-link { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); position: relative; padding: 4px 0; transition: color 0.25s; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { font-size: 12.5px; letter-spacing: 0.12em; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; transition: all 0.3s var(--ease); white-space: nowrap; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 10px; margin-left: auto; }
.nav-toggle span { width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 49; background: rgba(18, 18, 16, 0.97);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 8vw;
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay .nav-link { font-family: var(--font-display); font-size: clamp(28px, 7vw, 40px); text-transform: none; letter-spacing: 0; color: var(--ink); padding: 8px 0; display: block; }
.nav-overlay-cta { margin-top: 28px; font-size: 20px; color: var(--accent); }
.nav-overlay-mail { color: var(--muted); font-size: 15px; }
body.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 4vw 12vh; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroDrift 18s var(--ease) forwards; }
@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,16,0.62) 0%, rgba(18,18,16,0.18) 60%, transparent 100%), linear-gradient(180deg, rgba(18,18,16,0.5) 0%, rgba(18,18,16,0.3) 40%, rgba(18,18,16,0.9) 100%); }
.hero-content { position: relative; max-width: 900px; }
.hero-kicker { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.hero-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(46px, 8.5vw, 110px); line-height: 1.02; letter-spacing: -0.01em; }
.hero-title em { font-style: italic; color: #6f9bff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-scroll { position: absolute; right: 4vw; bottom: 12vh; width: 1px; height: 72px; background: var(--line); overflow: hidden; }
.hero-scroll span { position: absolute; inset: 0; background: var(--accent); animation: scrollHint 2.2s var(--ease) infinite; }
@keyframes scrollHint { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-size: 14px; letter-spacing: 0.08em; font-weight: 400; transition: all 0.3s var(--ease); }
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--ink); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ---------- facts strip ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 34px 4vw; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- sections ---------- */
.section-head { padding: 12vh 4vw 6vh; max-width: 1000px; }
.section-kicker { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.section-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.08; }

/* ---------- featured projects ---------- */
.fproj { padding: 8vh 4vw; border-top: 1px solid var(--line); max-width: 1500px; }
.fproj-head { display: flex; gap: 26px; align-items: baseline; margin-bottom: 26px; }
.fproj-num { font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--accent); }
.fproj-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4vw, 46px); line-height: 1.1; }
.fproj-loc { color: var(--muted); font-size: 0.55em; font-family: var(--font-body); font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; margin-left: 12px; white-space: nowrap; }
.fproj-specs { color: var(--muted); font-size: 15px; margin-top: 8px; }
.fproj-body { max-width: 720px; color: var(--muted); margin-bottom: 16px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 560px); gap: 14px; overflow-x: auto; padding: 26px 4vw 10px 0; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -4vw; }
.gallery::-webkit-scrollbar { display: none; }
.g-item { scroll-snap-align: start; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; padding: 0; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), filter 0.4s; }
.g-item:hover img { transform: scale(1.045); filter: brightness(1.06); }

/* ---------- inner pages ---------- */
.page-main { padding-top: 15vh; }
.page-head { padding: 6vh 4vw 5vh; max-width: 900px; }
.page-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 6vw, 72px); line-height: 1.05; }
.page-lede { color: var(--muted); margin-top: 20px; font-size: 18px; max-width: 640px; }

.sproj { padding: 6vh 4vw; border-top: 1px solid var(--line); max-width: 1500px; }
.sproj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.sproj-tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.sproj-name { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 40px); margin-top: 6px; }
.sproj-stat { font-size: 13px; letter-spacing: 0.1em; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.sproj-body { max-width: 720px; color: var(--muted); margin-bottom: 14px; }

.drone-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 0 4vw 8vh; }
.drone-card { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; padding: 0; text-align: left; }
.drone-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.drone-card:hover img { transform: scale(1.05); }
.drone-label { position: absolute; left: 18px; bottom: 16px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; background: rgba(18,18,16,0.66); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; }

.services { display: flex; flex-wrap: wrap; gap: 12px; padding: 0 4vw 5vh; }
.service-chip { border: 1px solid var(--line); border-radius: 999px; padding: 12px 22px; font-size: 14.5px; letter-spacing: 0.04em; color: var(--ink); transition: all 0.3s var(--ease); }
.service-chip:hover { border-color: var(--accent); color: var(--accent); }
.why-body { padding: 0 4vw 6vh; max-width: 780px; }
.why-body p { color: var(--muted); margin-bottom: 18px; font-size: 18px; }

.lic-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 6vw; padding: 0 4vw 8vh; align-items: start; }
.lic-copy p { color: var(--muted); margin-bottom: 18px; font-size: 18px; }
.lic-figure { position: sticky; top: 14vh; }
.lic-shot { width: 100%; border-radius: 12px; overflow: hidden; }
.lic-figure figcaption { color: var(--faint); font-size: 13px; margin-top: 12px; letter-spacing: 0.06em; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; padding: 2vh 4vw 14vh; max-width: 1100px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 40px 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; transition: all 0.35s var(--ease); }
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-2); }
.contact-kind { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.contact-value { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; overflow-wrap: anywhere; }
.contact-hint { color: var(--faint); font-size: 14px; }

/* ---------- cta band ---------- */
.cta-band { margin: 8vh 4vw; padding: 9vh 6vw; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.cta-kicker { font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.cta-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 34px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 8vh 4vw 4vh; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-logo { width: 180px; border-radius: 10px; }
.footer-tag { color: var(--faint); font-size: 14px; margin-top: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-fine { margin-top: 6vh; color: var(--faint); font-size: 13px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 9, 0.94); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.lb-close { position: absolute; top: 22px; right: 28px; font-size: 38px; line-height: 1; color: var(--ink); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 46px; color: var(--ink); padding: 20px; opacity: 0.7; }
.lb-prev:hover, .lb-next:hover { opacity: 1; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- reveal ---------- */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-media img { animation: none; } }

/* ---------- responsive ---------- */
.hero-kicker, .hero-title { text-shadow: 0 1px 14px rgba(0,0,0,0.5); }
@media (max-width: 900px) {
  .hero-kicker { letter-spacing: 0.18em; font-size: 11.5px; }
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .lic-grid { grid-template-columns: 1fr; }
  .lic-figure { position: static; }
  .drone-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 82vw; }
}
@media (min-width: 901px) { .nav-toggle, .nav-overlay { display: none; } .nav-overlay.open { display: flex; } }
.lic-logo-card { border-radius: 12px; overflow: hidden; }
.lic-logo-card img { width: 100%; }

/* drone sub-pages + hero video */
.drone-hero { padding: 0 4vw 5vh; }
.drone-hero video { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.drone-videos { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0 4vw 4vh; max-width: 1100px; }
.drone-videos video { width: 100%; border-radius: 12px; display: block; background: #000; }
@media (min-width: 900px) { .drone-videos:has(video:nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.drone-photos { padding: 0 4vw 6vh; }
.drone-copy { padding: 0 4vw 4vh; max-width: 900px; }
a.drone-card { display: block; color: inherit; text-decoration: none; cursor: pointer; }
