/* ============================================================
   МТУ — Модерні Технології України
   Aesthetic: night-sky navy × wheat gold, defence-tech editorial
   ============================================================ */

:root {
  --ink: #060b18;
  --navy: #0b1526;
  --navy-2: #101e36;
  --line: rgba(233, 237, 245, 0.09);
  --line-strong: rgba(233, 237, 245, 0.18);
  --text: #e9edf5;
  --muted: #8c93a6;
  --gold: #ffd02e;
  --gold-soft: #e8b93c;
  --blue: #2e6bd6;
  --font-display: "Unbounded", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

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

/* smooth scrolling is driven by JS (rAF) — CSS smooth would double-ease each step */

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--navy-2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-soft); }

a { color: inherit; text-decoration: none; }

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

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 100;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 0.8rem 1.3rem; border-radius: 3px;
  transition: top .2s;
}
.skip:focus-visible { top: 1rem; }

section[id] { scroll-margin-top: 5rem; }

/* ---------- grain overlay ---------- */
.noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 60;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, padding .35s;
}
.header.scrolled {
  background: rgba(6, 11, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 0.6rem; padding-bottom: 0.6rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 26px; height: 30px; color: var(--gold); flex: none; }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: 0.06em; line-height: 1;
  display: flex; flex-direction: column; gap: 0.28rem;
}
.brand-text em {
  font-family: var(--font-mono); font-style: normal; font-weight: 400;
  font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); position: relative;
  transition: color .25s;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav-cta { color: var(--gold); }

.header-right { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); padding: 0.4rem 0.85rem; cursor: pointer;
  transition: border-color .25s;
}
.lang-toggle:hover { border-color: var(--gold-soft); }
.lang-toggle i { font-style: normal; opacity: 0.4; margin: 0 0.3rem; }
.lang-toggle .on { color: var(--gold); }

.burger { display: none; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ink);
  display: none; flex-direction: column; justify-content: center;
  gap: 2.2rem; padding: var(--pad);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--text);
}
.mobile-menu a:last-child { color: var(--gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem var(--pad) 4.5rem;
  background:
    radial-gradient(60% 50% at 75% 20%, rgba(46, 107, 214, 0.14), transparent 70%),
    radial-gradient(45% 40% at 15% 85%, rgba(255, 208, 46, 0.06), transparent 70%),
    var(--ink);
  overflow: hidden;
}
#fx { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner { position: relative; z-index: 2; max-width: 60rem; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-soft);
  display: flex; align-items: center; gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: var(--gold-soft); }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 7vw, 5.6rem);
  line-height: 1.04; letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}
.hero-title .line { display: block; }
.hero-title .gold {
  color: var(--gold);
  text-shadow: 0 0 60px rgba(255, 208, 46, 0.25);
}

.hero-sub {
  max-width: 34rem; color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 2.8rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 1rem 1.9rem; border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer; display: inline-block;
  transition: transform .25s ease, box-shadow .25s ease, background .25s, color .25s, border-color .25s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: var(--gold); color: var(--ink); font-weight: 500;
  box-shadow: 0 0 0 rgba(255, 208, 46, 0);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255, 208, 46, 0.28);
}
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-meta {
  position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 1.6rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.meta-scroll { display: flex; align-items: center; gap: 0.7rem; }
.meta-scroll i {
  width: 1px; height: 2.4rem; background: var(--line-strong);
  position: relative; overflow: hidden; display: block;
}
.meta-scroll i::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--gold);
  animation: scrollhint 2s ease-in-out infinite;
}
@keyframes scrollhint { 0% { top: -50%; } 70%, 100% { top: 110%; } }
.meta-flag { display: flex; flex-direction: column; width: 2.4rem; height: 1.5rem; border-radius: 2px; overflow: hidden; opacity: .85; }
.meta-flag .f-blue { flex: 1; background: #0057b7; }
.meta-flag .f-gold { flex: 1; background: #ffd500; }

/* ---------- imagery ---------- */
.img-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy);
}
.img-frame::before, .img-frame::after {
  content: ""; position: absolute; width: 14px; height: 14px; z-index: 2;
  border: 1px solid var(--gold-soft); pointer-events: none;
}
.img-frame::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.img-frame::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.img-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: translateY(var(--py, 0)) scale(1.08);
  will-change: transform;
}
.img-caption {
  position: absolute; left: 1.1rem; bottom: 0.9rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft);
  display: flex; align-items: center; gap: 0.7rem;
}
.img-caption::before { content: ""; width: 1.6rem; height: 1px; background: var(--gold-soft); }
.img-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,11,24,.55), transparent 35%, transparent 62%, rgba(6,11,24,.72)); }

/* hero artifact rotator: drone / turbofan / rocket */
.hero-drone {
  position: absolute; z-index: 1;
  right: clamp(-4rem, 2vw, 6rem); top: 50%;
  width: clamp(17rem, 34vw, 30rem); aspect-ratio: 4/5;
  transform: translateY(-50%);
  pointer-events: none;
  /* own entry animation instead of .reveal-load — that class would override
     drone-float and its fill-forwards would pin translateY(0), breaking centering */
  animation:
    drone-in .9s cubic-bezier(.2,.7,.2,1) .5s backwards,
    drone-float 9s ease-in-out 1.4s infinite;
}
@keyframes drone-in {
  from { opacity: 0; transform: translateY(-44%); }
  to { opacity: 1; transform: translateY(-52%); }
}
.hero-drone img,
.hero-drone video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(68% 68% at 50% 50%, #000 38%, transparent 72%);
  mask-image: radial-gradient(68% 68% at 50% 50%, #000 38%, transparent 72%);
  transform: translate(var(--dx, 0), var(--dy, 0));
  opacity: 0;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity 1.1s ease;
}
.hero-drone img.active,
.hero-drone video.active { opacity: 1; }
@keyframes drone-float {
  0%, 100% { transform: translateY(-52%); }
  50% { transform: translateY(-48%); }
}

.artifact-hud {
  margin-top: 2.4rem;
  display: flex; align-items: center; gap: 1.1rem;
}
.artifact-label {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-soft); white-space: nowrap;
  display: flex; align-items: center; gap: 0.7rem;
  min-width: 16ch;
}
.artifact-label::before { content: ""; width: 1.6rem; height: 1px; background: var(--gold-soft); flex: none; }
.artifact-dots { display: flex; gap: 1rem; }
.artifact-dots button {
  position: relative;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  border: 1px solid var(--gold-soft); background: transparent;
  padding: 0; cursor: pointer;
  transition: background .3s, transform .3s;
}
/* invisible 24px+ hit area around each dot (WCAG 2.5.8) */
.artifact-dots button::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
}
.artifact-dots button:hover { transform: scale(1.25); }
.artifact-dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); }


/* about photo band */
.about-photo {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  height: clamp(15rem, 36vw, 26rem);
}

/* stats over circuit macro */
.stats { position: relative; overflow: hidden; }
.stats-bg { position: absolute; inset: 0; }
.stats-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.38;
  transform: translateY(var(--py, 0)) scale(1.12); will-change: transform;
}
.stats-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,11,24,.92), rgba(6,11,24,.55) 50%, rgba(6,11,24,.92)); }
.stat { position: relative; z-index: 1; }

/* geography map */
.geo-map {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  height: clamp(13rem, 30vw, 22rem);
}

/* emblem in footer */
.footer-emblem {
  width: 74px; height: 74px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line-strong);
  filter: saturate(1.05);
}

@media (max-width: 900px) {
  .hero-drone { opacity: .5; right: -22vw; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.05rem 0;
  background: var(--navy);
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono); font-size: 0.82rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-soft); padding-right: 0.3em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) var(--pad); }

.section-head {
  display: flex; align-items: center; gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-head .idx {
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--gold); letter-spacing: 0.1em;
}
.section-head .rule { flex: 0 0 3.4rem; height: 1px; background: var(--line-strong); }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: uppercase; letter-spacing: 0.02em;
}

.statement {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
  line-height: 1.35; letter-spacing: 0;
  max-width: 26ch;
}

/* ---------- about ---------- */
.about { background: linear-gradient(180deg, var(--ink), var(--navy) 140%); }
.about-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.about-copy { position: relative; color: var(--muted); display: grid; gap: 1.3rem; padding-top: .4rem; }
.about-copy p { max-width: 42rem; }
.about-trident {
  position: absolute; right: -1rem; top: -4.5rem;
  width: clamp(5rem, 9vw, 8rem); color: rgba(255, 208, 46, 0.1);
  pointer-events: none;
}

/* ---------- divisions ---------- */
.divisions { background: var(--navy); }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--navy);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative; overflow: hidden;
  transition: background .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(38rem 16rem at var(--mx, 50%) var(--my, 0%), rgba(255, 208, 46, 0.07), transparent 55%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { background: var(--navy-2); }
.card-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2.6rem;
}
.card-idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.1em; }
.card-top svg { width: 30px; height: 30px; color: var(--gold-soft); transition: transform .35s ease, color .35s; }
.card:hover .card-top svg { transform: translateY(-3px) scale(1.06); color: var(--gold); }
.card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.3;
  margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.02em;
}
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tags span {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(232, 185, 60, 0.28); border-radius: 999px;
  padding: 0.28rem 0.7rem;
}

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink);
}
.stat {
  padding: clamp(2rem, 4vw, 3.4rem) 1.5rem;
  text-align: center;
  display: grid; gap: 0.6rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat b {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem); color: var(--gold);
  line-height: 1;
}
.stat > span:last-child {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- compliance ---------- */
.compliance { background: linear-gradient(180deg, var(--ink), #081020); }
.comp-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.comp-list { list-style: none; display: grid; gap: 0; }
.comp-list li {
  display: flex; gap: 1.6rem; align-items: flex-start;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.comp-list li:first-child { border-top: 1px solid var(--line); }
.comp-n {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink);
  background: var(--gold); border-radius: 2px;
  width: 1.7rem; height: 1.7rem; flex: none;
  display: grid; place-items: center; font-weight: 500;
  margin-top: 0.2rem;
}
.comp-list h4 {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.4rem;
}
.comp-list p { color: var(--muted); font-size: 0.95rem; }

/* ---------- geography ---------- */
.geography { background: var(--navy); position: relative; overflow: hidden; }
.geography .statement { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.geo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  position: relative; z-index: 1;
}
.geo-col { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; }
.geo-tag {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.9rem;
}
.geo-col p { color: var(--muted); font-size: 0.98rem; line-height: 2; }
.geo-arc {
  position: absolute; left: 0; right: 0; bottom: -1rem;
  width: 100%; height: 12rem; color: rgba(233, 237, 245, 0.16);
  pointer-events: none;
}

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--ink), var(--navy) 160%); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.contact-info dl { display: grid; gap: 1.4rem; margin-top: 2.6rem; }
.contact-info dt {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.3rem;
}
.contact-info dd { font-size: 1.1rem; }
.contact-info dd a { border-bottom: 1px solid var(--gold-soft); transition: color .25s; }
.contact-info dd a:hover { color: var(--gold); }

.contact-form { display: grid; gap: 1.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.contact-form label { display: grid; gap: 0.5rem; }
.contact-form label > span {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.contact-form input, .contact-form textarea {
  background: rgba(233, 237, 245, 0.03);
  border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  padding: 0.9rem 1rem; resize: vertical;
  transition: border-color .25s, background .25s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(140, 147, 166, 0.55); }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255, 208, 46, 0.03);
}
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.8rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad) 2rem;
  background: var(--ink);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2.6rem;
}
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 26rem; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
  margin-bottom: 1.6rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-links a { color: var(--muted); transition: color .25s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--muted);
}

/* honeypot — present for bots, fully off-screen for humans & assistive tech */
.hp-field {
  position: absolute !important; left: -9999px !important;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
/* Turnstile widget + a sending-state on the submit button */
.cf-turnstile { margin: 0.3rem 0; }
/* Until a real Turnstile sitekey replaces the placeholder, hide the widget so it
   never renders its raw "Troubleshoot" error link. Real key → this stops matching. */
.cf-turnstile[data-sitekey*="REPLACE_WITH"] { display: none; }
.contact-form button[disabled] { opacity: 0.55; cursor: progress; }
.form-note a { color: var(--gold-soft); border-bottom: 1px solid var(--gold-soft); }
.form-note a:hover { color: var(--gold); }

/* ---------- legal pages (privacy / legal / terms) ---------- */
.legal-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(6, 11, 24, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-header .header-right { display: flex; align-items: center; gap: 1.2rem; }
.legal-back {
  font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  transition: color .25s;
}
.legal-back:hover { color: var(--gold); }
.legal-wrap { max-width: 52rem; margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad) 5rem; }
.legal-wrap h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase;
  letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 0.6rem;
}
.legal-updated {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2.4rem;
}
.legal-wrap h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.4rem); text-transform: uppercase;
  letter-spacing: 0.02em; margin: 2.6rem 0 0.9rem;
}
.legal-wrap h3 { font-size: 1rem; color: var(--text); margin: 1.6rem 0 0.5rem; }
.legal-wrap p, .legal-wrap li { color: var(--muted); }
.legal-wrap p { margin-bottom: 1rem; }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 1rem 1.2rem; display: grid; gap: 0.5rem; }
.legal-wrap a { color: var(--gold-soft); border-bottom: 1px solid var(--gold-soft); }
.legal-wrap a:hover { color: var(--gold); }
.legal-note {
  border: 1px solid var(--line-strong); border-left: 3px solid var(--gold);
  background: rgba(255, 208, 46, 0.04); border-radius: 2px;
  padding: 1rem 1.2rem; margin: 0 0 2.4rem; font-size: 0.9rem; color: var(--muted);
}
/* highlights every value the owner still needs to fill with real data */
.legal-ph {
  color: var(--gold); background: rgba(255, 208, 46, 0.08);
  padding: 0 0.3em; border-radius: 2px;
  font-family: var(--font-mono); font-size: 0.9em; border-bottom: 0 !important;
}
.legal-dl { display: grid; gap: 0.8rem; margin: 0 0 1.5rem; }
.legal-dl > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; }
.legal-dl dt { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-dl dd { color: var(--text); }
@media (max-width: 600px) { .legal-dl > div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ---------- film button & modal ---------- */
.btn-film { display: inline-flex; align-items: center; gap: 0.6rem; }
.btn-film svg { width: 11px; height: 11px; color: var(--gold); }
.btn-film:hover svg { color: inherit; }

.film-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(6, 11, 24, 0.96);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.film-modal[hidden] { display: none; }
.film-modal video {
  width: min(1200px, 100%);
  max-height: 82vh;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
  background: #000;
}
.film-close {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); font-size: 1rem; cursor: pointer;
  transition: border-color .25s, color .25s, transform .25s;
}
.film-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }

/* ---------- journey promo ---------- */
.journey-promo { padding-top: 0; }
.journey-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line);
  min-height: clamp(18rem, 42vw, 28rem);
}
.journey-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: translateY(var(--py, 0)) scale(1.08);
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.journey-card:hover img { transform: translateY(var(--py, 0)) scale(1.13); }
.journey-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,11,24,.88) 0%, rgba(6,11,24,.55) 45%, rgba(6,11,24,.15) 100%);
}
.journey-copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.1rem;
  padding: clamp(2rem, 6vw, 4.5rem);
  max-width: 34rem;
}
.journey-eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-soft);
}
.journey-copy h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  text-transform: uppercase; line-height: 1.1;
}
.journey-copy p { color: var(--muted); max-width: 30rem; }
.journey-copy .btn { margin-top: 0.4rem; }
.journey-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- intro (once per session) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity .55s ease, visibility .55s;
}
.intro svg { width: clamp(64px, 10vw, 96px); }
.intro path {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: intro-draw .95s cubic-bezier(.4,0,.2,1) forwards;
}
.intro path:nth-child(2) { animation-delay: .18s; }
.intro path:nth-child(3) { animation-delay: .38s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.intro.off { display: none; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 110;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  box-shadow: 0 0 12px rgba(255, 208, 46, 0.55);
  pointer-events: none;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translate(-50%, 200%);
  opacity: 0; pointer-events: none;
  background: var(--gold); color: var(--ink);
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  padding: 0.95rem 1.6rem; border-radius: 3px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  transition: transform .45s cubic-bezier(.2,.9,.25,1.2), opacity .3s;
  z-index: 80; max-width: min(92vw, 34rem); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- reveal animations ---------- */
.reveal-load {
  opacity: 0; transform: translateY(26px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--rd, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-load { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .comp-grid, .contact-grid { grid-template-columns: 1fr; }
  .statement { max-width: none; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .burger span { width: 24px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .geo-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-meta .meta-coord { display: none; }

  /* iOS/mobile: the hero artifact becomes a faint centered backdrop —
     it must never collide with or clutter the hero copy (which sits at z-index 2). */
  .hero-drone {
    right: auto; left: 50%; top: 43%;
    width: min(112vw, 27rem);
    transform: translate(-50%, -50%);
    opacity: .22;
    animation: none;
  }
  .hero-drone img, .hero-drone video { transform: none; }

  /* journey promo card: full-width copy needs the image darkened top-to-bottom
     (the desktop left-to-right veil leaves mobile text sitting over the drone). */
  .journey-veil {
    background: linear-gradient(180deg,
      rgba(6,11,24,.92) 0%, rgba(6,11,24,.74) 55%, rgba(6,11,24,.44) 100%);
  }
  .journey-copy { max-width: none; }
}
