/* Global Defence Barriers — gdbnz.co.nz
   Hand-authored. Values carried over from design/GDB Website.dc.html. */

:root {
  --navy: #001233;
  --deep: #002855;
  --blue: #0553A4;
  --mist: #EEF0F2;
  --tint: #F4F5F7;
  --line: #E2E6EB;
  --line-dark: #1B3050;
  --line-deeper: #23405F;
  --text: #3A4552;
  --muted: #5C6672;
  --sky: #7FA8E8;
  --sky-soft: #94A8C4;
  --body-on-dark: #C8D4E4;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: Saira, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* No box-sizing reset on purpose: the signed-off design was built on the
   default content-box model (containers are 1240px + 28px gutters). */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  font-family: var(--font-body);
  color: var(--navy);
  /* clip, not hidden: the full-bleed hero/testing images extend past the
     gutter, and hidden would turn body into a scroll container and break the
     sticky header. */
  overflow-x: clip;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--deep); }
img { display: block; }
h1, h2, h3, p, figure { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.stack { display: flex; flex-direction: column; min-width: 0; }
.mono { font-family: var(--font-mono); }

/* Recurring type pieces */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
}
.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
h2 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h2-lg { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; }
.h2-md { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.h2-sm { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.lede { font-size: 15.5px; line-height: 1.65; color: var(--text); text-wrap: pretty; }
.copy { font-size: 16px; line-height: 1.65; color: var(--text); text-wrap: pretty; }

/* Three-panel brand rule */
.rule { display: flex; align-items: stretch; height: 8px; width: 76px; }
.rule span { flex: 1; }
.rule span:nth-child(2) { background: #81868A; margin: 0 2px; }
.rule span:nth-child(3) { background: var(--blue); }
.rule .p1-white { background: #fff; }
.rule .p1-deep { background: var(--deep); }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 26px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--deep); }
.btn-ghost { border: 1px solid #3E5A80; color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

/* Reading progress */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 60; pointer-events: none;
}
.progress div { height: 100%; width: 0%; background: var(--blue); transition: width .12s linear; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 20px rgba(0, 20, 40, .10); }
.site-header .wrap {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav a { font-size: 13.5px; color: var(--text); font-weight: 500; transition: color .25s ease, background .25s ease; }
.nav a:hover { color: var(--blue); }
.nav .nav-cta {
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  padding: 10px 18px; letter-spacing: .01em;
}
.nav .nav-cta:hover { background: var(--deep); color: #fff; }

/* Phones: one slim row (logo + the call to action). The page is a single
   scroll, and the full menu wrapped to ~200px of a sticky header. */
@media (max-width: 960px) {
  .site-header .wrap { flex-wrap: nowrap; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
  .brand img { height: 24px; }
  .nav { gap: 0; flex-wrap: nowrap; }
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { padding: 9px 13px; font-size: 12px; white-space: nowrap; }
}

/* Hero */
.hero { background: var(--deep); color: #fff; position: relative; }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  align-items: stretch;
}
.hero-copy { padding: 84px 40px 84px 0; gap: 26px; justify-content: center; }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-lede {
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55;
  color: var(--body-on-dark); max-width: 34em; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.hero-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  color: var(--sky); padding-top: 10px;
}
.bleed-frame { position: relative; min-height: 440px; }
.bleed-right, .bleed-left { position: absolute; top: 0; bottom: 0; }
.bleed-right { left: 0; right: calc(-28px - max(0px, (100vw - 1240px) / 2)); }
.bleed-left { right: 0; left: calc(-28px - max(0px, (100vw - 1240px) / 2)); }
.bleed-right img, .bleed-left img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* Key figures */
.figures { background: var(--navy); color: #fff; }
.figures-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px; background: var(--line-dark);
}
.figure { background: var(--navy); padding: 28px 26px; display: flex; flex-direction: column; gap: 7px; }
.figure:first-child { padding-left: 0; }
.figure:last-child { padding-right: 0; }
.figure b { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1; color: #fff; }
.figure b small { font-size: 19px; font-weight: 700; }
.figure span { font-size: 12.5px; line-height: 1.45; color: var(--sky-soft); }

/* Film */
.film { background: var(--navy); color: #fff; }
.film .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 34px; }
.two-col {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: end;
}
.film-lede { font-size: 16px; line-height: 1.65; color: var(--body-on-dark); text-wrap: pretty; }
.film-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--navy); border: 1px solid var(--line-dark);
}
.film-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark);
}
.beat { background: var(--navy); padding: 20px 22px; }
.beat time {
  display: block; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .14em; color: var(--sky); margin-bottom: 7px;
}
.beat p { font-size: 13px; line-height: 1.5; color: var(--body-on-dark); }

/* The system */
.system .wrap {
  padding-top: 96px; padding-bottom: 96px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px; align-items: start;
}
.system .stack { gap: 20px; }
.system figure { margin-top: 8px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.system figure img { width: 100%; height: auto; border: 1px solid var(--line); }
figcaption {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted); line-height: 1.6;
}
.config-list { border-top: 1px solid var(--line); margin-top: 18px; }
.config-list li {
  display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  align-items: baseline; font-size: 15px; line-height: 1.45;
}
.config-list li::before {
  content: attr(data-n); font-family: var(--font-mono); font-size: 11px;
  color: var(--blue); min-width: 22px;
}
ul { list-style: none; margin: 0; padding: 0; }

/* Pull line in "A smarter approach" */
.pullline {
  font-family: var(--font-head); font-weight: 600; font-size: 22px;
  line-height: 1.3; color: var(--deep); letter-spacing: -.01em;
}

/* Benefits */
.benefits { background: var(--tint); }
.benefits .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 44px; }
.cells {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.cell { background: #fff; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.cell h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.cell p { font-size: 13.5px; line-height: 1.55; color: var(--text); }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blue);
  padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px;
}
.callout h3 { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.callout p { font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* Testing */
.testing { background: var(--deep); color: #fff; }
.testing .bleed-frame { min-height: 420px; }
.testing-copy { padding: 88px 0 88px 56px; gap: 24px; justify-content: center; }
.testing-copy p { font-size: 15.5px; line-height: 1.6; color: var(--body-on-dark); text-wrap: pretty; }
.testing-copy p.note { font-size: 13.5px; color: var(--sky-soft); text-wrap: initial; }
.test-list { border-top: 1px solid var(--line-deeper); }
.test-list li {
  padding: 15px 0; border-bottom: 1px solid var(--line-deeper);
  font-size: 14.5px; line-height: 1.5; color: #E4EBF4;
}

/* Demo film (with sound; the visitor presses play) */
.reel { background: var(--tint); }
.reel .wrap { padding-top: 88px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 34px; }
.reel-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); border: 1px solid var(--line); }
.reel-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--navy); }
.reel-note { margin-top: -18px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Gallery */
.gallery { background: var(--tint); }
.gallery .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }

/* Photo crops: keep the barrier in frame inside the tall columns */
.hero .bleed-right img { object-position: 55% 50%; }
.testing .bleed-left img { object-position: 27% 50%; }

/* Applications */
.applications .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px; }
.app { padding-top: 22px; display: flex; flex-direction: column; gap: 14px; border-top: 3px solid var(--blue); }
.app.c-deep { border-top-color: var(--deep); }
.app.c-grey { border-top-color: var(--muted); }
.app h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.2; }
.app ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--text); }
.app.prose ul { gap: 10px; line-height: 1.55; }

/* Links from the application cards and landing-page cross-links */
.more {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.cell .more { margin-top: auto; padding-top: 6px; }
a.cell, a.cell:hover { color: inherit; }
.eyebrow a { color: inherit; }
.eyebrow a:hover { color: #fff; }

/* Spec sheet page */
.specview .wrap { padding-top: 72px; padding-bottom: 88px; }
.specview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.sheet { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.sheet img { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 32, 72, .10); }
.specdata { gap: 20px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.spec-table thead th, .spec-table tr:first-child th[scope="col"] { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec-table th[scope="row"] { color: var(--text); }
.spec-table td { font-family: var(--font-mono); color: var(--navy); }
.spec-notes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Investment */
.investment { background: var(--tint); }
.investment .wrap {
  padding-top: 80px; padding-bottom: 80px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px;
}
.investment .stack { gap: 16px; }
.investment h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 28px; margin-top: 18px; }
.value { display: flex; flex-direction: column; gap: 5px; }
.value h3 { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.value p { font-size: 13px; line-height: 1.5; color: var(--text); }

/* Who */
.who .wrap { padding-top: 92px; padding-bottom: 92px; display: flex; flex-direction: column; gap: 36px; }
.who-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.who-grid li { background: #fff; padding: 20px 22px; font-size: 14.5px; line-height: 1.4; }
.who-grid li.aside {
  background: var(--tint); font-size: 13px; color: var(--muted);
  display: flex; align-items: center;
}

/* FAQ */
.faq { background: var(--tint); }
.faq .wrap { padding-top: 92px; padding-bottom: 92px; display: flex; flex-direction: column; gap: 44px; }

/* Demonstration */
.demo { background: var(--blue); color: #fff; }
.demo .wrap {
  padding-top: 88px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px; align-items: start;
}
.demo .stack { gap: 20px; }
.demo .eyebrow { color: #B6CDF2; }
.demo h2 {
  font-weight: 700; font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.05; letter-spacing: -.02em;
}
.demo-lede { font-size: 16px; line-height: 1.6; color: #DCE7FA; max-width: 32em; text-wrap: pretty; }
.demo-line { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; padding-top: 6px; }

.form-card {
  background: #fff; color: var(--navy); padding: 32px;
  display: flex; flex-direction: column; gap: 16px; min-width: 0;
}
.form-card h3 { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; }
label span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
input, textarea {
  border: 1px solid #D5DAE1; padding: 11px 12px;
  font-family: var(--font-body); font-size: 14px; color: var(--navy);
  outline: none; min-width: 0; border-radius: 0;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(5, 83, 164, .14); }
button {
  background: var(--deep); color: #fff; border: none; padding: 15px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; border-radius: 0;
  transition: background .25s ease;
}
button:hover { background: var(--blue); }
button:disabled { opacity: .7; cursor: default; }
.status { padding: 13px 14px; font-size: 13px; line-height: 1.5; }
.status[hidden] { display: none; }
.status.ok { background: #EAF1FB; border-left: 3px solid var(--blue); color: var(--deep); }
.status.err { background: #FBEEEA; border-left: 3px solid #A43705; color: #5C2402; }
.form-note { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
/* Spam trap: off-screen, not display:none (some bots skip display:none fields) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Direct email addresses (contact section + footer) */
.contact-line { display: flex; flex-direction: column; gap: 1px; }
.contact-line span {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sky-soft);
}
.direct { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.direct h4 {
  margin: 0; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.direct .contact-line span { color: var(--muted); }
.direct .contact-line a { font-size: 14px; color: var(--blue); }
.direct .contact-line a:hover { color: var(--deep); }

/* Footer */
footer { background: var(--navy); color: var(--sky-soft); }
.footer-grid {
  padding-top: 52px; padding-bottom: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px; align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col.brandcol { gap: 14px; }
.footer-col img { height: 26px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.footer-col h4 {
  margin: 0; font-family: var(--font-mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--sky-soft);
}
.footer-col a { font-size: 13px; color: var(--sky-soft); transition: color .25s ease; }
.footer-col a:hover { color: #fff; }
.footer-col div, .footer-col p { font-size: 13px; }
.footer-col .small { font-size: 12px; line-height: 1.55; }
.footer-base { border-top: 1px solid #12263D; }
.footer-base .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--sky-soft);
}

/* Motion (added by app.js, so the page is fully visible without JS) */
[data-rv] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-rv="1"] { opacity: 1; transform: none; }
[data-rvb] { clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .15s; }
[data-rvb="1"] { clip-path: inset(0 0 0 0); }
.lift { transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
[data-rv="1"].lift:hover, .lift:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 32, 72, .10); }
img[data-img] { transition: transform 1.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-rv] { opacity: 1 !important; transform: none !important; }
  [data-rvb] { clip-path: none !important; }
}
