/* Ellestin Defence Systems */
:root {
  --bg: #0b0d0c;
  --bg-2: #111412;
  --bg-3: #161a17;
  --line: #262b27;
  --line-2: #353b36;
  --text: #e9e7e1;
  --muted: #9ea19a;
  --dim: #6d716b;
  --accent: #c9a94e;
  --accent-ink: #0b0d0c;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 13, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand small { color: var(--muted); font-weight: 400; }

.nav { display: flex; gap: 32px; }
.nav a {
  text-decoration: none;
  font-size: 14px; color: var(--muted);
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-2); color: var(--text);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
  .brand small { display: none; }
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--accent);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--text); max-width: 46ch; }
.muted { color: var(--muted); }
.prose { max-width: 64ch; }
.prose p { color: #cfcdc6; }
em, i { font-style: italic; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: clamp(80px, 13vw, 168px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero h1 { max-width: 13ch; margin-bottom: 32px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 44px; }
.hero-meta {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--dim);
}
.hero-meta span b { color: var(--muted); font-weight: 500; }

.page-hero .wrap { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 18ch; margin-bottom: 28px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  padding: 15px 22px;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.textlink {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(201,169,78,.35); padding-bottom: 3px;
}
.textlink:hover { border-bottom-color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-2); }
.split {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split > .head { position: sticky; top: 108px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split > .head { position: static; }
}

/* Three/four column feature grid */
.grid {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .grid.cols-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px)  { .grid.cols-2, .grid.cols-5 { grid-template-columns: 1fr; } }
.cell { background: var(--bg); padding: 36px 32px 40px; }
.section.alt .cell { background: var(--bg-2); }
.cell .num {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--dim); margin-bottom: 28px; display: block;
}
.cell h3 { margin-bottom: 12px; }
.cell p { color: var(--muted); font-size: 16px; margin: 0; }

/* Status strip */
.status {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px;
  padding-block: 28px;
}
.status .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.status .value { font-size: 18px; }
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(201,169,78,.6);
  animation: pulse 2.4s infinite;
  display: inline-block; margin-right: 12px; vertical-align: middle;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,169,78,.55); }
  70% { box-shadow: 0 0 0 10px rgba(201,169,78,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,78,0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } html { scroll-behavior: auto; } }

/* Stat callout */
.stat {
  border-top: 1px solid var(--line-2);
  padding-top: 24px; margin-top: 8px;
}
.stat .figure {
  font-size: clamp(56px, 8vw, 104px); line-height: 1; letter-spacing: -0.04em; font-weight: 500;
  color: var(--accent);
}
.stat .caption { color: var(--muted); margin-top: 14px; max-width: 30ch; font-size: 16px; }

/* Chapter blocks (Why Now) */
.chapter { padding: clamp(56px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.chapter:last-of-type { border-bottom: 0; }
.chapter .split > .head h2 { font-size: clamp(26px, 2.8vw, 34px); }

/* Class spectrum (text diagram) */
.spectrum {
  display: grid; grid-template-columns: 1fr 1.25fr 1fr;
  border: 1px solid var(--line); margin-top: 40px;
}
.spectrum > div { padding: 24px 22px; border-right: 1px solid var(--line); }
.spectrum > div:last-child { border-right: 0; }
.spectrum .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 10px; }
.spectrum .v { font-size: 16px; color: var(--muted); line-height: 1.5; }
.spectrum .here { background: var(--bg-3); box-shadow: inset 0 2px 0 var(--accent); }
.spectrum .here .k { color: var(--accent); }
.spectrum .here .v { color: var(--text); }
@media (max-width: 700px) {
  .spectrum { grid-template-columns: 1fr; }
  .spectrum > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .spectrum > div:last-child { border-bottom: 0; }
  .spectrum .here { box-shadow: inset 2px 0 0 var(--accent); }
}

/* List with rules */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rules li {
  display: grid; grid-template-columns: minmax(180px, 2fr) 5fr; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.rules li b { font-weight: 500; }
.rules li span { color: var(--muted); }
@media (max-width: 640px) { .rules li { grid-template-columns: 1fr; gap: 6px; } }

/* Spec sheet */
.specs { border-top: 1px solid var(--line-2); margin: 0; }
.specs div {
  display: grid; grid-template-columns: 2fr 3fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.specs dt {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); padding-top: 3px;
}
.specs dd { margin: 0; font-size: 17px; }
@media (max-width: 520px) { .specs div { grid-template-columns: 1fr; gap: 4px; } }
.note { font-size: 14px; color: var(--dim); margin-top: 24px; }

/* Pull statement */
.statement { padding: clamp(80px, 11vw, 144px) 0; border-bottom: 1px solid var(--line); }
.statement p {
  font-size: clamp(28px, 4vw, 52px); line-height: 1.12; letter-spacing: -0.03em;
  max-width: 22ch; margin: 0;
}
.statement p span { color: var(--muted); }

/* CTA band */
.cta { padding: clamp(72px, 9vw, 112px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.cta h2 { max-width: 20ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.callout {
  border: 1px solid var(--line-2); border-left: 2px solid var(--accent);
  padding: 24px 26px; background: var(--bg-2); margin: 32px 0;
}
.callout b { display: block; font-weight: 500; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--muted); }
.address { font-style: normal; color: var(--muted); line-height: 1.8; }
.address a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.address a:hover { border-bottom-color: var(--accent); }

form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field.two { grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .field.two { grid-template-columns: 1fr; } }
label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 0;
  padding: 14px 16px;
  transition: border-color .15s;
}
select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px;
  padding: 64px 0 48px;
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; } }
.tagline { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin: 18px 0 0; max-width: 16ch; }
.footer-col h4 {
  margin: 0 0 16px; font-weight: 400;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--text); }
.members { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.members img { height: 40px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .75; transition: opacity .15s; }
.members a:hover img { opacity: 1; }
.member-name { font-size: 14px; color: var(--muted); line-height: 1.4; max-width: 18ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim);
}

/* Logo lockup: text sits on the wordmark's baseline */
.brand { align-items: baseline; gap: 14px; }
.brand-logo { height: 22px; width: auto; display: block; }
.brand-rule { align-self: flex-start; width: 1px; height: 22px; background: var(--line-2); }
.brand-sub { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1; white-space: nowrap; }
.site-footer .brand-logo, .site-footer .brand-rule { height: 26px; }
.site-footer .brand-sub { font-size: 14px; }
.members img { height: 56px; }
@media (max-width: 560px) { .site-header .brand-rule, .site-header .brand-sub { display: none; } }
/* Footer: name always sits on its own line under the wordmark */
.site-footer .brand { flex-wrap: wrap; row-gap: 12px; }
.site-footer .brand-rule { display: none; }
.site-footer .brand-sub { flex-basis: 100%; white-space: normal; line-height: 1.4; }

/* ---------- Drawings ---------- */
figure { margin: 0; }
figcaption {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-top: 14px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-copy { min-width: 0; }
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption { text-align: right; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art figcaption { text-align: left; }
}

.ga { padding-top: 0; }
.sheet { border: 1px solid var(--line-2); background: var(--bg-2); }
.sheet-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.sheet-row .view + .view { border-left: 1px solid var(--line-2); }
.view { position: relative; padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px); display: flex; align-items: center; justify-content: center; }
.view img { width: 100%; height: auto; }
.view-wide img { max-width: 1000px; }
.sheet-row .view img { max-height: 400px; width: auto; max-width: 100%; }
.view .tag {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.title-block {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0; border-top: 1px solid var(--line-2);
}
.title-block div { padding: 14px 18px; border-left: 1px solid var(--line-2); }
.title-block div:first-child { border-left: 0; }
.title-block dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.title-block dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .sheet-row { grid-template-columns: 1fr; }
  .sheet-row .view + .view { border-left: 0; border-top: 1px solid var(--line-2); }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block div:nth-child(3) { border-left: 0; }
  .title-block div:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}

.inline-art { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.inline-art img { width: 100%; height: auto; }
.side-art { margin-top: 40px; max-width: 320px; }
.side-art img { width: 100%; height: auto; }
@media (max-width: 900px) { .side-art { max-width: 260px; } }
.nw { white-space: nowrap; }
@media (max-width: 760px) { .sheet-row .view img { max-height: 280px; } }
/* Eyebrow: let text wrap as one line of text rather than separate flex pieces */
.eyebrow { display: block; }
.eyebrow::before { display: inline-block; vertical-align: middle; margin-right: 12px; position: relative; top: -2px; }
