/* ==========================================================
   True North Civil — landing page
   ========================================================== */

:root {
  --ink: #0b1522;
  --navy: #122238;
  --navy-2: #1a2e4a;
  --blue: #335daa;          /* sampled from logo */
  --blue-bright: #4d7fd6;
  --blue-soft: #e6edf8;
  --paper: #f5f5f1;
  --steel: #e9ecef;
  --line: #d9dde2;
  --text: #1b2330;
  --muted: #5d6877;
  --on-dark: #e8edf4;
  --on-dark-muted: #9aa8bb;
  --hivis: #f2b705;         /* equipment yellow, used sparingly */

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 21, 34, .06), 0 12px 32px -12px rgba(11, 21, 34, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 32px); } }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .01em;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.btn--primary { --bg: var(--blue); --fg: #fff; box-shadow: 0 10px 24px -10px rgba(51, 93, 170, .8); }
.btn--primary:hover { --bg: var(--blue-bright); }
.btn--ghost { --fg: #fff; --bd: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn--ghost:hover { --bd: #fff; background: rgba(255,255,255,.14); }
.btn--light { --bg: #fff; --fg: var(--navy); }
.btn--light:hover { --bg: var(--paper); }
.btn--sm { padding: .65em 1.15em; font-size: .88rem; }
.btn--lg { padding: 1.05em 1.8em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.is-scrolled {
  background: rgba(11, 21, 34, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  --nav-h: 64px;
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand img { height: 30px; width: auto; transition: height .35s; }
.nav.is-scrolled .nav__brand img { height: 26px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; font-size: .95rem;
  position: relative; transition: color .2s;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue-bright); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: #fff; }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease); }
.nav__toggle span + span { margin-top: 7px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.nav__mobile {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(11, 21, 34, .97); backdrop-filter: blur(14px);
  padding: 12px 16px 24px; display: grid; gap: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a:not(.btn) { color: #fff; text-decoration: none; padding: 14px 4px; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__mobile .btn { margin-top: 16px; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.menu-open { background: rgba(11, 21, 34, .97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; isolation: isolate;
  background: var(--ink);
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  background: var(--ink) url("assets/hero-drone-poster.jpg") center / cover no-repeat;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,21,34,.92) 0%, rgba(11,21,34,.72) 40%, rgba(11,21,34,.25) 75%, rgba(11,21,34,.35) 100%),
    linear-gradient(0deg, rgba(11,21,34,.95) 0%, rgba(11,21,34,0) 35%),
    linear-gradient(180deg, rgba(11,21,34,.6) 0%, rgba(11,21,34,0) 22%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .12; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 0%, transparent 60%);
}
.hero__content { padding: calc(var(--nav-h) + 48px) 0 150px; max-width: 1200px; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px;
  font: 600 .78rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: #cfd9e8;
  padding: 10px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  background: rgba(255,255,255,.05); backdrop-filter: blur(6px);
  margin-bottom: 28px;
}
@media (max-width: 480px) { .eyebrow { font-size: .66rem; letter-spacing: .12em; gap: 8px; padding: 9px 12px; } }
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-bright); }
.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.025em; line-height: 1.02;
  max-width: 14ch; margin-bottom: 24px;
}
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 0; background: linear-gradient(90deg, #8fb2f0, #fff); -webkit-background-clip: text; background-clip: text; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d4dce8; max-width: 56ch; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(0deg, rgba(11,21,34,.6), rgba(11,21,34,.2));
  backdrop-filter: blur(8px);
}
.hero__bar-inner { display: flex; align-items: center; gap: 48px; padding: 20px 0; }
.hero__fact { display: grid; gap: 2px; }
.hero__fact-k { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero__fact-v { font-weight: 600; font-size: .98rem; }
.hero__play, .hero__scroll {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3);
  transition: background .25s, border-color .25s;
}
.hero__play {
  margin-left: auto; background: none; cursor: pointer; padding: 0; color: #fff;
}
.hero__play svg { width: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hero__play .i-play { fill: currentColor; stroke-width: 1.5; display: none; }
.hero__play[aria-pressed="true"] .i-play { display: block; }
.hero__play[aria-pressed="true"] .i-pause { display: none; }
.hero__play:focus-visible, .hero__scroll:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; }
.hero__play:hover, .hero__scroll:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero__scroll svg { width: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

@media (max-width: 860px) {
  .hero__bar-inner { gap: 20px 32px; flex-wrap: wrap; }
  .hero__fact:nth-child(3) { display: none; }
  .hero__scroll { display: none; }
  .hero__play { position: absolute; right: 16px; top: -62px; background: rgba(11,21,34,.4); }
  .hero__content { padding-bottom: 130px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--light { background: var(--paper); }
.section--steel { background: var(--steel); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h4 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.section__head--row h2 { margin-bottom: 0; }
.section__head--row .section__sub { margin-bottom: 6px; }
@media (max-width: 860px) { .section__head--row { grid-template-columns: 1fr; } }
.section__sub { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 .78rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.kicker--light { color: var(--blue-bright); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px 30px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--blue-soft);
  display: grid; place-items: center; margin-bottom: 26px;
  transition: background .3s;
}
.service__icon svg { width: 30px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.service:hover .service__icon { background: var(--blue); }
.service:hover .service__icon svg { stroke: #fff; }
.service__num { position: absolute; top: 28px; right: 28px; font: 700 .85rem var(--font-display); color: #b8c0cb; letter-spacing: .06em; }
.service p { color: var(--muted); font-size: .98rem; }
.service ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.service li { font-size: .92rem; font-weight: 500; padding-left: 22px; position: relative; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px;
  border: 2px solid var(--blue); border-radius: 50%;
}

/* ---------- About ---------- */
.about { overflow: hidden; }
.about::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(51,93,170,.28), transparent 65%); pointer-events: none;
}
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; position: relative; }
@media (max-width: 960px) { .about__grid { grid-template-columns: 1fr; } }
.about__media { position: relative; }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__photo img { transform: scale(1.04); }
@media (max-width: 960px) { .about__photo { aspect-ratio: 4 / 3; } }
.about__compass {
  position: absolute; right: -28px; bottom: -28px; width: 150px; height: 150px;
  border-radius: 50%; background: var(--ink); padding: 14px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
@media (max-width: 600px) { .about__compass { width: 110px; height: 110px; right: 12px; bottom: -24px; } }
.about__compass svg { width: 100%; height: 100%; overflow: visible; }
.about__compass .ring { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1.5; }
.about__compass .ring--inner { stroke-dasharray: 2 5; }
.about__compass .ticks path { stroke: rgba(255,255,255,.5); stroke-width: 2; stroke-linecap: round; }
.about__compass .needle { transform-origin: 60px 60px; animation: settle 3.2s var(--ease) both; animation-play-state: paused; }
.about__media.is-visible .needle { animation-play-state: running; }
.about__compass .n { fill: var(--blue-bright); }
.about__compass .s { fill: rgba(255,255,255,.85); }
.about__compass .hub { fill: var(--ink); stroke: #fff; stroke-width: 2; }
@keyframes settle {
  0% { transform: rotate(-120deg); }
  45% { transform: rotate(28deg); }
  65% { transform: rotate(-12deg); }
  82% { transform: rotate(5deg); }
  100% { transform: rotate(0deg); }
}
.about__copy > p:not(.kicker) { color: var(--on-dark-muted); font-size: 1.05rem; }
.about__copy h2 { margin-bottom: 24px; }
.mission {
  margin: 36px 0; padding: 28px 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(51,93,170,.28), rgba(51,93,170,.08));
  border: 1px solid rgba(77,127,214,.35); position: relative;
}
.mission__label { display: block; font: 700 .72rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 12px; }
.mission p { margin: 0; color: #fff; font-size: 1.12rem; line-height: 1.55; font-weight: 500; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.value { padding-left: 18px; border-left: 2px solid rgba(77,127,214,.6); }
.value h4 { margin-bottom: 4px; }
.value p { margin: 0; font-size: .93rem; color: var(--on-dark-muted); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 170px; gap: 18px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; background: var(--steel); }
.tile--tall { grid-column: span 4; grid-row: span 3; }
.tile--wide { grid-column: span 8; grid-row: span 3; }
.gallery .tile:nth-child(3) { grid-column: 1 / span 8; }
.gallery .tile:nth-child(4) { grid-column: 9 / span 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,21,34,.85) 0%, rgba(11,21,34,0) 50%);
  opacity: .85; transition: opacity .4s;
}
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { opacity: 1; }
.tile figcaption {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff;
  font: 700 1.15rem/1.2 var(--font-display); font-stretch: 110%;
  transform: translateY(6px); transition: transform .4s var(--ease);
}
.tile:hover figcaption { transform: none; }
.tile figcaption span {
  display: table; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px;
  font: 600 .7rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .gallery .tile { grid-column: span 1 !important; grid-row: auto; aspect-ratio: 3 / 4; }
  .gallery .tile--wide { grid-column: span 2 !important; aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .tile, .gallery .tile--wide { grid-column: span 1 !important; aspect-ratio: 4 / 3; }
}

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.process::before {
  content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 18px); opacity: .45;
}
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { position: relative; }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue); color: var(--blue);
  font: 800 1rem var(--font-display); margin-bottom: 22px; position: relative;
  transition: background .3s, color .3s;
}
.step:hover .step__n { background: var(--blue); color: #fff; }
.step p { color: var(--muted); font-size: .98rem; max-width: 30ch; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255,255,255,.18), transparent 50%),
    linear-gradient(120deg, var(--blue) 0%, #26498c 100%);
  color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: repeating-linear-gradient(-45deg, #fff 0 2px, transparent 2px 22px);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
@media (max-width: 760px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 20px; }
.info dt { font: 700 .72rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.info dd { margin: 0; font-weight: 500; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); text-decoration: none; }
.link-arrow svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.map { margin-top: 28px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--steel); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); transition: filter .5s; }
.map:hover iframe { filter: none; }

.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
  display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--text); }
.field b { color: var(--blue); }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfbfa;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(51,93,170,.15);
}
.field input[aria-invalid="true"] { border-color: #c2412d; box-shadow: 0 0 0 4px rgba(194,65,45,.12); }
.field--file input { padding: 11px; background: var(--paper); border-style: dashed; cursor: pointer; }
.field--file input::file-selector-button {
  font: 600 .85rem var(--font-body); margin-right: 12px; padding: 8px 14px;
  border: 0; border-radius: 8px; background: var(--navy); color: #fff; cursor: pointer;
}
.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; font-weight: 500; text-align: center; }
.form__status.is-ok { color: #1d7a45; }
.form__status.is-err { color: #c2412d; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 40px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 40px; }
.footer__logo { height: 28px; width: auto; }
.footer__tag { margin: 0; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { text-decoration: none; color: var(--on-dark); font-weight: 500; font-size: .95rem; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { grid-column: 1 / -1; margin: 32px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; gap: 16px 24px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(8, 14, 24, .92); backdrop-filter: blur(10px); padding: 24px;
  animation: fade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: min(1200px, 100%); border-radius: var(--radius); box-shadow: 0 40px 80px rgba(0,0,0,.5); animation: pop .4s var(--ease); }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
